Evaluate $$\int_{-\infty}^{\infty} \frac{\sin{\left(t\pi x^2\right)}}{\sinh^2{\left(\pi x\right)}} \; \mathrm{d}x$$
I converted $\sinh{(x)}$ to exponential form and considered Imaginary part of the numerator: $$4\Im{\left(\int_{-\infty}^{\infty} \frac{e^{2 \pi x}e^{t\pi x^2}}{{\left(e^{2 \pi x} -1\right)}^2} \; \mathrm{d}x\right)}$$ I think a semi circle contour in upper quadrants would work. Residues are at $x=k \cdot i, k \in \mathbb{N}$ including $0i$. Where I calculated the residues to be $$-\frac{2t}{\pi} \sum_{n=0}^{\infty} ne^{-n^2 \pi i t}$$ I dont know what to do from here (closed form) or maybe my work is wrong? Ideas or tips please.