The German word eigen is cognate with the Old English word āgen, which became owen in Middle English and own in modern English.

Similar documents
Eigenvalue and Eigenvector Problems

Scientific Computing: An Introductory Survey

EIGENVALUE PROBLEMS. EIGENVALUE PROBLEMS p. 1/4

Eigenvalue Problems. Eigenvalue problems occur in many areas of science and engineering, such as structural analysis

Eigenvalues and Eigenvectors

Eigenvalues and eigenvectors

Last Time. Social Network Graphs Betweenness. Graph Laplacian. Girvan-Newman Algorithm. Spectral Bisection

The Eigenvalue Problem: Perturbation Theory

Preliminary/Qualifying Exam in Numerical Analysis (Math 502a) Spring 2012

EIGENVALUE PROBLEMS. Background on eigenvalues/ eigenvectors / decompositions. Perturbation analysis, condition numbers..

Notes on Eigenvalues, Singular Values and QR

Matrices, Moments and Quadrature, cont d

Math 102, Winter Final Exam Review. Chapter 1. Matrices and Gaussian Elimination

Numerical Methods I Eigenvalue Problems

Computational Methods. Eigenvalues and Singular Values

Linear Algebra: Matrix Eigenvalue Problems

Orthogonal iteration to QR

G1110 & 852G1 Numerical Linear Algebra

EIGENVALUE PROBLEMS (EVP)

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Numerical Methods - Numerical Linear Algebra

Ir O D = D = ( ) Section 2.6 Example 1. (Bottom of page 119) dim(v ) = dim(l(v, W )) = dim(v ) dim(f ) = dim(v )

Foundations of Matrix Analysis

The QR Decomposition

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Chapter 7. Canonical Forms. 7.1 Eigenvalues and Eigenvectors

Math 405: Numerical Methods for Differential Equations 2016 W1 Topics 10: Matrix Eigenvalues and the Symmetric QR Algorithm

EECS 275 Matrix Computation

Lecture 10 - Eigenvalues problem

8. Diagonalization.

Numerical Methods for Solving Large Scale Eigenvalue Problems

5 Selected Topics in Numerical Linear Algebra

MATHEMATICS 217 NOTES

Computational Methods CMSC/AMSC/MAPL 460. Eigenvalues and Eigenvectors. Ramani Duraiswami, Dept. of Computer Science

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Eigenvalue Problems and Singular Value Decomposition

Lecture 4 Eigenvalue problems

Lecture notes: Applied linear algebra Part 2. Version 1

Numerical Linear Algebra Homework Assignment - Week 2

Numerical Solution of Linear Eigenvalue Problems

Introduction to Iterative Solvers of Linear Systems

Eigenvalues, Eigenvectors, and Diagonalization

Numerical Analysis Lecture Notes

Numerical Methods in Matrix Computations

LinGloss. A glossary of linear algebra

ECS231 Handout Subspace projection methods for Solving Large-Scale Eigenvalue Problems. Part I: Review of basic theory of eigenvalue problems

Eigenvalues, Eigenvectors, and Diagonalization

Computation of eigenvalues and singular values Recall that your solutions to these questions will not be collected or evaluated.

arxiv: v1 [math.na] 5 May 2011

QR-decomposition. The QR-decomposition of an n k matrix A, k n, is an n n unitary matrix Q and an n k upper triangular matrix R for which A = QR

Applied Mathematics 205. Unit V: Eigenvalue Problems. Lecturer: Dr. David Knezevic

5.3 The Power Method Approximation of the Eigenvalue of Largest Module

Computing Eigenvalues and/or Eigenvectors;Part 2, The Power method and QR-algorithm

13-2 Text: 28-30; AB: 1.3.3, 3.2.3, 3.4.2, 3.5, 3.6.2; GvL Eigen2

The Lanczos and conjugate gradient algorithms

FEM and sparse linear system solving

Index. for generalized eigenvalue problem, butterfly form, 211

MAA507, Power method, QR-method and sparse matrix representation.

Lecture 9: Krylov Subspace Methods. 2 Derivation of the Conjugate Gradient Algorithm

33AH, WINTER 2018: STUDY GUIDE FOR FINAL EXAM

Linear algebra and applications to graphs Part 1

Basic Elements of Linear Algebra

Linear Algebra 1. M.T.Nair Department of Mathematics, IIT Madras. and in that case x is called an eigenvector of T corresponding to the eigenvalue λ.

Linear algebra & Numerical Analysis

Math 489AB Exercises for Chapter 2 Fall Section 2.3

Eigenvalues and Eigenvectors

Math Introduction to Numerical Analysis - Class Notes. Fernando Guevara Vasquez. Version Date: January 17, 2012.

Chapter 3. Linear and Nonlinear Systems

Math 408 Advanced Linear Algebra

AMS526: Numerical Analysis I (Numerical Linear Algebra for Computational and Data Sciences)

Spectral Theorem for Self-adjoint Linear Operators

18.06 Problem Set 8 Solution Due Wednesday, 22 April 2009 at 4 pm in Total: 160 points.

Lecture 4 Basic Iterative Methods I

ELE/MCE 503 Linear Algebra Facts Fall 2018

The Singular Value Decomposition

Linear Algebra Primer

a 11 a 12 a 11 a 12 a 13 a 21 a 22 a 23 . a 31 a 32 a 33 a 12 a 21 a 23 a 31 a = = = = 12

Chapter 5 Eigenvalues and Eigenvectors

0.1 Rational Canonical Forms

Properties of Matrices and Operations on Matrices

Contents. Bibliography 125. Index 129

Solution of eigenvalue problems. Subspace iteration, The symmetric Lanczos algorithm. Harmonic Ritz values, Jacobi-Davidson s method

Algebra C Numerical Linear Algebra Sample Exam Problems

Conceptual Questions for Review

1. General Vector Spaces

Introduction to Matrix Algebra

1 Multiply Eq. E i by λ 0: (λe i ) (E i ) 2 Multiply Eq. E j by λ and add to Eq. E i : (E i + λe j ) (E i )

Numerical Linear Algebra And Its Applications

Homework 2 Foundations of Computational Math 2 Spring 2019

Synopsis of Numerical Linear Algebra

HOMEWORK PROBLEMS FROM STRANG S LINEAR ALGEBRA AND ITS APPLICATIONS (4TH EDITION)

A Brief Outline of Math 355

Lecture # 11 The Power Method for Eigenvalues Part II. The power method find the largest (in magnitude) eigenvalue of. A R n n.

Econ Slides from Lecture 7

Math 504 (Fall 2011) 1. (*) Consider the matrices

4. Determinants.

Eigenpairs and Similarity Transformations

Math Matrix Algebra

Matrix Algorithms. Volume II: Eigensystems. G. W. Stewart H1HJ1L. University of Maryland College Park, Maryland

Linear Algebra Lecture Notes-II

Transcription:

Chapter 4 EIGENVALUE PROBLEM The German word eigen is cognate with the Old English word āgen, which became owen in Middle English and own in modern English. 4.1 Mathematics 4.2 Reduction to Upper Hessenberg Form 4.3 The Power Method 4.4 The QR Iteration 4.5 The Lanczos Method 4.6 Other Eigenvalue Algorithms 4.7 Computing the SVD Given A R n n solve Ax = λx where λ C and 0 x C n. 4.1 Mathematics The adjacency matrix of a directed graph is given by 0 0 0 0 1 1 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 96

where a ij is the number of arcs from i to j. The number of paths of length k joining i to j is given by (A k ) ij. Is there a closed form expression for A k? I.e., a more direct way of forming A k? 4.1.1 Complex Values The properties of vectors and matrices of real numbers extends to vectors x C m and matrices A C m n. We define the conjugate transpose by A H = ĀT. A Hermitian matrix satisfies A H = A and a unitary matrix U H = U 1. C n is a vector space. The inner product for x, y C n is x H y. 4.1.2 Eigenvalues and eigenvectors If Ax = λx where λ C and 0 x C n then λ is an eigenvalue 1 and x is an eigenvector. Try solving for x in (A λi)x =0. There exists a solution x 0 only if det(a λi) = 0. Hence the eigenvalues λ are roots of the characteristic polynomial p(ζ) :=det(ζi A). [ 0 1 For example for A = 1 1 [ ζ 1 det(ζi A) =det 1 ζ 1 = ζ 2 ζ 1. (4.1) An eigenvalue λ satisfies λ 2 λ 1=0 λ = 1 2 ± 5 2. In general the characteristic polynomial has n roots, counting multiplicities: det(ζi A) =(ζ λ 1 )(ζ λ 2 ) (ζ λ n ). Hence there are n eigenvalues. Because A is real, p(ζ) has real coefficients and thus each eigenvalue is either real or one of a complex conjugate pair. 1 characteristic value 97

imaginary real Setting ζ = 0 in (4.1), we get det( A) = ( 1) n λ 1 λ 2 λ n, and since det( A) =det(( 1)A) =( 1) n deta, we have 0 is an eigenvalue of a singular matrix. Note that for an eigenpair (λ, x) deta = λ 1 λ 2 λ n, A 2 x = A(λx) =λax = λ 2 x, A 1 Ax = A 1 λx A 1 x = λ 1 x, A m x = λ m x. Moreover, if q(ζ) isapolynomial, q(a)x = q(λ)x. For a block triangular matrix T with diagonal blocks T 11,T 22,...,T pp we have example det(ζi T )=det(ζi T 11 )det(ζi T 22 ) det(ζi T pp ). A = det(ζi A) =det(ζ 1)det(ζI 1 2 4 0 2 0 0 1 2 [ 2 0 1 2 This property of determinants follows immediately if we can show [ A B det =deta detc. 0 C This is shown by considering two cases: 98 )=(ζ 1)(ζ 2) 2.

(i) A singular, (ii) A nonsingular, in which case [ A B 0 C = [ A 0 0 I [ I A 1 B 0 C. 4.1.3 Similarity transformations Return to the problem of a simpler form for A k. Definition If detx 0,thenX 1 AX =: B is called a similarity transformation and we say that B is similar to A. First a couple of easy-to-prove facts: 1. If B is similar to A and C is similar to B, thenc is similar to A. Therefore similarity transformations can have several steps. 2. Similar matrices have identical eigenvalues including multiplicities. Note that A k =(XBX 1 ) k = = XB k X 1. Can we find a simple B which is similar to A? For each of the eigenvalues λ i we have Hence Ax i = λ i x i for some x i 0. AX = XΛ where X =(x 1,x 2,...,x n ) and Λ = diag(λ 1,λ 2,...,λ n ). If the eigenvectors can be chosen to be linearly independent, then X is nonsingular and X 1 AX =Λ, in which case we say that A is diagonalizable. Otherwise A is defective. example 1 0 0 A = 0 1 2 0 0 1 Eigenvalues are 1, 1, 1. Eigenvectors must satisfy (A I)x =0. 0 0 0 x 1 0 0 2 x 2 =0 x 3 =0 0 0 0 x 3 99 x = 0 x 2 x 3

where x 2 and x 3 are arbitrary but not both zero. Thus the eigenvectors corresponding to 1 lie in a 2-dimensional subspace. We do not have three linearly independent eigenvectors, so this matrix is defective. Theorem: A matrix having distinct eigenvalues is diagonalizable. Proof for n = 3. Suppose Ax i = λ i x i, x i 0, i =1, 2, 3. Suppose α 1 x 1 + α 2 x 2 + α 3 x 3 =0. (4.2) We need to show α 1 = α 2 = α 3 =0. Without loss of generality it is enough to show α 1 =0. Multiply (4.2) by (A λ 2 I)(A λ 3 I), (A λ 2 I)(A λ 3 I)x i =(A λ 2 I)(λ i λ 3 )x i =(λ i λ 2 )(λ i λ 3 )x i, and (4.2) becomes α 1 (λ 1 λ 2 )(λ 1 λ 3 )x 1 =0. Distinctness α 1 =0. [ 0 1 Example Recall that has eigenvalues 1 1 1 + 5, 1 5. The corresponding eigenvectors are + [ 2 2 2 2 [ 1 5 2 2 1, [ [ 5 2 2 0 1 1. So = X + 5 0 2 2 1 1 1 1 1 0 X 1 where 5 2 2 [ 1 X = + 5 1 5 2 2 2 2, so 1 1 [ [ k 0 1 = 1 ( 1+ 5) k 1 ( 1 5) k 1 ( 1+ 5) k ( 1 5) k 2 2 2 2. 1 1 5 ( 1+ 5) k ( 1 5) k ( 1+ 5) k+1 ( 1 5) k+1 2 2 2 2 For large k, A k is dominated by the largest eigenvalue(s). Hence the spectral radius ρ(a) := max 1 i n λ i(a). Jordan canonical form. Any matrix can be transformed by means of a similarity transformation to the form diag(j 1,J 2,...,J m )whereeachbasic Jordan block J k has the form λ k 1. λ J k = k..... 1. λ k The Cayley-Hamilton Theorem asserts that any matrix A satisfies p(a) = 0 where p(ζ) is the characteristic polynomial of A. 100

4.1.4 Unitary similarity transformations [ 1+ε 1 The X needed to diagonalize a matrix can be very ill-conditioned, e.g., for A = [ [ 0 1 1 1/ε 1+ε 0 we need X = to get X 0 1 1 AX =. (For ε = 0, A is defective.) However, to get eigenvalues (and eigenvectors) it is sufficient to have X 1 AX = 0 1 upper triangular. And it is possible to achieve this using an X with κ 2 (X) =1. Fora unitary matrix U C n n, κ 2 (U) = U 1 2 U 2 = U H 2 U 2 =1. THEOREM Schur decomposition If A C n n, then there exists a unitary matrix U C n n such that R = U H AU is upper triangular. Proof. By induction on n. True for n = 1. Assume true for n 1. We will seek unitary P such that [ λ b P H H AP =. 0 B for some λ, b H, B. In other words we want or equivalently P H AP e 1 = λe 1 A(Pe 1 )=λ(pe 1 ). Let λ be an eigenvalue of A and x an eigenvector with x 2 =1. We are done if we can choose unitary P so that Pe 1 = x. Equivalently we want P H x = e 1. A generalized Householder reflection P H = I 2 vvh v H v, v = x e 1 can be shown to work. To guard against division by zero, choose x so that e T 1 x 0. There is unitary V such that V H BV =: R is upper triangular. Let [ 1 U = P. V then [ λ b U H H AU = 0 R. The construction in this proof is known as deflation: it depends on being able to find one eigenvalue of a matrix. If A is real and has only real eigenvalues then U and R may be chosen to be real. If A is real but has some imaginary eigenvalues (which must occur in pairs λ, λ), then neither U nor R can be real. Unfortunately complex arithmetic is expensive: double the storage, four times the computation. In the case of factoring polynomials we can avoid complex arithmetic by allowing the factors to be either linear or quadratic with two imaginary roots λ and λ. Analogously real matrices have a real Schur decomposition: 101

THEOREM Real Schur decomposition If A R n n, then there exists an orthogonal matrix Q R n n such that R = Q T AQ is block upper triangular with diagonal blocks that either are 1 by 1 or are 2 by 2 with imaginary eigenvalues. 4.1.5 Symmetric matrices Theorem If A is real symmetric, then there exists a real orthogonal Q such that Q T AQ = Λ= diag(λ 1,λ 2,...,λ n ), λ i R. Proof. Consider the real Schur decomposition R = Q T AQ. Then R T = Q T A T Q = Q T AQ = R. Hence R is symmetric block diagonal with blocks that either are 1 by 1 or are symmetric and 2 by 2 with imaginary eigenvalues. However, a 2 by 2 symmetric matrix cannot have imaginary eigenvalues, so R must be diagonal. AQ = QΛ A(Qe i ) = (Qe i )λ i Qe i is an eigenvector, and λ i is eigenvalue. These eigenvectors form an orthonormal set. The eigenvalues are real. If A is s.p.d., the eigenvalues are positive. 4.1.6 Matrix norms THEOREM ρ(a) A for a consistent matrix norm. Proof. There exists an x 0and λ = ρ(a) such that Ax = λx. THEOREM The spectral norm Proof. λ x A x. A 2 = ρ(a T A). A 2 =max x 0 xt A T Ax xt x. Since A T A is real symmetric, there exists a real orthogonal Q and real diagonal Λ such that Q T (A T A)Q =Λ. So A 2 2 =max x 0 x T QΛQ T x. x T x 102

Let y = Q T x: A 2 2 = max y 0 y T Λy y T y = max λ i 1 i n = ρ(a T A). (exercise) If Aissymmetric THEOREM A 2 = ρ(a 2 ) 1/2 = ρ(a). A T 2 = A 2. Proof. It is enough to show that ρ(aa T )=ρ(a T A), and for this it is enough to show that if λ 0then λ is an eigenvalue of AA T λ is an eigenvalue of A T A. Thus let AA T x = λx λ 0,x 0. ThenA T A(A T x)=λ(a T x). λ 0 A T x 0,which means λ is an eigenvalue of A T A. Similarly, a nonzero eigenvalue of A T A is an eigenvalue of AA T. 4.1.7 Gerschgorin disks Useful information about eigenvalues is often provided by THEOREM (Gerschgorin) λ(a) D 1 D 2 D n where D i = {z : z a ii j i a ij } Gerschgorin disk. Example complex plane 0 A = 1 0.1 0.1 0.1 1.1 0.1 0.1 0.1 2 D 1 : z 1 0.2 D 2 : z 1.1 0.2 D 3 : z 2 0.2 D1 UD2 D3 103

Proof. λ λ(a) Ax = λx for some x 0. (λ a ii )x i = a ij x j. j i λ a ii x i a ij x j x a ij. j i j i Choose i so that x i = x, and divide by this. THEOREM If k Gerschgorin disks of the matrix A are disjoint from the other disks, then exactly k eigenvalues of A lie in the union of the k disks. Example (continued). Two eigenvalues lie in D 1 D 2 ; one lies in D 3. Since similarity transformations do not change λ(a), consider D 1 =diag(1, 1,ε)and 1 0.1 0.1/ε D 1 AD = 0.1 1.1 0.1/ε. 0.1ε 0.1ε 2 D 3 : z 2 0.2ε contains an eigenvalue as long as D 3 and D 1 D 2 are disjoint: 2 0.2ε >1.2+0.1/ε e.g., ε =0.2. Hence λ 2 0.04 for some λ λ(a). Review questions 1. For A C m n what is the meaning of A H? 2. What is a Hermitian matrix? 3. What is a unitary matrix? 4. What is the inner product of x and y for x, y C n? 5. Define an eigenvalue and eigenvector. 6. What is the characteristic polynomial of a matrix? 7. Define the multiplicity of an eigenvalue. 8. What can we say about the eigenvalues of a real matrix? 9. What is the relationship between the determinant of a matrix and its eigenvalues? 104

10. Given eigenvalues and eigenvectors of a matrix A what can we say about those of f(a) where f(ζ) is a polynomial? where f(ζ) =ζ 1? 11. What can we say about the determinant of a block triangular matrix with diagonal blocks T 11,T 22,...,T pp? 12. What can we say about the eigenvalues of a block triangular matrix with diagonal blocks T 11,T 22,...,T pp? 13. Define a similarity transformation. 14. Show that being similar is an equivalence relation. 15. Show that similar matrices have the same eigenvalues including multiplicities. 16. What does it mean for a matrix to be diagonalizable? 17. What condition on the eigenvalues is sufficient for a matrix to be diagonalizable? Prove it. 18. What is a defective matrix? Give an example. 19. What condition on the eigenvalues of a matrix is sufficient for it to be diagonalizable? 20. How can one express the kth power of a matrix in terms of the kth power of scalars? 21. Define the spectral radius of a matrix? 22. What is a basic Jordan block? 23. What is a Jordan canonical form? 24. What can be proved about Jordan canonical forms? 25. What is the Cayley-Hamilton Theorem? 26. What is the condition number of a unitary matrix? 27. What is a Schur decomposition? 28. How many linearly independent eigenvectors must an n by n matrix have? 29. What is the name of the process called by which we factor out an eigenvalue and eigenvector of a matrix? 30. Under what condition can a Schur decomposition consist of real matrices? 31. To what extent can we factor a polynomial with real coefficients into lower degree polynomials with real coefficients? 105

32. What is a real Schur decomposition of a real matrix? 33. What form does a real Schur decomposition of a real symmetric matrix take? 34. What can we say about the eigenvalues and eigenvectors of a real symmetric matrix? 35. What can be said about the eigenvalues and eigenvectors of a Hermitian matrix? 36. What is the relation between a consistent norm of a matrix and its eigenvalues? 37. Define the spectral norm and give a formula for it. 38. What is the spectral norm of a symmetric matrix? 39. What is the spectral norm of the transpose of a matrix? Exercises 1. Find the eigenvectors of 1 2 4 0 2 0 0 1 2. 2. Suppose A 2I is a singular matrix. What, in terms of the matrix A, is (special about) the null space of A 2I? 3. (a) Show that if a real matrix A satisfies x H Ax > 0 for all complex x 0,itmustbe symmetric positive definite. (b) Let A be a complex matrix. Show that if x H Ax is real for all complex x, itmust be Hermitian. 4. A matrix is idempotent if A 2 = A. Show that if A is idempotent, then its eigenvalues are zeros and ones. 5. Determine the eigenvalues of xy T where x and y are column vectors. [ 0 1 6. Show that is not diagonalizable. 0 0 7. (a) Let A R n n have the nonreal eigenvalue λ. Show that there exists X R n 2, M R 2 2 satisfying AX = XM where X has linearly independent columns and λ(m) ={λ, λ}. (b) Show that there exists an orthogonal matrix Q and a nonsingular matrix T such that Q T XT 1 = ( I2 0 ). 106

( ) B C (c) Show that Q T AQ = where λ(p )={λ, 0 E λ}. Hint: obtain the first two columns by some matrix operation. 8. Show that if ρ(a) < 1thenI A is nonsingular. 9. Show that a Hermitian matrix has real eigenvalues. You may use the fact that y H y 0 for any complex vector y and that λ 2 0 implies λ is real. 10. Show that the eigenvalues of a real symmetric positive definite matrix are positive. 11. Show that for a real diagonal matrix D max x 0 x T Dx x T x =max 1 i n d ii. 12. Show that for a consistent matrix norm the condition number κ(a) max λ(a) min λ(a). 13. Why can we be sure that all the eigenvalues of the following matrix are real? Give a complete answer. 2 0.5 0.2 0.1 0 4 0.4 0.3 0.3 0.2 6 0.1 0.1 0.1 0.1 8 14. Show that the spectral radius of a matrix does not exceed the norm of the matrix for any matrix norm subordinate to some vector norm. [ 0 0 15. What is the spectral radius of? What is the spectral norm of this matrix? 2 0 16. from BIT (University of Uppsala, Second Course) The eigenvalues to the matrix 3 0.5 ε 0 A(ε) = 0.5 1 ε 0 ε ε 2 1 0 0 1 2 are separated for small enough ε. Localize the eigenvalues and determine how large ε can be and still guarantee that the eigenvalues are separated. Answer: The eigenvalues are close to 0.882, 1, 3 and 3.118. They are separated as long as ε 0.04. Hint: be willing to diagonalize 2 by 2 matrices. 107

17. What are the possible Jordan canonical forms for a real 4 by 4 matrix two of whose eigenvalues are both equal to i? 18. Extend the construction of the Householder reflection to include any complex vector x. That is, construct an elementary unitary matrix P such that Pxis a scalar multiple of e 1. 19. What are the possible Jordan canonical forms for a real 4 by 4 matrix two of whose eigenvalues are both equal to i? 20. Giveanexampleofa2by2matrixA such that ρ(a) =0but A 2 =1. 21. Extend the construction of the Householder reflection to include any complex vector x. That is, construct an elementary unitary matrix P such that Pxis a scalar multiple of e 1. [ c s 22. Let c, s R satisfy c 2 + s 2 = 1. The matrix has eigenvalues λ s c 1 = c +is and λ 2 = c is. Calculate the eigenvector x 1 corresponding to λ 1. Calculate x T 1 x 1. Calculate x H 1 x 1. 23. Let A be a 5 by 3 matrix with singular values 2, 1, 0. For the following questions it is enough to state the answer. What are the eigenvalues of A T A? of AA T? 24. Find and correct the subtle but fatal flaw in the following proof: Theorem The eigenvalues of an orthogonal matrix have modulus 1. Proof. Let λ be an eigenvalue of an orthogonal matrix Q. Then Qx = λx and x T Q T = λx T, whence x T Q T Qx = λ 2 x T x x T x = λ 2 x T x 1 = λ 2 1 = λ. 108

4.2 Reduction to Upper Hessenberg Form In a finite number of arithmetic operations no algorithm can by similarity transformations triangularize A. Thebestwecandois Q T upper AQ = H =...... Hessenberg. form We can do this column by column. Suppose that elements in the first k 1 columns under the first subdiagonal have already been eliminated so that the matrix has the form [ Hk B k 0 a k A k where H k is a k by k upper Hessenberg matrix and a k is an n k by 1 column vector. To leave H k unchanged, we seek an orthogonal transformation of the form [ [ [ [ I 0 Hk B k I 0 H T = k B k Pk 0 P k 0 a k A k 0 Pk 0 P k Ta k P k TA P. k k Also, we want P k Ta k to be all zero except for its first element. This can be accomplished with a Householder reflection, for which P k T = P k. The cost of doing the kth column is as follows: determine P k = I β k ṽ k ṽk T n k + 1 mults, 1 square root form [ P k A k 2(n k) mults per column times (n k) columns Bk form P A k 2(n k) mults per row times n rows k n k +1+2(n k) 2 +2n(n k) The total cost is 5 3 n3 multiplications. In sum with [ I 0 P k := 0 Pk we have P n 2 ( (P 2 (P }{{} 1 AP 1 )P 2 ) )P n 2 =: H. }{{} Q T Q If A is symmetric, then H is symmetric. symmetric + upper Hessenberg tridiagonal Cost: 2 3 n3 mults. 109

Review questions 1. What is an upper Hessenberg matrix? 2. How close can we come to upper triangularizing a matrix in a finite number of arithmetic operations? 3. Show how an orthogonal similarity transformation can be used to zero out all but the first two elements in the first column of a matrix. For the orthogonal matrix it is sufficient to state a previously obtained result. 4. If a square matrix A is reduced by a similarity transformation to an upper Hessenberg matrix H using Householder reflections P 1, P 2,..., what is the resulting factorization of A? 5. What results if a symmetric matrix is reduced to upper Hessenberg form using orthogonal similarity transformations? 6. How does the cost of reducing an n by n matrix to upper Hessenberg form using orthogonal similarity transformations depend on n for a general matrix? for a symmetric matrix? Exercises 1. By means of an orthogonal similarity transformation make the following matrix tridiagonal: 4 2 1 2 4 2. 1 2 4 [ x Note that the Householder reflection for a vector is given by y [ x y sign(x)(x 2 + y 2 ) 1/2. y x 2. Apply an orthogonal similarity transformation to the following matrix so that the (3,1) and (4,1) elements of the transformed matrix are both zero: 1 1 3 2 4 0 1 0 0 0 2 1 3 5 1 0 You may leave your answer as a product of 4 by 4 matrices. 110

3. Reduction of a full 5 by 5 matrix A to upper Hessenberg form H can be accomplished by a similarity transformation where each P k is a Householder reflection. H = P q P 2 P 1 AP 1 P 2 P q (a) How many reflections q are used? (b) In what order are the 2q matrix products computed? (You may use parentheses to show this.) (c) Indicate the structure of P 2 using the symbols 0, 1, for elements of P 2,where represents an arbitrary value. 4. Determine an orthogonal similarity transformation that makes the following matrix tridiagonal: 1 3 4 3 4 3. 4 3 1 [ [ [ x y x (x Hint: (x 2 + y 2 ) 1/2 = + y 2 ) 1/2. y x y 0 4.3 The Power Method Eigenvalues are the roots of the characteristic polynomial p(λ) := det(λi A). Thus we expect no direct method; any method for finding eigenvalues must have an iterative part. The following algorithm is unstable: form the characteristic polynomial; find the roots of the characteristic polynomial. This is because finding the roots of the polynomial can be much more ill-conditioned than finding eigenvalues; i.e., the results are much more sensitive to errors in the coefficients. On the other hand the roots of λ n + c n 1 λ n 1 + + c 1 λ + c 0 = 0 are the eigenvalues of its companion matrix 0 1 0 c 0 c 1 1... c2.......... 0 cn 2 1 c n 1. 111

It is reasonable to solve a polynomial equation by computing the eigenvalues of its companion matrix. The power method is good for a few eigenvalues and eigenvectors. If A is diagonalizable, X 1 AX =Λ, A[x 1,x 2,...,x n =[x 1,x 2,...,x n diag(λ 1,λ 2,...,λ n ). Assume there is a unique eigenvalue of maximum magnitude: λ 1 > λ 2 λ 3 λ n. (What can we say about λ 1?) Let z 0 = initial guess for x 1. Algorithm: z 1 = Az 0, z 2 = Az 1,..., z k+1 = Az k z k = A k z 0 = (XΛX 1 ) k z 0 = XΛ k X 1 z 0 ( ) k ( ) ) k = Xλ k 1 (1, diag λ2 λn,..., X 1 z 0 λ 1 λ 1 ( ( = λ k 1 X e 1 e T 1 + O λ 2 X 1 z 0 λ 1 ( ( = λ k 1 x 1 (e T λ 2 k 1 X 1 z 0 )+O assuming e T 1 X 1 z 0 0. The Rayleigh quotient ( zk TAz k λ 2 k) zk Tz = λ 1 + O. k λ 1 The Rayleigh quotient is the value λ that satisfies z k λ 2 Az k.ifais symmetric, then z T k Az k z T k z k = λ 1 + O ( λ 1 2k) λ 2. λ 1 The power method is good only for the largest eigenvalue in magnitude. Inverse iteration. Apply power method to A 1 to get smallest eigenvalue in magnitude assuming λ n < λ n 1. More generally consider (A σi) 1, σ C, 112

which has eigenvalues The largest of these is 1 λ 1 σ, 1 λ 2 σ,..., 1 λ n σ. 1 λ p σ where λ p is closest to σ. z k+1 =(A σi) 1 z k use LU factorization Note that Az k+1 = σz k+1 + z k is available, so use λ p zt k+1 Az k+1 z T k+1 z k+1 = σ + zt k+1 z k zk+1 T z, k+1 for which one can show the error is O( λ p σ k / λ q σ k )whereλ q is the second closest eigenvalue to σ. To prevent overflow or underflow, form a normalized sequence: y k = z k / z k 2, z k+1 = (A σi) 1 y k. Then zt k+1 y k λ p σ + zk+1 T z. k+1 4.3.1 Rayleigh quotient iteration The idea is to use the latest Rayleigh quotient estimate to continually update the eigenvalue estimate λ in inverse iteration. Rayleigh quotient estimate for A z k+1 =(A σ k I) 1 y k zt k+1 y k σ k+1 = σ k + zk+1 T z k+1 The order of convergence is quadratic in general and cubic for a symmetric matrix If eigenvalue λ p < 0, the signs will alternate. y k+1 (±x p ) = O( y k x p 2 ) y k+1 (±x p ) = O( y k x p 3 ). 113

Review questions 1. Given a polynomial, how does one construct a matrix whose eigenvalues are the roots of the polynomial? What do we call such a matrix? 2. What is the algorithm for the power method? 3. What limitation of floating-point arithmetic is a significant danger for the power method and how is this avoided? 4. Under what condition does the power method converge and what does it converge to? 5. Assuming the power method converges, how rapidly does it converge? 6. What is the Rayleigh quotient and what does it approximate? 7. How can we generalize the power method to estimate the eigenvalue closest to some given value σ? 8. Assuming inverse iteration with a (fixed) shift σ converges, how rapidly does it converge? 9. Explain in words the idea of Rayleigh quotient iteration. What is its order of convergence in general? for a symmetric matrix? Exercises 1. Beginning with initial guess [ 0 0 1 T, do two iterations of the power method for 1 0.1 0.1 0.1 1.1 0.1. 0.1 0.1 2 Also form the Rayleigh quotients for the zeroth and first iterates. 2. If we applied the power method to (A σi) 1, we could change σ from one iteration to the next using at each iteration a new and better approximation to an eigenvalue of A. There is a serious drawback, however. What is it? Secondly, what difficulty might we expect if σ is extremely close to an eigenvalue of A? 3. For the matrix 0 0 0 0 1 1 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 114

do two iterations of the power method beginning with [1, 1, 1, 1, 1 T. (Renormalization is unnecessary.) Use the results of the two iterations to estimate the largest eigenvalue of the matrix. 4.4 The QR Iteration What if we try to make A upper triangular rather than upper Hessenberg? Consider the 2 2case [ a b A =. c d Then [ after a +sign(a) a2 + c v = 2 much P = sign(a) [ a c. c algebra a2 + c 2 c a For example, A = [ 2 1 1 0, P = 1 5 [ 2 1 1 2 =: Q T 1 our orthogonal matrix Q T 1 A = 1 [ [ 5 2, but Q T 8 9 1 5 0 1 AQ 1 = 5 5 1 2 =: A 1. 5 5 After postmultiplication it is no longer upper triangular, but the (2,1) element has been reduced. Using A 1 Q T 2 = 1 [ [ 8 1 18 5 5 13 1 8, A 2 := Q T 2 A 25 1Q 2 = 13 13 1 8. 5 5 13 13 5 The (2,1) element is still smaller. Q T 3 = 1 25 13 [ 18 13 1 13 1 18 13 13 [, A 3 := Q T 3 A 2 Q 3 = 32 25 1 25 49 25 18 25 And still smaller. However convergence becomes very slow. (Eigenvalues are 1, 1.) For [ [ [ 0 1 0 1 0 1 A =, Q T 1 =, and Q T 1 AQ 1 0 1 0 1 = 1 0 there is no convergence. (Eigenvalues are 1, 1.) 115

More generally for an n n matrix A 0 := A, A k+1 := (Q T k+1 A k) }{{} upper triangular Q k+1 where Q T k+1 is a sequence of n 1 Householder reflections. As k, A k becomes a block upper triangular matrix. The first block contains eigenvalues of largest magnitude, the second block contains eigenvalues of next to largest magnitude,..., the last block contains eigenvalues of least magnitude. If λ 1 > λ 2 > > λ n, λ 1 λ 2 Schur A k.... form λ n If A R n n, this is possible only if all eigenvalues are real. Rate of convergence depends on eigenvalue ratios, in particular (A k ) ij = O( λ i /λ j k ) for j<i. Convergence can be improved by a shifted QR iteration. For example, if λ(a) ={ 1, 1, 1.1}, then λ(a 0.9I) ={ 1.9, 0.1, 0.2}, which are much better separated. The iteration is A k+1 := (Q T k+1 (A k σ k+1 I)) Q k+1 + σ k+1 I. }{{} upper triangular Note that as before A k+1 = Q T k+1 A kq k+1, but a different Q k+1 is computed. For the shifts we use approximations to eigenvalues, which can be obtained from diagonal elements of A k. In particular, we seek for σ k+1 an approximation to the smallest eigenvalue, for which the (n, n) entry is a typical choice. From before, [ A 1 = 8 5 1 5 The last diagonal element is an approximation to the smaller eigenvalue. So we use a shift σ 2 = 2: 5 [ 6 9 A1 σ2i = 5 5 1, Q T 2 0 = 1 [ 6 1 5 5 5 37 1 6, 5 5 9 5 2 5 A 2 = Q T 2 (A 1 σ 2 I)Q 2 + σ 2 I =. 25 [ 242 361 185 185 9 128 185 185 which is better than without the shift. The cost of a QR iteration is 4 3 n3 multiplications in general, but only 4n 2 multiplications for A k = upper Hessenberg. The shifted QR iteration preserves an upper Hessenberg form. More specifically, the following can be proved (Exercise 2): 116,

Assume that A k is upper Hessenberg with nonzero subdiagonal elements 2 and that A k σ k+1 I = Q k+1 R k+1 where Q k+1 is orthogonal and R k+1 is upper triangular. Then A k+1 = R k+1 Q k+1 + σ k+1 I is upper Hessenberg. Thus we should choose A 0 =(P n 2 ( ((P 1 A)P 1 ) ))P n 2 upper Hessenberg. If A is symmetric, then A k is symmetric and therefore tridiagonal. Review questions 1. What does one QR iteration do to the eigenvalues of a matrix? 2. In the QR iteration A k+1 = Q T k+1 A kq k+1 what is special about Q k+1? Give a complete answer. 3. What does one QR iteration A k+1 = Q T k+1 A kq k+1 do to the eigenvectors of a matrix? 4. If A k is a sequence of square matrices produced by a QR iteration, under what assumption do the elements below the diagonal converge to zero? Under this assumption what do the diagonal elements converge to? 5. Give the formula for one iteration of a shifted QR iteration and explain how the Q matrixischosen. 6. What does one shifted QR iteration do to the eigenvalues of a matrix? 7. What preprocessing step is recommended before doing a QR iteration? 8. How does the cost of a QR iteration for an n by n matrix depend on n for a general matrix? for an upper Hessenberg matrix? 9. Name some computationally significant properties that are preserved by a QR iteration using Householder reflections or Givens rotations. Exercises 1. Show that a single QR iteration is enough to transform the square matrix xy T to a right triangular matrix. Assume x 0andy 1 0. Hint: what can you prove about a rank one upper triangular matrix? 2. Prove that the shifted QR iteration preserves an upper Hessenberg form for a matrix with nonzero subdiagonal elements. Hints: 2 If a subdiagonal element is zero, the eigenvalue problem divides into two smaller problems. 117

(i) Doa(1,n 1) by (n 1, 1) partitioning of of A k σ k+1 I and Q k+1 and an (n 1, 1) by (n 1, 1) partitioning of R k+1,andshowthatq k+1 must be upper Hessenberg. (ii) Do not use the fact that Q k+1 is orthogonal. 4.5 The Lanczos Method The Lanczos method computes an approximation to the extreme eigenvalues of a symmetric matrix. The generalization to a nonsymmetric matrix is known as the Arnoldi method. The most direct way of presenting this method is to consider the transformation of a symmetric matrix A to tridiagonal form AQ = QT (4.3) where Q =[q 1 q 2 q n is an orthogonal matrix and T is a symmetric tridiagonal matrix T = α 1 β 1 β 1 α 2......... βn 1. β n 1 α n For large sparse matrices, most of whose elements are zeros, it is impractical to compute all of this. As a heuristic the Lanczos method computes only the upper left m by m block of T,callitT m, T m 0 β m. T =....., β m. 0.............. and computes its extreme eigenvalues as an approximation to those of T. The algorithm operates by satisfying eq. (4.3) column by column. Taking the first column of this equation gives Aq 1 = α 1 q 1 + β 1 q 2. Together with the condition that q 1, q 2 be an orthonormal multiset, this constitutes n +3 equations for 2n + 2 unknowns. It happens that the factorization (4.3) is not unique, and we arefreetochooseq 1 to be an arbitrary normalized vector. We are left with n +2equations for n + 2 unknowns. We obtain q 2 =(Aq 1 α 1 q 1 )/β 1 118

where α 1 is obtained by the orthogonality of q 1, q 2 and β 1 by normalization of q 2. Taking the kth column of eq. (4.3) gives q k+1 =(Aq k α k q k β k 1 q k 1 )/β k. Orthogonality of q k+1 with q j for j k 1 is automatic, orthogonality with q k determines α k, and normalization determines β k. Review questions 1. What distinguishes the Lanczos method from the Arnoldi method? 2. Which eigenvalues of a matrix does the Lanczos method find? Exercises 1. Show that if the Lanczos algorithm is carried to completion, the last column of eq. (4.3) can be satisfied. 2. Fill in the blanks for Lanczos method: q 1 = arbitrary normalized vector; p = Aq 1 ; α 1 = ; p = p α 1 q 1 ; β 1 = ; q 2 = ; for k =2,...,n 1 { p = Aq k ; α k = ; p = p α k q k β k 1 q k 1 ; β k = ; q k+1 = ; } α n = ; 4.6 Other Eigenvalue Algorithms 4.6.1 Jacobi The Jacobi method is applicable to symmetric matrices. The idea is to use a Givens rotation in a similarity transformation to zero out a designated element of the matrix. To zero out 119

the (i, j)th element of a matrix, j<i,wechooseasines and cosine c so that [ [ [ [ c s aii a ij c s a = ii 0 s c a ij a jj s c 0 a. jj This rotation is then used to recombine the ith and jth rows and the ith and jth columns of the full matrix A. For formulas for s and c see the book by Heath. These transformations are applied in succession to all the off diagonal elements of the matrix. However, the annihilation of one pair of elements will cause previously annihilated elements to reappear. Nonetheless, the process does converge fairly quickly if it is repeated again and again. 4.6.2 Bisection Let A be a symmetric tridiagonal matrix without any nonzeros in its subdiagonal. (If there is a zero, then the matrix is block diagonal and the eigenvalues of each block can be found independently.) By constructing what is known as a Sturm sequence, it is possible to count the number of eigenvalues of A that are less than any given real number σ. This information can be used by the bisection method to isolate eigenvalues. The method relies upon the fact that the leading principal submatrices of A have strictly interlacing eigenvalues; more specifically, (strictly) between any two successive eigenvalues of the kth order leading principal submatrix A k is exactly one eigenvalue of A k 1. A Sturm sequence d 0, d 1,..., d n is defined by setting d 0 =1andd k =det(a k σi) for k 1. These determinants can be calculated efficiently. The eigenvalues of A k σi, k =1, 2,...,n are strictly interlacing. We can use this fact together with the fact that d k is the product of the eigenvalues of A k σi to count the number of negative eigenvalues ν k of A k σi. Setν 0 = 0 and suppose that ν k 1 is known. Then the interlacing property implies that ν k is either ν k 1 or ν k 1 +1. If d k 1 and d k are both positive or both negative, then ν k = ν k 1. If they are of (strictly) opposite sign, then ν k = ν k 1 + 1. The case of a zero value in the Sturm sequence is left as an exercise. The result of such a calculation is a count ν n of the number of negative eigenvalues of A σi or equivalently the number of eigenvalues of A which are less than σi. Exercise 1. Explain in the cases where d k 1 and/or d k is zero whether or not to increment the count of negative eigenvalues. 4.7 Computing the SVD Consider the case A R m n, n m. 120

1. eigenvalues, eigenvectors of A T A, AA T : (A T A)(Ve i ) = σi 2 (Ve i ), { σ (AA T 2 )(Ue i ) = i (Ue i ), i n, 0, i n +1. 2. Golub Kahan algorithm I. U T 0 AV 0 = [ B 0 B = b 11 b 12 0 b 22...... bn 1,n 0 b nn II. U T 1 BV 1 =Σ 1 Therefore A = U 0 [ U1 I [ Σ1 0 V T 1 V T 0. Review question 1. Show how to transform the problem of computing a singular value decomposition into problems of diagonalizing matrices. Exercise 1. Let A R m n, n<m. Using the SVD, relate the eigenvalues of AA T to those of A T A. 121