This trick can also be used with the Gaussian integral to compute similar integrals of a Gaussian multiplied with a power of the integration variable [1], e.g. the integral of x*exp(-x^2).
[1] https://en.wikipedia.org/wiki/Gaussian_integral#Integrals_of...