How to show that $$\dfrac{1}{\sqrt{2\pi}\sigma(x)}\int_{-\infty}^{\infty}|u|\operatorname{exp}\left(-\dfrac{u^2}{2\sigma{^2}(x)}\right)\mathop{du}=\sqrt{\dfrac{2}{\pi}}\sigma(x)$$
I think it has to be shown through polar coordinates and then $u$ susbstituion, but I am not sure.
Exploit the evenness of the integrand to write
$$\frac{2}{\sqrt{2\pi}\sigma(x)}\int_{0}^{\infty}u\operatorname{exp}\left(-\dfrac{u^2}{2\sigma{^2}(x)}\right)\ du$$
Then let $ z= \frac{u^2}{2\sigma{^2}(x)}$ so $\sigma{^2}(x)\ dz = u\ du$. Note that $\sigma$ has no functional dependence on $u$ and can be brought in front of the integral.
$$\begin{align*} =& \frac{\sqrt{2}}{\sqrt{\pi}\sigma(x)}\int_{0}^{\infty}e^{-z}\sigma{^2}(x) dz \\ \\ =& \sqrt{\frac{2}{\pi}}\sigma(x)\int_{0}^{\infty}e^{-z}\ dz\\ \\ =& \sqrt{\frac{2}{\pi}}\sigma(x) \end{align*}$$