How does one evaluate $$\int_{-\infty}^\infty x^2\frac{1}{\sqrt{2\pi}}e^{-\frac{1}{2}x^2} \ dx ?$$
The result is $1$ and it corresponds to $E[X^2]$, where $X$ is a random variable with $X\sim\mathcal{N}(0,1)$. I have tried to do some substituions and I've tried integration by parts but didn't succeed to integrate it. With the integration by parts I ended up with a harder integral in both cases and I couldn't find a good substitution.