I've been reading a book on elementary mathematics and am having trouble understanding a proof that they give for Lagrange's identity using the binomial formula.
Lagrange's identity is stated as : \begin{equation} \sum_{j=0}^{n} \binom{n}{j}^{2} = \binom{2n}{n} \end{equation} In the proof they say :
"Writing $(1+x)^{2n} = (1+x)^{n}(1+x)^{n}$ and applying Newton's binomial formula to both sides we get : \begin{equation} \binom{2n}{n} = \sum_{i+j=n} \binom{n}{i} \binom{n}{j} = \sum_{i=0}^{n} \binom{n}{i}\binom{n}{n-i} = \sum_{i=0}^{n} \binom{n}{i}^{2} \end{equation} $\square$."
A lot of detail seems to be missing here. Could someone provide the missing details here ? I cannot understand the proof due to the elision of details.
They forgot to say they compute the coefficient of $x^n$ in the product and they apply the general formula for the product of two polynomials: $$\sum_{i=0}^n a_ix^i\cdot \sum_{j=0}^p b_jx^j=\sum_{k=1}^{n+p}\Bigl(\sum_{i+j=k}a_ib_j \Bigr)x^k ?$$