Suppose that $U,V$ are two independent uniform $(0,1)$ random variables. Find the distribution of $X=\dfrac{\max\{U,V\}}{\min\{U,V\}}$.
Ok to find $\max(U,V)$ we have $P(\max(U,V)\leq r)=P(U\leq r)P(V \leq r)= r^2$ so $P(\max(U,V)=r)=2r$. I can do the same trick with $\min(u,v)$ but then I don't know how to deal with the fraction of the two?