I was given to calculate the Fourier Transform of $\frac{x}{\sinh(x)}$.
So, the problem is to calculate the integral
$$ \int_\mathbb{R} \frac{x}{\sinh(x)}e^{-i \omega x} dx $$
I know such an integrals can be evaluated using complex analysis, but I don't know how to take the proper contour.
Function under integral has a removable singularity at $x=0$ and poles at $x=\pi i k, 0 \ne k \in \mathbb{Z}$
But it doesn't work since the $x/\sinh(x)$ is not even bounded on the half-circle, so Jordan Lemma is inapplicable.
But I don't quite see how to integrate over any side of a rectangle.
Any ideas?


$$I(\omega)=\int_{-\infty}^\infty\frac{x\,e^{-i\omega x}}{\sinh x}dx=i\frac{d}{d \omega}\int_{-\infty}^\infty\frac{e^{-i\omega x}}{\sinh x}dx=i\frac{d}{d \omega}J(\omega)$$ where $J(\omega)$ is understood in the principal value sense. To evaluate $J(\omega)$ let's consider the following contour:
where we added small half-circles around $z=0$ and $z=\pi i$, and also two paths $[1]$ and $[2]$ - to close the contour. Given that $\,\sinh(z+\pi i)=-\sinh z$, and $\,e^{-i\omega (z+\pi i)}=e^{-i\omega z}e^{\pi \omega}$ $$\oint \frac{e^{-i\omega z}}{\sinh z}dz=J(\omega)+I_{1r}+[1]+J(\omega)e^{\pi \omega}+I_{2r}+[2]$$ where $I_{1,2\,r}$ are the integrals along the half-circles. We can show that integrals $[1,2]$ tend to zero at $R\to\infty$. There are no poles inside the contour, therefore $\displaystyle \oint=0$. $$J(\omega)(1+e^{\pi\omega})=-I_{1r}-I_{2r}=\pi i\underset{z=0; \,e^{\pi i}}{\operatorname{Res}}\frac{e^{-i\omega z}}{\sinh z}=\pi i(1-e^{\pi \omega})$$ $$J(\omega)=-\pi i\tanh \frac{\pi \omega}{2}$$ $$I(\omega)=i\frac{d}{d\omega}J(\omega)=\frac{\pi^2}{2}\frac{1}{\cosh^2\frac{\pi \omega}{2}}$$