I'm studying presently studying the calculus of residues, and I'm stuck in this problem.
How do I evaluate the integral, $$ \int_{0}^{\infty} \frac{dx}{(x^2 + a^2) \cosh \pi x} $$?
My first thought about the contour for this integral was a rectangular contour, with a small indentation at $z=ai$ with the pole $ z = \frac{i}{2} $ inside the contour. But I'm unable to get the correct answer. Any help would be highly appreciated.