I have seen this question be touched on tangentially in many posts, but there does not seem to be one distinct place that asks about it directly.
The following statement seems to be true, but I have not found a formal proof anywhere:
$X=Rcos\theta$, $Y=Rsin\theta$ are independent standard uniform random variables if and only if $R^{2}$ chi square with two degrees of freedom and $\theta$ is uniform $(0,2\pi)$, where $R^{2}$ and $\theta$ are also independent.
It would be nice to have the proof of both directions in one place, though I am particularly concerned with the backward direction. I have seen people write $R^{2}=X^{2}+Y^{2}$ and $\theta=\arctan(x/y)$ and blindly finding the jacobian without giving regard to the fact that $tan(\theta)=x/y$ has multiple inverses on $\theta \in (0,2\pi)$.
What is shocking to me is that ignoring the multiple inverse problem still gives them the right answer, but this is going against the variable transform theorem, so this makes me feel like I have no idea what is going on.
Any clarification would be truly appreciated.