Let [math]X[/math] be a continuous random variable with density function
[[math]]
f(x) = \begin{cases}
\frac{|x|}{10}, \, -2 \leq x \leq 4 \\
0, \, \textrm{Otherwise.}
\end{cases}
[[/math]]
Calculate the expected value of [math]X[/math].
Copyright 2023. The Society of Actuaries, Schaumburg, Illinois. Reproduced with permission.