6、(12%) A random variable Y follows Uniform(-1,3). Derive the probability density function of \( \mathrm{W} = \mathrm{Y}^2 \).