Skip to content

Runge's Phenomenon & Chebyshev Nodes

Everything covered so far suggests a simple strategy: more nodes → higher degree → smaller error. For well-behaved functions this holds true. But for certain functions, increasing the number of equally spaced nodes does not reduce the error — it makes things catastrophically worse. This failure mode is called Runge’s phenomenon, and Chebyshev nodes are the elegant, principled remedy.


The Problem — Runge’s Phenomenon

Consider the function:

f(x)=11+25x2,x∈[−1,1]f(x) = \frac{1}{1 + 25x^2}, \qquad x \in [-1, 1]

If we interpolate using equally spaced nodes and keep adding more, something unexpected happens: the polynomial stays close to f(x)f(x) near the centre of the interval, but enormous oscillating spikes appear near the endpoints x=−1x = -1 and x=1x = 1. As n→∞n \to \infty, the error at the endpoints grows without bound — the interpolation diverges precisely where you’d expect it to converge.

Equally-spaced interpolants for n=5, 10, 15 on f(x)=1/(1+25x²) — oscillations explode near the endpoints for higher n while the centre stays close to the true function.

Causes

Runge’s phenomenon arises from two interacting factors:

  1. The function itself — Functions with poles or rapid variation near (but outside) the interval are especially susceptible. The function 11+25x2\frac{1}{1+25x^2} has complex poles at x=±i5x = \pm \frac{i}{5}, which sit very close to the real interval in the complex plane. This forces the polynomial to “chase” a sharp feature it cannot fully capture.

  2. Equally spaced nodes — With uniform spacing, the outermost nodes are relatively far from the endpoints of the interval. The product ∣W(x)∣|W(x)| at the boundaries — where no nodes are present to “anchor” the polynomial — grows unchecked as nn increases.


Solutions

Because the error spikes at the boundaries, the fix is to concentrate more nodes near the endpoints. Two strategies accomplish this:

1. Piecewise Interpolation

Divide [a,b][a,b] into smaller sub-intervals and build a low-degree polynomial on each piece, then stitch the pieces together. Each segment is short enough that ∣W(x)∣|W(x)| stays small throughout, and oscillations from one piece cannot propagate to another.

2. Chebyshev Nodes

Rather than splitting the interval, choose a smarter set of node positions across the full interval. Chebyshev nodes cluster naturally near the boundaries and are mathematically proven to minimise max⁡x∈[a,b]∣W(x)∣\max_{x \in [a,b]}|W(x)| among all possible choices of n+1n+1 nodes — making them the optimal antidote to Runge’s phenomenon.


Chebyshev Nodes — The Semicircle Intuition

Imagine the interval [a,b][a,b] as the diameter of a semicircle of radius r=b−a2r = \frac{b-a}{2} centred at c=a+b2c = \frac{a+b}{2}.

Place n+1n+1 equally spaced points along the arc (circumference) of the semicircle — governed by an angle ϕ\phi. To find the position on the interval, we project each arc point vertically downward onto the diameter using the cosine function.

Semicircle projection demonstrating how the angle phi and its cosine relate to the node clustering near the endpoints

The Role of Cosine

The angle ϕ\phi spaces the points evenly along the curved arc. But we only care about their horizontal position on the diameter, which is governed by cos⁡(ϕ)\cos(\phi).

  • Near the middle: When ϕ\phi is near π2\frac{\pi}{2} (the top of the arc), the cosine function changes rapidly. Points projected from here are spaced far apart.
  • Near the endpoints: When ϕ\phi is near 00 or π\pi (the edges of the arc), the cosine function flattens out. A large change in the angle ϕ\phi results in only a tiny change in the horizontal cos⁡(ϕ)\cos(\phi) value.

This trigonometric property naturally creates the optimal distribution: dense near the endpoints and sparse in the middle, perfectly suppressing ∣W(x)∣|W(x)| at the boundaries.

Therefore, for an interval centered at the origin (like the one in our figure), we can express the Chebyshev nodes explicitly as:

xj=rcos⁡(ϕj),j=0,1,…,nx_j = r\cos(\phi_j), \qquad j = 0, 1, \ldots, n

where the angles ϕj\phi_j space the n+1n+1 points evenly along the arc.

To generalize this for an arbitrary interval [a,b][a,b], we simply scale the radius to match the interval’s width and shift the semicircle so it aligns with the interval’s centre, cc. The general node positions become:

xj=rcos⁡(ϕj)+c,j=0,1,…,nx_j = r\cos(\phi_j) + c, \qquad j = 0, 1, \ldots, n

where each component directly reflects our geometric model:

  • r=b−a2r = \frac{b-a}{2} (Radius): Scales the unit circle to match the exact half-width of the target interval.
  • c=a+b2c = \frac{a+b}{2} (Centre): Shifts the semicircle along the number line so its midpoint aligns with the interval’s centre.
  • ϕj=(2j+1)π2(n+1)\phi_j = \frac{(2j+1)\pi}{2(n+1)} (Angle): Defines the evenly spaced angular positions of the n+1n+1 nodes along the arc.

Working together, the angles ϕj\phi_j guarantee a uniform distribution along the curve, while the cos⁡(ϕj)\cos(\phi_j) factor executes the crucial vertical projection down to the x-axis—naturally creating the boundary-heavy clustering required to minimize oscillation.


The figure below makes this concrete for the Runge function. Both strategies target f(x)=11+25x2f(x) = \frac{1}{1+25x^2} on [−1,1][-1,1]; only the node placement differs.

Log-scale plot of max interpolation error vs number of nodes: equally-spaced nodes diverge (red) while Chebyshev nodes converge steadily to zero (green).

Worked Example

Problem: Find the 4 Chebyshev nodes for a degree-3 polynomial on the interval [2,6][2, 6].

ParameterValue
Interval [a,b][a,b][2, 6][2,\ 6]
Degree nn33
Nodes required44

r=6−22=2,c=6+22=4r = \frac{6-2}{2} = 2, \qquad c = \frac{6+2}{2} = 4

Angles (for j=0,1,2,3j = 0, 1, 2, 3 with n+1=4n+1 = 4):

jjϕj=(2j+1)π8\phi_j = \dfrac{(2j+1)\pi}{8}cos⁡(ϕj)\cos(\phi_j)xj=2cos⁡(ϕj)+4x_j = 2\cos(\phi_j) + 4
0π8\dfrac{\pi}{8}0.92390.92395.8485.848
13π8\dfrac{3\pi}{8}0.38270.38274.7654.765
25π8\dfrac{5\pi}{8}−0.3827-0.38273.2353.235
37π8\dfrac{7\pi}{8}−0.9239-0.92392.1522.152

The four Chebyshev nodes are approximately:

x0≈5.848,x1≈4.765,x2≈3.235,x3≈2.152x_0 \approx 5.848, \quad x_1 \approx 4.765, \quad x_2 \approx 3.235, \quad x_3 \approx 2.152

Notice the distribution: two nodes sit close to each endpoint (near 2 and near 6), while the middle of the interval is more sparsely covered. This clustering is exactly what prevents the boundary oscillations characteristic of Runge’s phenomenon.