How do you evaluate an integral of the form $$\int_a^{\infty}x^{2}e^{-x^{2}}dx ?$$ This integral is very similar to the error function integral $$\int_a^{\infty}e^{-x^{2}}dx =\frac{\sqrt{\pi}}{2}\big(1-\text{erf}(a)\big).$$
And so I thought that you could integrate by parts the first integral somehow and end up writing it in terms of the error function, however I don't know how to go about it (how do you evaluate the boundary terms?).
Hint: Try this for integration by parts.
$\int u dv$
Where
$u = x$
$dv = xe^{-x^2}$