Use Gaussian elimination with partial pivoting, choosing the largest absolute available entry in the current pivot column. The first pivot is 2, with multipliers . After eliminating that column, the augmented system is
The second pivot is , already largest in its remaining column. Its multipliers are zero and , giving row four . In column three, partial pivoting now requires exchanging rows three and four, since . The final elimination multiplier is . Thus
Back substitution gives .
The permutation and recorded multipliers, with the earlier multiplier rows swapped at the third pivot, are
Direct multiplication verifies . Since is invertible and ,
The two matrices are similar, and similar matrices have the same characteristic polynomial and eigenvalues.
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.