I am trying working on an exercise that asks me to show that
If $ X_1 \in N(0,1) $ and $ X_2 \in \chi^2(n) $ are independent random variables, then $ X_1 / \sqrt{X_2/n} \in t(n) \, $ where $ \,t(n) $ is the student T distribution.
This section of the book deals with functions of random variables and the transformation theorem (multivariate analogue of distribution function method) which is why I want to solve it specifically using that technique.
I started by putting $$ Y_1 = g_1(X_1,X_2)=X_1/\sqrt{X_2/n} $$ $$ Y_2 = g_2(X_1,X_2)=X_2 $$
and making inverses $$ X_1=h_1(Y_1,Y_2)=Y_1\sqrt{Y_2/n} $$ $$ X_2=h_2(Y_1,Y_2)=Y_2. $$
From which I get the Jacobian $$ \begin{vmatrix}\sqrt{Y_2/n} & \frac{Y_1}{2n\sqrt{Y_2/n}}\\0 & 1\end{vmatrix}. $$
From there I want to use independence and calculate my density function as $$ f_{y_1y_2}(y_1,y_2)=f_{x_1}(\frac{Y_1}{\sqrt{Y_2/n}})*f_{x_2}(Y_2)*\sqrt{Y_2/n} $$
I think that this should then equal the $ t(n) $ density.
But the result I'm getting appears to be incorrect. I would appreciate if someone could tell me if my way of thinking about this is just completely wrong or if I'm on the right track and might have made a calculation error or something else.
Thank you.