So I have to evaluate $$\int_{-\infty}^\infty\frac{e^{ax}}{\cosh x} \, dx$$
I tried takeing the analytic expansion, and integrating over the real axis. I took this as being a half circle from $-\infty$ to $\infty$, minus the arc of the circle. over the arc I proved that the integral is zero, and I have left only with a sum of the residues of the function. With the help of a previous question I calculated the values of the residues, but I could not manage to converge the sum.
Help will be highly appreciated
The usual trick for this integral is to take a rectangular contour with vertices $\pm R$ and $\pm R+\pi i$ and let $R\to\infty$. This contains only one pole, simple at $z=\pi i/2$, and the integral over the top edge is closely related to that over the bottom edge (the one you care about).