Skip to main content

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)(x_i, y_i) for all i[d+1]i \in [d+1] where xix_i are distinct. Let us solve an easier problem first. When y2=y3==yd+1=0y_2 = y_3 = \ldots = y_{d+1} = 0, it is easy to construct such a polynomial ff: We know that x2,,xd+1x_2,\ldots, x_{d+1} should be the dd roots, so the polynomial should look something like (see a formal proof of this in Exercise 121),

f(x)=c(xx2)(xx3)(xxd+1)f(x) = c(x-x_2)(x-x_3)\cdots (x- x_{d+1})

for some constant cc, which is easy to figure out. By plugging in y1=f(x1)=c(j=2d+1(x1xj))y_1 = f(x_1) = c \cdot (\prod_{j=2}^{d+1} (x_1-x_j)). This gives us the value of cc and therefore

f(x)=y1j1(xxj)j1(x1xj)f(x) = \frac{y_1 \cdot \prod_{j\neq 1} (x-x_j)}{\prod_{j\neq 1} (x_1 - x_j)}

Now, for all i[d+1]i \in [d+1], we define the Lagrange basis function as

Li(x)=j:jixxjxixjL_i(x) = \prod_{j: j \neq i}\frac{x-x_j}{x_i - x_j}

Exercise 120

Prove: Li(xi)=1L_i(x_i) = 1, and for all jij \neq i, we have Li(xj)=0L_i(x_j) = 0.

Therefore, is simple to verify that

f(x)=i[d+1]yiLi(x)f(x) = \sum_{i \in [d+1]} y_i L_i(x)

is a degree-dd polynomial and satisfies f(xi)=yif(x_i) = y_i for all i[d+1]i \in [d+1].

Next, we argue that such a polynomial is unique. Assume for the sake of contradiction that there exists another polynomial of degree dd, called g(x)g(x) such that g(xi)=yig(x_i) = y_i for all i[d+1]i \in [d+1]. Assume that gg and ff are different. Consider the polynomial r(x)=g(x)f(x)r(x) = g(x) - f(x). Notice that

(i[d+1]) r(xi)=yiyi=0(\forall i \in [d+1])\ r(x_i) = y_i - y_i = 0

This implies that polynomial rr (which has degree at most dd) has (d+1)(d+1) distinct roots, a contradiction to Theorem 43.