Interpolation
3.1 Data and Interpolating Functions
1) Interpolation
Interpolation: The process of constructing a function that passes exactly through a given set of data points.
A function interpolates
if
The nodes must be distinct.
2) Interpolating Polynomial
Interpolating Polynomial: A polynomial that passes through every given data point.
For data points with distinct nodes, there exists exactly one interpolating polynomial of degree at most .
3) Polynomial Interpolation Theorem
Given points
with distinct , there exists a unique polynomial satisfying
and
4) Lagrange Basis Polynomial
Lagrange Basis Polynomial: A polynomial that equals at and at every other interpolation node.
It satisfies
5) Lagrange Interpolation
Lagrange Interpolation: An explicit representation of the unique interpolating polynomial.
Equivalently,
The Lagrange form is easy to derive but inefficient to update when new data points are added.
6) Divided Difference
Divided Difference: A recursively defined quantity used as a coefficient in Newton’s interpolation formula.
The zeroth divided difference is
The first divided difference is
Higher-order divided differences are defined by
7) Newton’s Divided-Difference Form
Newton’s Divided-Difference Polynomial: A nested representation of the interpolating polynomial.
In summation form,
The empty product for is defined as .
8) Nested Evaluation
Newton’s polynomial can be written in nested form:
where
This form can be evaluated efficiently using generalized Horner’s method.
9) Updating an Interpolating Polynomial
When a new point is added, Newton’s form can be extended by one term:
The existing coefficients do not need to be recomputed.
3.2 Interpolation Error
1) Interpolation Error
Interpolation Error: The difference between the original function and its interpolating polynomial.
The error is zero at every interpolation node:
2) Interpolation Error Formula
Suppose interpolates at the distinct nodes
If has continuous derivatives, then
for some between the smallest and largest values among
3) Interpolation Error Bound
If
throughout the interpolation interval, then
The error depends on:
- The size of the derivative .
- The positions of the interpolation nodes.
- The distance between and the nodes.
4) Node Polynomial
Node Polynomial: The polynomial whose roots are the interpolation nodes.
The interpolation error can be written as
Choosing nodes that minimize the maximum value of reduces the worst-case interpolation error.
5) Runge Phenomenon
Runge Phenomenon: Large oscillations near the endpoints of an interval when a high-degree polynomial interpolates data at equally spaced nodes.
Increasing the polynomial degree does not necessarily reduce the error.
The Runge phenomenon is especially severe when:
- The degree is high.
- The nodes are equally spaced.
- The function changes rapidly near the endpoints.
6) Avoiding the Runge Phenomenon
Common approaches include:
- Using Chebyshev nodes.
- Using piecewise low-degree polynomials.
- Using cubic splines instead of one high-degree polynomial.
3.3 Chebyshev Interpolation
1) Chebyshev Polynomial
Chebyshev Polynomial: The degree- polynomial defined on by
The first Chebyshev polynomials are
2) Chebyshev Recurrence
Chebyshev polynomials satisfy
This recurrence provides an efficient way to generate higher-degree Chebyshev polynomials.
3) Chebyshev Polynomial Properties
For ,
The degree and leading coefficient are
and
The endpoint values are
and
4) Chebyshev Roots
The roots of are
These roots are called Chebyshev nodes on .
They are more closely spaced near the endpoints than near the center.
5) Chebyshev Minimax Property
Among all monic polynomials of degree , the scaled Chebyshev polynomial
has the smallest possible maximum absolute value on .
Therefore,
when are the Chebyshev roots.
6) Chebyshev Interpolation
Chebyshev Interpolation: Polynomial interpolation using Chebyshev nodes instead of equally spaced nodes.
Chebyshev nodes reduce the maximum interpolation error and suppress endpoint oscillations.
7) Chebyshev Nodes on a General Interval
To transform Chebyshev nodes from to , use
for
8) Chebyshev Node-Polynomial Bound
For Chebyshev nodes on ,
Therefore, if
on , then
3.4 Cubic Splines
1) Piecewise Polynomial
Piecewise Polynomial: A function defined by different polynomial expressions on different subintervals.
The points at which adjacent polynomial pieces meet are called knots.
2) Knot
Knot: A data node at which two adjacent spline pieces meet.
For ordered nodes,
the interior knots are
3) Linear Spline
Linear Spline: A piecewise linear function that joins consecutive data points with straight-line segments.
On ,
Linear splines are continuous but generally do not have continuous first derivatives at the knots.
4) Cubic Spline
Cubic Spline: A piecewise cubic function that interpolates the data and has continuous first and second derivatives.
On each interval ,
5) Interpolation Conditions
Each spline piece must interpolate its two endpoints:
and
6) First-Derivative Continuity
At every interior knot,
This condition prevents corners at the knots.
7) Second-Derivative Continuity
At every interior knot,
This condition makes the curvature continuous.
8) Endpoint Conditions
The interpolation and continuity conditions leave two degrees of freedom.
Two additional endpoint conditions are required to determine a unique cubic spline.
9) Natural Cubic Spline
Natural Cubic Spline: A cubic spline whose second derivatives vanish at both endpoints.
and
A unique natural cubic spline exists for any set of data points with distinct, ordered nodes.
10) Curvature-Adjusted Spline
Curvature-Adjusted Spline: A cubic spline with prescribed second derivatives at the endpoints.
and
This allows direct control of the endpoint curvatures.
11) Clamped Cubic Spline
Clamped Cubic Spline: A cubic spline with prescribed first derivatives at the endpoints.
and
A clamped spline is useful when the endpoint slopes are known.
12) Parabolically Terminated Spline
Parabolically Terminated Spline: A cubic spline whose first and last pieces have degree at most two.
and
Equivalently,
and
13) Not-a-Knot Spline
Not-a-Knot Spline: A cubic spline whose first two pieces form the same cubic polynomial and whose last two pieces form the same cubic polynomial.
and
Equivalently, the third derivative is continuous at and .
These two points are effectively not treated as knots.
14) Spline Interval Differences
Define
and
After solving for , the remaining coefficients are
and
15) Natural Spline System
For the interior coefficients,
for
For a natural spline,
The resulting coefficient matrix is tridiagonal and strictly diagonally dominant.
16) Spline Advantages
Compared with one high-degree interpolating polynomial, cubic splines:
- Use low-degree polynomial pieces.
- Avoid severe global oscillations.
- Provide continuous slopes and curvatures.
- Require solving a structured tridiagonal system.
- Change mainly near modified data points.
3.5 Bézier Curves
1) Parametric Curve
Parametric Curve: A curve whose coordinates are functions of a parameter .
A parametric representation can describe curves that are not functions of .
2) Cubic Bézier Curve
Cubic Bézier Curve: A parametric cubic curve determined by four points:
The curve is
where
3) Endpoints
The first and last points are the endpoints of the curve.
and
The curve generally does not pass through the two interior control points.
4) Control Points
Control Points: The points and that determine the shape and endpoint tangent directions of the curve.
The initial tangent is
The final tangent is
Thus:
- determines the starting direction.
- determines the ending direction.
5) Coordinate Form
Let
Then
and
6) Power-Basis Form
A cubic Bézier coordinate can also be written as
where
and
The same formulas apply to .
7) Convex Hull Property
Convex Hull Property: A Bézier curve lies entirely within the convex hull of its control points.
This property makes the curve predictable and useful in geometric design.
8) Bézier Spline
Bézier Spline: A piecewise curve formed by joining multiple Bézier curves.
For positional continuity between two pieces,
For matching tangent directions, the adjacent control points and shared endpoint should be collinear.
Bézier splines are widely used in:
- Computer graphics
- Font outlines
- Vector graphics
- Computer-aided design
- PDF and PostScript paths
Comparison of Interpolation Methods
| Method | Representation | Main Advantage | Main Limitation |
|---|---|---|---|
| Lagrange | Single polynomial | Explicit formula | Expensive to update |
| Newton Divided Differences | Single nested polynomial | Efficient evaluation and updating | High degree may oscillate |
| Chebyshev Interpolation | Polynomial with optimized nodes | Reduces maximum error | Nodes must be chosen |
| Linear Spline | Piecewise linear | Simple and local | Not smooth at knots |
| Cubic Spline | Piecewise cubic | Smooth and stable | Requires endpoint conditions |
| Bézier Curve | Parametric cubic | Direct shape control | Does not automatically interpolate control points |
Essential Concepts
- Interpolation: Constructs a function that passes through given data points.
- Interpolating Polynomial: The unique degree- or lower polynomial through distinct nodes.
- Lagrange Basis: Equals at one node and at every other node.
- Lagrange Interpolation: Expresses the polynomial as a weighted sum of basis polynomials.
- Divided Difference: Recursively computes coefficients for Newton’s form.
- Newton Interpolation: Provides a nested polynomial that is easy to evaluate and update.
- Interpolation Error: The difference .
- Node Polynomial: The product controlling part of the interpolation error.
- Runge Phenomenon: Endpoint oscillation caused by high-degree interpolation at equally spaced nodes.
- Chebyshev Polynomial: The polynomial .
- Chebyshev Nodes: Optimized nodes that reduce the maximum interpolation error.
- Spline: A piecewise polynomial joined at knots.
- Cubic Spline: A piecewise cubic function with continuous first and second derivatives.
- Natural Spline: Has zero second derivative at both endpoints.
- Clamped Spline: Has specified slopes at both endpoints.
- Not-a-Knot Spline: Uses the same cubic across the first and last interior knots.
- Bézier Curve: A parametric cubic controlled by two endpoints and two control points.
- Control Point: Determines a Bézier curve’s shape and tangent direction.
- Convex Hull Property: Keeps a Bézier curve within the region formed by its control points.