A13 · Lesson 30 · Eigenvalues: power and inverse iteration
Multiply by the matrix until only one direction is left
The lowest resonance of a structure, the slowest decay of a thermal network, the steady state of a Markov chain, the ranking of web pages: each is one particular eigenvalue and eigenvector of a large matrix, and nobody computes all the others to get it. Power iteration just multiplies a vector by the matrix again and again. Every component shrinks or grows by its own eigenvalue, so the one with the largest takes over. Inverse iteration does the same with , which picks out the eigenvalue nearest any shift σ you choose, and converges very fast when σ is close.
- The matrix has eigenvalues 1 and r, with the dominant eigenvector at angle θ (the orange arrow). The dots are the power iterates , starting from .
- With r = 0.6 the dots swing onto the arrow within a few steps: each step shrinks the other component by .
- Push r toward ±0.95: the eigenvalues are nearly equal in size and convergence crawls. With r negative the dots alternate sides of the arrow, like a spiraling fixed-point iteration.
Predict
A matrix has eigenvalues 3 and 1. About how many power iterations does it take to get the dominant eigenvector to 6 digits?
About 13: each step shrinks the unwanted component by , gaining digits, and . The eigenvalue from the Rayleigh quotient converges twice as fast for a symmetric matrix.
Name it
Power iteration
Start with any and repeat
Writing in eigenvectors, . If and , the direction converges to with the error shrinking by per step.
The eigenvalue comes from the Rayleigh quotient ; for a symmetric A its error is the square of the vector's error, .
Inverse iteration
The eigenvalues of are , largest for the nearest σ. Power iteration on it (factor once, then solve each step) converges to that eigenvector with ratio
With σ = 0 it finds the smallest eigenvalue: the lowest mode of a network. Updating σ to the latest Rayleigh quotient each step (Rayleigh quotient iteration) converges cubically for symmetric matrices.
Uses and limits
Power iteration needs only products Av, so it works on huge sparse matrices; PageRank is power iteration on the web's link matrix. It finds one eigenvalue at a time (deflate or use subspace iteration for more), and it stalls when the two largest are close in size. For all eigenvalues of a moderate matrix, use the QR algorithm (lesson 31).
Worked example
Apply power iteration to from (1, 0).
Show the solution
- The iterates. Unnormalized, they are (2, 1), (5, 4), (14, 13): heading for (1, 1), the eigenvector of 3.
- The Rayleigh quotients. They are 2.8, 2.976, 2.997, with errors 0.2, 0.024, 0.0027.
- The rate. The errors shrink by each step, the square of the ratio .
Answer the iterates head for (1, 1), and the Rayleigh quotients 2.8, 2.976, 2.997 approach the eigenvalue 3, their error shrinking ninefold each step.
Worked example
For the same matrix, inverse iteration with σ = 0.9: how fast does it converge, and to what?
Show the solution
- Which eigenvalue. The nearest eigenvalue to 0.9 is 1, with eigenvector (1, −1).
- The rate. per step: over 1.3 digits each time.
Answer it converges to the eigenvalue 1, with eigenvector (1, −1), gaining over 1.3 digits a step.
Worked example
A machine is up or down each hour: from up it fails with probability 0.1, and from down it is repaired with probability 0.2. Find its long-run availability by power iteration.
Show the solution
- The transition matrix. Acting on the probability vector (up, down), it is
- Its eigenvalues. The largest is 1, with eigenvector , and the other is .
- Iterate. From (1, 0) power iteration gives (0.9, 0.1), (0.83, 0.17), (0.781, 0.219), …, approaching with the error shrinking by 0.7 each hour.
- A bigger example. Search engines' PageRank is this same iteration on a matrix with billions of rows.
Answer the availability is , 66.7%.
Check
A matrix's two largest eigenvalues are 10 and 2. By what factor does power iteration shrink the eigenvector error each step?
Check
With = 0.9, about how many power iterations give the eigenvector to 6 digits?
Check
What's the Rayleigh quotient of v = (2, 3) for ?
Check
A matrix has eigenvalues 1, 3 and 6. Inverse iteration uses the shift σ = 2.8. What's its convergence ratio per step?
Check
One power step: what's the first component of Av for and v = (3, 5)?
Check
You want the eigenvalue of a large sparse matrix closest to 5. What should you do?
Check
A two-state chain leaves state 1 with probability 0.1 and state 2 with probability 0.2 each step.
(a)
What fraction of the time is it in state 1, in the long run?
(b)
By what factor does power iteration's error shrink each step?
Check
The symmetric matrix and the vector v = (1, t).
Step 1
What is the Rayleigh quotient ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Explain why
Why does repeated multiplication by A turn almost any starting vector into the dominant eigenvector?
Any starting vector is a combination of A's eigenvectors. Multiplying by A multiplies each eigenvector's share by its own eigenvalue, so after k multiplications each share has been scaled by . The share belonging to the eigenvalue of largest size grows fastest (or shrinks slowest), and relative to it every other share shrinks by a factor . After normalizing, only that one direction is left. The method fails only if the start has exactly no component along the dominant eigenvector, and rounding errors usually supply one anyway.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.