Problem: Suppose that $a \in \mathbb{C}$ and that $ Re(a) \in (-1,1)$. Evaluate $\int_{-\infty}^{\infty} \frac{e^{ax}}{\cosh x} dx$ by considering the rectangular contour with vertices $\pm R$, $\pm R + \pi i$
My attempt: Let $f(z)=\cfrac{e^{az}}{\cosh z}$. Then $f$ has a simple pole at $z=\cfrac{\pi}{2}i$ and $res(f ;z=\cfrac{\pi}{2}i)=\cfrac{e^{\frac{\pi}{2}ai}}{i}$
So we have $\int_{\Gamma} f(z) dz=2\pi e^{\frac{\pi}{2}ai}$ where $\Gamma$ is the suggested rectangular contour.
Now I need to show that contributions from the sides of the rectangle vanishes as $R \rightarrow \infty$ but I keep getting wrong estimates: my upper bound for sides integral does not converge to 0 (and thats my only problem I guess).
How should I proceed?
Any helps appreciated