Let $X,Y$ be two independent random variables with exponential distribution with parameter $\lambda > 0$. Let $S = X + Y$ and $T = \frac{X}{S}$. I want to find the joint density function of $(S,T)$ . I want then to calculate the marginals and say whether or not $S$ and $T$ are independent. I start by finding the density function of $S$ using the convolution:
$$ f_S(s) = \int_{-\infty}^{+\infty}f_X(s-t)f_Y(t)dt $$ $$ = \int_{0}^{s} \lambda^2 e^{-\lambda s} dt = \lambda^2 e^{-\lambda s}$$
Then I tried to calculate the density function of $T $ but I am stuck here:
$$ F_T(t) = \mathbb{P}(T \leq t) = \mathbb{P}\left(\frac{X}{X+Y} \leq t\right).$$ Is this the right method of solving this? Should I find the joint density first? (The problem is that I do not know how to to that)