The joint distribution of $X$ and $Y$ is given by $f(x,y)=12xy(1-y)$ if $x,y \in (0,1)$. Find the distribution of $Z=XY^{2}$.
I tried to find the joint distribution of $Z$ and $X$:
$$g(z,y)=f \left(\frac{z}{y^{2}},y\right) \left| \frac{\partial x}{\partial z} \right|=12*\frac{z}{y^2}*y(1-y)*\frac{1}{y^2}=12z\left( \frac{1}{y^3} - \frac{1}{y^2}\right)$$
From there, I tried to find the marginal distribution of $Z$:
$$ \int_0^1 12z\left( \frac{1}{y^3} - \frac{1}{y^2}\right) \,dy$$
However, this integral does not converge. I'm not exactly sure what I'm missing. Any advice is appreciated!