

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Instructors: Prof. Wolfgang Bangerth, Prof. Guido Kanschat [email protected], [email protected] Teaching Assistants: Seungil Kim, Yan Li [email protected], [email protected]
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 =
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)