$X_{1}$ and $X_{2}$ are IID exponentially distributed with parameter $\lambda=3$. Calculate $X_{1}/X_{2}$.
If $Y_{1}=X_{1}/X_{2}$ and $Y_{2}=X_{2}$ then distribution: $$g(y_{1},y_{2})=9\ y_{2}\ exp(-3(y_{1}y_{2}+y_{2}))=9\ y_{2}\ exp(-3y_{1}y_{2})exp(-3y_{2})$$
Then I try to calculate marginal density $g(y_{1})$ but it is impossible (or at least it can take few hours,and many unconventional subsitutions).
Is it even possible to calculate such marginal density or we have to use some "trick" or property of exponential distribution?
Why not just compute the cdf and take a derivative:
$P(\frac{X_1}{X_2} < a) = P(X_2 > \frac{1}{a}X_1) = \int_0^\infty P(X_2 > \frac{1}{a}x)f_{X_1}(x)dx = \int_0^\infty e^{-3x/a} 3e^{-3x} dx = \frac{a}{a+1}$
Take a derivative with respect to a and you have the pdf of $f_{\frac{X_1}{X_2}}(a)$