The density function of $X$ is given by the rule
$$
f(x)= \begin{cases}x & \text { for } 0<x \leq 1 \\ 2-x & \text { for } 1<x<2 \\ 0 & \text { elsewhere }\end{cases}
$$
(a) find the CDF
(b) prove that $f(x)$ satisfies the two requirements for a density function
(c) find $P\left(\frac{1}{2}<\mathrm{X}<\frac{3}{2}\right)$.