If $X_1,X_2\sim \text{Normal} (0,1)$, then find $Y=f(X)$ such that $Y \sim \text{Uniform}(-1,1)$.
I solve problems where transformation is given and I need to find the distribution. But here I need to find the transformation. I have no idea how to proceed. Please help.
The idea of this classical homework is to exhibit a usual function $f$ such that $f(X_1,X_2)$ has the desired distribution (in this context, the CDF of a gaussian random variable is not considered as a usual function).
To do so, recall (or reprove) that the radius $R=\sqrt{X_1^2+X_2^2}$ of a planar standard normal random variable $(X_1,X_2)$ has density $r\mathrm e^{-r^2/2}$ on $r\geqslant0$. A consequence is that $\mathrm e^{-R^2/2}$ is uniform on $(0,1)$, hence a solution to the question asked is $$ f(x_1,x_2)=2\mathrm e^{-(x_1^2+x_2^2)/2}-1. $$