This was an extra credit question on my test on improper integrals. It was:
Define $ \lfloor{x} \rfloor$ to be the greatest integer less than or equal to $x$, where $x$ is a real number. Calculate:
\begin{equation} \left\lfloor{\ \frac{\int_0^{\infty} e^{-x^{2}}\,dx}{\int_0^{\infty} e^{-x^{2}}\cos 2x\, dx}}\ \right\rfloor \end{equation}
I don't know how to start, since I don't think any of the integrals are elementary functions. Can anyone help?
Edit: He did give us the first integral as $\sqrt{\pi}/2$.
Note: This was the final $10$ point extra credit question. It was designed to be hard!
Here's my incomplete start.
$\begin{array}\\ \int_0^{\infty} e^{-x^{2}}\cos 2x dx &=\int_0^{\infty} e^{-x^{2}}Re(e^{2ix}) dx\\ &=Re\int_0^{\infty} e^{-x^{2}+2ix} dx\\ &=Re\int_0^{\infty} e^{-x^{2}+2ix-i^2+i^2} dx\\ &=Re\int_0^{\infty} e^{-(x-i)^2-1} dx\\ &=Re\frac1{e}\int_0^{\infty} e^{-(x-i)^2} dx\\ \end{array} $
This shows where the $1/e$ comes from.
If we can show that $Re\int_0^{\infty} e^{-(x-i)^2} dx =\int_0^{\infty} e^{-x^{2}}dx $ then we are done, but I don't know how to do this.