Docsity

MATH 417: Numerical Analysis - Homework Assignment 6, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
MATH 417: Numerical Analysis
Instructors: Prof. Wolfgang Bangerth, Prof. Guido Kanschat
Teaching Assistants: Seungil Kim, Yan Li
Homework assignment 6 – due 10/12/06 and 10/16/06
Problem 1 (Vector and matrix norms). Solve problems 7.1/1 and 7.1/4.
(4 points)
Problem 2 (Equivalence of norms on Rn). In class, we proved the equiv-
alence of the norms k.k∞and k.k2. Here now, prove the same for k.k∞and k.k1,
where
kxk1=
n
X
i=1 |xi|.
a) Prove that there are indeed constants c, C such that
ckvk∞≤ kvk1≤Ckvk∞.
where
kvk1=X
i|vi|,
kvk∞= max
i|vi|,
and where vis an n-dimensional vector in Rn.
b) For vectors v1, v2with kv1k1≤ kv2k1, does the result of part a) imply that
kv1k∞≤ kv2k∞? If not, give an example of vectors for which this does
not follow. (4 points)
Problem 3 (Jacobi iteration). Let A, b be the 100 ×100 matrix and 100-
dimensional vector defined by
Aij =
2.01 if i=j,
−1 if i=j±1,
0 otherwise,
bi=1
100 sin 2πi
50 .
Apply Jacobi’s method to solving Ax =b. Write a program that implements
the Jacobi method and start with a vector x0with randomly chosen elements
1
pf2

Partial preview of the text

Download MATH 417: Numerical Analysis - Homework Assignment 6 and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

MATH 417: Numerical Analysis

Instructors: Prof. Wolfgang Bangerth, Prof. Guido Kanschat [email protected], [email protected] Teaching Assistants: Seungil Kim, Yan Li [email protected], [email protected]

Homework assignment 6 – due 10/12/06 and 10/16/

Problem 1 (Vector and matrix norms). Solve problems 7.1/1 and 7.1/4. (4 points)

Problem 2 (Equivalence of norms on Rn). In class, we proved the equiv- alence of the norms ‖.‖∞ and ‖.‖ 2. Here now, prove the same for ‖.‖∞ and ‖.‖ 1 , where

‖x‖ 1 =

∑^ n

i=

|xi|.

a) Prove that there are indeed constants c, C such that

c‖v‖∞ ≤ ‖v‖ 1 ≤ C‖v‖∞.

where

‖v‖ 1 =

i

|vi|,

‖v‖∞ = max i |vi|,

and where v is an n-dimensional vector in Rn.

b) For vectors v 1 , v 2 with ‖v 1 ‖ 1 ≤ ‖v 2 ‖ 1 , does the result of part a) imply that ‖v 1 ‖∞ ≤ ‖v 2 ‖∞? If not, give an example of vectors for which this does not follow. (4 points)

Problem 3 (Jacobi iteration). Let A, b be the 100 × 100 matrix and 100- dimensional vector defined by

Aij =

  1. 01 if i = j, − 1 if i = j ± 1 , 0 otherwise,

bi =

sin

2 πi 50

Apply Jacobi’s method to solving Ax = b. Write a program that implements the Jacobi method and start with a vector x 0 with randomly chosen elements

in the range 0 ≤ (x 0 )i ≤ 1 (i.e. with elements generated from what the rand() function or a similar replacement returns). (Hint: It is not necessary to actually store the complete matrix just to multiply with it. Rather, use that the i-th component of the vector Ay is (Ay)i =

∑n j=1 Aij^ yj^ = 2.^01 yi^ −^ yi−^1 −^ yi+1^ at least for 2^ ≤^ i^ ≤^ n^ −^ 1, and obvious modifications for j = 1 and j = n.) Run 200 Jacobi iterations and plot the values of (x(k))i against i for every few iterations, for example k = 0, 2 , 5 , 10 , 20 , 50 , 100 , 200. What do you observe?

(5 points)

Problem 4 (Alternative vector norms). Let A be a symmetric and posi- tive definite n × n matrix. Show that

‖x‖A =

xT^ Ax

is a norm for vectors x ∈ Rn. (Hint: Use the eigenvalue and eigenvector decom- position of symmetric positive definite matrices.)

(3 points)