Possible Duplicate:
Explain $\iint \mathrm dx\mathrm dy = \iint r \mathrm d\alpha\mathrm dr$
Show that $\int\limits_{-\infty}^{\infty} \! \mathbb{e}^{-x^2} \, \mathrm{d}x$ = $\sqrt{\pi}$.
The hint was to calculate the double integral $\int\limits_{-\infty}^{\infty} \! \int\limits_{-\infty}^{\infty} \! \mathbb{e}^{-x^2}\mathbb{e}^{-y^2} \, \mathrm{d}x\mathrm{d}y$ using polar coordinates. The double integral equals [$\int\limits_{-\infty}^{\infty} \! \mathbb{e}^{-x^2} \, \mathrm{d}x]^2$.
So I started by writing $x=r\cos(\theta)$ and $y=r\sin(\theta)$. I know that $x^2+y^2=r^2$. Then I need to change those variables in my original equation, but this confuses me.
I get:
$$\int\limits_{-\infty}^\infty \! \int\limits_{-\infty}^\infty \! \mathbb{e}^{-r^2}\, \mathrm{d}x\,\mathrm{d}y$$
I also got told that the double integral equals:
$$\int\limits_0^\infty \! \int\limits_{0}^{2\pi} \! \mathbb{e}^{-r^2}r \, \mathrm{d}\theta\,\mathrm{d}r$$
Why though?
Thanks for any help in advance.