So, I need to prove the identity
$$\int_{-\infty}^\infty \cos t^2 dt = \int_{-\infty}^\infty \sin t^2 dt = \sqrt{\frac{\pi}{2}}$$
and as a hint I have the Gaussian integral
$$\int_{-\infty}^\infty e^{-xt^2} dt = \sqrt{\frac{\pi}{x}} \;\;\;\forall x>0.$$
I suspect I have to take the real/imaginary part of $e^{-t^2}$ at some point, but I can't quite figure how. I.e., $\int e^z dz = e^z$ gives me nothing. So, how do I do it?