Example 1 Suppose X and Y are independent random variables and each uniformly distributed over (a, b). and are as shown in the figure below.
The PDF of is a triangular probability density function as shown in the figure.