
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.