I would like to solve the following improper integral:
$$\int_{-\infty}^{\infty}\frac{1-a\cosh(\alpha x)}{(\cosh(\alpha x)-a)^2}\cos(\beta x)\,dx$$
where $a$, $\alpha$ and $\beta$ are real constants. The constant $a$ is so that $0<a<1$.
I tried to evaluate this integral by contour integration. Because $0<a<1$, we can write $a$ as:
$$a=\cos\phi,\,\phi\in\left[0,\frac{\pi}{2}\right]$$
So, the integrand functions has poles of second order at $z=i(\pm\phi+2k\pi)/\alpha$, $k\in\mathbb{Z}$. Now a contour at the complex plane should be thought. I considered a semicircunference centered at the origin with a radius $R\to \infty$. A problem appears, which is to define $R$ as a sequence $R_n$, so that the arc doesn't intersect the poles. This is not straightforward due to the existence of $\alpha$ in $\frac{2k\pi}{\alpha}$. Is there a simpler way to evaluate this integral?