If I have the following marginal PDF of independent random varibales:
$p_X(x)=1 , 0<x<1$
$p_Y(y)=\frac{1}{2} , -1<y<1$
To get the joint PDF of:
W = XY
Z = X
I can use the following:
$p_{W,Z}(w,z)=p_X(g^{-1}(w,z)) p_Y(h^{-1}(w,z))|det(\frac{\partial(x,y)}{\partial(w,z)})|$
and get that $p_{W,Z}(w,z)=\frac{1}{2z}$
But now if I want to get the marginal PDF of W I can't find the correct limit for the integral and its not converging.
The $(x,y)$-domain is defined by the inequalities $$ 0\lt x\lt1,\qquad -1\lt y\lt1, $$ and the transformation is $$ x=z,\qquad y=w/z, $$ hence the $(w,z)$-domain is defined by the inequalities $$ 0\lt z\lt1,\qquad -1\lt w/z\lt1, $$ or, equivalently, $$ 0\lt z\lt1,\qquad-z\lt w\lt z. $$ This is a good example of the reason why one should always mention the domain in the densities, in the present case, the joint density $f_{W,Z}$ is not what you write but $$ f_{W,Z}(w,z)=\frac1{2z}\,\mathbf 1_{|w|\lt z\lt1}. $$ Hence, $$ f_W(w)=\int_\mathbb Rf_{W,Z}(w,z)\mathrm dz=\mathbf 1_{|w|\lt1}\int_{|w|}^1\frac1{2z}\mathrm dz, $$ that is, $$ f_W(w)=-\frac12\log|w|\cdot\mathbf 1_{|w|\lt1}. $$