5. Suppose that \( Y_{1} \) and \( Y_{2} \) are independent and that both are uniformly distributed on the interval \( (0,1) \), and let \( U_{1} = Y_{1} + Y_{2} \) and \( U_{2} = Y_{1} - Y_{2} \).

(a) Show that the joint density of $U_1$ and $U_2$ is given by

$$f_{U_1, U_2}(u_1, u_2) = \begin{cases} 1/2, & -u_1 < u_2 < u_1, \ 0 < u_1 < 1 \text{ and} \\ u_1 - 2 < u_2 < 2 - u_1, \ 1 \le u_1 < 2 \\ 0, & \text{otherwise.} \end{cases}$$