A natural cubic spline is piecewise cubic, interpolates the data, has continuous first and second derivatives at the knot, and has zero second derivative at the outer endpoints. Its nodal second derivatives here satisfy and the usual matching equation
so . The resulting pieces are
Directly, the values are , both first derivatives at one equal two, both second derivatives there equal six, and . Thus all spline conditions hold.
The second data set adds the values of the affine function to the first. Adding to the spline preserves derivative matching and the zero endpoint second derivatives, so uniqueness of the natural interpolant gives the new spline . Its first piece is , and its second is . This is the affine covariance of natural cubic spline interpolation.
Figure 1.
Natural cubic interpolation and an affine change of the data
. The second interpolant is obtained by adding to the first. Dots mark the three interpolation nodes of each curve. Details.

Articles by others on the same topic (0)

There are currently no matching articles.