A problem with $\int _{0}^{\infty} \cos(x^m) x^n \ \mathrm dx$

calculusdefinite integralsintegrationreal-analysistrigonometry

I was trying to solve:

$$\tag*{}\int _{0}^{\infty} \cos(x^m) x^n \ \mathrm dx$$

Where $m, n \in \mathbb{Z}$. I have tried to substitute $x^m=t$ but couldn't proceed further. And also can someone please state the conditions for the convergence of integral? Thank you.

Best Answer

The integral is divergent if $m=0$. Assume that $m\neq 0$. With the substitution $x^m=t$, as you proposed, we get $$ \int_0^{ + \infty } {\cos (x^m )x^n dx} = \frac{1}{m}\int_0^{ + \infty } {\cos (t)t^{(n + 1)/m - 1} dt} . $$ Using the known Mellin transform formula for the cosine, we then find $$ \frac{1}{m}\int_0^{ + \infty } {\cos (t)t^{(n + 1)/m - 1} dt}= \frac{1}{m}\Gamma \!\left( {\frac{{n + 1}}{m}} \right)\cos \left( {\frac{{n + 1}}{{2m}}\pi } \right) $$ provided that $0<\frac{n+1}{m}<1$.