School/✦ Research Engineer/Week 5
Power iteration: eigenvalues by repetition
Multiply a random vector by a matrix again and again. Why does it always end up pointing the same way?
About 40 min · 3 goals · Checked by automated tests
1.Why should I care?
For big matrices nobody solves the characteristic polynomial. Iterative methods built on repeated multiplication find the eigenvalues engineers need: the dominant vibration mode, the slowest-decaying mode, the stationary state of a Markov chain.
- ◇ Implement normalised power iteration and the Rayleigh-quotient estimate.
- ◇ Predict the convergence rate from |λ₂/λ₁|.
- ◇ Explain when power iteration fails (equal-magnitude eigenvalues, a start with no dominant component).
2.Discover
Step through [[2, 1], [1, 2]] and then the 'close eigenvalues' matrix. Count how many steps each needs before the estimate stops changing in the third digit, and compare with |λ₂/λ₁| in the readout.
Loading the interactive…
Can't use the interactive? Read a description instead
The power-iteration animator steps a unit vector through repeated multiplication by A, plotting previous iterates as dots and the dominant eigen-line as a band. A table lists the estimate at each step; a step button works without animation, and Play is disabled under reduced motion.
3.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1 · a fresh version every time
Run 3 steps of power iteration on A = [[4, 2], [2, 0]] from x₀ = (1, 0), normalising each time. What is the Rayleigh-quotient estimate xᵀAx / xᵀx of the dominant eigenvalue after step 3?
4.Apply it
Implement power and inverse iteration in the Code Lab. Use them on the two-mass stiffness matrix K = [[2, −1], [−1, 2]] to find both natural frequencies (ω² = eigenvalues for unit masses) and compare with the exact values 1 and 3.
5.Understand
The algorithm
Start with x₀ (not perpendicular to the dominant eigenvector). Repeat: y = A·xₖ, xₖ₊₁ = y/‖y‖. Estimate λ with the Rayleigh quotient r = xᵀAx / xᵀx. Normalising stops the numbers overflowing or underflowing; it does not change the direction.
Why it works and how fast
Write x₀ = c₁v₁ + c₂v₂ with |λ₁| > |λ₂|. Then Aᵏx₀ = λ₁ᵏ(c₁v₁ + c₂(λ₂/λ₁)ᵏv₂). The v₂ part dies like |λ₂/λ₁|ᵏ. For symmetric A, the Rayleigh quotient error dies even faster, like |λ₂/λ₁|²ᵏ.
Variations
If |λ₁| = |λ₂| (for example eigenvalues 2 and −2, or a complex pair), the direction never settles. Inverse iteration (apply A⁻¹, by solving with LU) finds the smallest eigenvalue; shifted inverse iteration with (A − σI)⁻¹ finds the one nearest σ. Production libraries use the QR algorithm, which is a sophisticated relative.
Explain it another way
Shout into a canyon: echoes at every pitch come back, but the canyon's resonant pitch keeps getting reinforced, until it is all you hear.
Each step costs one matrix–vector product, O(n²) for dense A and O(nnz) for sparse A, which is why it scales to enormous matrices.
Finding a structure's lowest natural frequency uses inverse iteration on the stiffness and mass matrices, because the lowest mode is usually the most dangerous.
Worked example 1
One step of power iteration on A = [[2, 1], [1, 2]] from x₀ = (1, 0). Find the new estimate.
A x₀ = (2, 1); normalise: x₁ = (2, 1)/√5. Ax₁ = (5, 4)/√5. Rayleigh quotient = x₁·Ax₁ = (10 + 4)/5 = 2.8. (True λ₁ = 3.)
Common mix-ups
- Power iteration finds all the eigenvalues.
✓ It finds the dominant one. Deflation, inverse iteration or QR are needed for the rest. - Normalising changes the answer.
✓ It only rescales; the direction, and so the estimate, is unchanged.
6.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2 · a fresh version every time
Run 1 step of power iteration on A = [[1, 1], [1, 4]] from x₀ = (1, 0), normalising each time. What is the Rayleigh-quotient estimate xᵀAx / xᵀx of the dominant eigenvalue after step 1?
Practice 3
With |λ₂/λ₁| = 0.5, about how many steps reduce the unwanted component by a factor of 10⁶? (Nearest whole step.)
Practice 4
Power iteration on [[0, 1], [1, 0]] from (1, 0) does what?
Practice 5
To find the smallest-magnitude eigenvalue, you…
7.Predict
A has eigenvalues 1.0 and 0.9. How quickly will power iteration settle on the dominant eigenvector?
Guess first. Being wrong here is how the surprise works.
8.Reflect
9.Go further
Research mode: limits and open questions
Krylov methods (Lanczos, Arnoldi) generalise power iteration by keeping all the iterates, finding many eigenvalues at once.
Concepts: Numerical linear algebra: conditioning, LU and power iteration · Eigenvalues and the stability of dynamic systems