MathLabs
TheoremProved

Existence and uniqueness of the interpolating polynomial

Statement

Given n+1n+1 distinct nodes x0,x1,…,xnx_0, x_1, \dots, x_n and values y0,y1,…,yny_0, y_1, \dots, y_n, there exists exactly one polynomial PP of degree at most nn such that P(xi)=yiP(x_i)=y_i for every i=0,…,ni=0,\dots,n.

Why is it true?

A degree-n polynomial has exactly n+1 free coefficients, and pinning down n+1 point values uses up exactly that many degrees of freedom — no more, no less — so there is room for one solution and no room for two different ones.

Proof sketch

Step 1 (existence). The Lagrange construction P(x)=∑i=0nyiLi(x)P(x) = \sum_{i=0}^{n} y_i L_i(x) with Li(x)=∏j≠ix−xjxi−xjL_i(x) = \prod_{j\ne i} \dfrac{x-x_j}{x_i-x_j} already satisfies P(xk)=ykP(x_k)=y_k for every kk, since Li(xk)L_i(x_k) equals 11 when i=ki=k and 00 otherwise, so the sum collapses to the single term yk⋅1=yky_k \cdot 1 = y_k. So at least one valid PP exists, and each LiL_i has degree exactly nn (a product of nn linear factors), so PP has degree at most nn.

Step 2 (suppose two solutions). Suppose QQ is any other polynomial of degree at most nn with Q(xi)=yiQ(x_i)=y_i for every ii. Consider the difference D(x)=P(x)−Q(x)D(x) = P(x) - Q(x). Since both PP and QQ have degree at most nn, so does DD.

Step 3 (count the roots of the difference). For every node xix_i, D(xi)=P(xi)−Q(xi)=yi−yi=0D(x_i) = P(x_i)-Q(x_i) = y_i - y_i = 0. Since there are n+1n+1 distinct nodes x0,x1,…,xnx_0, x_1, \dots, x_n, DD has at least n+1n+1 distinct roots.

Step 4 (force D to be identically zero). A nonzero polynomial of degree at most nn can have at most nn roots (each root contributes one linear factor, and a degree-nn polynomial cannot contain more than nn such factors). Since DD has n+1n+1 roots, more than its degree allows unless DD is the zero polynomial, we conclude D(x)≡0D(x)\equiv0, i.e. Q=PQ=P. So the interpolating polynomial found in Step 1 is the only one.

Topics that use this theorem

Step-by-step proofs

No step-by-step proof yet for this theorem.