Proof of 3.981.3 Gradshteyn ed.8.
$$\int^{\infty}_{0} \frac{\cos(ax)}{\cosh(\beta x)}dx = \frac{\pi}{2\beta}\operatorname{sech}(\frac{a\pi}{2\beta})$$
I was interested in the derivation (not necessarily rigorously proved) of the above result. I've tried using differentiation under the integral sign using $$I(a) = \int^{\infty}_{0} \frac{\cos(ax)}{\cosh(x)}dx$$ but with no success.
A hint would be highly appreciated.
Hint: The function is even, so it's easily turned into an integral over the real line. Try rewriting it as a contour integral to turn it into an infinite sum over the residues at the poles of $\mathrm{sech}$.