Professional Documents
Culture Documents
Chap04 - UofT
Chap04 - UofT
Scientific Computing
An Introductory Survey
Second Edition
by Michael T. Heath
Chapter 4
Eigenvalue Problems
2
Eigenvalues and Eigenvectors
3
Geometric Interpretation
4
Examples: Eigenvalues and Eigenvectors
" #
1 0
1. A = :
0 2
" # " #
1 0
λ1 = 1, x1 = , λ2 = 2, x2 =
0 1
" #
1 1
2. A = :
0 2
" # " #
1 1
λ1 = 1, x1 = , λ2 = 2, x2 =
0 1
" #
3 −1
3. A = :
−1 3
" # " #
1 1
λ1 = 2, x1 = , λ2 = 4, x2 =
1 −1
5
Examples Continued
" #
1.5 0.5
4. A = :
0.5 1.5
" # " #
1 −1
λ1 = 2, x1 = , λ2 = 1, x2 =
1 1
" #
0 1
5. A = :
−1 0
" # " #
1 i
λ1 = i, x1 = , λ2 = −i, x2 = ,
i 1
√
where i = −1
6
Characteristic Polynomial
Equation Ax = λx equivalent to
(A − λI )x = o,
which has nonzero solution x if, and only if, its
matrix is singular
det(A − λI ) = 0
in λ of degree n
(3 − λ)(3 − λ) − (−1)(−1) = λ2 − 6λ + 8 = 0,
so eigenvalues given by
√
6 ± 36 − 32
λ= ,
2
or
λ1 = 2, λ2 = 4
8
Companion Matrix
Monic polynomial
9
Characteristic Polynomial, cont.
10
Example: Characteristic Polynomial
Consider
" #
1
A= ,
1
where is positive number slightly smaller than
√
mach
det(A − λI ) = λ2 − 2λ + (1 − 2) = λ2 − 2λ + 1,
which has 1 as double root
11
Multiplicity and Diagonalizability
X −1AX = D ,
where X is nonsingular matrix of eigenvectors
12
Eigenspaces and Invariant Subspaces
Eigenspace = Sλ = {x : Ax = λx}
13
Properties of Matrices
Property Definition
Diagonal aij = 0 for i 6= j
Tridiagonal aij = 0 for |i − j| > 1
Triangular aij = 0 for i > j (upper)
aij = 0 for i < j (lower)
Hessenberg aij = 0 for i > j + 1 (upper)
aij = 0 for i < j − 1 (lower)
Orthogonal AT A = AAT = I
Unitary AH A = AAH = I
Symmetric A = AT
Hermitian A = AH
Normal AH A = AAH
14
Examples: Matrix Properties
Transpose:
" #T " #
1 2 1 3
=
3 4 2 4
Conjugate transpose:
" #H " #
1+i 1 + 2i 1−i 2+i
=
2−i 2 − 2i 1 − 2i 2 + 2i
Symmetric:
" #
1 2
2 3
Nonsymmetric:
" #
1 3
2 4
15
Examples Continued
Hermitian:
" #
1 1+i
1−i 2
NonHermitian:
" #
1 1+i
1+i 2
Orthogonal:
" # " # " √ √ #
0 1 −1 0 2/2 2/2
, , √ √
1 0 0 −1 − 2/2 2/2
Unitary:
" √ √ #
i 2/2 2/2
√ √
− 2/2 −i 2/2
Nonorthogonal:
" #
1 1
1 2
16
Examples Continued
Normal:
1 2 0
0 1 2
2 0 1
Nonnormal:
" #
1 1
0 1
17
Properties of Eigenvalue Problems
18
Conditioning of Eigenvalue Problems
19
Conditioning of Eigenvalues
|µ − λk | ≤ cond2(X ) kE k2,
where λk is closest eigenvalue of A to µ and
X is nonsingular matrix of eigenvectors of A
20
Conditioning of Eigenvalue
If
22
Similarity Transformation
23
Example: Similarity Transformation
and hence
" #" #" # " #
0.5 0.5 3 −1 1 1 2 0
= ,
0.5 −0.5 −1 3 1 −1 0 4
24
Diagonal Form
25
Triangular Form
If
U11 u U13
A − λI = o 0 vT
O o U33
is triangular, then U11y = u can be solved for
y , so that
y
x= −1
o
is corresponding eigenvector
26
Block Triangular Form
If
A11 A12 ···
A1p
A22 ···
A
2p
A=
....
,
..
App
with square diagonal blocks, then
p
[
λ(A) = λ(Ajj ),
j=1
so eigenvalue problem breaks into p smaller
eigenvalue problems
27
Forms Attainable by Similarity
A T B
distinct eigenvalues nonsingular diagonal
real symmetric orthogonal real diagonal
complex Hermitian unitary real diagonal
normal unitary diagonal
arbitrary real orthogonal real block triangular
(real Schur)
arbitrary unitary upper triangular
(Schur)
arbitrary nonsingular almost diagonal
(Jordan)
29
Convergence of Power Iteration
Then
xk = Axk−1 = A2xk−2 = · · · = Ak x0 =
n n
λki αivi = λk1 α1v1 + (λi/λ1)k αivi
X X
i=1 i=2
30
Example: Power Iteration
k xTk ratio
0 0.0 1.0
1 0.5 1.5 1.500
2 1.5 2.5 1.667
3 3.5 4.5 1.800
4 7.5 8.5 1.889
5 15.5 16.5 1.941
6 31.5 32.5 1.970
7 63.5 64.5 1.985
8 127.5 128.5 1.992
32
Normalized Power Iteration
xk = yk /kyk k∞
33
Example: Normalized Power Iteration
k xTk kyk k∞
0 0.000 1.0
1 0.333 1.0 1.500
2 0.600 1.0 1.667
3 0.778 1.0 1.800
4 0.882 1.0 1.889
5 0.939 1.0 1.941
6 0.969 1.0 1.970
7 0.984 1.0 1.985
8 0.992 1.0 1.992
34
Geometric Interpretation
Initial vector
" # " # " #
0 1 −1
x0 = =1 +1
1 1 1
contains equal components in two eigenvectors
(shown by dashed arrows)
36
Example: Power Iteration with Shift
37
Inverse Iteration
Ayk = xk−1,
xk = yk /kyk k∞,
which is equivalent to power iteration applied
to A−1
38
Inverse Iteration, continued
39
Example: Inverse Iteration
k xTk kyk k∞
0 0.000 1.0
1 -0.333 1.0 0.750
2 -0.600 1.0 0.833
3 -0.778 1.0 0.900
4 -0.882 1.0 0.944
5 -0.939 1.0 0.971
6 -0.969 1.0 0.985
40
Inverse Iteration with Shift
41
Rayleigh Quotient
42
Example: Rayleigh Quotient
43
Rayleigh Quotient Iteration
(A − σk I )yk+1 = xk ,
xk+1 = yk+1/kyk+1k∞,
starting from given nonzero vector x0
45
Example: Rayleigh Quotient Iteration
k xTk σk
0 0.807 0.397 1.896
1 0.924 1.000 1.998
2 1.000 1.000 2.000
46
Deflation
47
Deflation, continued
48
Deflation, continued
Then A − x1uT
1 has eigenvalues 0, λ2 , . . . , λn
49
Simultaneous Iteration
Xk = AXk−1
50
Orthogonal Iteration
Q̂k Rk = Xk−1,
Xk = AQ̂k
where Q̂k Rk is reduced QR factorization of
Xk−1
53
Example: QR Iteration
" #
7 2
Let A0 =
2 4
Compute QR factorization
" #" #
.962 −.275 7.28 3.02
A0 = Q1R1 =
.275 .962 0 3.30
and form reverse product
" #
7.83 .906
A1 = R1Q1 =
.906 3.17
54
QR Iteration with Shifts
Qk Rk = Ak−1 − σk I ,
Ak = Rk Qk + σk I ,
where σk is rough approximation to eigenvalue
55
Example: QR Iteration with Shifts
We compute QR factorization
" #" #
.832 .555 3.61 1.66
A0−σ1I = Q1R1 =
.555 −.832 0 1.11
and form reverse product, adding back shift to
obtain
" #
7.92 .615
A1 = R1Q1 + σ1I =
.615 3.08
56
Preliminary Reduction
57
Preliminary Reduction, continued
58
Preliminary Reduction, continued
or
Symmetric matrices:
• 4
3 n3 for eigenvalues only
General matrices:
60
Krylov Subspace Methods
QnRn = Kn,
so that
QH −1
n AQn = RnCnRn ≡ H ,
with H upper Hessenberg
61
Krylov Subspace Methods
62
Arnoldi Iteration
63
Arnoldi Iteration, continued
If
Qk = [ q1 ··· qk ] ,
then
Hk = QH
k AQk
is upper Hessenberg matrix
64
Arnoldi Iteration, continued
65
Lanczos Iteration
q0 = o
β0 = 0
x0 = arbitrary nonzero starting vector
q1 = x0/kx0k2
for k = 1, 2, . . .
uk = Aqk
αk = qkH uk
uk = uk − βk−1qk−1 − αk qk
β k = k uk k 2
if βk = 0 then stop
qk+1 = uk /βk
end
66
Lanczos Iteration, continued
67
Lanczos Iteration, continued
68
Krylov Subspace Methods, continued
69
Example: Lanczos Iteration
30 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. ... .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
. . . . . . . . . . . . . .. . . .. .. .. . .. .. .. .. .. .. ..
25 .. .. .. .. .. .. .. .. .. .. . .. . . ..
i .. .. .. .. .. .. .. .. . . . . .. . ... . . ... .. .. .. ... ... ... ... ... ...
.... . . . . . . . . . .. . . . .. .. ..
t 20 .. .. .. .. .. .. .. .. . .. . .. . .. .. . . .. .. ..
e .. .. .. .. .. .. .. . . .. .. . . . .. . . .. .... ...
r ... . . . . . .. . . . .. . .. .. ..
a 15 .. .. .. .. .. . . . .. .. . .. . . .. .. .. .
t .. .. .. . . . . . .
. . . . . ..
i .. .. .. . . . . . . . .. ... ...
10 . . .
o .. .. . . . . . . .
. . .
. . .
. . . ..
.
n .. . . . .
5 . . . . . . .
.. . . .
.
0
0 5 10 15 20 25 30
Ritz values
70
Jacobi Method
72
Example: Plane Rotation
Consider 2 × 2 matrix
" #
1 2
A=
2 1
Quadratic equation for tangent reduces to t2 =
1, so t = ±1
73
Jacobi Method, continued
Ak+1 = JkT Ak Jk ,
where Jk is plane rotation chosen to annihilate
a symmetric pair of entries in Ak
74
Jacobi Method, continued
75
Example: Jacobi Method
1 0 2
Let A0 = 0 2 1
2 1 1
J0 =
0 1 0
0.707 0 0.707
to obtain
3 0.707 0
A1 = J0T A0J0 =
0.707 2 0.707
0 0.707 −1
76
Example Continued
J1 =
0.460 0.888 0
0 0 1
to obtain
3.366 0 0.325
A2 = J1T A1J1 =
0 1.634 0.628
0.325 0.628 −1
Next annihilate (2,3) and (3,2) entries using
rotation
1 0 0
J2 =
0 0.975 −0.221
0 0.221 0.975
to obtain
3.366 0.072 0.317
A3 = J2T A2J2 =
0.072 1.776 0
0.317 0 −1.142
77
Example Continued
J3 =
0 1 0
0.070 0 0.998
to obtain
3.388 0.072 0
A4 = J3T A3J3 =
0.072 1.776 −0.005
0 −0.005 −1.164
78
Bisection or Spectrum-Slicing
80
Divide-and-Conquer Method
Ax = λBx,
where A and B are given n × n matrices
85
Computing SVD