$$\int_0^\infty \frac{x}{(4x^2+\pi^2)\sinh x} dx$$ I'm stuck with this integral since I can't figure out the contour I should be using.
It doesn't fit in into standard ones like circle with a cut for integrals like $\int_{0}^\infty \frac{\ln x}{polynomial} dx.$ Or infinite band for functions with imaginary period. I don't know what to do...
I think that I managed to apply @NinadMunshi's idea here. We can try to compute an integral of the function $\frac{1}{(2z-\pi i)}\sinh(z)$ at the contour that is an infinite rectangle of height $\pi$ (let us denote it $\Gamma$). It has one simple pole inside and two on the boundary.
By comparing what we get on the real axis and on the line $\operatorname{Im}=\pi i$ we get the following identity:
\begin{gather} \oint_{\Gamma}\frac{1}{(2z-\pi i)\sinh(z)}\,dz=\\\\\int_{-\infty}^{+\infty}\frac{1}{(2z-\pi i)\sinh(z)}\,dz+\int_{-\infty}^{+\infty}\frac{1}{(2z+\pi i)\sinh(z)}\,dz =4\int_{-\infty}^{+\infty}\frac{z}{(4z^2+\pi^2)\sinh(z)}\,dz=\\\\=2\pi i \operatorname{Res}_{\frac{\pi i}{ 2}}\frac{1}{(2z-\pi i)\sinh(z)}+ \pi i\bigg[\operatorname{Res}_{\pi i}\frac{1}{(2z-\pi i)\sinh(z)}-\operatorname{Res}_{0}\frac{1}{(2z-\pi i)\sinh(z)}\bigg]=\pi \end{gather}