Homework III

 

Consider data points (0,0), (1,1), (2,4), (3,3). 

Set up the linear system of equations using piecewise cubic polynomial interpolation (cubic spline) with the knots placed at the midpoints of the data intervals.

Determine the coefficients of the linear system.

Write the interpolating piecewise polynomial for each data interval.

 

On Ii=[xi,xi+1], assume the cubic has the following form:

Pi(x) = ai(xi+1-x)3/ hi + ai+1(x-xi)3/ hi + bi(xi+1-x)+ci(x-xi)

 

 

Define the cubic polynomials for each interval as:

§     P1(x),             x Є  [z1,z2]

§     P2(x),             x Є  [z2,z3]

§     P3(x),             x Є  [z3,z4]

§     P4(x),             x Є  [z4,z5]

 

Please show all your work clearly.