So I was looking through the homepage of Youtube to see if there were any math problems that I thought that I might be able to solve when I came across this video by Maths$505$ evaluating both $\int_0^\infty\sin(x^2)dx$ and $\int_0^\infty\cos(x^2)dx$, however, I decided to only evaluate $\int_0^\infty\cos(x^2)$ to not put too much strain on myself. Here is my attempt at evaluating $\int_0^\infty\cos(x^2)dx$:
Now here's what we want to do: We want to evaluate $$\int_0^\infty e^{-ix^2}dx$$ because we can rewrite this as $$\int_0^\infty\cos(x^2)dx-i\int_0^\infty\sin(x^2)dx$$because we only need to get the real part of $$\int_0^\infty e^{-ix^2}dx$$because that is what is going to be the value of $$\int_0^\infty\cos(x^2)dx$$
$$\int_0^\infty e^{-ix^2}dx$$Now, using $u$-substitution here,$$x^2=u$$$$x=\sqrt u$$$$dx=\dfrac1{2\sqrt u}du$$$$I=\dfrac12\int_0^\infty u^{-\frac12}e^{-iu}du$$$$\implies I=\dfrac12\int_0^\infty x^{-\frac12}e^{-ix}dx$$$$\implies I=\dfrac12\mathcal{M}\{e^{-ix}\}(s=\dfrac12)$$Where $\mathcal{M}\{f(x)\}(s)$ is a Mellin transform. Now to expand $e^{-ix}$ to represent as a sum. Doing this, we get $$e^{-ix}=\sum_{k\geq0}\dfrac{(-x)^ki^k}{k!}$$where $\sum_{k\geq0}$ is a sum over the nonnegative integers including the element $0$. Our "$w(k)$" function that is needed to perform the Mellin transform is $w(k)=i^k,\quad i=\sqrt{-1}$. We can then expand our $w(k)$ to get $w(k)=e^{a\log i}$, which therefore implies $w(k)$ can be written as $$w(k)=e^{\frac\pi2iz}$$Knowing this, this then implies$$I=\dfrac12\Gamma(\dfrac12)i^{-\frac12}$$$$=\dfrac12\sqrt\pi(e^{i\frac\pi2})^{-\frac12}$$$$=\dfrac12\sqrt\pi e^{-i\frac\pi4}$$$$=\dfrac12\sqrt\pi(\cos(\dfrac\pi4)-i\sin(\dfrac\pi4))$$$$=\dfrac12\sqrt{\dfrac\pi2}-\dfrac i2\sqrt{\dfrac\pi2}$$$$\implies\int_0^\infty\cos(x^2)dx=\sqrt{\dfrac\pi8}$$
My question
Is my evaluation of the integral correct, or what could I do to evaluate it more easily?
Mistakes I might have made
- The way I evaluated the integral
- U-substitution