I'm studying Lagrange's formula for polynomial interpolation and I cannot seem understand why for $n=3$
$$L_0(x)+L_1(x)+L_2(x)+L_3(x) = 1$$
for all real x.
In my textbook it says as a hint that expanding $P_n(x)$ is unnecessary and to use Lagrange's formula:
$$P_n(x)=y_0L_0(x)+y_1L_1(x)+y_2L_2(x)+y_3L_3(x)$$
with some ideal {$y_0,y_1,y_2,y_3$}.
I have verified it numerically that for ($x_0,y_0$), ($x_1,y_1$), ($x_2,y_2$), ($x_3,y_3$) where $y_{0..3}=1$ and $x_{0..3}$ are distinct that this does indeed equal $1$.
Am I right in choosing $y_{0..3}=1$? Are there any suggestions to point me in the right direction?
Thanks
Note: $$L_i(x)=\frac{(x-x_0)...(x-x_{i-1)})(x-x_{i+1)})...(x-x_n)}{(x_i-x_0)...(x_i-x_{i-1})(x_i-x_{i+1})...(x_i-x_n)}, i=0..n$$