Let $X_1 = U(0,1)$ and $X_2 = U(0,1)$. $X_1$ and $X_2$ are independent. Then $f(x_{1}, x_{2})=1, {0}\le{x_1}\le{1}, {0}\le{x_2}\le{1}$.
Let $Y_1 = \arctan(X_{2}/X_{1})$, $Y_2 = X_2$. I need to find the density function $g(y_1)$.
Here's what I've done so far.
$X_{2}/X_{1} = \tan(Y_{1})$ $X_{1} = X_{2} / \tan(Y_{1}) = X_{2}\cot(Y_{1})$
Since $X_{2}=Y_{2}$, $X_{1}=Y_{2}\cot(Y_{1})$.
The Jacobian of the transformation is give by the matrix $J = \begin{bmatrix} \frac{\partial{y_2\cot(y_1)}}{\partial{y_1}} & \frac{\partial{y_2\cot(y_1)}}{\partial{y_2}} \\ \frac{\partial{y_2}}{y_1} & \frac{y_2}{y_2} \end{bmatrix} = \begin{bmatrix} -y_{2}\csc^{2}(y_{1}) & \cot(y_1) \\ 0 & 1 \end{bmatrix}$. So, $\det(J)= -y_{2}\csc^{2}(y_{1})$.
At this point, I am kinda lost. I know that I need to compute $g(y_1, y_2)$, find its domain, and then integrate with respect to $y_2$. I do not understand how to find the joint density $g(y_1, y_2)$, could you please help?