As the title suggests I would like to know how to solve the following integral (solution found w Mathematica)
$$\int_0^1 x^n (1-x)^{N-n} dx = \left(\binom{N}{n} (N+1)\right)^{-1}$$ (we may assume $0<n<N$ and $n,N\in \mathbb{N}$)
I'm thinking there's probably a cool trick using the binomial theorem but I can't figure it out.
Thanks
Edit work in progress
\begin{align} \int_0^1 x^{n} (1-x)^{N-{n}} dx &= \int_0^1 \sum _{k=0}^{N-n} \binom{N-n}{k} (-1)^k x^{n+k} dx\\ &=\sum _{k=0}^{N-n} \binom{N-n}{k}(-1)^k (1+k+n)^{-1}\\ &\ldots \end{align} Now I'm thinking to multiply by $\binom{N}{n}$ and show that sum simply reduces to $(N+1)^{-1}$