I'm trying to work out the following integral:
$$\int_{-\infty}^\infty \frac{1}{\cosh(x)} dx $$
by complex analysis methods and as a result of the contour I chose (a rectangle) one of the things I need to show is that the integral:
$$\int_{0}^{\pi} \frac{idy}{\cosh(L+iy)} $$ goes to $0$ as L approaches $\infty$ using the ML inequality.
Could someone show me how to do this? :)
$$\left\|2\cosh(L+iy)\right\|^2 = (e^{L+iy}+e^{-L-iy})\cdot(e^{L-iy}+e^{-L+iy})=e^{2L}+e^{-2L}+2\cos(y) $$ gives: $$\left\|\cosh(L+iy)\right\| \geq \sinh(L) $$ hence the integral $$ \int_{0}^{\pi}\frac{i}{\cosh(L+iy)}\,dy $$ is bounded by $$ \frac{\pi}{\sinh(L)} $$ in absolute value. That gives: $$ \int_{-\infty}^{+\infty}\frac{dz}{\cosh z}+\int_{\pi i+\infty}^{\pi i-\infty}\frac{dz}{\cosh z} = 2\pi i\,\text{Res}\left(\frac{1}{\cosh z},z=\frac{\pi i}{2}\right) = 2\pi $$ but the LHS is just twice the original integral since $\cosh(z+\pi i)=-\cosh(z)$, so: