Suppose $X_1,X_2,\ldots,X_n$ are iid with density $f(x;\theta) = \theta e^{-\theta x}, x,\theta > 0$.
Let $T = \sum_{i=1}^n X_i$.
Then $T$ has density $f(t;\theta) = \frac{1}{\Gamma(n)}\theta^n t^{n-1}e^{-\theta t}, t>0.$
Show that the conditional density of $X_1$ given $T=t$ is
$$f(x_1|t) = \frac{n-1}{t}(1-\frac{x_1}{t})^{n-2}, 0<x_1<t<\infty.
$$
How would I do this?
I know that
$$f(x_1|t) = \frac{f_{X_1,T}(x_1,t)}{f_T(t)}
\\ = \frac{f_{X_1,t}(x_1,x_1+x_2+\ldots+x_n)}{f_T(t)}$$
I'm not sure how to proceed, since $T$ and $X_1$ are not independent.
We have that: $$f_{X_1|T}(x_1|t)=\frac{f_{T|X_1}(t|x_1)\,f_{X_1}(x_1)}{f_T(t)}$$
Let $T'$ = $T - X_1$
So we have, $$f_{T|X_1}(t|x_1)=f_{T'}(t-x_1)$$
$T'$ is a gamma r.v with shape $n-1$
Now you have everything needed to to calculate: $f_{X_1|T}(x_1|t)$