Let . A natural cubic spline has . The interior spline equation on equal unit intervals is
so . The standard second-derivative interpolation formula, or direct integration of the linear second derivative, gives
The two pieces have equal value, first derivative, and second derivative at one, and vanishes at zero and two.
Adding the linear function changes the nodal data by without affecting second derivatives. By uniqueness, the second requested natural cubic spline is , with pieces and respectively.

Articles by others on the same topic (0)

There are currently no matching articles.