On this page
Draw a polynomial through more points and you expect a better fit. For one innocent-looking function the opposite happens: the polynomial passes through every point exactly and still swings far away from the function between them, worst near the ends. This is Runge's phenomenon, and it is one of the clearest warnings in numerical maths.
What is Runge's phenomenon?
Runge's phenomenon is the failure of polynomial interpolation at equally spaced points: as the degree rises, the error near the ends of the interval grows instead of shrinking. Carl Runge described it in 1901 in Zeitschrift für Mathematik und Physik, volume 46, pages 224 to 243, using the function f(x) = 1/(1 + 25x²) on the interval from −1 to 1 (Wikipedia: Runge's phenomenon).
The function is a smooth, harmless-looking bump. Yet, as MathWorld's entry on the Runge phenomenon puts it, Runge established that smoothness alone does not ensure convergence for equally spaced nodes. For this function, the largest error of the equally spaced interpolant tends to infinity as the degree tends to infinity (Wikipedia).
A note on counting: below, n is the degree, so the polynomial passes through n + 1 points spaced 2/n apart from −1 to 1, the convention Wikipedia uses. If you want to build such a polynomial yourself, our post on Lagrange interpolation through any set of points shows how.
How big is the error for n = 5, 10 and 15?
We worked these out from the exact error formula rather than by reading a plot, for Runge's function and the equally spaced nodes defined in Wikipedia's article. Because f has poles at x = ±i/5, the interpolation error has a closed form built from ω(x), the product of (x − xⱼ) over all the nodes. The largest gaps between function and polynomial on [−1, 1] are:
n = 5 (6 points): largest error 0.43, at x = 0. The polynomial gives 0.57 where the function is 1, so at low degree the miss is in the middle.
n = 10 (11 points): largest error 1.92, near x = ±0.94. There the function is 0.043, but the polynomial climbs to 1.96, higher than the peak it is meant to copy.
n = 15 (16 points): largest error 2.10, near x = ±0.96.
Across these three degrees the worst error grows and moves to the ends, the pattern Runge found. Cleve Moler's MathWorks blog on Runge's phenomenon, citing Isaacson and Keller, marks the boundary at x = ±0.726: inside it equally spaced interpolants converge, outside it they diverge.
You can check the n = 5 number by hand. The six nodes are ±0.2, ±0.6 and ±1 (x = 0 is not one of them), so ω(x) = (x² − 0.04)(x² − 0.36)(x² − 1). For an odd degree with symmetric nodes, the error is f(x) − p(x) = f(x) · ω(x)/ω(i/5).
At x = 0: ω(0) = (−0.04)(−0.36)(−1) = −0.0144.
At x = i/5, x² = −0.04: ω = (−0.08)(−0.40)(−1.04) = −0.03328.
Error = 1 × (−0.0144)/(−0.03328) = 0.4327, so p(0) = 1 − 0.4327 = 0.567.
Why do Chebyshev nodes fix it?
The error always contains the factor ω(x). With equal spacing, |ω(x)| is tiny in the middle and huge near the ends, so the ends take the damage. Chebyshev nodes, xⱼ = cos((2j + 1)π/(2n + 2)) for j = 0 to n, are the nodes used in Moler's interpolation code; they are the shadows on the x-axis of points equally spaced around a semicircle, so they crowd towards ±1. With them, ω(x) becomes a scaled Chebyshev polynomial, which wobbles with the same small height across the whole interval. Our post on Chebyshev polynomials and Tₙ(cos θ) = cos nθ shows why.
With Chebyshev nodes the maximum error for the Runge function shrinks as the degree rises (Wikipedia; MathWorld). Using the same exact formula, we get a largest error of 0.56 at n = 5, about 0.11 at n = 10 and 0.083 at n = 15. Notice the honest detail: at degree 5 Chebyshev nodes are slightly worse than equal spacing. Their advantage is that the error keeps falling.
What is the lesson for curve fitting?
Polynomials can approximate any continuous function on a closed interval, as the Weierstrass approximation theorem says. Runge's example shows that the right polynomial is not found by forcing one through equally spaced data. A practical checklist:
Look between the points. Passing exactly through every data point says nothing about the gaps.
Do not treat a higher degree as more accuracy. It is more freedom to wiggle.
If you choose where to measure, put more points near the ends, the way Chebyshev nodes do.
If your data are equally spaced, such as practical-file readings taken every 5 cm, use piecewise polynomials (splines) or a low-degree least-squares fit; Wikipedia lists splines and least squares among the remedies.
Plot the residuals across the whole range, not only at the data points.
If ω(x), divided differences or Chebyshev nodes still feel hazy, the Fermi Concept Library has a lesson for every concept in mathematics, each placed in its map. And if you want to see the wiggles form, Fermi's AI tutor can draw the figure and check your understanding as it goes.



