I need to find the expectation for |X|, E(|X|) for a normally distributed variable with parameters, $\mu$, $\sigma^2$. I've setup the integral that I think is necessary, but I'm having trouble evaluating it. Here's what I have so far:
$E(|X|) = \frac{1}{\sigma \sqrt{2\pi}} (-\int_{-\infty}^\infty |x|e^{\frac{-(x-\mu)^2}{2\sigma^2}} dx)$ $E(|X|) = \frac{1}{\sigma \sqrt{2\pi}} (-\int_{-\infty}^0 xe^{\frac{-(x-\mu)^2}{2\sigma^2}} dx + \int_{0}^\infty (x-\mu)e^{\frac{-(x-\mu)^2}{2\sigma^2}} dx + \int_{0}^\infty \mu e^{\frac{-(x-\mu)^2}{2\sigma^2}} dx)$
Any help on how to evaluate this would be appreciated, thanks in advance.