Instead of adopting basis functions defined over the entire sampling interval as exemplified by the monomial or Lagrange bases, approximations of can be constructed with different branches over each subinterval, by introducing , and the approximation
The interpolation conditions lead to constraints
The form of can be freely chosen, and though most often is a low-degree polynomial, the spline functions may have any convenient form, e.g., trigonometric or arcs of circle. The accuracy of the approximant is determined by the choice of form of , and by the sample points. It is useful to introduce a quantitative measure of the sampling through the following definitions.
Definition. is a partition of the interval if , , satisfy
Definition. The norm of partition of the interval is
so overall
which becomes
for equidistant partitions , . The interpolant converges to linearly (order of convergence is 1)
The interpolation error is bounded by
for an equidistant partition, exhibiting quadratic convergence.
The interpolation conditions are met since . The additional parameters of this higher order spline interpolant can be determined by enforcing additional conditions, typically continuity of function and derivative at the boundary between two subintervals
An additional condition is required to close the system, for example (known end slope), or (zero end slope), or (constant end-slope). The coefficients are conveniently determined by observing that is linear over interval of length , and is given by
with , the slope of the interpolant at The continuity of first derivative conditions are satisfied, and integration gives
The interpolation condition , determines the constant of integration
Imposing the continuity of function condition gives
or
a bidiagonal system for the slopes that is solved by backward substituion in operations. For , the value arising in the system has to be given by an end condition, and the overall system is defined by
The interpolation error is bounded by
for an equidistant partition, exhibiting quadratic convergence.
with , the curvature at the endpoints of the subinterval. Double integration gives
The interpolation conditions , , gives the integration constants
and continuity of first derivative, , subsequently leads to a tridiagonal system for the curvatures
End conditions are required to close the system. Common choices include:
Zero end-curvature, also known as the natural end conditions: .
Curvature extrapolation: ,
Analytical end conditions given by the function curvature: , .