I know that the
$$\int^{+\infty}_{-\infty}e^{-x^2}~dx$$ is equal to $\sqrt\pi$
It's also very clear that $$\int^{+\infty}_{-\infty}xe^{-x^2}~dx$$ is equal to 0;
However, I cannot manage to calculate this really similar integral.
$$\int^{+\infty}_{-\infty}x^2e^{-x^2}~dx$$
I know that the result is $\frac{\sqrt\pi}{2}$ but I don't know how to get to this result. I tried different substitution, but it doesn't seem to help. Any idea?
Thank you very much.
I'm surprised no one has given this answer. We have of course by $u$-substitution $$\int_{-\infty}^{\infty} e^{-\alpha x^2} dx = \sqrt{\frac{\pi}{\alpha}}.$$ Take a derivative of each side with respect to $\alpha$ to get $$-\int_{-\infty}^\infty x^2 e^{-\alpha x^2} dx = -\frac{1}{2} \frac{\sqrt{\pi}}{\alpha^{3/2}}.$$ Substitute $\alpha = 1$ and cancel negative signs.
EDIT: I see that Felix Marin does essentially the same thing, but I think this is a better explanation.