Existence and uniqueness of the natural cubic spline
Statement
Given points with , there exists a unique function that is a cubic polynomial on each subinterval , is twice continuously differentiable on all of , satisfies for every , and satisfies the natural boundary conditions .
Why is it true?
A single high-degree polynomial through many points tends to wiggle, but stitching together many gentle cubic pieces and only demanding they match up smoothly at the seams gives just enough freedom to fit the data without any wild swings, and the natural boundary conditions supply exactly the two extra equations needed to make the whole system solvable.
Proof sketch
Step 1 (unknowns: the second derivatives at the knots). Let for . The natural boundary conditions fix and immediately, leaving unknowns to determine.
Step 2 (reconstruct each cubic piece from its M values). On , since is cubic, is linear, so it must be the straight line through and . Integrating this linear function twice and fixing the two constants of integration using and determines completely on that piece, in terms of and the spacing . So once all the are known, is fully known.
Step 3 (matching slopes gives a linear system). By construction and are already continuous across each knot. Demanding that the first derivative also matches from both sides at each interior knot () produces one linear equation per interior knot relating three consecutive unknowns: . This gives linear equations in the unknowns (using ).
Step 4 (the system has a unique solution). The coefficient matrix of this system is tridiagonal with diagonal entries and off-diagonal entries and ; since (as all spacings ), the matrix is strictly diagonally dominant, and a strictly diagonally dominant matrix is always invertible. So the linear system for has exactly one solution, and by Step 2 this determines exactly one spline , proving both existence and uniqueness.
Topics that use this theorem
Step-by-step proofs
No step-by-step proof yet for this theorem.