In both Polynomial Interpolation and Hermite Interpolation, we constructed a single, global polynomial covering the entire domain .
Global polynomials suffer from a fundamental architectural flaw: global stiffness. Because a polynomial of degree is defined by a single formula, perturbing a single data point sends ripples across the entire interval. Furthermore, as the number of data points grows into hundreds or thousands, global polynomials become computationally ill-conditioned.
The modern resolution is piecewise approximation: partition the domain into smaller subintervals, fit a low-degree polynomial on each piece, and glue them together smoothly at the knots.
This note develops the theory of piecewise interpolation and cubic splines [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.:
- Piecewise Linear Interpolation: Proving the sharp error bound;
- Piecewise Quadratic Interpolation: Matching midpoints for local accuracy;
- Cubic Splines: Balancing smoothness against degrees of freedom;
- Boundary Conditions: Contrasting Natural, Clamped, and Not-a-knot conditions, and the second-order boundary error qualification;
- The Tridiagonal System: Deriving the three-moment equation and solving it in time;
- Method Comparison: A comprehensive decision map for interpolation techniques.
Piecewise linear interpolation
The simplest piecewise method connects adjacent data points with straight line segments.
Let partition into subintervals. On each subinterval , the linear interpolant is
The global piecewise linear interpolant is defined by for .
At each shared knot , the adjacent pieces agree in value: . Therefore . However, the slopes and generally differ, so has sharp corners and does not belong to .
The sharp uniform error bound
Let have length . The quadratic function satisfies
attained uniquely at the midpoint .
Expanding , its derivative is . Setting locates the unique critical point at .
Since , is concave down, and its maximum value is:
Because at the endpoints, the maximum on is exactly .
Let and let be the maximum step size. Then
On each subinterval , the Cauchy interpolation error formula for states that for each , there exists such that
Taking absolute values and applying Lemma 1:
Taking the maximum over all subintervals yields the global bound.
A crude bound that bounds and independently would yield . Utilizing the parabola vertex sharpens the leading constant from to , making the bound four times tighter. The convergence rate is second-order: halving the mesh size reduces the error by a factor of four.
Piecewise quadratic interpolation
To achieve higher accuracy, we can construct a quadratic polynomial on each subinterval by evaluating at the midpoint in addition to the endpoints:
On each subinterval, this is a 3-node Lagrange interpolation problem. If , the local error has the form
yielding third-order convergence .
However, adjacent quadratic pieces still fail to match in slope at the knots : . The curve remains non-differentiable at the knots.
Cubic splines
To eliminate slope and curvature discontinuities without increasing the polynomial degree to global heights, we turn to cubic splines.
The term spline originally referred to a flexible wooden strip used by shipbuilders and draftsmen, pinned down at discrete points with lead weights (called ducks) to trace fair, naturally smooth curves. Mechanically, the strip bends to minimize strain energy, producing a continuous second derivative across all joints.
Let . A function is a cubic spline interpolant for through the data if:
- Piecewise Cubic: On each subinterval , is a polynomial of degree at most ;
- Interpolation: for all ;
- Smoothness: , , and are continuous across the entire interval .
Counting constraints and degrees of freedom
Let us determine whether a cubic spline is uniquely determined:
- There are subintervals, each carrying a cubic polynomial ;
- Each cubic polynomial has coefficients, giving total unknowns;
- Endpoint values on each piece: Matching the given data at both ends of each subinterval requires and for each , contributing equations;
- First derivative continuity: Matching at the interior knots contributes equations;
- Second derivative continuity: Matching at the interior knots contributes equations.
Summing all continuity and interpolation conditions:
Subtracting from the degrees of freedom leaves:
To specify the spline uniquely, we must supply exactly two additional boundary conditions.
Spline boundary conditions
Three standard boundary specifications are used in numerical practice:
- Natural (Free) Boundary Conditions:
The curvature is forced to zero at the boundary endpoints, mimicking a physical beam with free ends. 2. Clamped (Complete) Boundary Conditions:
The boundary slopes are clamped to match the true derivative of . 3. Not-a-Knot Boundary Conditions:
This forces and , so and cease to be active knots (requiring ).
Accuracy qualification: the boundary curvature trap
Textbooks frequently state that cubic splines converge at fourth order: . While true for clamped splines and not-a-knot splines on refining uniform meshes, this does not hold universally for natural splines.
If , clamped boundary conditions guarantee
However, natural boundary conditions force . If the true function has non-zero boundary curvature ( or ), the spline suffers from boundary curvature incompatibility.
Consider on . Here , yet the natural spline cannot reproduce because . As a consequence, the global error rate of a natural spline degrades to second order:
Fourth-order convergence is restored for natural splines only if the true function naturally satisfies .
Derivation of the tridiagonal system
To compute the spline efficiently, we do not solve for the polynomial coefficients directly. Instead, we express each cubic piece in terms of its second derivatives at the knots:
Since each is cubic, its second derivative is linear on . Since and , the linear Lagrange interpolant gives
Integrating twice and using the interpolation conditions and yields the closed-form expression:
By construction, this formula guarantees value interpolation and second-derivative continuity. It remains only to enforce first-derivative continuity at each interior knot:
Differentiating and equating the one-sided limits at produces the celebrated Three-Moment Equation:
For , the knot second derivatives satisfy
For natural boundary conditions, setting reduces this to a square linear system of size for the interior unknowns :
Notice that for every row :
The coefficient matrix is strictly diagonally dominant and symmetric positive-definite. By the Gershgorin circle theorem, it is non-singular and well-conditioned.
Furthermore, because the matrix is tridiagonal, it can be solved using the Thomas algorithm (tridiagonal Gaussian elimination) in time and storage.
In standard reference texts such as Burden and Faires [1][1] R. L. Burden and J. D. Faires, Numerical Analysis, 9th ed. Brooks/Cole, Cengage Learning, 2011., each cubic piece is expanded about its left knot:
Because , the second derivatives map directly to the textbook coefficients:
Dividing the three-moment equation by yields the textbook's tridiagonal system for the unknown coefficients .
This interactive figure needs JavaScript.
Method comparison
We can now summarize the interpolation methods developed across the curriculum in a comparative decision table:
| Method | Prescribed Data | Degree Bound | Global Smoothness | Convergence Rate | Locality & Sensitivity |
|---|---|---|---|---|---|
| Lagrange / Newton | Values | (Global) | Varies (Runge divergence on uniform grids) | Non-local: moving one point affects the entire curve | |
| Chebyshev | Values at Chebyshev roots | (Global) | Geometric / Spectral for analytic | Non-local: requires freedom to select node locations | |
| Hermite | Values and slopes | (Global) | locally | Non-local: matches tangents, but global degree grows | |
| Piecewise Linear | Values | (Local) | with sharp constant | Strictly Local: perturbation affects only adjacent pieces | |
| Piecewise Quadratic | Values and midpoints | (Local) | Strictly Local: corners persist at knots | ||
| Cubic Spline (Clamped) | Values and boundary slopes | (Local pieces) | uniformly | Locally damped: perturbation decays exponentially away from knot | |
| Cubic Spline (Natural) | Values and | (Local pieces) | unless at boundaries | Locally damped: zero endpoint curvature |
By breaking the monopoly of high-degree global polynomials, cubic splines achieve the golden standard of scientific interpolation: optimal smoothness, linear computational complexity, and bounded local influence.
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