# Complex integral

1. Jan 28, 2012

I read in some text or book that the integral

$$\int_{-\infty}^{\infty} \cos(x^2) + \sin(x^2) \, \mathrm{d}x = \sqrt{2\pi}$$

I was wondering how this is possible. I read on this site that one such possible way was to start by integrating

$$e^{-i x^2} = \cos(x^2) - i \cos(x^2)$$

My knowledge about complex analysis is rather limited. Could anyone expain to me how the integral at the top is evaluated? (I know one could start of by noticing the symmetry about the y-axis. )

Agomez, shows one way to do it. But it is not exactly the same as the integral above. Sigh, I feel stupid for not seeing this one...

2. Jan 28, 2012

### morphism

Because cos(x^2)+sin(x^2) is an even function, we have
$$\int_{-\infty}^\infty \cos(x^2)+\sin(x^2)\, dx = 2 \int_0^\infty \cos(x^2)+\sin(x^2) \,dx.$$
Now use the results from agomez's calculations.

3. Jan 28, 2012

My main problem is that

$$e^{-ix^2} = \cos(x^2) - i \sin(x^2)$$

Whilst this integral is $\cos(x^2) + \sin(x^2)$. Does the minus sign change anything?

4. Jan 28, 2012

### morphism

It changes nothing. All I'm saying is that you can use agomez's evaluation of $\int_0^\infty \cos(x^2)\, dx$ and $\int_0^\infty \sin(x^2)\, dx$.