Docsity

Eigenvalues & Eigenvectors in Computing: Rayleigh Quotient, Power & Inverse Iteration - Pr, Study notes of Mathematics

Toggle sidebar
bg1
18. Thurs 11/6 1
chapter 4 : computing eigenvalues
e-value : frequency , growth rate , energy level
e-vector : normal mode , principal component , bound state
note : We assume that Ais symmetric. This implies that the e-values λiare
real and the e-vectors qiform an orthonormal basis, i.e. qT
iqj= 0,||qi||2= 1, and
any xcan be written as a linear combination of the qi. (pf : omit) We further
assume that |λ1|>|λ2|>··· >|λn|.
ex :A=!2−1
−1 2 "
fA(λ) = det !2−λ−1
−1 2 −λ"= (2 −λ)2−1 = λ2−4λ+ 3 = (λ−3)(λ−1)
λ1= 3 : Ax = 3x⇒!2−1
−1 2 "!x1
x2"= 3 !x1
x2"
choose x1= 1, then 2 −x2= 3,−1 + 2x2= 3x2⇒x2=−1
normalize : q1=1
√2!1
−1"⇒||q1||2= 1
λ2= 1 : Ax =x⇒!2−1
−1 2 "!x1
x2"=!x1
x2"
choose x1= 1, then 2 −x2= 1,−1 + 2x2=x2⇒x2= 1
normalize : q2=1
√2!1
1"⇒||q2||2= 1 , check : qT
1q2= 0 ok
obvious approach for computing e-values
form fA(λ) = det(A−λI) , solve fA(λ) = 0 by the methods of chapter 2
ex
A=!1 0
0 1 ",˜
A=!1 + "0
0 1 −"": perturbed matrix
fA(λ) = (1 −λ)2=λ2−2λ+ 1 ⇒λ= 1
f˜
A(λ) = (1 + "−λ)(1 −"−λ) = λ2−2λ+ 1 −"2⇒λ= 1 ±"
This shows that the e-values of the perturbed matrix are close to the e-values
of the original matrix (this is true for symmetric matrices in general). However,
note that a small change of size "2in the coefficients of the characteristic poly-
nomial leads to a relatively large change of size "in the roots. Hence the roots
of fA(λ) depend very sensitively on the coefficients.
pf3
pf4
pf5

Partial preview of the text

Download Eigenvalues & Eigenvectors in Computing: Rayleigh Quotient, Power & Inverse Iteration - Pr and more Study notes Mathematics in PDF only on Docsity!

  1. Thurs 11/6 1

chapter 4 : computing eigenvalues

e-value : frequency , growth rate , energy level

e-vector : normal mode , principal component , bound state

note : We assume that A is symmetric. This implies that the e-values λ (^) i are real and the e-vectors q (^) i form an orthonormal basis, i.e. q (^) iT q (^) j = 0, ||q (^) i || 2 = 1, and any x can be written as a linear combination of the q (^) i. (pf : omit) We further assume that |λ 1 | > |λ 2 | > · · · > |λ (^) n |.

ex : A =

( 2 − 1 − 1 2

)

fA (λ) = det

( 2 − λ − 1 − 1 2 − λ

) = (2 − λ)^2 − 1 = λ 2 − 4 λ + 3 = (λ − 3)(λ − 1)

λ 1 = 3 : Ax = 3x ⇒

( 2 − 1 − 1 2

) ( x (^1) x (^2)

) = 3

( x (^1) x (^2)

)

choose x 1 = 1, then 2 − x 2 = 3, −1 + 2x 2 = 3x 2 ⇒ x 2 = − 1

normalize : q 1 = √^12

( 1 − 1

) ⇒ ||q 1 || 2 = 1

λ 2 = 1 : Ax = x ⇒

( 2 − 1 − 1 2

) ( x (^1) x (^2)

)

( x (^1) x (^2)

)

choose x 1 = 1, then 2 − x 2 = 1, −1 + 2x 2 = x 2 ⇒ x 2 = 1

normalize : q 2 = √^12

( 1 1

) ⇒ ||q 2 || 2 = 1 , check : q T 1 q 2 = 0 ok

obvious approach for computing e-values

form fA (λ) = det(A − λI) , solve fA (λ) = 0 by the methods of chapter 2

ex

A =

( 1 0 0 1

) , A˜ =

( 1 + " 0 0 1 − "

) : perturbed matrix

fA (λ) = (1 − λ)^2 = λ 2 − 2 λ + 1 ⇒ λ = 1

fA (^) ˜ (λ) = (1 + " − λ)(1 − " − λ) = λ 2 − 2 λ + 1 − " 2 ⇒ λ = 1 ± "

This shows that the e-values of the perturbed matrix are close to the e-values of the original matrix (this is true for symmetric matrices in general). However, note that a small change of size " 2 in the coefficients of the characteristic poly- nomial leads to a relatively large change of size " in the roots. Hence the roots of fA (λ) depend very sensitively on the coefficients.

2

ex (Wilkinson)

A = diag(1, 2 ,... , 20)

fA (λ) = (1 − λ)(2 − λ) · · · (20 − λ) =

∑^20 k=

a (^) k λ k

set ˜a (^) k = a (^) k (1 + 10−^10 " (^) k ) , " (^) k ∈ (0, 1) : random , p(λ) =

∑^20 k=

˜a (^) k λ k^ , roots =?

Matlab

plot( zeros(1,20) , ’o’ ); hold on; for i=1: r = roots( poly(1:20) .* (ones(1,21)+1e-10*randn(1,21)) ); plot( r , ’.’ ); axis([0 , 25 , -6 , 6 ]); end

! (^60 5 10 15 20 )

! 4

! 2

0

2

4

6

This example emphasizes that the roots of the characteristic polynomial can depend very sensitively on the coefficients, even if the e-value problem for the matrix is well-conditioned. Hence, solving fA (λ) = 0 is not a suitable approach for computing e-values (in general).

4

thm

Assume that |λ 1 | > |λ 2 | > · · · > |λ (^) n | and q T 1 v (0)^ %= 0.

Then ||v (k)^ − (±q 1 )|| = O

 

∣∣ ∣∣ ∣

λ (^2) λ (^1)

∣∣ ∣∣ ∣

k  (^) , |λ (k)^ − λ 1 | = O

 

∣∣ ∣∣ ∣

λ (^2) λ (^1)

∣∣ ∣∣ ∣

2 k  (^).

The ± depends on sign of λ 1.

pf

v (0)^ = α 1 q 1 + α 2 q 2 + · · · + αn q (^) n , where αi = q Ti v (0)

v (k)^ = βk Ak^ v (0)^ = βk

( α 1 λ k 1 q 1 + α 2 λ k 2 q 2 + · · · + αn λ kn q (^) n

)

= βk λ k 1

 α 1 q 1 + α 2

( λ (^2) λ (^1)

)k q 2 + · · · + αn

( λ (^) n λ (^1)

)k q (^) n

 

If q 1 T v (0)^ = 0, then the scheme converges to q 2 , λ 2. ok

note : The power method has some limitations.

  1. it only gives the largest e-value λ (^1)
  2. v (k)^ , λ (k)^ converge linearly and the convergence factor

∣∣ ∣∣ ∣

λ (^2) λ (^1)

∣∣ ∣∣ ∣ may not be small

section 4.2 : inverse iteration

idea : apply power method to A −^1 , (A − μI)−^1 , μ : shift

  1. w = A−^1 v ⇒ Aw = v , w = (A − μI)−^1 v ⇒ (A − μI)w = v
  2. Aq (^) i = λ (^) i q (^) i ⇒ A −^1 q (^) i = λ − i 1 q (^) i

The largest e-value of A−^1 is λ − n 1 , so the vectors v (k)^ converge to q (^) n.

  1. (A − μI)q (^) i = (λ (^) i − μ)q (^) i ⇒ (A − μI)−^1 q (^) i = (λ (^) i − μ)−^1 q (^) i

The largest e-value of (A − μI)−^1 is |λ (^) J − μ|−^1 , where λ (^) J is the e-value of A closest to μ, so the vectors v (k)^ converge to q (^) J.

algorithm

  1. v (0)^ : given , ||v (0)^ || 2 = 1
  2. for k = 1, 2 ,...
  3. solve (A − μI)w = v (k−1)^ % e.g. LU factorization
  4. v (k)^ = w/||w|| 2
  5. λ (k)^ = (v (k)^ )T Av (k)^ % converges to λ (^) J

note : Using a suitable shift μ, any e-value of A can be obtained and the rate of convergence can be accelerated.

  1. Thurs 11/13 5

Rayleigh quotient iteration

idea : update μ

algorithm

  1. v (0)^ : given , ||v (0)^ || 2 = 1
  2. λ (0)^ = (v (0)^ )T Av (0)
  3. for k = 1, 2 ,...
  4. solve (A − λ (k−1)^ I)w = v (k−1)
  5. v (k)^ = w/||w|| 2
  6. λ (k)^ = (v (k)^ )T Av (k)

thm

If v (0)^ is sufficiently close to an e-vector q (^) J , then

||v (k+1)^ − (±q (^) J )|| = O(||v (k)^ − (±q (^) J )||^3 ) |λ (k+1)^ − λ (^) J | = O(|λ (k)^ − λ (^) J |^3 )

} : cubic convergence

pf : omit

ex

A =

  

   ,^ λ^1 = 5.^214319743377 ,^ v^ (0)^ =

  

   ·^ √^13

k power method shifted inverse iteration , μ = 5 Rayleigh quotient iteration 0 5.0 5.0 5. 1 5.181818 5.213114 5. 2 5.208192 5.214312617 5. 2 6 10