Skip to content

Interpolation Error & Cauchy's Theorem

We know how to build an interpolating polynomial through a set of nodes. But between the nodes, how far can the polynomial stray from the true function? Cauchy’s theorem — a direct consequence of the Taylor remainder — gives a precise upper bound on this error without requiring us to know the exact answer first.


The Error Formula

Theorem (Cauchy — Interpolation Error). Let ff be n+1n+1 times differentiable on [a,b][a,b], and let Pn(x)P_n(x) be the polynomial interpolating ff at the n+1n+1 distinct nodes x0,x1,…,xn∈[a,b]x_0, x_1, \ldots, x_n \in [a,b]. Then for any x∈[a,b]x \in [a,b], there exists ξ∈(a,b)\xi \in (a,b) such that:

f(x)−Pn(x)=f(n+1)(ξ)(n+1)! (x−x0)(x−x1)⋯(x−xn)f(x) - P_n(x) = \frac{f^{(n+1)}(\xi)}{(n+1)!}\,(x-x_0)(x-x_1)\cdots(x-x_n)

Taking absolute values and bounding ∣f(n+1)(ξ)∣|f^{(n+1)}(\xi)| by its maximum over the interval:

∣f(x)−Pn(x)∣≤max⁡ξ∈[a,b]∣f(n+1)(ξ)∣(n+1)!⋅∣W(x)∣|f(x) - P_n(x)| \le \frac{\max_{\xi \in [a,b]}|f^{(n+1)}(\xi)|}{(n+1)!} \cdot |W(x)|

where W(x)=(x−x0)(x−x1)⋯(x−xn)W(x) = (x-x_0)(x-x_1)\cdots(x-x_n) is the node product polynomial.


Worked Example — Bounding the Error for cos⁡(x)\cos(x)

Problem: Find the upper bound on the interpolation error for f(x)=cos⁡(x)f(x) = \cos(x) on [−1,1][-1, 1], using three equally spaced nodes.

NodePosition
x0x_0−π/4-\pi/4
x1x_100
x2x_2π/4\pi/4

Step 1 — Identify the Error Derivative

With n=2n = 2 (three nodes, degree-2 polynomial), we need the (n+1)=3(n+1) = 3rd derivative of cos⁡(x)\cos(x):

f′(x)=−sin⁡(x),f′′(x)=−cos⁡(x),f′′′(x)=sin⁡(x)f'(x) = -\sin(x), \qquad f''(x) = -\cos(x), \qquad f'''(x) = \sin(x)

Step 2 — Bound ∣f′′′(ξ)∣|f'''(\xi)| on [−1,1][-1, 1]

max⁡ξ∈[−1,1]∣f′′′(ξ)∣=max⁡ξ∈[−1,1]∣sin⁡(ξ)∣=sin⁡(1)≈0.8415\max_{\xi \in [-1,1]} |f'''(\xi)| = \max_{\xi \in [-1,1]} |\sin(\xi)| = \sin(1) \approx 0.8415

Step 3 — Construct the Node Product W(x)W(x)

W(x)=(x+π4)(x−0)(x−π4)=x ⁣(x2−π216)=x3−π216 xW(x) = \left(x + \frac{\pi}{4}\right)(x - 0)\left(x - \frac{\pi}{4}\right) = x\!\left(x^2 - \frac{\pi^2}{16}\right) = x^3 - \frac{\pi^2}{16}\,x

Step 4 — Find the Maximum of ∣W(x)∣|W(x)| on [−1,1][-1, 1]

To find the absolute maximum of ∣W(x)∣|W(x)| on a closed interval, we must evaluate the function at its critical points and its endpoints, then compare the magnitudes.

First, set W′(x)=0W'(x) = 0 to locate the critical points inside the interval:

W′(x)=3x2−π216=0  ⟹  x=±π43≈±0.4534W'(x) = 3x^2 - \frac{\pi^2}{16} = 0 \implies x = \pm\frac{\pi}{4\sqrt{3}} \approx \pm 0.4534

Next, we evaluate W(x)=x3−π216xW(x) = x^3 - \frac{\pi^2}{16}x at these critical points and at the endpoints (x=−1x = -1 and x=1x = 1):

xxW(x)W(x)∣W(x)∣\lvert W(x) \rvert
−1-1 (Endpoint)−0.3831-0.38310.38310.3831
−π43-\dfrac{\pi}{4\sqrt{3}} (Critical Point)0.18650.18650.18650.1865
π43\dfrac{\pi}{4\sqrt{3}} (Critical Point)−0.1865-0.18650.18650.1865
11 (Endpoint)0.38310.38310.38310.3831

Comparing the magnitudes, the maximum value of ∣W(x)∣|W(x)| does not occur at the critical points where the curve turns, but rather at the extreme edges of the interval.

Therefore:

max⁡x∈[−1,1]∣W(x)∣≈0.3831\max_{x \in [-1,1]} |W(x)| \approx 0.3831

Step 5 — Compute the Upper Bound

∣f(x)−P2(x)∣≤∣f′′′(ξ)∣max⁡3!⋅∣W(x)∣max⁡=0.84156×0.3831≈0.0537|f(x) - P_2(x)| \le \frac{|f'''(\xi)|_{\max}}{3!} \cdot |W(x)|_{\max} = \frac{0.8415}{6} \times 0.3831 \approx \mathbf{0.0537}


Key Takeaways

QuantityRole in the Error
max⁡∣f(n+1)(ξ)∣\max\lvert f^{(n+1)}(\xi) \rvertHow rapidly the function varies beyond degree nn
(n+1)!(n+1)!Grows quickly, dampens error as degree increases
max⁡∣W(x)∣\max\lvert W(x) \rvertControlled by node placement (the motivation for Chebyshev nodes)

To reduce interpolation error you can:

  1. Increase the degree nn : Adds more (n+1)!(n+1)! damping in the denominator and reduces ∣W(x)∣\lvert W(x) \rvert
  2. Choose better nodes : Chebyshev nodes minimise max⁡∣W(x)∣\max\lvert W(x) \rvert among all possible placements of n+1n+1 nodes in [a,b][a,b], and are covered in Section 8