MathLabs
TheoremProved

Lagrange interpolation error formula

Statement

Let ff be (n+1)(n+1)-times continuously differentiable on an interval containing distinct nodes x0,x1,…,xnx_0, x_1, \dots, x_n and a point xx, and let PP be the degree-nn polynomial interpolating ff at these nodes. Then there exists ξ\xi in that interval such that f(x)−P(x)=f(n+1)(ξ)(n+1)!∏i=0n(x−xi)f(x) - P(x) = \dfrac{f^{(n+1)}(\xi)}{(n+1)!} \prod_{i=0}^{n} (x - x_i).

Why is it true?

The interpolating polynomial matches f exactly at the nodes but knows nothing about f in between, so the leftover error must vanish at every node — exactly what the product term forces — scaled by a leftover derivative that measures how much f curves beyond what a degree-n polynomial can capture.

Proof sketch

Step 1 (a clever auxiliary function). Fix a point xx that is not one of the nodes (if it is, the error is trivially 00). Let w(t)=∏i=0n(t−xi)w(t) = \prod_{i=0}^{n} (t - x_i) and define the constant c=f(x)−P(x)w(x)c = \dfrac{f(x)-P(x)}{w(x)} (well-defined since w(x)≠0w(x)\ne0). Define the auxiliary function g(t)=f(t)−P(t)−c w(t)g(t) = f(t) - P(t) - c\, w(t).

Step 2 (count the roots of g). At every node xix_i, both f(xi)−P(xi)=0f(x_i)-P(x_i)=0 (by the interpolation property) and w(xi)=0w(x_i)=0 (by definition of ww), so g(xi)=0g(x_i)=0 for all n+1n+1 nodes. Also, by the choice of cc, g(x)=f(x)−P(x)−c w(x)=f(x)−P(x)−[f(x)−P(x)]=0g(x) = f(x)-P(x) - c\,w(x) = f(x)-P(x) - [f(x)-P(x)] = 0. So gg has n+2n+2 distinct roots: the n+1n+1 nodes plus xx itself.

Step 3 (apply Rolle's theorem repeatedly). Between each pair of consecutive roots of gg (there are n+1n+1 such gaps among n+2n+2 roots), Rolle's theorem gives a point where g′g' vanishes, so g′g' has at least n+1n+1 roots. Repeating this argument on g′,g′′,…g', g'', \dots loses one root each time a derivative is taken, so after n+1n+1 applications, g(n+1)g^{(n+1)} has at least one root ξ\xi in the interval.

Step 4 (differentiate and solve for the error). Since PP has degree at most nn, its (n+1)(n+1)-th derivative is 00; and ww is a monic polynomial of degree n+1n+1, so w(n+1)(t)=(n+1)!w^{(n+1)}(t) = (n+1)! for every tt. Differentiating gg gives g(n+1)(t)=f(n+1)(t)−0−c (n+1)!g^{(n+1)}(t) = f^{(n+1)}(t) - 0 - c\,(n+1)!, and setting g(n+1)(ξ)=0g^{(n+1)}(\xi)=0 gives c=f(n+1)(ξ)(n+1)!c = \dfrac{f^{(n+1)}(\xi)}{(n+1)!}. Recalling c=f(x)−P(x)w(x)c=\dfrac{f(x)-P(x)}{w(x)} and solving for the error gives exactly f(x)−P(x)=f(n+1)(ξ)(n+1)!∏i=0n(x−xi)f(x) - P(x) = \dfrac{f^{(n+1)}(\xi)}{(n+1)!} \prod_{i=0}^{n} (x - x_i).

Topics that use this theorem

Step-by-step proofs

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