Docsity

Assignment 1 - Numerical Analysis I | CMSC 666, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Numerical Analysis I Homework 1
CMSC 666 / MAPL 666 Due September 23, 2008
1. Let x0, x1, . . . , xnbe distinct real numbers. We have seen that the Van der
Monde matrix
Vn=
1x0x2
0· · · xn
0
1x1x2
1· · · xn
1
.
.
..
.
..
.
..
.
.
1xnx2
n· · · xn
n
arises from polynomial interpolation. Prove that this matrix is nonsingular by
showing that its determinant is nonzero.
2. Suppose we seek a root t∗of a function g(t) where gis such that it has an
inverse function in a neighborhood of t∗that is a polynomial of degree n. That
is,
pn(g(t)) = t
for all tnear t∗. Use this fact to devise a method for finding t∗. You may assume
that you know the neighborhood referred to above.
3. Consider the polynomial
ψ3(x) = (x−x0)(x−x1)(x−x2)(x−x3),
where x0, x1, x2, x4are equally spaced points that satisfy xi−xi−1=h,i=
1,2,3. Show that
max
x∈[x0,x3]|ψ3(x)|=h4,max
x∈[x1,x2]|ψ3(x)|=9
16h4≈.56h4.
4. Suppose we want a polynomial p(x) that interpolates data in the usual way,
i.e., p(xj) = fjat x0, . . . , xn, and whose derivative interpolates other data,
p0(xj) = f0
jfor all j.
a. Derive requirements on functions {αj(x)}and {βj(x)}such that
p(x) =
n
X
j=0
fjαj(x) +
n
X
j=0
f0
jβj(x).
b. Show that {αj(x)}and {βj(x)}can be chosen to be polynomials, and show
how they can be expressed in terms of the Lagrange polynomials `i(x).
5. Consider the problem of finding a rational function
p(x) = a+bx
1 + cx
pf2

Partial preview of the text

Download Assignment 1 - Numerical Analysis I | CMSC 666 and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Numerical Analysis I Homework 1 CMSC 666 / MAPL 666 Due September 23, 2008

  1. Let x 0 , x 1 ,... , xn be distinct real numbers. We have seen that the Van der Monde matrix

Vn =

1 x 0 x^20 · · · xn 0 1 x 1 x^21 · · · xn 1 .. .

1 xn x^2 n · · · xnn

arises from polynomial interpolation. Prove that this matrix is nonsingular by showing that its determinant is nonzero.

  1. Suppose we seek a root t∗^ of a function g(t) where g is such that it has an inverse function in a neighborhood of t∗^ that is a polynomial of degree n. That is, pn(g(t)) = t

for all t near t∗. Use this fact to devise a method for finding t∗. You may assume that you know the neighborhood referred to above.

  1. Consider the polynomial

ψ 3 (x) = (x − x 0 )(x − x 1 )(x − x 2 )(x − x 3 ),

where x 0 , x 1 , x 2 , x 4 are equally spaced points that satisfy xi − xi− 1 = h, i = 1 , 2 , 3. Show that

max x∈[x 0 ,x 3 ]

|ψ 3 (x)| = h^4 , max x∈[x 1 ,x 2 ]

|ψ 3 (x)| =

h^4 ≈. 56 h^4.

  1. Suppose we want a polynomial p(x) that interpolates data in the usual way, i.e., p(xj ) = fj at x 0 ,... , xn, and whose derivative interpolates other data, p′(xj ) = f (^) j′ for all j. a. Derive requirements on functions {αj (x)} and {βj (x)} such that

p(x) =

∑^ n

j=

fj αj (x) +

∑^ n

j=

f (^) j′ βj (x).

b. Show that {αj (x)} and {βj (x)} can be chosen to be polynomials, and show how they can be expressed in terms of the Lagrange polynomials `i(x).

  1. Consider the problem of finding a rational function

p(x) =

a + bx 1 + cx

that satisfies p(xi) = yi, i = 1, 2 , 3 ,

with x 1 , x 2 , x 3 distinct.

a. Is such a function guaranteed to exist?

b. When such a function exists, is it unique?

6a. Given a function f (x), write a program that takes as input a pair of numbers defining an interval [a, b] and a set of values {xi}ni=0 in [a, b], and that produces as output a representation of the Newton interpolating polynomial for f.

6b. Write a second program that graphs the function and interpolating polyno- mial. This program should evaluate the polynomial using Horner’s rule. Explore the behavior of this polynomial for [a, b] = [− 1 , 1] and

f (x) = ex^ and f (x) =

1 + 25x^2

at a set of n uniformly spaced points for n = 5, 10 and 15. Do the same for the Chebyshev points.

For this problem, hand in the two programs and plots of the results for the three values of n, together with a fourth plot showing the results for n = 15 on only a component of the interval in the interior. Comment on what this last plot suggests.