A1330 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 (A−σI)−1, 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 vk=Akv0/‖Akv0‖, starting from v0=(1,0).
  • With r = 0.6 the dots swing onto the arrow within a few steps: each step shrinks the other component by |r|.
  • 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?

Name it

Power iteration

Start with any v0 and repeat

w=Avk,vk+1=w‖w‖

Writing v0=∑ciui in eigenvectors, Akv0=∑ciλikui. If |λ1|>|λ2|≥⋯ and c1≠0, the direction converges to u1 with the error shrinking by |λ2λ1| per step.

The eigenvalue comes from the Rayleigh quotient vTAvvTv; for a symmetric A its error is the square of the vector's error, |λ2λ1|2k.

Inverse iteration

The eigenvalues of (A−σI)−1 are 1λi−σ, largest for the λi nearest σ. Power iteration on it (factor A−σI once, then solve each step) converges to that eigenvector with ratio

|λnear−σ||λnext−σ|

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 (2112) from (1, 0).

Show the solution
  1. The iterates. Unnormalized, they are (2, 1), (5, 4), (14, 13): heading for (1, 1), the eigenvector of 3.
  2. The Rayleigh quotients. They are 2.8, 2.976, 2.997, with errors 0.2, 0.024, 0.0027.
  3. The rate. The errors shrink by 19 each step, the square of the ratio 13.

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
  1. Which eigenvalue. The nearest eigenvalue to 0.9 is 1, with eigenvector (1, −1).
  2. The rate. |1−0.9||3−0.9|=0.048 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
  1. The transition matrix. Acting on the probability vector (up, down), it is P=(0.90.20.10.8)
  2. Its eigenvalues. The largest is 1, with eigenvector (23,13), and the other is 1−0.1−0.2=0.7.
  3. Iterate. From (1, 0) power iteration gives (0.9, 0.1), (0.83, 0.17), (0.781, 0.219), …, approaching 23 with the error shrinking by 0.7 each hour.
  4. A bigger example. Search engines' PageRank is this same iteration on a matrix with billions of rows.

Answer the availability is 23, 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 |λ2/λ1| = 0.9, about how many power iterations give the eigenvector to 6 digits?

Check

What's the Rayleigh quotient of v = (2, 3) for (2112)?

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 A=(2112) 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 (abbd) and the vector v = (1, t).

Step 1

What is the Rayleigh quotient vTAvvTv?

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?

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.