The joint density function of X and Y is f(x,y)=x^2y^2 for 0<x<1, 0<y<1. To find the joint density of U=XY and V=X/Y, we make a variable transformation using calculus and find the Jacobian of the transformation. The marginal densities are then found by integrating the joint density over the other variable.