Let $\phi:\mathbb{C}\backslash\{\pm i,\pm 2i\}\rightarrow\mathbb{C}$ with $\phi(z)=\frac{e^{iz}}{(z^2+1)^2(z^2+4)}$.
- How can I find $$\int_{-\infty}^\infty\frac{\cos x}{(x^2+1)^2(x^2+4)}dx$$ using $\phi$?
- Can I use the function $\psi:\mathbb{C}\backslash\{\pm i,\pm 2i\}\rightarrow\mathbb{C}$ with $\psi(z)=\frac{e^{-iz}}{(z^2+1)^2(z^2+4)}$ to compute the integral? Why/why not?
Thoughts:
1. I thought computing the residues of $i$ and $2i$ might be handy, but I'm not sure how to continue on this.
Note that:
$$\int_{-\infty}^{\infty} \frac{\sin x}{(x^2+1)^2(x^2 + 4)} dx = 0$$
since the integrand is odd and the integral converges (absolutely). So:
$$\int_{-\infty}^{\infty} \frac{\cos x}{(x^2+1)^2(x^2 + 4)} dx = \int_{-\infty}^{\infty} \frac{\cos x}{(x^2+1)^2(x^2 + 4)} dx + i \int_{-\infty}^{\infty} \frac{\sin x}{(x^2+1)^2(x^2 + 4)} dx \\ = \int_{-\infty}^{\infty} \frac{e^{ix}}{(x^2+1)^2(x^2 + 4)} dx$$
Let $R > 0$ be large enough and $\Gamma_R = \gamma_R \cup [-R,R]$, where $\gamma_R$ is the upper half semi-circle of center $0$ and radius $R$.
Using Residue theorem, compute $\int_{\Gamma_R} \phi$. Then, prove that $\int_{\gamma_R} \phi \to 0$.
Finally note that $\int_{\Gamma_R} \phi = \int_{\gamma_R} \phi + \int_{[-R,R]} \phi$ and that $\int_{[-R,R]} \phi = \int_{-R}^R \frac{e^{ix}}{(x^2+1)^2(x^2 + 4)}dx$, which converges to your integral.