$$f_{X}(x) = \begin{cases}\frac{x+1}{a+1} & -1 \leq x < a \\ 1 & x=a \\ \frac{x-1}{a-1} & a < x \leq 1 \\ 0 & \text{otherwise}\end{cases}$$
Calculate $E(X)$
I know typically this is a very easy solution (sum the three integrals, integrating between the limits given in the PDF) but in this case, the $P_X$(x)=1 when x=a is throwing me a little. Is that integral =1, a, $a^2$/2 or 0? I suppose the question then is really what should my limits on that integration be? Or even, can I even integrate that, bearing in mind its a point function?
Thanks!
P.S, I apologis for my formatting; please feel free to edit.
The probabiity density function at $x=a$ takes the value $1$ does not imply that the probability at $x=a$ is $1$.
Because the probability at $x=a$ is given by $P(x=a)=P(a\le x \le a)=\int^{a}_{a}f(x) dx = 0$
So $$E(X)=\int^{1}_{-1} xf(x) dx=\int^{a}_{-1}\frac{x^2+x}{a+1} dx +\int^{a}_{a}x dx+\int^{1}_{a} \frac{x^2-x}{a-1} dx$$
Now you see what you need to do.