X is distributed so that: $$X=\begin{cases} \frac{ x-80}{400}& 80\le x \le 100\\ \frac{120-x}{400} & 100\le x\le 120\\ 0 &\text{otherwise} \end{cases} $$ $Var(X)= E((X)^2)-(E(X))^2$ and $E(X)=100$ by symmetry, so what has me confused is how to go about finding $E((X)^2)$ because of the 'split' in the p.d.f.
Thanks!
The expectation is an integral, if you have a pdf which is 'splitted', you can take the sum of the integral such that $$E(X^2) = \int_{range1} x^2f(x)_{part1}dx + \int_{range2} x^2f(x)_{part2}dx $$
I hope that anwsers your question