Let G(x1,…,xn) be the function of the n variables x1,…,xn on the LHS of the required identity. Since both sides of the identity are rational functions, it suffices to prove it when all xi∈/{−1,1}. Define
f(t)=i=1∏n(1−xit),
and note that
f(xi)=(1−xi2)j=i∏(1−xixj).
Using the nodes +1,−1,x1,…,xn, the Lagrange interpolation formula gives us the following expression for f:
f(x)=i=1∑nf(xi)(xi−1)(xi+1)(x−1)(x+1)j=i∏xi−xjx−xj+f(1)1+1x+1i=1∏n1−xix−xi+f(−1)−1−1x−1i=1∏n−1−xix−xi.
Note that the coefficient of tn+1 in f(t) is zero, since f has degree n. Thus, the coefficient of tn+1 in the above expression of f gives
0=i=1∑n∏j=i(xi−xj)(xi−1)(xi+1)f(xi)+∏j=i(1−xj)(1+1)f(1)+∏j=i(−1−xj)(−1−1)f(−1)=−G(x1,…,xn)+21+2(−1)n+1.
This implies the required identity. □