Docsity

Assignment 6 Problems - Numerical Methods for Scientific Computing I | MATH 571, Assignments of Mathematics

Toggle sidebar
bg1
MATH 571 Numerical Methods for Scientific Computing I Winter 2006
Assignment #6 due: Wednesday, April 12
1. Let A= (aij )∈ICm×m. Prove the following results.
a) Gershgorin’s theorem
If λis an eigenvalue of A, then there exists an index isuch that |λ−aii|≤
m
!
j=1
j!=i
|aij |.
b) Bauer-Fike theorem
Assume that Ais diagonalizable with A=XDX−1, where D= diag(λi), and let wbe an
eigenvalue of A+δA. Then there exists an index isuch that |w−λi|≤||δA||2·κ2(X).
c) Let A="1$−1
$1#, A +δA="1$−1
0 1 #, where $= 10−2.
Find λ1,λ2, w1, w2,||δA||2,κ2(X) using Matlab. Show that the BF theorem holds.
2. Which of the following matrices are normal? For those that are normal, find a unitary
diagonalization. For those that are not normal, find a Schur factorization. Do the calcu-
lations by hand. (You may check your results using the Matlab functions eig, schur.)
a) "2 1
1 2 #b) "2 1
−1 2 #c) "2 1
−1 1 #d) "3 1
−1 1 #
3. In class we derived an algorithm for reducing an m×mmatrix Ato upper Hessenberg
form by unitary similarity transformations with operation count 10
3m3. If Ais real symmet-
ric, then the reduced matrix is tridiagonal and the algorithm can be modified so that the
operation count becomes 4
3m3. Program the two versions in Matlab (you have to derive the
2nd version and show analytically that the operation count is 4
3m3; see pages 199-200 for a
hint). Apply both codes to the matrix A= [ 8 ,4,2,1 ; 4 ,8,4,2 ; 2 ,4,8,4 ; 1 ,2,4,8 ]
and output the final result. Run the codes for real symmetric m×mmatrices (your choice)
for m= 100 : 100 : 1000, present cputime/m3, and comment on whether the results are con-
sistent with the theoretical operation counts.
4. Let Abe the 4 ×4 integer matrix from problem 3. Here we will compute the e-values
of Ausing various methods. Present the results in a table with long format floating point
numbers. Explain the results using the relevant theorems from class.
a) Apply the power method, inverse iteration (unshifted, i.e. µ= 0), and Rayleigh quotient
iteration to A. Omit phase 1, i.e. do not reduce Ato tridiagonal form. For each method,
start with v(0) = (1,1,1,1)T
/2, take 10 steps, and present the iterates λ(k), k = 0 : 10.
b) Take 10 steps of the QR algorithm starting with A(0) =A. Print the maximum off-
diagonal element magnitude at each step and also print the final matrix.
announcement
The final exam is on Wednesday, April 26, 10:30am-12:30pm in 4088 East Hall. It will
cover the entire course. You may use one sheet of notes, both sides. Calculators are not
allowed.

Partial preview of the text

Download Assignment 6 Problems - Numerical Methods for Scientific Computing I | MATH 571 and more Assignments Mathematics in PDF only on Docsity!

MATH 571 Numerical Methods for Scientific Computing I Winter 2006 Assignment #6 due: Wednesday, April 12

  1. Let A = (aij ) ∈ CIm×m. Prove the following results. a) Gershgorin’s theorem If λ is an eigenvalue of A, then there exists an index i such that |λ − aii| ≤ ∑^ m j= j! =i |aij |. b) Bauer-Fike theorem Assume that A is diagonalizable with A = XDX−^1 , where D = diag(λi), and let w be an eigenvalue of A + δA. Then there exists an index i such that |w − λi| ≤ ||δA|| 2 · κ 2 (X). c) Let A =

1 $−^1

, A + δA =

1 $−^1

, where $ = 10 −^2. Find λ 1 , λ 2 , w 1 , w 2 , ||δA|| 2 , κ 2 (X) using Matlab. Show that the BF theorem holds.

  1. Which of the following matrices are normal? For those that are normal, find a unitary diagonalization. For those that are not normal, find a Schur factorization. Do the calcu- lations by hand. (You may check your results using the Matlab functions eig, schur.) a)

b)

c)

d)

  1. In class we derived an algorithm for reducing an m × m matrix A to upper Hessenberg form by unitary similarity transformations with operation count 103 m^3. If A is real symmet- ric, then the reduced matrix is tridiagonal and the algorithm can be modified so that the operation count becomes 43 m^3. Program the two versions in Matlab (you have to derive the 2nd version and show analytically that the operation count is 43 m^3 ; see pages 199-200 for a hint). Apply both codes to the matrix A = [ 8 , 4 , 2 , 1 ; 4 , 8 , 4 , 2 ; 2 , 4 , 8 , 4 ; 1 , 2 , 4 , 8 ] and output the final result. Run the codes for real symmetric m × m matrices (your choice) for m = 100 : 100 : 1000, present cputime/m^3 , and comment on whether the results are con- sistent with the theoretical operation counts.
  2. Let A be the 4 × 4 integer matrix from problem 3. Here we will compute the e-values of A using various methods. Present the results in a table with long format floating point numbers. Explain the results using the relevant theorems from class. a) Apply the power method, inverse iteration (unshifted, i.e. μ = 0), and Rayleigh quotient iteration to A. Omit phase 1, i.e. do not reduce A to tridiagonal form. For each method, start with v(0)^ = (1, 1 , 1 , 1)T /2, take 10 steps, and present the iterates λ(k), k = 0 : 10. b) Take 10 steps of the QR algorithm starting with A(0)^ = A. Print the maximum off- diagonal element magnitude at each step and also print the final matrix. announcement The final exam is on Wednesday, April 26, 10:30am-12:30pm in 4088 East Hall. It will cover the entire course. You may use one sheet of notes, both sides. Calculators are not allowed.