I am dealing with the following integral from superconductivity theory $$\int_{0}^{\infty}\frac{1}{x^2}\left(\frac{1}{\cosh^2x}-\frac{\tanh{x}}{x}\right)dx$$ My attempt to calculate this integral: calculate residues of $$f(x)=\frac{x-\sinh x\cosh x}{x^3\cosh^2 x},$$ then use Cauchy theorem about residues (integration over the contour over Im axis). I know that the answer is $-7\zeta(3)/\pi^2$, but I don't understand how to check it.
The function $f(x)$ has the second order pole at $x_0=i\pi/2+i\pi n$ (also the third order poles at $x=0$ but it's not important). To calculate residue, I use $$\mathrm{res}\,f(x)=\lim\limits_{x\rightarrow x_0}\frac{1}{2}\left[f(x)(x-x_0)^2\right]'.$$
Can anyone help with this integral?