X has the following cdf
F(x) = 0 if x<0
=x/2 if 0≤x<1
=(x^2−1)/6 + 1/2 if 1≤x<2
= 1 if 2 ≤ x
Find the mean of X.
I tried the integration using 1 - F(x) but got the wrong answer of 1.80555