Question 3: Given that f(-2) = 46, f(-1) = 4, f(1) = 1, f(3) = 156, and f(4) = 484, use the Lagrange interpolation formula to estimate f(0). (Use four-decimal arithmetic with rounding.)
b) Why should the Lagrange formula be used with caution in practice? Write down the system of equations that need to be solved in order to construct the natural cubic spline function for the following data: f(c) = 5, f(6) = 790, f(33) = 6674, f(3) = 2, f(-2) = 2178. Note: You do not need to solve the system.
d) Consider the function f(x) = 13x^3 + 232x^2 + 513 for 1 < x < 2 and f(x) = -35 + 5x^2 + 22x + 3x^3 for 2 < x < 3. Is f(x) a cubic spline? Justify your answer and show all the necessary calculations.