Proof of Theorem 44 (Interpolation)
We will assume Theorem 43 and prove Theorem 44.
Let us first prove the existence of such a polynomial (later we will show that it is unique), given the points (xi,yi) for all i∈[d+1] where xi are distinct.
Let us solve an easier problem first. When y2=y3=…=yd+1=0, it is easy to construct such a polynomial f: We know that x2,…,xd+1 should be the d roots, so the polynomial should look something like (see a formal proof of this in Exercise 121),
f(x)=c(x−x2)(x−x3)⋯(x−xd+1)
for some constant c, which is easy to figure out. By plugging in y1=f(x1)=c⋅(∏j=2d+1(x1−xj)). This gives us the value of c and therefore
f(x)=∏j=1(x1−xj)y1⋅∏j=1(x−xj)
Now, for all i∈[d+1], we define the Lagrange basis function as
Li(x)=∏j:j=ixi−xjx−xj
Prove: Li(xi)=1, and for all j=i, we have Li(xj)=0.
Therefore, is simple to verify that
f(x)=∑i∈[d+1]yiLi(x)
is a degree-d polynomial and satisfies f(xi)=yi for all i∈[d+1].
Next, we argue that such a polynomial is unique. Assume for the sake of contradiction that there exists another polynomial of degree d, called g(x) such that g(xi)=yi for all i∈[d+1].
Assume that g and f are different. Consider the polynomial r(x)=g(x)−f(x). Notice that
(∀i∈[d+1]) r(xi)=yi−yi=0
This implies that polynomial r (which has degree at most d) has (d+1) distinct roots, a contradiction to Theorem 43.