For example,
The joint density of $X$ and $Y$ is given by $$f(x, y) = \begin{cases}e^{-x-y}&\text{ if } 0<x<\infty, 0<y<\infty\\ 0 &\text{ otherwise}\end{cases}.$$ Find the density function of the random variable $Z = X/Y$.
How would I do or even approach a problem like this?
Source http://dept.stat.lsa.umich.edu/~ionides/425/notes/joint_rvs.pdf
There are a couple ways. First, it's usually easiest to attack these things through the CDF. We have $$ F_Z(z) = P(Z\le z) = P(X/Y\le z) = P(X\le zY).$$ Then we can express the final probability as an integral. We want to integrate the joint PDF of $X$ and $Y$ over the region $x\le zy.$ This can be set up as $$ \int_0^\infty \int_0^{zy}e^{-(x+y)}dx\; dy = \int_0^\infty e^{-y}\int_0^{zy}e^{-x}dx\; dy \\= \int_0^\infty e^{-y}(1-e^{-zy})dy \\= \int_0^\infty (e^{-y}-e^{-(z+1)y})dy \\= 1-\frac{1}{z+1}.$$
Now, the PDF is the derivative of the CDF, $$ f_Z(z) = \frac{d}{dz}\left(1-\frac{1}{z+1}\right) = \frac{1}{(z+1)^2}.$$
Another way is, if you're familiar with variable transformations. We can set $Z=X/Y$ and $W = XY$ and then do a transformation of the PDF to get $f_{Z,W}(z,w)$ and then integrate over $w$ to get the marginal PDF of $Z.$
Finally, there is a general formula for the quotient of two continuous random variables (that can be derived from either of these two methods: $$ f_Z(z) = \int uf_{X,Y}(u,zu) du$$