Take a random variable $Y$. You're given $f_Y(x)=xe^{-x}$ when $x>0$. Given $Y$, a new random variable, $M$, is uniform over the interval $(0,Y)$.
I need to calculate the marginal density for $Y$, the conditional density for $M$ given $Y$, and I must show that $M$ and $(M-Y)$ are independent, then proceed to find their joint density function.
I am confused when it comes to finding such functions without explicitly having the joint density function. I'm accustomed to calculating a marginal density as:
$\int_{-\infty}^{\infty}f_{X,Y}(x,y)dxdy$, for instance.
The conditional density that I know is:
$f_{(X|Y)}(x|y)=\frac{f_{X,Y}(x,y)}{f_{Y}(y)}$.
I'm struggling to get started without the joint density. Any hints are appreciated.