The function fx(x) is defined differently for the range 0 to 1 as for values greater than one to 2. Past x = 2, the function is zero. When you are asked to find the expected value or variable how are the multiple ranges is all treated ? Do you need to add both functions together and calculate the expected value using the two functions ? Does the zero mean that the function has converged ? Do all of these probability like equations need to converge to be valid ?