Apparently from Mathematica we have: $$\int_{-\infty}^{+\infty}dx\frac{x\cos(xt)}{e^{ax}-e^{-ax}}=\frac{\pi^2\mathrm{sech}^2\left(\frac{\pi t}{2a}\right)}{4a^2}$$ for $a,t$ both real and positive.
I am trying to derive this by hand. I couldn't see any obvious substitution, so tried looking at contour integrals. We have simple poles at:
$$z=\frac{k\pi}{a}i$$
with residues:
$$(-1)^k\frac{k\pi\mathrm{cosh}\left(\frac{k\pi t}{a}\right)}{2a^2}i$$
for $k\in\mathbb{N}$. Taking as my contour the disc in the upper half-plane failed however as the sum of the residues does not converge. Does anyone have any ideas on other approaches?