I am trying to compute the marginal pdf of transformed standard normals. I'm not sure if I have followed the method correctly. Any help would be most appreciated.
Let $X_1, X_2 \sim \mathcal{N}(0,1)$. And let $Y_1 := X_1^2 + X_2^2$ and $Y_2 := X_2$.
$$\sqrt{Y_1 - Y_2^2} = X_1 \qquad \text{ and } \qquad Y_2 = X_2 $$ $$\implies J = \left | \begin{matrix} \frac{1}{2}(Y_1 - Y_2^2)^{-1/2} & -Y_2(Y_1-Y_2^2)^{-1/2} \\ 0 & 1 \end{matrix} \right | = (Y_1-Y_2^2)^{-1/2} - 0 $$ $$= \frac{1}{\sqrt{(Y_1-Y_2^2)}}$$
$$\text{So, } \, \, f_{X_1,X_2}(x_1,x_2) = \left(\frac{1}{\sqrt{2 \pi}}\right)^2 e^{-X_1^2/2}e^{-X_2^2/2} \, = \, \frac{1}{2 \pi} e^{-(X_1^2 + X_2^2)/2} =|J|f_{X_1,X_2}(w_1(X_1), w_2(X_2)) $$ $$\implies f_{Y_1, Y_2}(y_1,y_2) = \begin{cases} \frac{1}{2 \pi \sqrt{(Y_1-Y_2^2)}} e^{-Y_1/2}& \text{ for } -\sqrt{Y_1} < Y_2 < \sqrt{Y_1} \text{ and } 0 < Y_1 < \infty\\ 0 & \, \, \text{ elsewhere}\end{cases} $$
Is this the correct transformed joint pdf, or have I made a mistake somewhere?
$$\text{Now, } \, \, f_{Y_1}(y_1) =C \int_{-\sqrt{y_1} }^{\sqrt{y_1}} \frac{B}{\sqrt{1 - B^2 y_2^2}} \,dy_2 = C \sin^{-1}\left ( \frac{y_2}{\sqrt{y_1}}\right) \Bigr|_{-\sqrt{y_1}}^{\sqrt{y_1}} = C\left( \frac{\pi}{2} - \left( -\frac{\pi}{2}\right) \right) = C\pi$$ $$\text{Since, } \, \, y_2 := B^{-1}\sin{\theta} \implies \, dy_2 = B^{-1}\cos{\theta}\, d\theta$$
$$\text{And } \, \, \frac{B}{\sqrt{1 - B^2 y_2^2}} \, dy_2 = \frac{B}{B\sqrt{\cos^2{\theta}} }\cos{\theta}\, d\theta = \, d\theta $$
$$\therefore \qquad f_{Y_1}(y_1) =\frac{1}{2} e^{-y_1/2} $$ So, $Y_1 \sim \chi^2(2)$.