please make steps clear and writing legible
(b) Consider a natural cubic spline of the form SS(x) = 01.2.3 + b1x2 + 4x +1 on (0,1) S(x) = S2(x) = az(x - 1)3 + b2(x - 1)2 + 2(x - 1) +2 on [1,2]. that passes through the data point (2,-1). i. Find one equation involving the unknown coefficients by ensuring the cubic spline matches at the knot point. ii. By matching the first and second derivatives at the knot point, find two equa- tions involving the unknown coefficients. (HINT: you do not need to expand to calculate the derivatives). iii. Using the natural cubic spline conditions, find two more equations involving the unknown coefficients. iv. Find one final equation involving the unknown coefficients by ensuring the cubic spline passes through the data point. v. Write the six linear equations found in parts (i)-(iv) in the form Ax = b where x = (a, b, c, 22, bz, ca). vi. Using MATLAB/OCTAVE, solve the linear system of equations found in part (v). (b) Consider a natural cubic spline of the form SS(x) = 01.2.3 + b1x2 + 4x +1 on (0,1) S(x) = S2(x) = az(x - 1)3 + b2(x - 1)2 + 2(x - 1) +2 on [1,2]. that passes through the data point (2,-1). i. Find one equation involving the unknown coefficients by ensuring the cubic spline matches at the knot point. ii. By matching the first and second derivatives at the knot point, find two equa- tions involving the unknown coefficients. (HINT: you do not need to expand to calculate the derivatives). iii. Using the natural cubic spline conditions, find two more equations involving the unknown coefficients. iv. Find one final equation involving the unknown coefficients by ensuring the cubic spline passes through the data point. v. Write the six linear equations found in parts (i)-(iv) in the form Ax = b where x = (a, b, c, 22, bz, ca). vi. Using MATLAB/OCTAVE, solve the linear system of equations found in part (v)