Let $X_1$ and $X_2$ be independent random variables each having a exponential distribution with mean $\lambda = 1$.
(a) Find the joint density of $Y_1 = X_1$ and $Y_2 = X_1 + X_2$.
(b) Get the marginal density of $f_1(y_1)$ and $f_2(y_2)$.
$f(x_1)=e^{-x_1}$, $f(x_2)=e^{-x_2}$
Since $X_1$ and $X_2$ are independent, $f(x_1, x_2)=f(x_1)f(x_2)=e^{-x_1-x_2}$
However, how could I find the joint density?
I mean, it is quite easy to find marginal ones from the joint one, but how can I do the opposite?