I need to show that the following tricky integral: $$\int_0^\pi{12\cos x\ \mathrm{sech}\left(\frac {\pi}2\tan\frac x2\right)}\mathrm{d}x$$ is equal to exactly $\pi^2$. I have no idea how to start. I tried the substitution $u=\tan\frac x2$ and ended up with:
$$\int_0^\infty24\ \mathrm{sech}\frac{\pi u}{2}\frac{1-u^2}{(1+u^2)^2}\mathrm{d}u$$
I might have to use residue theorem or Fourier transformation here, but I'm lost. Thank you!