Can somebody help me out with the following integral?
Prove that:
$\int_{0}^{\infty}\frac{cos2\pi x}{x^4+x^2+1}dx=\frac{-\pi}{2\sqrt{3}}e^{-\pi\sqrt{3}}$
I have already determined the singularities: $z=e^{\frac{\pi i}{3}}$ and $z=e^{\frac{2\pi i}{3}}$. These are poles of order one. But determining the integral with the residue theorem doesn't work. Can anybody help me?
For the first residue I find: $Res(f,z)=\frac{e^{iz}}{4z^3+2z}$ (with z the first value above) and for the second in the same way.
Hint: $\cos$ is even, and $\sin$ odd, so
$$\int_0^\infty \frac{\cos (2\pi x)}{x^4+x^2+1}\,dx = \frac{1}{2} \int_{-\infty}^\infty \frac{\cos (2\pi x)}{x^4+x^2+1}\,dx = \frac{1}{2} \int_{-\infty}^\infty \frac{e^{2\pi ix}}{x^4+x^2+1}\,dx.$$
You forgot the factor $2\pi$ in the exponent, the residue is
$$\frac{e^{2\pi iz}}{4z^3 + 2z}.$$