Connecting discrete observations to continuous reality is a foundational task in scientific computation. In physical experiments, telemetry streams, and numerical simulations, we rarely hold closed-form mathematical functions. Instead, we receive a finite set of sampled data points:
How do we construct a continuous model that passes exactly through each observation?
Polynomials are the primary algebraic candidate: they are infinitely differentiable, straightforward to integrate and differentiate analytically, and fast to evaluate on digital hardware using Horner's nested scheme.
This note establishes the core algebraic mechanics of polynomial interpolation [1][1] R. L. Burden and J. D. Faires, Numerical Analysis, 9th ed. Brooks/Cole, Cengage Learning, 2011., [2][2] M. U. School of Mathematics, “MTH2051: Introduction to Computational Mathematics: Course Lecture Notes and Study Workbooks,” 2026. Monash University course materials and study workbooks, Semester 2, 2026.:
- The Interpolation Problem: Formulating exact matching in the polynomial vector space ;
- Approximation versus Interpolation: Why Weierstrass's existential promise differs fundamentally from discrete interpolation;
- The Lagrange Form: Building the interpolant using geometric selector switches ();
- Existence and Uniqueness: Establishing why distinct points define exactly one polynomial of degree at most ;
- The Newton Divided-Difference Form: Constructing the interpolant incrementally so that new data points stream in at marginal cost.
The interpolation problem
Given distinct real nodes and corresponding values , a polynomial is an interpolating polynomial if
Here denotes the real vector space of all polynomials of degree at most :
The space is parametrized by coefficients , so its dimension is . Two distinct data points determine a straight line in . Three non-collinear points determine a parabola in . In general, matching scalar conditions requires an -dimensional function space.
Approximation versus interpolation
Before constructing the polynomial, we must distinguish between two easily confused concepts: approximating a continuous function and interpolating discrete samples.
Let . For every tolerance , there exists an integer and a polynomial such that
The Weierstrass theorem provides an existential guarantee: continuous functions on compact intervals can be approximated uniformly by polynomials of sufficiently high degree.
However, Weierstrass does not claim that the unique polynomial interpolating at equally spaced sample points will converge to as . In fact, forcing a high-degree global polynomial through equidistant points can trigger catastrophic boundary divergence. The distinction is fundamental:
- Approximation asks for some polynomial that remains within an -tube across the entire interval ;
- Interpolation constructs the unique polynomial matching the function values at prescribed discrete nodes .
This interactive figure needs JavaScript.
The Lagrange basis
To construct the interpolating polynomial directly, we look for a basis of consisting of "selector switches": for each node , we construct a basis polynomial that evaluates to at and vanishes at all foreign nodes ().
For pairwise distinct nodes , the -th Lagrange basis polynomial is defined by
It satisfies the Kronecker delta selector property:
The algebraic design is direct:
- The numerator has degree and places a root at every node other than ;
- The denominator is a non-zero scalar constant that normalizes the value at to exactly .
Given sample values , the Lagrange interpolating polynomial is
Evaluating at any node isolates a single term:
Thus satisfies all interpolation conditions by construction.
Consider the data points , , and , with . The three quadratic basis polynomials are:
Assembling the linear combination:
Checking the nodes: , , and .
The polynomials :
- Are linearly independent in ;
- Form a basis for ;
- Satisfy the partition of unity identity:
To prove linear independence, suppose for all . Evaluating this polynomial identity at yields
for each . Hence all coefficients vanish, establishing linear independence.
Since and the collection contains linearly independent polynomials, it spans and forms a basis.
Finally, consider the constant function . Its unique interpolant in through the nodes is itself. Expanding it in the Lagrange basis gives , which proves the partition of unity.
Existence and uniqueness
Let be pairwise distinct real numbers, and let be arbitrary real numbers. There exists exactly one polynomial such that
Existence. The Lagrange formula is a linear combination of elements of , so . By the selector property, for all .
Uniqueness. Suppose also satisfies for . Define the difference polynomial
Since is a linear vector space, . Evaluating at each node:
Thus has at least distinct roots. By the fundamental property of polynomials, a non-zero polynomial of degree at most can have at most roots. Therefore must be the zero polynomial:
The Newton divided-difference form
Although the Lagrange form offers an elegant closed-form proof of existence, it is computationally inefficient when data arrives incrementally. Adding a new sample point alters the denominator and numerator of every basis polynomial , requiring an complete reconstruction.
The Newton form solves this by constructing the interpolant progressively:
Each new basis element vanishes at all previous nodes , preserving the values already matched and requiring only a single new coefficient .
Let be distinct nodes with values . The zeroth divided difference is
The first divided difference is
Higher-order divided differences are defined recursively for by
The denominator of a -th order divided difference is always the span between the two outermost nodes, .
The unique polynomial interpolating at the distinct nodes can be expressed in Newton form as
Let be the unique polynomial in interpolating at . Consider the difference
Both polynomials match at , so their difference has roots at each of these points. By the factor theorem:
where is the leading coefficient of .
Telescoping this relation from to yields:
It remains to identify . Using the Neville recurrence relation:
Equating the coefficient of on both sides shows that the leading coefficient satisfies the exact divided-difference recurrence:
By induction on , the leading coefficient of is .
The divided-difference table
Divided differences are computed systematically in a triangular array:
The Newton coefficients are the bold entries along the top diagonal.
Suppose we are given three initial observations: , , and .
- Zeroth order: , , .
- First order:
- Second order:
The quadratic interpolant is:
Now suppose a fourth data point arrives. We do not rebuild the table. We simply append the new row:
- ;
- ;
- .
The updated cubic polynomial is obtained by adding a single term:
At the previous nodes , the product factor vanishes, preserving the previously matched values automatically.
Horner nested evaluation
Expanding the Newton form into monomial powers is numerically unstable and computationally wasteful. Instead, we evaluate the polynomial in nested Horner form:
Algorithm 1 Horner Evaluation for Newton Interpolation
Require: nodes , coefficients , evaluation point
Ensure: value
1:
2:for downto do
3:
4:end for
5:return
Evaluating requires only additions and multiplications, achieving runtime complexity. The algorithmic trade-offs across representations are summarized below [1][1] R. L. Burden and J. D. Faires, Numerical Analysis, 9th ed. Brooks/Cole, Cengage Learning, 2011.:
Comparison of interpolation forms
| Metric | Lagrange Form | Newton Form |
|---|---|---|
| Construction Cost | ||
| Adding One Node | complete recomputation | append one diagonal entry |
| Evaluation Cost | directly ( via barycentric) | via Horner nested scheme |
| Theoretical Utility | Proving existence and analytical derivations | Streaming data and numerical algorithms |
Both forms produce the exact same algebraic polynomial, guaranteed by the uniqueness theorem.
Beyond the nodes
We have resolved how to build polynomials that pass through discrete sample points. However, the fundamental question in numerical analysis remains: how does the interpolating polynomial behave between the nodes?
Does increasing the number of sample points guarantee that the polynomial converges to the underlying function?
In the next note, Interpolation Error and Chebyshev Nodes, we derive Cauchy's error remainder formula, investigate the catastrophic edge oscillations of the Runge phenomenon, and discover how Chebyshev node clustering resolves this instability.
References
- [1] R. L. Burden and J. D. Faires, Numerical Analysis, 9th ed. Brooks/Cole, Cengage Learning, 2011. a b
- [2] M. U. School of Mathematics, “MTH2051: Introduction to Computational Mathematics: Course Lecture Notes and Study Workbooks,” 2026. Monash University course materials and study workbooks, Semester 2, 2026. ↩
Comments