# Driving Fresnel Integral $\int_{-\infty}^\infty \sin(x^2)\rm dx$ and $\int_{-\infty}^\infty \cos(x^2)\rm dx$ through polar coordinates

I am trying to derive the Fresnel Integrals $$\int_{-\infty}^\infty \sin(x^2)\rm dx ~~~~and ~~~~~\int_{-\infty}^\infty \cos(x^2)\rm dx$$ through the Gaussian Integral via $I=\int_{-\infty}^\infty e^{ix^2}\rm dx$.

I got to $$I^2=\int_{0}^{2\pi}\int_{0}^\infty re^{ir^2}\rm dr$$

After integrating, I am left with the expression$$I^2=\int_{0}^{2\pi}\frac{i}{2}(\lim_{r\to\infty}-e^{ir^2}+1)\rm d\theta$$

I don't believe that this approaches a defined value but if I use $\lim_{r\to\infty}-e^{ir^2}=0$, I arrive at the correct answer of $\Re(I)=\sqrt{\frac{\pi}{2}}$ and $\Im(I)=\sqrt{\frac{\pi}{2}}$

So my question is why does using $0$ for that expression work? Or am I incorrect in using that value.

• This recent question is strongly related. See in particular the answer by Guy Fsone Nov 21, 2017 at 22:11
• Your approach works when replacing $I$ by $\lim_{a \to 0^+} I_a =\lim_{a \to 0^+}\int_0^\infty e^{(-a+i) x^2}dx$. Regularizing integrals in such a way is very common in complex and Fourier analysis. Nov 21, 2017 at 22:28
• @reuns I see, so it requires an additional limit of the function $I(a)$? Nov 21, 2017 at 22:31
• $\lim_{r \to \infty} e^{i r^2}$ diverges (the original integral is only conditionally convergent so the circular change of variable, changing the order of summation, isn't allowed) but $\lim_{a \to 0^+} \lim_{r \to \infty} e^{(-a+i) r^2} = 0$ Nov 21, 2017 at 22:34

Observes that the Gaussian $e^{ix^2}$ is $$e^{ix^2}=\cos(x^2)+i\sin(x^2)$$
I applying polar coordinates to $e^{ix^2}$ does not provide a convergent integral. But rather it is more wise to think about Feymann's tricks by considering the the following( perturbed) Gaussian $$\color{blue}{e^{(t+i)x^2} = e^{tx^2}\cos(x^2)+ie^{tx^2}\sin(x^2)}$$ then apply polar coordinates and let $t\to0$ aftermath to get the result. this is exactly what I did in my answer here (see all details below)
Proof: Indeed, we proceed as follow: Let, $$I=\int_0^\infty \cos(x^2) dx =\frac{1}{2}\int^\infty_{-\infty}\cos(x^2)dx~~~ and ~~~~ J=\int_0^\infty \sin(x^2) dx=\frac{1}{2}\int^\infty_{-\infty} \sin(x^2) \,dx$$ We set, $$I_t = \int_0^\infty e^{-tx^2}\cos(x^2) dx~~~~\text{and}~~~ J_t = \int_0^\infty e^{-tx^2}\sin(x^2) dx$$ $t\mapsto I_t$ and $t\mapsto J_t$ are clearly continuous due to the present of the integrand factor $e^{-tx^2}$.
However using similar technique in above prove one can easily arrives at the following $$\color{blue}{I_tJ_t = \frac\pi8\frac{1}{t^2+1}}$$ from which one get the following explicit value of $$\color{red}{I^2=J^2= IJ = \lim_{t\to 0}I_tJ_t =\frac{\pi}{8}}$$