I was confused about an integral showing on my teacher's slide, could anyone tell me how is the following integral derived?
$$ \int^\infty_{-\infty} x^{2k} e^{-\frac{x^2}{2\sigma^2}} \; \mathrm{d}x = 1 \cdot 3 \; \ldots \; (2k-1) \sigma^{2k+2} \sqrt{2\pi} $$
Thanks!
Hint: Express the integrand as:
$$x^{2k-1}\cdot (x e^{-\frac{x^2}{2\sigma^2}})$$
and apply integration by parts repeatedly. Induction will help a lot.