Fourth derivative 2026-10-31
The fourth derivative is the derivative of the third derivative. It vanishes for a polynomial of polynomial degree at most three. For a cubic spline, this statement applies inside each knot interval; a jump of the third derivative can prevent a classical fourth derivative from existing at a spline knot.
Let be a clamped cubic spline interpolant and let have the same values at all spline knots and the same endpoint slopes. For , or more generally an absolutely continuous function with square-integrable second derivative, the exact displayed identity holds. In particular uniquely minimizes the second derivative roughness penalty among these competitors.
To prove the identity, put . On each knot interval, two applications of integration by parts give , since the cubic piece has zero fourth derivative. Terms containing vanish at the spline knots; terms containing cancel at interior spline knots because and are continuous. The endpoint terms vanish because is zero there. Thus , and expanding proves the identity. Equality makes , so is an affine function; a prescribed endpoint value and slope force .
If also matches the first derivative of at every spline knot, both and vanish at the ends of each knot interval. For a sufficiently differentiable , integration by parts separately on that interval gives the stronger local identity .
A linear spline is a continuous function whose restriction to every interval is a polynomial of polynomial degree at most one. With and , linear interpolation gives
Integrating the two linear polynomials and adding the contributions gives
This is the composite trapezoidal rule applied to the nodal values, and it is exact for the linear spline itself, including nonuniform spline knots.
A cubic spline on this partition of an interval is a function that restricts to a polynomial of polynomial degree at most three on every interval . Thus its second derivative is continuous and piecewise of polynomial degree at most one: is a linear spline on the same spline knots. Its third derivative is constant on each open interval and can jump across the spline knots; its fourth derivative vanishes inside each open interval.
Put . Matching interpolation data and endpoint derivatives gives
The endpoint slope constraints make a clamped cubic spline. The decisive step in its minimum roughness property of a clamped cubic spline is the orthogonality identity
Prove it separately on each interval. Two applications of integration by parts, using the vanishing fourth derivative of the cubic piece, give
The second boundary term is zero because vanishes at both endpoints of this interval. Sum over . At each interior spline knot, the two values of agree because both factors are continuous, so the contributions cancel. The remaining outer boundary terms vanish because is zero at both outer endpoints. This proves the identity.
Expanding the square now gives the stronger exact equality
The last integral is nonnegative, proving the required inequality. It measures the excess second derivative roughness penalty of over .
The argument applies directly to twice continuously differentiable competitors. More generally it holds when is an absolutely continuous function and is square-integrable, the usual finite-energy class for this second derivative roughness penalty. Mere existence of pointwise second derivatives does not by itself guarantee that all displayed integrals exist; the variational statement is understood for admissible competitors with this regularity.