I know how to approach this kind of exercises, but I tried several times to calculate correctly the integrals, but I am doing some mistakes.
So, let $X$ and $Y$ two independent variables with distributions, respectively
$f(x) = 6x(1-x)$
And
$g(y)=2y$
And $x, y, \in [0,1] $
Calculate the distribution of $Z=XY^2$.
So, I have tried to do any kind of calculation, but I am doing something wrong.
Can anyone help me please?
Let $W=Y^2$. For $t\in(0,1)$ we have $$ \mathbb P(W\leqslant t) = \mathbb P(Y\leqslant \sqrt t) = \int_0^{\sqrt t}2y\ \mathsf dy = t, $$ so $W$ has density $f_W(t) = \mathsf 1_{(0,1)}(t)$. Now for the product $Z=XW$, we have \begin{align} \mathbb P(Z\leqslant z) &= \mathbb P(XW\leqslant z)\\ &= \mathbb P(W\leqslant z/X)\\ &= \int_0^\infty f_X(x)\int_0^{z/x}f_W(w)\ \mathsf dw\ \mathsf dx. \end{align} Differentiating with respect to $z$, the density of $Z$ is given by \begin{align} f_Z(z) &= \int_0^\infty f_X(x)f_W(z/x)\frac1x\ \mathsf dx\\ &= \int_z^1 6x(1-x)\frac1x\ \mathsf dx\\ &= 3(1-z)^2\cdot\mathsf 1_{(0,1)}(z). \end{align}