MATH661 HW06 - Interpolation

Posted: 10/11/23

Due: 10/18/23, 11:59PM

Beginning with this assignment, homework tasks are described at a higher level. Apply your experience from previous assignments to cogently formulate a solution.

1Track 1 & 2

Study the convergence of polynomial interpolation, pn(xi)=f(xi), i=1,2,,n with increasing number of sample points n for the following functions:

  1. f:[-1,1], f(t)=cos(πt/2);

  2. f:[-1,1], f(t)=1/(1+25t2);

  3. f:[-1,1], f(t)=exp(-25t2).

For each case consider both equidistant and Chebyshev sample points, present plots of the function and interpolant, plots of the error as a function of n, and compare the observed error with that predicted by the formula

e(t)=f(t)-p(t)=f(n+1)(ξt)(n+1)!i=0n(t-xi).

Comment on what you observe.

2Track 1

For n=5 equidistant sample points, explicitly write the Lagrange and Newton forms of the interpolating polynomial.

3Track 2

Repeat the above convergence study for Hermite interpolation pn(xi)=f(xi), pn'(xi)=f'(xi), i=1,2,,n.