Let $(X, Y)$ be uniformly distributed in the circle of radius 1 centered at the origin. Its joint density is thus
$$
f(x, y)=\frac{1}{\pi} \quad 0 \leq x^{2}+y^{2} \leq 1
$$
Let $R=\left(X^{2}+Y^{2}\right)^{1 / 2}$ and $\theta=\tan ^{-1}(Y / X)$ denote its polar coordinates. Show that $R$ and $\theta$ are independent with $R^{2}$ being uniform on $(0,1)$ and $\theta$ being uniform on $(0,2 \pi)$.