How to integrate $$\int_{\mathbb{R}^n}|x|e^{-|x|^2}dx$$ in high dimension $\mathbb{R}^n$? In one dimension, by change of variables $s=x^2$, we have \begin{equation} \int_{-\infty}^\infty |x|e^{-x^2}dx = 2\int_0^\infty xe^{-x^2}dx = \int_0^\infty e^{-s}\, ds =1, \end{equation}
But I don't know how to do change of variables in $\mathbb{R}^n$?
$$\frac1{(2\pi)^{n/2}}\int_{\mathbb R^n} \lVert x \rVert e^{-\frac12\lVert x \rVert^2}dx = \sqrt 2\frac {\Gamma(\frac{n+1}{2})}{\Gamma(\frac n2)}$$
– StubbornAtom May 27 '23 at 11:18