Chap 20 Slides
Chap 20 Slides
Tom Lyche
Centre of Mathematics for Applications,
Department of Informatics,
University of Oslo
I zk /λk1 , → c1 v1 , k → ∞
The Power method
(i) yk = Axk−1
(1)
(ii) xk = yk /kyk k.
Example
I
1 2
A= , z0 = [1.0, 1.0]T , x0 = [0.707, 0.707]T
3 4
Theorem
uH Au
ρ is minimized when µ = ν := uH u
is the Rayleigh quotient of
u.
Power with Rayleigh
function [l,x,it]=powerit(A,z,K,tol)
af=norm(A,’fro’); x=z/norm(z);
for k=1:K
y=A*x; l=x’*y;
if norm(y-l*x)/af < tol
it=k; x=y/norm(y); return
end
x=y/norm(y);
end
it=K+1;
The shifted power method
I
1 2 1.7 −0.4 1 2
A1 := , A2 := , and A3 = .
3 4 0.15 2.2 −3 4
k 1 2 3 4 5
krk2 1.0e+000 7.7e-002 1.6e-004 8.2e-010 2.0e-020
|sk − λ| 3.7e-001 -1.2e-002 -2.9e-005 -1.4e-010 -2.2e-016
Table: Quadratic convergence of Rayleigh quotient iteration
Problem with singularity?
A1 = A
for k = 1, 2, . . .
Qk Rk = Ak (QR-factorization of Ak ) (3)
Ak+1 = Rk Qk .
end
Example
2 1
I A1 = A =
1 2
√1
−2 −1 1 −5 −4
I A1 = Q1 R1 = ∗ √5
5 −1 2 0 3
−5 −4 −2 −1
I A2 = R1 Q1 = 15 ∗ ∗=
0 3 −1 2
2.8 −0.6
.
−0.6 1.2
2.997 −0.074 3.0000 −0.0001
I A3 = , A9 =
−0.074 1.0027 −0.0001 1.0000
I A9 is almost diagonal and contain the eigenvalues λ1 = 3
and λ2 = 1 on the diagonal.
Example 2
0.9501 0.8913 0.8214 0.9218
0.2311 0.7621 0.4447 0.7382
A1 = A =
0.6068
0.4565 0.6154 0.1763
0.4860 0.0185 0.7919 0.4057
we obtain
2.323 0.047223 −0.39232 −0.65056
−2.1e − 10 0.13029 0.36125 0.15946
A14 =
−4.1e − 10 −0.58622
.
0.052576 −0.25774
1.2e − 14 3.3e − 05 −1.1e − 05 0.22746
2.323 0.047223 −0.39232 −0.65056
−2.1e − 10 0.13029 0.36125 0.15946
A14 =
−4.1e − 10 −0.58622
.
0.052576 −0.25774
1.2e − 14 3.3e − 05 −1.1e − 05 0.22746
A1 = A
for k = 1, 2, . . .
Choose a shift sk
(5)
Qk Rk = Ak − sk I (QR-factorization of Ak − sI)
Ak+1 = Rk Qk + sk I.
end
Remarks