Proofs of Integrals Commonly Used in Thermal and Statistical Mechanics
Derive Gaussian moments by differentiating with respect to alpha, then use symmetry and a substitution to handle half-line and odd-power integrals.
In thermal and statistical mechanics, the same integral keeps coming back with another power of $x$ stuck in front. Do we really need a new integration trick every time? Nope. One Gaussian integral can do most of the work for us, hehehe.
Start with the Gaussian

Here $\alpha>0$. That condition matters: the exponential then dies away at both ends, so the area is finite. Increasing $\alpha$ squeezes the bell-shaped curve, which already makes the $1/\sqrt{\alpha}$ dependence look sensible.
My original plan was ‘I’m not deriving this one — it’s easy! I’ll skip ahead and differentiate both sides with respect to alpha to collect the integrals we keep using in thermal/statistical mechanics.’ That’s the scope note behind this little reference post. A quick proof is included below before we do that.
A quick proof, since this is the result we’ll keep borrowing: call the integral $I(\alpha)$. Squaring it gives an integral over the entire $x$–$y$ plane. In polar coordinates, $x^2+y^2=r^2$ and the area element becomes $r\,dr\,d\theta$. So
$$I(\alpha)^2=2\pi\int_0^\infty r e^{-\alpha r^2}\,dr=\frac{\pi}{\alpha}.$$The integral itself is positive, so we take the positive square root. There’s our starting point.
Now, how do we get an extra $x^2$ inside that integral without integrating from scratch?
Differentiate the parameter, not x
Differentiate with respect to $\alpha$. The $x$ is just sitting there while we do it:
$$\frac{\partial}{\partial\alpha}e^{-\alpha x^2}=-x^2e^{-\alpha x^2}.$$Aha — that pulls down exactly the factor we wanted, with a minus sign. For positive $\alpha$, we can move this derivative inside the integral: the Gaussian decay still beats the extra polynomial factors. We stay away from $\alpha=0$ when making that interchange.

On the right, differentiating $\sqrt{\pi}\alpha^{-1/2}$ gives $-\sqrt{\pi}/(2\alpha^{3/2})$. The two minus signs cancel, leaving
$$\int_{-\infty}^{\infty}x^2e^{-\alpha x^2}\,dx=\frac{\sqrt{\pi}}{2\alpha^{3/2}}.$$Do it once more. Differentiating the integrand adds another $-x^2$; differentiating the result brings down $-3/2$. That’s where the next coefficient comes from:

Each minus alpha derivative adds another $x^2$. The growing list of formulas is really the same operation repeated.
Both $x^2e^{-\alpha x^2}$ and $x^4e^{-\alpha x^2}$ are even. The area on the negative side equals the area on the positive side, so integrating only from zero to infinity gives half the answer:

What about odd powers?
Here’s the first one:

On the whole real line, this odd integrand has integral zero: the negative and positive halves cancel. That’s a perfectly meaningful result! It just doesn’t tell us the nonzero area on the positive half-line, which is what we want next.
For that, we don’t even need the Gaussian trick. Set $t=x^2$. Since we’re using $x\ge0$, the limits stay zero and infinity, and $x\,dx=dt/2$:


The upper boundary vanishes because $\alpha>0$. At the lower boundary the exponential is 1, so the result is $1/(2\alpha)$.
Now the same parameter trick works again. Differentiating once gives a minus $x^3$ on the left and $-1/(2\alpha^2)$ on the right. Differentiating again gives the $x^5$ integral:

So these aren’t eight unrelated things to memorize. Check the interval first, check whether the integrand is even or odd, then let differentiation do the repetitive work. If we normalize the whole-line Gaussian, for example, its average $x^2$ is the second-moment integral divided by $I(\alpha)$: just $1/(2\alpha)$.
Next time one of these turns up, I’m linking back here and letting this page do the work. Hehehe.
Questions or corrections?
Did a step lose you, or does a number look off? Email me or use the contact page. Include the note title and the step or figure you mean.
Feedback goes to me privately by email; it is not posted as a public comment.