📈Interpolation and Approximation
Chebyshev Points and Approximation
Runge's phenomenon, the node polynomial, Chebyshev points, Lebesgue constants and spectral accuracy
Hannover, 1901
Carl Runge — remembered today for the Runge–Kutta methods of Unit 9 — publishes a short paper, Über empirische Funktionen und die Interpolation zwischen äquidistanten Ordinaten: on interpolation between equally spaced ordinates.
His example is innocent. The function on is smooth, positive and bell-shaped, with every derivative defined everywhere. Interpolate it at 6, 11, 21, 41 equally spaced points. Near the centre the polynomial hugs the curve better and better. Near the ends it begins to swing above and below, and the swings grow: maximum errors of 0.43, 1.9, 60 and .
More data, worse answer — without any rounding error at all. This is a property of the mathematics, not the machine. And the cure turned out to be not fewer points, but different points.
The error formula of lesson 7-1 explains it. The factor — the node polynomial — depends only on where the nodes are. For equally spaced nodes it is tiny in the middle of the interval and enormous near the ends: at degree 20 its size near is thousands of times its size near 0. Runge's function has derivatives that grow like , which the cannot beat, so the large end values of the node polynomial win.
💡Chebyshev points
Choose the nodes to make as small as possible. The answer is the zeros of the Chebyshev polynomial :
for which , the smallest possible. They are equally spaced in angle on a semicircle, projected down: clustered towards the ends of the interval, exactly where equispaced points let the error escape. (The extrema — 'Chebyshev points of the second kind' — work equally well and include the endpoints.) Any interval is mapped to first.
Derivation
Chebyshev polynomials, their zeros, and why nothing beats
They are polynomials. Put and . The identity becomes
so , , and every is a polynomial. Each step doubles the leading coefficient: starts with . And on .
Its zeros. when , which gives , — the Chebyshev points.
The node polynomial. With these nodes has the same roots as and leading coefficient 1, so it equals , whose largest size on is .
Why no other nodes do better. reaches alternately at points, . Suppose some other monic polynomial of degree stayed strictly inside . Then would be positive at the first of those points, negative at the next, and so on — sign changes, hence roots. But the leading terms cancel, so it has degree at most , and must be identically zero: a contradiction.
| Degree n | Equispaced nodes | Chebyshev nodes |
|---|---|---|
| 5 | 0.43 | 0.56 |
| 10 | 1.9 | 0.11 |
| 20 | 60 | 0.015 |
| 40 | 1.0 × 10⁵ | 2.9 × 10⁻⁴ |
Maximum interpolation error for Runge's function 1/(1 + 25x²)
Experience never errs; it is only your judgments that err by promising themselves effects such as are not caused by your experiments.
💡The Lebesgue constant
Interpolation is a linear map from data to polynomial. Its norm,
the Lebesgue constant, bounds how much errors in the data — measurement noise, rounding — can be amplified, and how far the interpolant can be from the best possible polynomial approximation: . For Chebyshev points : 2.9 at . For equispaced points it grows exponentially: about 11,000 at and 6.6 million at . Data accurate to 0.001 at 21 equispaced points can give an interpolant wrong by 2.5.
Derivation
Where the factor comes from
Write for the interpolation map: it takes the values of a function at the nodes and returns the polynomial . Two properties are all we need.
It amplifies by at most . At any point, .
It reproduces polynomials. If has degree , its interpolant is itself (uniqueness, lesson 7-1).
Now let be the best polynomial approximation of degree to . Since ,
Interpolation is never worse than the best possible approximation by more than the factor . With Chebyshev points that factor is about 4 at ; with equispaced points, about 11,000. And because data errors produce the polynomial , the same bounds how much noise in the data is amplified.
Spectral accuracy. At Chebyshev points the interpolant is essentially the truncated Chebyshev series , and for smooth functions the coefficients fall geometrically — the error drops by a constant factor with every extra degree. A smooth specific-heat curve on 300–3000 K is reproduced to J/kg/K at degree 8 and at degree 16, with coefficients falling from to . This is how libraries evaluate special functions, how flight software stores ephemerides of the Moon and planets (JPL's DE ephemerides are Chebyshev coefficients over short intervals), and the idea behind the Chebfun software that computes with functions 'to machine precision'. A function with a kink like converges only algebraically — polynomials should not be asked to represent corners.
💡Where you will use this
Orbital Mechanics and GNSS: planetary and lunar ephemerides (JPL DE440) are stored as Chebyshev coefficients. Propulsion: NASA's thermodynamic polynomials for species properties are fitted piecewise over temperature ranges for exactly the reasons of this lesson. Optimal Guidance: pseudospectral trajectory optimisation places its collocation points at Chebyshev or Legendre nodes. Instrumentation: sample where the function changes fastest, not uniformly by habit.
📚Further reading
- Lloyd N. Trefethen, Approximation Theory and Approximation Practice (SIAM, 2013; extended ed. 2019), chapters 2–3, 13 and 15 — Chebyshev points and polynomials, Runge's phenomenon and Lebesgue constants, each a short chapter with its own experiments.
- Carl Runge, 'Über empirische Funktionen und die Interpolation zwischen äquidistanten Ordinaten', Zeitschrift für Mathematik und Physik 46, 224–243 (1901) — the paper of the cold open.
- Michael Heath, Scientific Computing: An Introductory Survey (2nd ed.; SIAM Classics 2018), chapter 7 — Chebyshev points and orthogonal polynomials.
↓But there is a problem
Chebyshev points rescue polynomial interpolation when we can choose where to sample. Usually we cannot: the wind tunnel ran at the angles it ran at, the survey points are where the surveyor stood, the cam profile was measured every 30 degrees. And a single high-degree polynomial through scattered data is rarely what an engineer wants anyway.
Shipwrights and draughtsmen had solved the practical problem centuries earlier. They bent a thin, flexible strip of wood — a spline — through pegs at the desired points, held it with lead weights called ducks, and traced the smooth curve it took. The mathematics of that curve went into car factories in 1959.