I was wondering if someone could help me with the following integral:
$$ \int_{0}^{\infty}\frac{\cos(ax)}{1+x^{2n}}dx\:\:(x,\in\mathbb{C},n\in \mathbb{N},a\in \mathbb{R}) $$
I’ve tried to solve it using the 'pizza contour,' taking the real part of $e^{iax}$:
$$ I=\int_{0}^{\infty}\frac{\cos(ax)}{1+x^{2n}}dx=Re\int_{0}^{\infty}\frac{e^{iax}}{1+x^{2n}}dx=2\pi i \sum Res(\omega,z) $$
where $\omega=\frac{e^{iax}}{1+x^{2n}}dx$
Enclosing one of the poles the function has in the upper half-plane, so that there are three integrals:
$$ \int_{0}^{r}\frac{e^{iax}}{1+x^{2n}}dx\:+\:\int_{\gamma_r}\frac{e^{iax}}{1+x^{2n}}dx\:+\:\int_{r}^{0}\frac{e^{iax}}{1+x^{2n}}dx $$
The first tends to I as r tends to $\infty$, meanwhile it is well-known that the second one tends to zero as r tends to $\infty$. But the problem is with the third one, we have to parametrize $x$ as $x=t\cdot e^{i\frac{\pi}{n}}$ but I am not capable of solve that integral in terms of I.
PS: Apologies for the errors in writing and tags, this is my first post :(