Let $X \sim \Gamma(\alpha, \lambda)$ and $Y \sim \Gamma(\beta, \lambda)$. I denoty by $f_X$ the density of X and by $f_Y$ the density of Y. Additionally, I assume that the density of (X, Y) is $f_X \cdot f_Y$.
Let $Z = X+Y$ and $U = \frac{X}{X+Y}$.
Why can the density of (Z, U) be written as the product of two densities?