I am trying to find the expectation of an order statistic and have reduced the question to finding the following integral $$\int_0^1x^r(1-x)^{n-r}dx$$
I know what this integral equals but can't seem to show it. I would suspect that I have to try and express it in terms of a pdf which should cancel once I integrate?
That is given by the Beta function
$$\int_0^1x^r(1-x)^{n-r}dx =B(r+1, n-r+1)=\frac{\Gamma(r+1)\Gamma(n-r+1)}{\Gamma(n+2)}\\=\frac{r!(n-r)!}{(n+1)!}= \frac{1}{(n+1){n\choose r}} $$