Polynomial Interpolation
00 · Symbol Glossary
The vector space of polynomials of degree at most , including the zero polynomial. It is the function class in which an interpolant through nodes is sought. Read "P sub n."
The unique element of that equals at the node and equals at every other node. The Lagrange form of the interpolant is the combination .
The coefficient of the degree- 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 for some when is smooth.
The monic product . It vanishes at every node, and it is the geometric factor in the interpolation error. Read "omega of x."
A point, depending on the evaluation site and on , that lies in the smallest interval containing that site and the nodes. The error formula evaluates there. Its exact location is unknown; bounds replace it by a maximum.
The maximum of 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 .
The degree- polynomial defined by , with leading coefficient for . Its zeros are the Chebyshev nodes that keep 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 year and 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 .
Let be nodes and let be corresponding values. A polynomial interpolates the data when
The nodes are distinct when for . Throughout this chapter, is the upper bound on the degree: conditions, polynomials drawn from .
Plain language: the interpolant is the unique curve of degree at most through the dots. There are dots, sitting at distinct horizontal positions, and the curve that threads them is one polynomial from . The degree may land strictly below when the dots happen to lie on a simpler polynomial; the class that makes the curve unique is still degree at most .
One algebraic fact carries uniqueness. If has distinct roots, then each root contributes a linear factor, so would have degree unless the constant is . Hence is the zero polynomial.
Write a candidate as . The interpolation conditions are the square linear system with entries , rows and columns indexed from . The coefficient matrix is the Vandermonde matrix of the nodes. If and both interpolate the same data, the coefficient vector of lies in the kernel of . That difference is an element of with distinct roots, so it is the zero polynomial. The kernel is trivial, and there is at most one interpolant in .
Existence is the explicit Lagrange polynomial in Section 02, which meets every value and therefore shows that has a solution. Together the two halves say is invertible. Every later formula in the chapter returns that same polynomial: a second expression is a rearrangement of the one solution.
Take , so the class is , and set with values , .
What is attempted: a polynomial with and .
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 . The Lagrange denominator 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 , the two conditions collapse to one condition on a two-dimensional space, and infinitely many elements of pass through that single point. Distinct nodes are the hypothesis that makes "exactly one" true.
The interpolant lives in , so its degree may come out strictly below . Three collinear samples have a unique interpolant in , and that interpolant is a polynomial of degree . Dropping to a smaller degree is a successful interpolation. Demanding degree exactly 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 there and at the others, then weighting those pieces by the prescribed values.
For distinct nodes and values , the Lagrange basis polynomials and the Lagrange interpolant are
The product for runs over the indices with . Each denominator is a nonzero constant. The numerator is monic of degree after it is expanded, so and therefore .
Plain language: the Lagrange form is a blend of spikes that are at one node and at the others. Each spike belongs to node , the interpolant weights that spike by the height , and the weighted spikes are added. At a sample node every spike but one is , so the blend equals the height prescribed there; between the nodes the spikes overlap.
At a node with , the factor in the numerator of is zero, so . At , every factor equals , so . Hence . 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 to be formed.
Write the three basis polynomials. The denominators are , , and .
Weight by the values , , and and combine. The factor on the third basis polynomial simplifies to before expansion:
Expand. , so the first term is . The second term is . The third is . The coefficients are . The coefficients are . The constant is .
Check the nodes. . . . Each value is the prescribed . Section 01 then says this quadratic is the only element of with that property.
The values at are . The interpolant agrees with at those three nodes and nowhere else is required to. At , the polynomial returns , while . The gap of is legal: interpolation fixes values at the nodes and is silent between them until the error formula of Section 04.
The data , , ask for an element of .
What is attempted: a quadratic with required in advance, on the grounds that three points "determine a parabola."
Where it breaks: already lies in and meets all three values. Uniqueness forbids a second interpolant, so there is no solution with . The Lagrange sum produces ; the coefficients cancel.
Consequence: "degree at most " is the class in the theorem. "Degree exactly " 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 . Newton's form is the same polynomial written so that the old coefficients stay put and the new node appends one term.
Set . For and any window of distinct nodes,
The Newton form of the interpolant is
The term is the constant . The sum in the display starts at , 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 vanishes at . Consequently the partial sum that stops at already interpolates the first data points, and later terms do not disturb those values. Evaluating at solves for and recovers the divided-difference recurrence. By Section 01 this equals the Lagrange interpolant: same nodes, same values, same space.
The leading term of the degree- product is . So is the leading coefficient of the unique interpolant through those 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: , and likewise for longer brackets.
Fill the value column. , , .
Compute first differences. . . Each numerator is a difference of values; each denominator is the corresponding node gap.
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:
Assemble and expand. .
Discount factors , , at maturities , , determine an element of .
The first differences are and . The second difference uses the gap :
At , which sits between the pillars, , so the last term is . The linear term is . Hence . The curve value lies between the neighboring pillar values and . Differentiating the expanded form gives , which is negative for every . On the hull of these three pillars the interpolant is still a decreasing discount factor.
The same quadratic, evaluated at maturity .
What is attempted: .
Where it breaks: , so . Nothing in the interpolation conditions speaks about . The nodal factor is the size Section 04 multiplies into the unknown second derivative; three pillars on do not bound that derivative out at .
Consequence: is the polynomial's value, and it is not a discount factor. The identity holds at . Outside the hull of the nodes the formula is an extrapolation, and the error factor grows like the product of the distances to every pillar.
04 · The Error Formula
Matching values leaves a definite gap at every other . The gap factors into a derivative of , which the nodes do not control, and the nodal polynomial , which they do.
Let be distinct nodes in an interval, and let have a continuous derivative of order on an open interval containing the nodes and the evaluation point . Let interpolate at the nodes, and write . Then there exists a point , strictly inside the smallest interval that contains and all the nodes, such that
If itself is a node, both sides are . If on the interval that contains , then
Plain language: the error formula is the Taylor remainder, with the sample nodes in place of one expansion point. The degree- Taylor gap at a single center carries and a factorial , 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 , 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 , using the value . The enlarged Newton polynomial interpolates the original data, because the added term contains the product , and it interpolates by construction of the last coefficient. Evaluating there yields the identity
The next proof identifies the divided difference with . In particular, for any distinct in the interval of smoothness,
for some in the interval they span: apply the error formula to the first points and read the last Newton coefficient at . When vanishes identically, , every divided difference of order vanishes, and .
If equals some node, both sides of the claimed formula are zero. Now fix distinct from every , and define
Then , and by the choice of . So has at least 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 . The derivative has at least distinct zeros. Repeat. After applications, has at least one zero; call it . The point lies in the open interval spanned by and the nodes.
The derivative of order kills , since . The nodal polynomial is monic of degree , so . Therefore
Solve for and substitute the definition of . The error formula follows.
Calculus Chapter 11 writes the gap between and its degree- Taylor polynomial at a single center as . The derivative order and the factorial match the formula above. The geometric factor is what becomes when every interpolation condition has coalesced at the single point . The nodes in this chapter stay distinct. The two remainders share an engine and differ in the polynomial that multiplies .
Name the interpolant. Here , , . The unique element of through those points is the chord . At the test point, .
Evaluate . , so and . The factor is .
Bound the derivative on the whole interval that may contain . The nodes and the test point all lie in , and is increasing, so on that interval. The legal ceiling is , attained as the value at the right endpoint, not as a value we may choose.
Apply the bound. . The unknown has been removed. The bound does not require a numerical value of .
On the same data, replace by , then quote the number as an error bound.
Where it breaks: the theorem requires at every in the interval that contains , and is only known to lie somewhere in . On that interval for every , so fails at the point the formula actually uses.
Consequence: is smaller than the expression the theorem permits. It is not a bound. The legal ceiling on is , and the legal numerical bound is .
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 whose size is a power of the local spacing. Chapter 06 integrates it. A Newton–Cotes rule is , and the quadrature error is
with 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 shrinks faster than grows. Raising changes both factors, and it changes through the placement of the nodes. Equispaced nodes, the default when a table is printed at a constant step, make worst near the ends of the interval.
On an interval containing the nodes, the Lebesgue function and the Lebesgue constant of those nodes are
For every comparison polynomial and every continuous , if interpolates at the nodes, then
where is the maximum of the absolute value on .
Plain language: the Lebesgue function adds the absolute values of the Lagrange spikes at a point, and the Lebesgue constant is the largest value that sum attains on the interval. It is the inflation allowed against any other polynomial from the same : on the whole interval, the interpolant's uniform error is at most 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 that approximates well. The interpolant is then at most a factor worse than that comparison. The short proof is linearity. The interpolant of is itself, by uniqueness. Hence interpolates the sampled values of , and
Each is at most , so . The triangle inequality produces the factor .
For equispaced nodes the constant is hostile. As the degree tends to infinity,
with the natural logarithm and its base. The right-hand side grows exponentially. A family of comparison polynomials may converge to rapidly while still diverges. The equispaced element of is the source of that divergence.
Let on , and let interpolate at the equispaced nodes for , with . Then is unbounded as . The blow-up concentrates near the endpoints . 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 is smooth and stays positive and at most , and the nodes are spaced evenly across . Raising the degree rebuilds an equispaced interpolant whose oscillations near 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 sit at , because forces . They lie at a fixed complex distance from the origin, so high derivatives of on are large. The error formula multiplies that derivative factor by . Equispaced nodes make much larger near than near the middle, and for this the product does not tend to uniformly. The full divergence proof uses that complex-analytic setup; the hand calculation below already shows the endpoint disease at degree , where every arithmetic step is rational.
Record the samples. Nodes . The function is even, and , , . The same values recur at the negative nodes.
Use symmetry and uniqueness. If interpolates these data, so does , because the data are even. Section 01 forces . A general even element of is .
Read the three coefficients off three nodes. gives . Then , and .
Clear the second equation. Multiply by : , where . Subtract :
Evaluate at , between the nodes and . Here and . The quadratic contribution is , after cancelling and dividing and by . The degree- contribution, using and , is .
Add. . Since and ,
Degree on this has already produced , about , against , about .
What is attempted: the inference that moving to degree , , or with the same equispaced pattern must reduce the uniform error, because more interpolation conditions are being enforced.
Where it breaks: each new degree rebuilds and replaces . Runge's theorem says the uniform norm of the error on is unbounded along this sequence. The Lebesgue constant of the equispaced nodes grows like , 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 .
Consequence: pointwise agreement at more and more equispaced nodes coexists with a uniform error that refuses to tend to . The sign error 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 . Among all choices of distinct nodes in , the smallest possible value of is attained by clustering nodes toward the endpoints. Those nodes are the zeros of a Chebyshev polynomial.
The Chebyshev polynomials are , , and
They satisfy . The Chebyshev nodes for interpolation in are the zeros of ,
Plain language: Chebyshev nodes are denser samples near the ends, placed there to tame that wiggle. They are the zeros of , and the cosine relation puts them on equal steps of angle, which crowd toward and leave wider gaps near the middle. The resulting monic nodal polynomial has the smallest possible maximum on among monic polynomials of degree , 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 and . The addition formula is the same three-term relation the polynomials obey, so the two sequences agree for every . In particular for every , since it equals at .
The zeros are the angles where , that is , so , and produces distinct cosines in .
The leading coefficient of is for : true for , and the recurrence multiplies the leading term by while the subtracted polynomial has lower degree. Thus has leading coefficient , and is monic of degree . Its roots are the Chebyshev nodes, so it is their nodal polynomial:
The maximum is because and attains .
Clustering is the cosine map, read off the derivative. Equal steps in the angle produce horizontal steps , and when . The gaps are therefore proportional to : large near , where the sine is near , and small near , where the sine vanishes. The nodes crowd the endpoints.
Let be monic of degree , and write . Suppose, for a contradiction, that at every . Let , which is monic, and set . The degree- terms cancel, so .
At the points for , the identity with replaced by gives . Hence . Because , the difference is nonzero and has the sign of . Along the ordered points , the values of therefore change sign on each of the consecutive gaps. A continuous function with a sign change on an interval has a root in that interval, so has at least distinct roots. A nonzero polynomial of degree at most has at most roots. This contradiction forces the supposition to fail.
Every monic polynomial of degree therefore satisfies . The Chebyshev choice attains , so it is optimal for the uniform size of .
For the relevant polynomial is , with zeros . The monic nodal polynomial is . On its absolute value is at most , and it equals at , , and , with signs .
The equispaced choice for two nodes is the pair of endpoints, with . Then , which is twice . The derivative factor in the error formula is unchanged by this comparison; the entire improvement available from moving the nodes is the drop in , here from down to at the midpoint.
Chebyshev nodes minimize on among monic polynomials of degree . 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 is not a trade one can book. Chapter 04 answers that constraint by abandoning a single global element of : 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, . A comparison error that decays geometrically dominates a logarithm, so the node choice that minimizes keeps from swallowing the approximation. Applied to Runge's function, the Chebyshev interpolants converge to uniformly at a geometric rate in . That rate is the counterpart of the divergence theorem in Section 05; its proof tracks a Bernstein ellipse out to the poles at , 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
Write the three Lagrange basis polynomials for the nodes , , and before multiplying by the values. Each denominator is a product of two nonzero node gaps.
The basis polynomials are , because the denominator is ; , because the denominator is ; and , because the denominator is .
Weight by , , and . Then . The middle contribution is . The last is .
The coefficients add as . The coefficients add as . The constant term is . Therefore .
Checks: , , and .
The Newton route returns the same polynomial, as Section 01 requires. The divided differences are and , so . Then .
The nodes , , carry the values , , . Build the Lagrange interpolant in , expand it into , and check all three nodes.
The Newton coefficient of order 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 .
The value column is , , , .
First differences, each over a gap of : , , .
Second differences, each over a span of : and .
Third difference: .
The Newton form is .
The polynomial lies in and matches all four values, since its samples are . By uniqueness it is the interpolant, so the degree- coefficient is for any ordering of these nodes. Equivalently, Section 04 says every third divided difference of a polynomial of degree vanishes, because the third derivative is identically .
The nodes carry the values . Compute the divided-difference table through order , write the Newton form, and explain why the coefficient of the cubic product is .
The interpolant in is the chord between and . On the second derivative of is , whose absolute value is at most . The point lies in the open interval spanned by the nodes and the test point.
Here , , , . The chord is , because the slope is . At the test point, .
The nodal polynomial is , so and . Also , and for every real , in particular on , which contains every candidate . Section 04 gives
The point lies in .
The exact gap is available for a check and is not required to use the bound: , so the absolute error is . It sits under the bound by elementary comparisons. because , hence . And gives . Therefore .
Let , with nodes and . Write the interpolant in , and bound by the formula in Section 04. State an interval that contains .
For interpolation in the nodal polynomial has degree , so the Chebyshev polynomial in the formula is . Its monic multiple is . For the equispaced nodes , differentiate to locate the maximum of the absolute value on .
The recurrence gives and . The zeros solve , so the Chebyshev nodes are and . The leading coefficient of is , and the monic nodal polynomial is . Section 06 gives . The same number is visible at the critical points: vanishes at , and , while .
For nodes , . The derivative vanishes at . Then after multiplying numerator and denominator by . The value at is the negative of this, because is odd, and both endpoints give . The maximum of on is therefore .
Compare the squares, both positive: and . Cross-multiplication gives , so , hence . The equispaced nodal polynomial is larger in uniform norm by the factor . In the error formula the derivative factor is independent of this choice; the ratio is a ratio of geometric factors .
On , for interpolation in , write the Chebyshev nodes and their monic nodal polynomial, and the monic nodal polynomial of the equispaced nodes . Show that the equispaced polynomial has the larger maximum absolute value, and give the exact ratio of the two maxima.
08 · Summary
| Object | Statement |
|---|---|
| Interpolant in | Through distinct nodes there is exactly one polynomial of degree at most |
| Lagrange form | , with if and otherwise |
| Newton form | Coefficients multiply the running products |
| Error formula | , with |
| Lebesgue comparison | for every |
| Equispaced nodes | grows like ; Runge's diverges uniformly |
| Chebyshev nodes | Zeros of ; the monic has uniform norm , the minimum possible on |
| Hand warning | The degree- equispaced interpolant of Runge's function equals at |
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 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 no longer multiplies a single high derivative across the whole interval.