I struggle with absolute value. Here I need to find $\mathbb{E}[X^4]$ and $\mathbb{E}[|X|]$ knowing that $X$ is a normally distributed random variable with zero mean and variance $\sigma^2$.
I know the pdf of the normal r.v. and the way to compute $\mathbb{E}[X^4]$:
$$\mathbb{E}[X^4]=\int x^4 f_X(x) dx$$
But how should I handle the absolute sign when I compute:
$$\int \mid x \mid f_X(x) dx $$
I understand I should divide the integral into the part from $-\infty$ to $0$ and 0 to $\infty$ and take that into account, but how ?
Hint: $$ \int_{-\infty}^{+\infty}|x|f_X(x)\,dx= -\int_{-\infty}^0xf(x)\,dx+\int_0^{+\infty}xf(x)\,dx$$ this follows simply by definition of the absolute value.