Chapter 03
Hard

Polynomial Interpolation

00 · Symbol Glossary

$\mathcal{P}_n$P sub n — polynomial space

The vector space of polynomials of degree at most nn, including the zero polynomial. It is the function class in which an interpolant through n+1n+1 nodes is sought. Read "P sub n."

$\ell_i(x)$ell sub i of x — Lagrange basis polynomial

The unique element of Pn\mathcal{P}_n that equals 11 at the node xix_i and equals 00 at every other node. The Lagrange form of the interpolant is the combination ∑iyi ℓi(x)\sum_i y_i\,\ell_i(x).

$f[x_0,\ldots,x_k]$f bracket x-zero through x-k — divided difference

The coefficient of the degree-kk product in the Newton form, computed recursively from values by successive difference quotients. Read "f of the nodes x-zero through x-k." Symmetric in the nodes, and equal to f(k)(ξ)/k!f^{(k)}(\xi)/k! for some ξ\xi when ff is smooth.

$\omega(x)$omega of x — nodal polynomial

The monic product ∏i=0n(x−xi)\prod_{i=0}^{n}(x-x_i). It vanishes at every node, and it is the geometric factor in the interpolation error. Read "omega of x."

$\xi$xi — intermediate point

A point, depending on the evaluation site and on ff, that lies in the smallest interval containing that site and the nodes. The error formula evaluates f(n+1)f^{(n+1)} there. Its exact location is unknown; bounds replace it by a maximum.

$\Lambda_n$Lambda sub n — Lebesgue constant

The maximum of ∑i=0n∣ℓi(x)∣\sum_{i=0}^{n}\lvert\ell_i(x)\rvert on the interval of interest. It measures how much larger the interpolant can be, in the uniform norm, than a good comparison polynomial from the same Pn\mathcal{P}_n.

$T_m(x)$T sub m of x — Chebyshev polynomial

The degree-mm polynomial defined by Tm(cos⁡θ)=cos⁡(mθ)T_m(\cos\theta)=\cos(m\theta), with leading coefficient 2m−12^{m-1} for m≥1m\ge 1. Its zeros are the Chebyshev nodes that keep ω\omega as small as a monic polynomial of that degree can be.


01 · Existence and Uniqueness

A desk is handed pillar dates and values — discount factors at 11 year and 22 years, or a function sampled at laboratory nodes — and must pass a curve through every pillar. Before any formula, the question is which class of curves makes that demand determine exactly one function. The class in this chapter is Pn\mathcal{P}_n.

Definition — The interpolation problem

Let x0,…,xnx_0,\ldots,x_n be nodes and let y0,…,yny_0,\ldots,y_n be corresponding values. A polynomial pp interpolates the data when

p(xi)=yifor each i=0,…,n.p(x_i)=y_i \qquad\text{for each } i=0,\ldots,n.

The nodes are distinct when xi≠xjx_i\neq x_j for i≠ji\neq j. Throughout this chapter, nn is the upper bound on the degree: n+1n+1 conditions, polynomials drawn from Pn\mathcal{P}_n.

Plain language: the interpolant is the unique curve of degree at most nn through the dots. There are n+1n+1 dots, sitting at distinct horizontal positions, and the curve that threads them is one polynomial from Pn\mathcal{P}_n. The degree may land strictly below nn when the dots happen to lie on a simpler polynomial; the class that makes the curve unique is still degree at most nn.

One algebraic fact carries uniqueness. If r∈Pnr\in\mathcal{P}_n has n+1n+1 distinct roots, then each root contributes a linear factor, so r(x)=c∏i=0n(x−xi)r(x)=c\prod_{i=0}^{n}(x-x_i) would have degree n+1n+1 unless the constant cc is 00. Hence rr is the zero polynomial.

Proof — Uniqueness for distinct nodes

Write a candidate as p(x)=∑k=0nakxkp(x)=\sum_{k=0}^{n} a_k x^k. The interpolation conditions are the square linear system Va=yV\mathbf{a}=\mathbf{y} with entries Vik=xikV_{ik}=x_i^{k}, rows and columns indexed from 00. The coefficient matrix VV is the Vandermonde matrix of the nodes. If pp and qq both interpolate the same data, the coefficient vector of p−qp-q lies in the kernel of VV. That difference is an element of Pn\mathcal{P}_n with n+1n+1 distinct roots, so it is the zero polynomial. The kernel is trivial, and there is at most one interpolant in Pn\mathcal{P}_n.

Existence is the explicit Lagrange polynomial in Section 02, which meets every value and therefore shows that Va=yV\mathbf{a}=\mathbf{y} has a solution. Together the two halves say VV is invertible. Every later formula in the chapter returns that same polynomial: a second expression is a rearrangement of the one solution.

❌ Repeated nodes

Take n=1n=1, so the class is P1\mathcal{P}_1, and set x0=x1=0x_0=x_1=0 with values y0=1y_0=1, y1=2y_1=2.

What is attempted: a polynomial p(x)=ax+bp(x)=ax+b with p(0)=1p(0)=1 and p(0)=2p(0)=2.

Where it breaks: the two conditions assign two different numbers to the same input. The root argument never starts, because there are not two distinct roots to give to p−qp-q. The Lagrange denominator x0−x1x_0-x_1 in Section 02 is the same collision, written as division by zero.

Consequence: no function at all, polynomial or otherwise, interpolates contradictory values at one point. If instead y0=y1y_0=y_1, the two conditions collapse to one condition on a two-dimensional space, and infinitely many elements of P1\mathcal{P}_1 pass through that single point. Distinct nodes are the hypothesis that makes "exactly one" true.

Degree at most n

The interpolant lives in Pn\mathcal{P}_n, so its degree may come out strictly below nn. Three collinear samples have a unique interpolant in P2\mathcal{P}_2, and that interpolant is a polynomial of degree 11. Dropping to a smaller degree is a successful interpolation. Demanding degree exactly nn is a different problem, and it need not have a solution.


02 · The Lagrange Form

Uniqueness says the interpolant is a single polynomial. Lagrange's formula names it by building, at each node, a polynomial that is 11 there and 00 at the others, then weighting those pieces by the prescribed values.

Definition — Lagrange basis and Lagrange form

For distinct nodes x0,…,xnx_0,\ldots,x_n and values y0,…,yny_0,\ldots,y_n, the Lagrange basis polynomials and the Lagrange interpolant are

ℓi(x)=∏j≠ix−xjxi−xj,p(x)=∑i=0nyi ℓi(x).\ell_i(x)=\prod_{j\neq i}\frac{x-x_j}{x_i-x_j}, \qquad p(x)=\sum_{i=0}^{n} y_i\,\ell_i(x).

The product for ℓi\ell_i runs over the nn indices j∈{0,…,n}j\in\{0,\ldots,n\} with j≠ij\neq i. Each denominator is a nonzero constant. The numerator is monic of degree nn after it is expanded, so ℓi∈Pn\ell_i\in\mathcal{P}_n and therefore p∈Pnp\in\mathcal{P}_n.

Plain language: the Lagrange form is a blend of spikes that are 11 at one node and 00 at the others. Each spike ℓi\ell_i belongs to node xix_i, the interpolant weights that spike by the height yiy_i, and the weighted spikes are added. At a sample node every spike but one is 00, so the blend equals the height prescribed there; between the nodes the spikes overlap.

At a node xkx_k with k≠ik\neq i, the factor x−xkx-x_k in the numerator of ℓi\ell_i is zero, so ℓi(xk)=0\ell_i(x_k)=0. At xix_i, every factor equals 11, so ℓi(xi)=1\ell_i(x_i)=1. Hence p(xk)=∑iyi ℓi(xk)=ykp(x_k)=\sum_i y_i\,\ell_i(x_k)=y_k. This polynomial is a solution of the Vandermonde system in Section 01, and the kernel argument there says it is the only one. The coefficients never require the matrix VV to be formed.

Step-by-step — Lagrange interpolant of $(0,1)$, $(1,2)$, $(2,4)$
1

Write the three basis polynomials. The denominators are (0−1)(0−2)=2(0-1)(0-2)=2, (1−0)(1−2)=−1(1-0)(1-2)=-1, and (2−0)(2−1)=2(2-0)(2-1)=2.

ℓ0(x)=(x−1)(x−2)2,ℓ1(x)=−x(x−2),ℓ2(x)=x(x−1)2.\ell_0(x)=\frac{(x-1)(x-2)}{2},\quad \ell_1(x)=-x(x-2),\quad \ell_2(x)=\frac{x(x-1)}{2}.

2

Weight by the values 11, 22, and 44 and combine. The factor 4⋅(1/2)4\cdot(1/2) on the third basis polynomial simplifies to 22 before expansion:

p(x)=(x−1)(x−2)2−2x(x−2)+2x(x−1).p(x)=\frac{(x-1)(x-2)}{2}-2x(x-2)+2x(x-1).

3

Expand. (x−1)(x−2)=x2−3x+2(x-1)(x-2)=x^2-3x+2, so the first term is 12x2−32x+1\tfrac12 x^2-\tfrac32 x+1. The second term is −2x2+4x-2x^2+4x. The third is 2x2−2x2x^2-2x. The x2x^2 coefficients are 12−2+2=12\tfrac12-2+2=\tfrac12. The xx coefficients are −32+4−2=12-\tfrac32+4-2=\tfrac12. The constant is 11.

p(x)=12x2+12x+1.p(x)=\frac12 x^2+\frac12 x+1.

4

Check the nodes. p(0)=1p(0)=1. p(1)=12+12+1=2p(1)=\tfrac12+\tfrac12+1=2. p(2)=12⋅4+12⋅2+1=2+1+1=4p(2)=\tfrac12\cdot 4+\tfrac12\cdot 2+1=2+1+1=4. Each value is the prescribed yiy_i. Section 01 then says this quadratic is the only element of P2\mathcal{P}_2 with that property.

✓ Example — The samples $1,2,4$ are not themselves a quadratic rule

The values 1,2,41,2,4 at 0,1,20,1,2 are 20,21,222^0,2^1,2^2. The interpolant 12x2+12x+1\tfrac12 x^2+\tfrac12 x+1 agrees with 2x2^x at those three nodes and nowhere else is required to. At x=3x=3, the polynomial returns 12⋅9+12⋅3+1=92+32+1=7\tfrac12\cdot 9+\tfrac12\cdot 3+1=\tfrac{9}{2}+\tfrac{3}{2}+1=7, while 23=82^3=8. The gap of 11 is legal: interpolation fixes values at the nodes and is silent between them until the error formula of Section 04.

❌ Forcing degree exactly n

The data (0,0)(0,0), (1,1)(1,1), (2,2)(2,2) ask for an element of P2\mathcal{P}_2.

What is attempted: a quadratic ax2+bx+cax^2+bx+c with a≠0a\neq 0 required in advance, on the grounds that three points "determine a parabola."

Where it breaks: p(x)=xp(x)=x already lies in P2\mathcal{P}_2 and meets all three values. Uniqueness forbids a second interpolant, so there is no solution with a≠0a\neq 0. The Lagrange sum produces p(x)=xp(x)=x; the x2x^2 coefficients cancel.

Consequence: "degree at most nn" is the class in the theorem. "Degree exactly nn" can be empty for the same data.


03 · The Newton Form

Lagrange's basis depends on every node at once. Adding a pillar changes every ℓi\ell_i. Newton's form is the same polynomial written so that the old coefficients stay put and the new node appends one term.

Definition — Divided differences and the Newton form

Set f[xi]=yif[x_i]=y_i. For k≥1k\ge 1 and any window of k+1k+1 distinct nodes,

f[xi,…,xi+k]=f[xi+1,…,xi+k]−f[xi,…,xi+k−1]xi+k−xi.f[x_i,\ldots,x_{i+k}]=\frac{f[x_{i+1},\ldots,x_{i+k}]-f[x_i,\ldots,x_{i+k-1}]}{x_{i+k}-x_i}.

The Newton form of the interpolant is

p(x)=a0+∑k=1nak∏j=0k−1(x−xj),ak=f[x0,…,xk].p(x)=a_0+\sum_{k=1}^{n} a_k\prod_{j=0}^{k-1}(x-x_j), \qquad a_k=f[x_0,\ldots,x_k].

The k=0k=0 term is the constant a0=y0a_0=y_0. The sum in the display starts at k=1k=1, where the product first has a factor.

Plain language: a divided difference is the coefficient that records how much new bending the next dot demands. Newton's form writes the same interpolant as a constant plus terms that each vanish at the nodes already accounted for, so a newly arrived pillar appends one product and the earlier coefficients stay put. The polynomial is the one from Section 02; this arrangement is the one that updates when another date arrives.

The product that multiplies aka_k vanishes at x0,…,xk−1x_0,\ldots,x_{k-1}. Consequently the partial sum that stops at ama_m already interpolates the first m+1m+1 data points, and later terms do not disturb those values. Evaluating at xmx_m solves for ama_m and recovers the divided-difference recurrence. By Section 01 this pp equals the Lagrange interpolant: same nodes, same values, same space.

The leading term of the degree-kk product is akxka_k x^k. So ak=f[x0,…,xk]a_k=f[x_0,\ldots,x_k] is the leading coefficient of the unique interpolant through those k+1k+1 points. Leading coefficients do not depend on the order in which points were fed to the recurrence. Divided differences are therefore symmetric in their arguments: f[x0,x1]=f[x1,x0]f[x_0,x_1]=f[x_1,x_0], and likewise for longer brackets.

Step-by-step — Newton form of the same data $(0,1)$, $(1,2)$, $(2,4)$
1

Fill the value column. f[0]=1f[0]=1, f[1]=2f[1]=2, f[2]=4f[2]=4.

2

Compute first differences. f[0,1]=(2−1)/(1−0)=1f[0,1]=(2-1)/(1-0)=1. f[1,2]=(4−2)/(2−1)=2f[1,2]=(4-2)/(2-1)=2. Each numerator is a difference of values; each denominator is the corresponding node gap.

3

Compute the second difference. The numerator is the difference of the two first differences just obtained, and the denominator is the span from the first node in the bracket to the last:

f[0,1,2]=2−12−0=12.f[0,1,2]=\frac{2-1}{2-0}=\frac12.

4

Assemble and expand. p(x)=1+1⋅(x−0)+12(x−0)(x−1)=1+x+12x2−12xp(x)=1+1\cdot(x-0)+\tfrac12(x-0)(x-1)=1+x+\tfrac12 x^2-\tfrac12 x.

p(x)=12x2+12x+1.p(x)=\frac12 x^2+\frac12 x+1.
This is the polynomial Section 02 produced with Lagrange. The agreement is the uniqueness theorem, checked by hand.

✓ Example — A three-pillar discount factor

Discount factors 11, 97100\tfrac{97}{100}, 93100\tfrac{93}{100} at maturities 00, 11, 22 determine an element of P2\mathcal{P}_2.

The first differences are (97100−1)/(1−0)=−3100(\tfrac{97}{100}-1)/(1-0)=-\tfrac{3}{100} and (93100−97100)/(2−1)=−4100(\tfrac{93}{100}-\tfrac{97}{100})/(2-1)=-\tfrac{4}{100}. The second difference uses the gap 2−0=22-0=2:

f[0,1,2]=−4100−(−3100)2=−11002=−1200.f[0,1,2]=\frac{-\tfrac{4}{100}-\left(-\tfrac{3}{100}\right)}{2}=\frac{-\tfrac{1}{100}}{2}=-\frac{1}{200}.
p(t)=1−3100 t−1200 t(t−1).p(t)=1-\frac{3}{100}\,t-\frac{1}{200}\,t(t-1).

At t=32t=\tfrac32, which sits between the pillars, t(t−1)=32⋅12=34t(t-1)=\tfrac32\cdot\tfrac12=\tfrac34, so the last term is −1200⋅34=−3800-\tfrac{1}{200}\cdot\tfrac34=-\tfrac{3}{800}. The linear term is −3100⋅32=−9200=−36800-\tfrac{3}{100}\cdot\tfrac32=-\tfrac{9}{200}=-\tfrac{36}{800}. Hence p(32)=1−36800−3800=761800p(\tfrac32)=1-\tfrac{36}{800}-\tfrac{3}{800}=\tfrac{761}{800}. The curve value 0.951250.95125 lies between the neighboring pillar values 97100\tfrac{97}{100} and 93100\tfrac{93}{100}. Differentiating the expanded form p(t)=1−140t−1200t2p(t)=1-\tfrac{1}{40}t-\tfrac{1}{200}t^2 gives p′(t)=−140−1100t=−(2t+5)/200p'(t)=-\tfrac{1}{40}-\tfrac{1}{100}t=-(2t+5)/200, which is negative for every t≥0t\ge 0. On the hull of these three pillars the interpolant is still a decreasing discount factor.

❌ Extrapolating a pillar polynomial past the last node

The same quadratic, evaluated at maturity 2020.

What is attempted: p(20)=1−3100⋅20−1200⋅20⋅19=1−35−1910p(20)=1-\tfrac{3}{100}\cdot 20-\tfrac{1}{200}\cdot 20\cdot 19=1-\tfrac{3}{5}-\tfrac{19}{10}.

Where it breaks: 35+1910=610+1910=2510=52\tfrac{3}{5}+\tfrac{19}{10}=\tfrac{6}{10}+\tfrac{19}{10}=\tfrac{25}{10}=\tfrac52, so p(20)=1−52=−32p(20)=1-\tfrac52=-\tfrac32. Nothing in the interpolation conditions speaks about t=20t=20. The nodal factor ω(20)=20⋅19⋅18=6840\omega(20)=20\cdot 19\cdot 18=6840 is the size Section 04 multiplies into the unknown second derivative; three pillars on [0,2][0,2] do not bound that derivative out at 2020.

Consequence: −32-\tfrac32 is the polynomial's value, and it is not a discount factor. The identity p(ti)=yip(t_i)=y_i holds at 0,1,20,1,2. Outside the hull of the nodes the formula is an extrapolation, and the error factor ω\omega grows like the product of the distances to every pillar.


04 · The Error Formula

Matching n+1n+1 values leaves a definite gap at every other xx. The gap factors into a derivative of ff, which the nodes do not control, and the nodal polynomial ω\omega, which they do.

Definition — Interpolation error

Let x0,…,xnx_0,\ldots,x_n be distinct nodes in an interval, and let ff have a continuous derivative of order n+1n+1 on an open interval containing the nodes and the evaluation point xx. Let p∈Pnp\in\mathcal{P}_n interpolate ff at the nodes, and write ω(x)=∏i=0n(x−xi)\omega(x)=\prod_{i=0}^{n}(x-x_i). Then there exists a point ξ\xi, strictly inside the smallest interval that contains xx and all the nodes, such that

f(x)−p(x)=f(n+1)(ξ)(n+1)! ω(x).f(x)-p(x)=\frac{f^{(n+1)}(\xi)}{(n+1)!}\,\omega(x).

If xx itself is a node, both sides are 00. If ∣f(n+1)∣≤M\lvert f^{(n+1)}\rvert\le M on the interval that contains ξ\xi, then

∣f(x)−p(x)∣≤M(n+1)! ∣ω(x)∣.\lvert f(x)-p(x)\rvert\le\frac{M}{(n+1)!}\,\lvert\omega(x)\rvert.

Plain language: the error formula is the Taylor remainder, with the sample nodes in place of one expansion point. The degree-nn Taylor gap at a single center carries f(n+1)f^{(n+1)} and a factorial (n+1)!(n+1)!, times a pure power of the distance to that center. The same derivative and the same factorial appear here, and the pure power is replaced by ω(x)\omega(x), the product of the distances from the evaluation site to each sample node.

The Newton form supplies the same gap with a divided difference in place of the derivative. Extend the node list by the evaluation point xx, using the value f(x)f(x). The enlarged Newton polynomial interpolates the original data, because the added term contains the product ω\omega, and it interpolates (x,f(x))(x,f(x)) by construction of the last coefficient. Evaluating there yields the identity

f(x)−p(x)=f[x0,…,xn,x] ω(x).f(x)-p(x)=f[x_0,\ldots,x_n,x]\,\omega(x).

The next proof identifies the divided difference with f(n+1)(ξ)/(n+1)!f^{(n+1)}(\xi)/(n+1)!. In particular, for any distinct z0,…,zmz_0,\ldots,z_m in the interval of smoothness,

f[z0,…,zm]=f(m)(ξ)m!f[z_0,\ldots,z_m]=\frac{f^{(m)}(\xi)}{m!}

for some ξ\xi in the interval they span: apply the error formula to the first mm points and read the last Newton coefficient at zmz_m. When f(n+1)f^{(n+1)} vanishes identically, f∈Pnf\in\mathcal{P}_n, every divided difference of order n+1n+1 vanishes, and p=fp=f.

Proof — The derivative form of the error

If xx equals some node, both sides of the claimed formula are zero. Now fix xx distinct from every xix_i, and define

λ=f(x)−p(x)ω(x),g(t)=f(t)−p(t)−λ ω(t).\lambda=\frac{f(x)-p(x)}{\omega(x)}, \qquad g(t)=f(t)-p(t)-\lambda\,\omega(t).

Then g(xi)=yi−yi−λ⋅0=0g(x_i)=y_i-y_i-\lambda\cdot 0=0, and g(x)=0g(x)=0 by the choice of λ\lambda. So gg has at least n+2n+2 distinct zeros.

Rolle's theorem: a function that is continuous on a closed interval, differentiable on the interior, and equal at the two endpoints has derivative equal to zero at some point strictly between them. Apply it once on each interval between consecutive zeros of gg. The derivative g′g' has at least n+1n+1 distinct zeros. Repeat. After n+1n+1 applications, g(n+1)g^{(n+1)} has at least one zero; call it ξ\xi. The point ξ\xi lies in the open interval spanned by xx and the nodes.

The derivative of order n+1n+1 kills pp, since deg⁡p≤n\deg p\le n. The nodal polynomial is monic of degree n+1n+1, so ω(n+1)(t)=(n+1)!\omega^{(n+1)}(t)=(n+1)!. Therefore

g(n+1)(ξ)=f(n+1)(ξ)−λ (n+1)!=0.g^{(n+1)}(\xi)=f^{(n+1)}(\xi)-\lambda\,(n+1)!=0.

Solve for λ\lambda and substitute the definition of λ\lambda. The error formula follows.

Sibling of the Taylor remainder

Calculus Chapter 11 writes the gap between ff and its degree-nn Taylor polynomial at a single center aa as f(n+1)(c) (x−a)n+1/(n+1)!f^{(n+1)}(c)\,(x-a)^{n+1}/(n+1)!. The derivative order and the factorial match the formula above. The geometric factor (x−a)n+1(x-a)^{n+1} is what ω(x)\omega(x) becomes when every interpolation condition has coalesced at the single point aa. The nodes in this chapter stay distinct. The two remainders share an engine and differ in the polynomial that multiplies f(n+1)(ξ)/(n+1)!f^{(n+1)}(\xi)/(n+1)!.

Step-by-step — Bound the gap for $e^x$ at $x=\tfrac12$, nodes $0$ and $1$
1

Name the interpolant. Here n=1n=1, f(0)=1f(0)=1, f(1)=ef(1)=e. The unique element of P1\mathcal{P}_1 through those points is the chord p(x)=1+(e−1)xp(x)=1+(e-1)x. At the test point, p(12)=(1+e)/2p(\tfrac12)=(1+e)/2.

2

Evaluate ω\omega. ω(x)=x(x−1)\omega(x)=x(x-1), so ω(12)=12⋅(−12)=−14\omega(\tfrac12)=\tfrac12\cdot(-\tfrac12)=-\tfrac14 and ∣ω(12)∣=14\lvert\omega(\tfrac12)\rvert=\tfrac14. The factor (n+1)!(n+1)! is 2!=22!=2.

3

Bound the derivative on the whole interval that may contain ξ\xi. The nodes and the test point all lie in [0,1][0,1], and f′′(t)=etf''(t)=e^t is increasing, so 1≤et≤e1\le e^t\le e on that interval. The legal ceiling is M=eM=e, attained as the value at the right endpoint, not as a value we may choose.

4

Apply the bound. ∣f(12)−p(12)∣≤(e/2)⋅(1/4)=e/8\lvert f(\tfrac12)-p(\tfrac12)\rvert\le (e/2)\cdot(1/4)=e/8. The unknown ξ\xi has been removed. The bound does not require a numerical value of e1/2e^{1/2}.

❌ Bounding the derivative only at a convenient point

On the same data, replace M=eM=e by f′′(0)=e0=1f''(0)=e^0=1, then quote the number (1/2)⋅(1/4)=1/8(1/2)\cdot(1/4)=1/8 as an error bound.

Where it breaks: the theorem requires ∣f(n+1)(t)∣≤M\lvert f^{(n+1)}(t)\rvert\le M at every tt in the interval that contains ξ\xi, and ξ\xi is only known to lie somewhere in (0,1)(0,1). On that interval et>1e^t>1 for every t>0t>0, so M=1M=1 fails at the point the formula actually uses.

Consequence: 1/81/8 is smaller than the expression the theorem permits. It is not a bound. The legal ceiling on [0,1][0,1] is ee, and the legal numerical bound is e/8e/8.

Two later chapters quote this display directly. Chapter 04 cuts the domain into subintervals and applies the formula on each piece, with a local degree and a local ω\omega whose size is a power of the local spacing. Chapter 06 integrates it. A Newton–Cotes rule is ∫p\int p, and the quadrature error is

∫abf(n+1)(ξx)(n+1)! ω(x) dx,\int_a^b\frac{f^{(n+1)}(\xi_x)}{(n+1)!}\,\omega(x)\,dx,

with ξx\xi_x depending on the dummy variable of integration. The derivative factor and the nodal polynomial are the ones proved here; Chapter 06 evaluates the integral of that product for equispaced quadrature nodes.


05 · The Runge Phenomenon

The bound in Section 04 shrinks when M/(n+1)!M/(n+1)! shrinks faster than ∣ω∣\lvert\omega\rvert grows. Raising nn changes both factors, and it changes ω\omega through the placement of the nodes. Equispaced nodes, the default when a table is printed at a constant step, make ∣ω∣\lvert\omega\rvert worst near the ends of the interval.

Definition — Lebesgue function and Lebesgue constant

On an interval II containing the nodes, the Lebesgue function and the Lebesgue constant of those nodes are

λ(x)=∑i=0n∣ℓi(x)∣,Λn=max⁡x∈Iλ(x).\lambda(x)=\sum_{i=0}^{n}\lvert\ell_i(x)\rvert, \qquad \Lambda_n=\max_{x\in I}\lambda(x).

For every comparison polynomial q∈Pnq\in\mathcal{P}_n and every continuous ff, if pp interpolates ff at the nodes, then

∥f−p∥∞≤(1+Λn) ∥f−q∥∞,\|f-p\|_\infty\le(1+\Lambda_n)\,\|f-q\|_\infty,

where ∥ ⋅ ∥∞\|\,\cdot\,\|_\infty is the maximum of the absolute value on II.

Plain language: the Lebesgue function adds the absolute values of the Lagrange spikes at a point, and the Lebesgue constant Λn\Lambda_n is the largest value that sum attains on the interval. It is the inflation allowed against any other polynomial from the same Pn\mathcal{P}_n: on the whole interval, the interpolant's uniform error is at most 1+Λn1+\Lambda_n times the uniform error of that comparison. A large constant means the spikes, measured in absolute value, can pile up and swing the curve well beyond the size of the samples.

The comparison is arbitrary, so it applies in particular to any qq that approximates ff well. The interpolant is then at most a factor 1+Λn1+\Lambda_n worse than that comparison. The short proof is linearity. The interpolant of qq is qq itself, by uniqueness. Hence p−qp-q interpolates the sampled values of f−qf-q, and

p(x)−q(x)=∑i=0n(f(xi)−q(xi)) ℓi(x).p(x)-q(x)=\sum_{i=0}^{n}\bigl(f(x_i)-q(x_i)\bigr)\,\ell_i(x).

Each ∣f(xi)−q(xi)∣\lvert f(x_i)-q(x_i)\rvert is at most ∥f−q∥∞\|f-q\|_\infty, so ∣p(x)−q(x)∣≤∥f−q∥∞ λ(x)≤Λn∥f−q∥∞\lvert p(x)-q(x)\rvert\le\|f-q\|_\infty\,\lambda(x)\le\Lambda_n\|f-q\|_\infty. The triangle inequality ∥f−p∥∞≤∥f−q∥∞+∥p−q∥∞\|f-p\|_\infty\le\|f-q\|_\infty+\|p-q\|_\infty produces the factor 1+Λn1+\Lambda_n.

For equispaced nodes the constant is hostile. As the degree nn tends to infinity,

Λn∼2n+1e nln⁡n,\Lambda_n\sim\frac{2^{n+1}}{\mathrm{e}\, n\ln n},

with ln⁡\ln the natural logarithm and e\mathrm{e} its base. The right-hand side grows exponentially. A family of comparison polynomials qnq_n may converge to ff rapidly while (1+Λn)∥f−qn∥∞(1+\Lambda_n)\|f-q_n\|_\infty still diverges. The equispaced element of Pn\mathcal{P}_n is the source of that divergence.

Definition — Runge's example

Let f(x)=1/(1+25x2)f(x)=1/(1+25x^2) on [−1,1][-1,1], and let pn∈Pnp_n\in\mathcal{P}_n interpolate ff at the n+1n+1 equispaced nodes xi=−1+2i/nx_i=-1+2i/n for i=0,…,ni=0,\ldots,n, with n≥1n\ge 1. Then ∥f−pn∥∞\|f-p_n\|_\infty is unbounded as n→∞n\to\infty. The blow-up concentrates near the endpoints ±1\pm 1. This is Runge's classical example: a function with derivatives of every order whose equispaced interpolants diverge uniformly.

Plain language: Runge's example is the high-degree wiggle at the ends on equal spacing. The function 1/(1+25x2)1/(1+25x^2) is smooth and stays positive and at most 11, and the nodes are spaced evenly across [−1,1][-1,1]. Raising the degree rebuilds an equispaced interpolant whose oscillations near ±1\pm 1 grow, and the largest gap on the interval is unbounded as the degree tends to infinity. Further equally spaced dots leave that end wiggle in place.

The poles of ff sit at x=±i/5x=\pm i/5, because 1+25x2=01+25x^2=0 forces x2=−1/25x^2=-1/25. They lie at a fixed complex distance 1/51/5 from the origin, so high derivatives of ff on [−1,1][-1,1] are large. The error formula multiplies that derivative factor by ω(x)/(n+1)!\omega(x)/(n+1)!. Equispaced nodes make ∣ω∣\lvert\omega\rvert much larger near ±1\pm 1 than near the middle, and for this ff the product does not tend to 00 uniformly. The full divergence proof uses that complex-analytic setup; the hand calculation below already shows the endpoint disease at degree 44, where every arithmetic step is rational.

Step-by-step — Equispaced interpolant of $1/(1+25x^2)$ at degree $4$
1

Record the samples. Nodes −1,−12,0,12,1-1,-\tfrac12,0,\tfrac12,1. The function is even, and f(0)=1f(0)=1, f(1)=1/26f(1)=1/26, f(12)=1/(1+25⋅14)=1/(29/4)=4/29f(\tfrac12)=1/(1+25\cdot\tfrac14)=1/(29/4)=4/29. The same values recur at the negative nodes.

2

Use symmetry and uniqueness. If pp interpolates these data, so does t↦p(−t)t\mapsto p(-t), because the data are even. Section 01 forces p(−t)=p(t)p(-t)=p(t). A general even element of P4\mathcal{P}_4 is p(x)=a+bx2+cx4p(x)=a+bx^2+cx^4.

3

Read the three coefficients off three nodes. p(0)=1p(0)=1 gives a=1a=1. Then b+c=1/26−1=−25/26b+c=1/26-1=-25/26, and b/4+c/16=4/29−1=−25/29b/4+c/16=4/29-1=-25/29.

4

Clear the second equation. Multiply b/4+c/16=−25/29b/4+c/16=-25/29 by 1616: 4b+c=−400/294b+c=-400/29, where −400=16⋅(−25)-400=16\cdot(-25). Subtract b+c=−25/26b+c=-25/26:

3b=−40029+2526=−10400+725754=−9675754,3b=-\frac{400}{29}+\frac{25}{26}=\frac{-10400+725}{754}=-\frac{9675}{754},
using the common denominator 29⋅26=75429\cdot 26=754. Hence b=−9675/(3⋅754)=−3225/754b=-9675/(3\cdot 754)=-3225/754. Then c=−25/26−b=−725/754+3225/754=2500/754=1250/377c=-25/26-b=-725/754+3225/754=2500/754=1250/377.

5

Evaluate at x=4/5x=4/5, between the nodes 1/21/2 and 11. Here (4/5)2=16/25(4/5)^2=16/25 and (4/5)4=256/625(4/5)^4=256/625. The quadratic contribution is (−3225/754)⋅(16/25)=−1032/377(-3225/754)\cdot(16/25)=-1032/377, after cancelling 3225/25=1293225/25=129 and dividing −129⋅16-129\cdot 16 and 754754 by 22. The degree-44 contribution, using 1250/377=2500/7541250/377=2500/754 and 2500/625=42500/625=4, is 4⋅256/754=1024/754=512/3774\cdot 256/754=1024/754=512/377.

6

Add. p(4/5)=1−1032/377+512/377=1−520/377=(377−520)/377=−143/377p(4/5)=1-1032/377+512/377=1-520/377=(377-520)/377=-143/377. Since 377=13⋅29377=13\cdot 29 and 143=11⋅13143=11\cdot 13,

p ⁣(45)=−1129.p\!\left(\frac45\right)=-\frac{11}{29}.
Meanwhile f(4/5)=1/(1+25⋅16/25)=1/(1+16)=1/17>0f(4/5)=1/(1+25\cdot 16/25)=1/(1+16)=1/17>0. The interpolant at a point inside [−1,1][-1,1] is already negative, while ff on the whole real line takes values in (0,1](0,1].

❌ Treating a finer equispaced table as a safer uniform approximation

Degree 44 on this ff has already produced p(4/5)=−11/29p(4/5)=-11/29, about −0.379-0.379, against f(4/5)=1/17f(4/5)=1/17, about 0.0590.059.

What is attempted: the inference that moving to degree 66, 88, or 1010 with the same equispaced pattern must reduce the uniform error, because more interpolation conditions are being enforced.

Where it breaks: each new degree rebuilds ω\omega and replaces f(n+1)f^{(n+1)}. Runge's theorem says the uniform norm of the error on [−1,1][-1,1] is unbounded along this sequence. The Lebesgue constant of the equispaced nodes grows like 2n+1/(e nln⁡n)2^{n+1}/(e\, n\ln n), so the inequality of this section allows the interpolant to depart from a good comparison polynomial by an exponential factor. Matching more equispaced samples does not purchase a smaller Λn\Lambda_n.

Consequence: pointwise agreement at more and more equispaced nodes coexists with a uniform error that refuses to tend to 00. The sign error −11/29-11/29 is the same phenomenon, visible before the asymptotic regime.


06 · Chebyshev Nodes

The error formula isolates one factor the node-setter controls: the size of the monic polynomial ω\omega. Among all choices of n+1n+1 distinct nodes in [−1,1][-1,1], the smallest possible value of max⁡∣ω∣\max\lvert\omega\rvert is attained by clustering nodes toward the endpoints. Those nodes are the zeros of a Chebyshev polynomial.

Definition — Chebyshev polynomials and Chebyshev nodes

The Chebyshev polynomials are T0(x)=1T_0(x)=1, T1(x)=xT_1(x)=x, and

Tm(x)=2x Tm−1(x)−Tm−2(x)(m≥2).T_{m}(x)=2x\,T_{m-1}(x)-T_{m-2}(x) \qquad (m\ge 2).

They satisfy Tm(cos⁡θ)=cos⁡(mθ)T_m(\cos\theta)=\cos(m\theta). The Chebyshev nodes for interpolation in Pn\mathcal{P}_n are the n+1n+1 zeros of Tn+1T_{n+1},

xk=cos⁡ ⁣((2k+1)π2(n+1)),k=0,…,n.x_k=\cos\!\left(\frac{(2k+1)\pi}{2(n+1)}\right), \qquad k=0,\ldots,n.

Plain language: Chebyshev nodes are denser samples near the ends, placed there to tame that wiggle. They are the zeros of Tn+1T_{n+1}, and the cosine relation puts them on equal steps of angle, which crowd toward x=±1x=\pm 1 and leave wider gaps near the middle. The resulting monic nodal polynomial ω\omega has the smallest possible maximum on [−1,1][-1,1] among monic polynomials of degree n+1n+1, so the geometric factor in the error formula is as small as the node placement can make it.

The cosine identity follows from the recurrence. It holds for m=0m=0 and m=1m=1. The addition formula cos⁡((m+1)θ)+cos⁡((m−1)θ)=2cos⁡θcos⁡(mθ)\cos((m+1)\theta)+\cos((m-1)\theta)=2\cos\theta\cos(m\theta) is the same three-term relation the polynomials obey, so the two sequences agree for every mm. In particular ∣Tm(x)∣≤1\lvert T_m(x)\rvert\le 1 for every x∈[−1,1]x\in[-1,1], since it equals ∣cos⁡(mθ)∣\lvert\cos(m\theta)\rvert at x=cos⁡θx=\cos\theta.

The zeros are the angles where cos⁡((n+1)θ)=0\cos((n+1)\theta)=0, that is (n+1)θ=(2k+1)π/2(n+1)\theta=(2k+1)\pi/2, so θ=(2k+1)π/(2n+2)\theta=(2k+1)\pi/(2n+2), and k=0,…,nk=0,\ldots,n produces n+1n+1 distinct cosines in (−1,1)(-1,1).

The leading coefficient of TmT_m is 2m−12^{m-1} for m≥1m\ge 1: true for T1T_1, and the recurrence multiplies the leading term by 2x2x while the subtracted polynomial Tm−2T_{m-2} has lower degree. Thus Tn+1T_{n+1} has leading coefficient 2n2^n, and 2−nTn+12^{-n}T_{n+1} is monic of degree n+1n+1. Its roots are the Chebyshev nodes, so it is their nodal polynomial:

ω(x)=2−nTn+1(x),max⁡[−1,1]∣ω(x)∣=2−n.\omega(x)=2^{-n}T_{n+1}(x), \qquad \max_{[-1,1]}\lvert\omega(x)\rvert=2^{-n}.

The maximum is 2−n2^{-n} because ∣Tn+1∣≤1\lvert T_{n+1}\rvert\le 1 and Tn+1T_{n+1} attains ±1\pm 1.

Clustering is the cosine map, read off the derivative. Equal steps in the angle θ\theta produce horizontal steps Δx≈−sin⁡θ Δθ\Delta x\approx -\sin\theta\,\Delta\theta, and sin⁡θ=1−x2\sin\theta=\sqrt{1-x^2} when x=cos⁡θx=\cos\theta. The gaps are therefore proportional to 1−x2\sqrt{1-x^2}: large near x=0x=0, where the sine is near 11, and small near x=±1x=\pm 1, where the sine vanishes. The nodes crowd the endpoints.

Proof — No monic polynomial is smaller on the interval

Let qq be monic of degree m=n+1m=n+1, and write δ=21−m=2−n\delta=2^{1-m}=2^{-n}. Suppose, for a contradiction, that ∣q(x)∣<δ\lvert q(x)\rvert<\delta at every x∈[−1,1]x\in[-1,1]. Let T^=2−nTn+1\hat T=2^{-n}T_{n+1}, which is monic, and set r=T^−qr=\hat T-q. The degree-mm terms cancel, so deg⁡r≤m−1\deg r\le m-1.

At the m+1m+1 points tj=cos⁡(jπ/m)t_j=\cos(j\pi/m) for j=0,…,mj=0,\ldots,m, the identity Tm(cos⁡ϕ)=cos⁡(mϕ)T_m(\cos\phi)=\cos(m\phi) with mm replaced by n+1n+1 gives Tn+1(tj)=cos⁡(jπ)=(−1)jT_{n+1}(t_j)=\cos(j\pi)=(-1)^j. Hence T^(tj)=(−1)jδ\hat T(t_j)=(-1)^j\delta. Because ∣q(tj)∣<δ\lvert q(t_j)\rvert<\delta, the difference r(tj)r(t_j) is nonzero and has the sign of (−1)j(-1)^j. Along the ordered points t0>t1>⋯>tmt_0>t_1>\cdots>t_m, the values of rr therefore change sign on each of the mm consecutive gaps. A continuous function with a sign change on an interval has a root in that interval, so rr has at least mm distinct roots. A nonzero polynomial of degree at most m−1m-1 has at most m−1m-1 roots. This contradiction forces the supposition to fail.

Every monic polynomial of degree n+1n+1 therefore satisfies max⁡[−1,1]∣q∣≥2−n\max_{[-1,1]}\lvert q\rvert\ge 2^{-n}. The Chebyshev choice attains 2−n2^{-n}, so it is optimal for the uniform size of ω\omega.

✓ Example — Degree $1$ on $[-1,1]$, Chebyshev against the endpoints

For n=1n=1 the relevant polynomial is T2(x)=2x2−1T_2(x)=2x^2-1, with zeros x=±2/2x=\pm\sqrt{2}/2. The monic nodal polynomial is ωC(x)=x2−12=2−1T2(x)\omega_C(x)=x^2-\tfrac12=2^{-1}T_2(x). On [−1,1][-1,1] its absolute value is at most 12\tfrac12, and it equals 12\tfrac12 at x=−1x=-1, x=0x=0, and x=1x=1, with signs +,−,++,-,+.

The equispaced choice for two nodes is the pair of endpoints, with ωE(x)=(x+1)(x−1)=x2−1\omega_E(x)=(x+1)(x-1)=x^2-1. Then ∣ωE(0)∣=1\lvert\omega_E(0)\rvert=1, which is twice 2−12^{-1}. The derivative factor f′′(ξ)/2!f''(\xi)/2! in the error formula is unchanged by this comparison; the entire improvement available from moving the nodes is the drop in ∣ω∣\lvert\omega\rvert, here from 11 down to 12\tfrac12 at the midpoint.

When the nodes are not yours to move

Chebyshev nodes minimize max⁡∣ω∣\max\lvert\omega\rvert on [−1,1][-1,1] among monic polynomials of degree n+1n+1. That minimization is available when the nodes are a choice, as they are for a quadrature rule in Chapter 06. Pillar dates on a discount curve are market data, not free parameters. Moving them to cos⁡((2k+1)π/(2n+2))\cos((2k+1)\pi/(2n+2)) is not a trade one can book. Chapter 04 answers that constraint by abandoning a single global element of Pn\mathcal{P}_n: the same error formula is applied on each subinterval, where the local nodal polynomial is a power of the local spacing and the degree stays fixed while the mesh is refined.

For orientation, the Lebesgue constant of the Chebyshev nodes grows only logarithmically, Λn∼(2/π)ln⁡(n+1)\Lambda_n\sim(2/\pi)\ln(n+1). A comparison error that decays geometrically dominates a logarithm, so the node choice that minimizes max⁡∣ω∣\max\lvert\omega\rvert keeps 1+Λn1+\Lambda_n from swallowing the approximation. Applied to Runge's function, the Chebyshev interpolants converge to ff uniformly at a geometric rate in nn. That rate is the counterpart of the divergence theorem in Section 05; its proof tracks a Bernstein ellipse out to the poles at ±i/5\pm i/5, and it is recorded here as a classical fact. The equispaced asymptotic of Section 05 grows exponentially. Both Lebesgue asymptotics are classical. The inequality they plug into was proved from the Lagrange basis above.


07 · Practice Exercises

EXERCISE 3.1

Write the three Lagrange basis polynomials for the nodes −1-1, 00, and 22 before multiplying by the values. Each denominator is a product of two nonzero node gaps.

The basis polynomials are ℓ0(x)=x(x−2)/3\ell_0(x)=x(x-2)/3, because the denominator is (−1−0)(−1−2)=3(-1-0)(-1-2)=3; ℓ1(x)=−(x+1)(x−2)/2\ell_1(x)=-(x+1)(x-2)/2, because the denominator is (0+1)(0−2)=−2(0+1)(0-2)=-2; and ℓ2(x)=x(x+1)/6\ell_2(x)=x(x+1)/6, because the denominator is (2+1)(2−0)=6(2+1)(2-0)=6.

Weight by 22, −1-1, and 11. Then 2ℓ0=(2/3)x2−(4/3)x2\ell_0=(2/3)x^2-(4/3)x. The middle contribution is (−1)⋅ℓ1=(1/2)(x+1)(x−2)=(1/2)x2−(1/2)x−1(-1)\cdot\ell_1=(1/2)(x+1)(x-2)=(1/2)x^2-(1/2)x-1. The last is (1/6)x2+(1/6)x(1/6)x^2+(1/6)x.

The x2x^2 coefficients add as 2/3+1/2+1/6=4/6+3/6+1/6=8/6=4/32/3+1/2+1/6=4/6+3/6+1/6=8/6=4/3. The xx coefficients add as −4/3−1/2+1/6=−8/6−3/6+1/6=−10/6=−5/3-4/3-1/2+1/6=-8/6-3/6+1/6=-10/6=-5/3. The constant term is −1-1. Therefore p(x)=43x2−53x−1p(x)=\tfrac43 x^2-\tfrac53 x-1.

Checks: p(−1)=4/3+5/3−1=3−1=2p(-1)=4/3+5/3-1=3-1=2, p(0)=−1p(0)=-1, and p(2)=(4/3)⋅4−(5/3)⋅2−1=16/3−10/3−1=2−1=1p(2)=(4/3)\cdot 4-(5/3)\cdot 2-1=16/3-10/3-1=2-1=1.

The Newton route returns the same polynomial, as Section 01 requires. The divided differences are f[−1,0]=(−1−2)/(0−(−1))=−3f[-1,0]=(-1-2)/(0-(-1))=-3 and f[0,2]=(1−(−1))/(2−0)=1f[0,2]=(1-(-1))/(2-0)=1, so f[−1,0,2]=(1−(−3))/(2−(−1))=4/3f[-1,0,2]=(1-(-3))/(2-(-1))=4/3. Then p(x)=2−3(x+1)+(4/3)x(x+1)=(4/3)x2+(−3+4/3)x+(2−3)=(4/3)x2−(5/3)x−1p(x)=2-3(x+1)+(4/3)x(x+1)=(4/3)x^2+(-3+4/3)x+(2-3)=(4/3)x^2-(5/3)x-1.

The nodes −1-1, 00, 22 carry the values 22, −1-1, 11. Build the Lagrange interpolant in P2\mathcal{P}_2, expand it into ax2+bx+cax^2+bx+c, and check all three nodes.

EXERCISE 3.2

The Newton coefficient of order 33 is a difference of two second differences, divided by the span from the first node to the last. A quadratic that already passes through the four points must be the interpolant in P3\mathcal{P}_3.

The value column is f[0]=1f[0]=1, f[1]=4f[1]=4, f[2]=9f[2]=9, f[3]=16f[3]=16.

First differences, each over a gap of 11: f[0,1]=3f[0,1]=3, f[1,2]=5f[1,2]=5, f[2,3]=7f[2,3]=7.

Second differences, each over a span of 22: f[0,1,2]=(5−3)/2=1f[0,1,2]=(5-3)/2=1 and f[1,2,3]=(7−5)/2=1f[1,2,3]=(7-5)/2=1.

Third difference: f[0,1,2,3]=(1−1)/(3−0)=0f[0,1,2,3]=(1-1)/(3-0)=0.

The Newton form is p(x)=1+3x+1⋅x(x−1)+0=1+3x+x2−x=x2+2x+1=(x+1)2p(x)=1+3x+1\cdot x(x-1)+0=1+3x+x^2-x=x^2+2x+1=(x+1)^2.

The polynomial (x+1)2(x+1)^2 lies in P3\mathcal{P}_3 and matches all four values, since its samples are 1,4,9,161,4,9,16. By uniqueness it is the interpolant, so the degree-33 coefficient is 00 for any ordering of these nodes. Equivalently, Section 04 says every third divided difference of a polynomial of degree 22 vanishes, because the third derivative is identically 00.

The nodes 0,1,2,30,1,2,3 carry the values 1,4,9,161,4,9,16. Compute the divided-difference table through order 33, write the Newton form, and explain why the coefficient of the cubic product is 00.

EXERCISE 3.3

The interpolant in P1\mathcal{P}_1 is the chord between (0,0)(0,0) and (π/2,1)(\pi/2, 1). On [0,π/2][0,\pi/2] the second derivative of sin⁡x\sin x is −sin⁡x-\sin x, whose absolute value is at most 11. The point ξ\xi lies in the open interval spanned by the nodes and the test point.

Here n=1n=1, f(x)=sin⁡xf(x)=\sin x, f(0)=0f(0)=0, f(π/2)=1f(\pi/2)=1. The chord is p(x)=(2/π) xp(x)=(2/\pi)\,x, because the slope is 1/(π/2)=2/π1/(\pi/2)=2/\pi. At the test point, p(π/4)=(2/π)⋅(π/4)=1/2p(\pi/4)=(2/\pi)\cdot(\pi/4)=1/2.

The nodal polynomial is ω(x)=x(x−π/2)\omega(x)=x(x-\pi/2), so ω(π/4)=(π/4)(π/4−π/2)=(π/4)(−π/4)=−π2/16\omega(\pi/4)=(\pi/4)(\pi/4-\pi/2)=(\pi/4)(-\pi/4)=-\pi^2/16 and ∣ω(π/4)∣=π2/16\lvert\omega(\pi/4)\rvert=\pi^2/16. Also (n+1)!=2(n+1)! = 2, and ∣f′′(t)∣=∣−sin⁡t∣≤1\lvert f''(t)\rvert=\lvert-\sin t\rvert\le 1 for every real tt, in particular on [0,π/2][0,\pi/2], which contains every candidate ξ\xi. Section 04 gives

∣sin⁡π4−p ⁣(π4)∣≤12⋅π216=π232.\left\lvert\sin\frac{\pi}{4}-p\!\left(\frac{\pi}{4}\right)\right\rvert\le\frac{1}{2}\cdot\frac{\pi^2}{16}=\frac{\pi^2}{32}.

The point ξ\xi lies in (0,π/2)(0,\pi/2).

The exact gap is available for a check and is not required to use the bound: sin⁡(π/4)=2/2\sin(\pi/4)=\sqrt{2}/2, so the absolute error is (2−1)/2(\sqrt{2}-1)/2. It sits under the bound by elementary comparisons. 2<3/2\sqrt{2}<3/2 because (3/2)2=9/4>2(3/2)^2=9/4>2, hence (2−1)/2<(1/2)/2=1/4(\sqrt{2}-1)/2<(1/2)/2=1/4. And π>3\pi>3 gives π2/32>9/32>8/32=1/4\pi^2/32>9/32>8/32=1/4. Therefore (2−1)/2<π2/32(\sqrt{2}-1)/2<\pi^2/32.

Let f(x)=sin⁡xf(x)=\sin x, with nodes 00 and π/2\pi/2. Write the interpolant in P1\mathcal{P}_1, and bound ∣f(π/4)−p(π/4)∣\lvert f(\pi/4)-p(\pi/4)\rvert by the formula in Section 04. State an interval that contains ξ\xi.

EXERCISE 3.4

For interpolation in P2\mathcal{P}_2 the nodal polynomial has degree 33, so the Chebyshev polynomial in the formula is T3T_3. Its monic multiple is T3/4T_3/4. For the equispaced nodes −1,0,1-1,0,1, differentiate x3−xx^3-x to locate the maximum of the absolute value on [−1,1][-1,1].

The recurrence gives T2(x)=2x2−1T_2(x)=2x^2-1 and T3(x)=2x(2x2−1)−x=4x3−3xT_3(x)=2x(2x^2-1)-x=4x^3-3x. The zeros solve x(4x2−3)=0x(4x^2-3)=0, so the Chebyshev nodes are x=0x=0 and x=±3/2x=\pm\sqrt{3}/2. The leading coefficient of T3T_3 is 4=224=2^2, and the monic nodal polynomial is ωC(x)=2−2T3(x)=x3−(3/4)x\omega_C(x)=2^{-2}T_3(x)=x^3-(3/4)x. Section 06 gives max⁡[−1,1]∣ωC∣=2−2=1/4\max_{[-1,1]}\lvert\omega_C\rvert=2^{-2}=1/4. The same number is visible at the critical points: ωC′(x)=3x2−3/4\omega_C'(x)=3x^2-3/4 vanishes at x=±1/2x=\pm 1/2, and ωC(1/2)=(1/2)(1/4−3/4)=−1/4\omega_C(1/2)=(1/2)(1/4-3/4)=-1/4, while ωC(±1)=±(1−3/4)=±1/4\omega_C(\pm 1)=\pm(1-3/4)=\pm 1/4.

For nodes −1,0,1-1,0,1, ωE(x)=x(x−1)(x+1)=x3−x\omega_E(x)=x(x-1)(x+1)=x^3-x. The derivative 3x2−13x^2-1 vanishes at x=±1/3x=\pm 1/\sqrt{3}. Then ωE(1/3)=(1/3)3−1/3=1/(33)−3/(33)=−2/(33)=−23/9\omega_E(1/\sqrt{3})=(1/\sqrt{3})^3-1/\sqrt{3}=1/(3\sqrt{3})-3/(3\sqrt{3})=-2/(3\sqrt{3})=-2\sqrt{3}/9 after multiplying numerator and denominator by 3\sqrt{3}. The value at −1/3-1/\sqrt{3} is the negative of this, because ωE\omega_E is odd, and both endpoints give ωE(±1)=0\omega_E(\pm 1)=0. The maximum of ∣ωE∣\lvert\omega_E\rvert on [−1,1][-1,1] is therefore 23/92\sqrt{3}/9.

Compare the squares, both positive: (23/9)2=12/81=4/27(2\sqrt{3}/9)^2=12/81=4/27 and (1/4)2=1/16(1/4)^2=1/16. Cross-multiplication gives 4⋅16=64>27=27⋅14\cdot 16=64>27=27\cdot 1, so 4/27>1/164/27>1/16, hence 23/9>1/42\sqrt{3}/9>1/4. The equispaced nodal polynomial is larger in uniform norm by the factor (23/9)/(1/4)=83/9(2\sqrt{3}/9)/(1/4)=8\sqrt{3}/9. In the error formula the derivative factor is independent of this choice; the ratio 83/98\sqrt{3}/9 is a ratio of geometric factors ∣ω∣\lvert\omega\rvert.

On [−1,1][-1,1], for interpolation in P2\mathcal{P}_2, write the Chebyshev nodes and their monic nodal polynomial, and the monic nodal polynomial of the equispaced nodes −1,0,1-1,0,1. Show that the equispaced polynomial has the larger maximum absolute value, and give the exact ratio of the two maxima.


08 · Summary

ObjectStatement
Interpolant in Pn\mathcal{P}_nThrough n+1n+1 distinct nodes there is exactly one polynomial of degree at most nn
Lagrange formp(x)=∑iyiℓi(x)p(x)=\sum_i y_i\ell_i(x), with ℓi(xk)=1\ell_i(x_k)=1 if i=ki=k and 00 otherwise
Newton formCoefficients ak=f[x0,…,xk]a_k=f[x_0,\ldots,x_k] multiply the running products (x−x0)⋯(x−xk−1)(x-x_0)\cdots(x-x_{k-1})
Error formulaf(x)−p(x)=f(n+1)(ξ) ω(x)/(n+1)!f(x)-p(x)=f^{(n+1)}(\xi)\,\omega(x)/(n+1)!, with ω(x)=∏(x−xi)\omega(x)=\prod(x-x_i)
Lebesgue comparison∥f−p∥∞≤(1+Λn)∥f−q∥∞\|f-p\|_\infty\le(1+\Lambda_n)\|f-q\|_\infty for every q∈Pnq\in\mathcal{P}_n
Equispaced nodesΛn\Lambda_n grows like 2n+1/(e nln⁡n)2^{n+1}/(e\, n\ln n); Runge's 1/(1+25x2)1/(1+25x^2) diverges uniformly
Chebyshev nodesZeros of Tn+1T_{n+1}; the monic ω\omega has uniform norm 2−n2^{-n}, the minimum possible on [−1,1][-1,1]
Hand warningThe degree-44 equispaced interpolant of Runge's function equals −11/29-11/29 at x=4/5x=4/5

The error display is the engine the next chapters quote. Chapter 04 applies it on each piece of a spline, with the degree held fixed and ω\omega local. Chapter 06 integrates it and reads off the error of a quadrature rule.

Next: Piecewise Polynomials and Splines — Chapter 04 keeps the demand that the curve hit prescribed values, and it breaks the single polynomial at the nodes so that one global ω\omega no longer multiplies a single high derivative across the whole interval.