Docsity

Numerical Analysis I: Interpolation and Approximation, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Numerical Analysis I: AMSC/CMSC 666
Homework 1, due Friday, 15 October
1. Let f(x) = ex. Give the Newton form of the polynomial that interpo-
lates the values of fat x=−1, 0, and 1. Give a uniform bound on the
error of this approximation over [−1,1].
2. Let f(x) = ex. Give the quadratic Chebyschev interpolation of fover
[−1,1]. Give a uniform bound on the error of this approximation over
[−1,1].
3. Define the inner product ( ·|·) on C([−1,1]) by
(f|g) = 1
πZ1
−1
f(x)g(x)
√1−x2dx .
Show that the Chebyschev polynomials Tnare mutually orthogonal
with respect to this inner product.
4. Stoer and Bulirsch (third edition), page 138, problem 16.
5. Partition the interval [xL, xR] into nsubintervals as
xL=x0< x1< x2<···< xn−2< xn−1< xn=xR.
Prove that the linear spline minimizes the integral
ZxR
xL|Y′(x)|2dx ,
subject to the constraints Y(xi) = yifor i= 0,···, n over the class of
functions Ythat are continuous over [xL, xR] and are smooth over the
subinterval (xi−1, xi) for every i= 1,···, n.
6. Partition the interval [xL, xR] into nsubintervals as
xL=x0< x1< x2<···< xn−2< xn−1< xn=xR.
Find the quadratic spline Ythat interpolates the data
1
xi−xi−1Zxi
xi−1
Y(x) dx=yifor i= 1,···, n ,
and that satifies Y′(xL) = ˙yLand Y′(xR) = ˙yR.
1
pf2

Partial preview of the text

Download Numerical Analysis I: Interpolation and Approximation and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Numerical Analysis I: AMSC/CMSC 666 Homework 1, due Friday, 15 October

  1. Let f (x) = ex. Give the Newton form of the polynomial that interpo- lates the values of f at x = −1, 0, and 1. Give a uniform bound on the error of this approximation over [− 1 , 1].
  2. Let f (x) = ex. Give the quadratic Chebyschev interpolation of f over [− 1 , 1]. Give a uniform bound on the error of this approximation over [− 1 , 1].
  3. Define the inner product ( · | · ) on C([− 1 , 1]) by

( f | g ) =

π

− 1

f (x) g(x) √ 1 − x^2

dx.

Show that the Chebyschev polynomials Tn are mutually orthogonal with respect to this inner product.

  1. Stoer and Bulirsch (third edition), page 138, problem 16.
  2. Partition the interval [xL, xR] into n subintervals as

xL = x 0 < x 1 < x 2 < · · · < xn− 2 < xn− 1 < xn = xR.

Prove that the linear spline minimizes the integral ∫ (^) xR

xL

|Y ′(x)|^2 dx ,

subject to the constraints Y (xi) = yi for i = 0, · · · , n over the class of functions Y that are continuous over [xL, xR] and are smooth over the subinterval (xi− 1 , xi) for every i = 1, · · · , n.

  1. Partition the interval [xL, xR] into n subintervals as

xL = x 0 < x 1 < x 2 < · · · < xn− 2 < xn− 1 < xn = xR.

Find the quadratic spline Y that interpolates the data 1 xi − xi− 1

∫ (^) xi

xi− 1

Y (x) dx = yi for i = 1, · · · , n ,

and that satifies Y ′(xL) = ˙yL and Y ′(xR) = ˙yR.

Project. Consider the function f (x) = 1/(1 + ex) over [− 5 , 5]. Make graphs that compare the following six interpolations of f :

  • the Lagrange interpolations through (xi, f (xi)) where xi = ± 1 , ± 3 , ±5, and where xi = 0, ± 1 , ± 2 , ± 3 , ± 4 , ±5.
  • the Chebyshev interpolations of degrees 5 and 10 over [− 5 , 5].
  • the cubic splines through (xi, f (xi)) where xi = ± 1 , ± 3 , ±5, and where xi = 0, ± 1 , ± 2 , ± 3 , ± 4 , ±5.

Explain the differences you see. You might find it helpful to program the divided differences algorithm (Stoer and Bulirsch section 2.1.3) to generate the polynomials asked for in the first two items above.