Lite / Independent Engineering Research / 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?
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).
Predict
A has eigenvalues 1.0 and 0.9. How quickly will power iteration settle on the dominant eigenvector?
- In one or two steps
- Slowly: the error shrinks by only about 10% per step
- Never
Guess first, then reveal
The unwanted component shrinks by |λ₂/λ₁| = 0.9 per step relative to the dominant one, so reducing it a millionfold needs about 130 steps.
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.
What the interactive shows (text version)
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.
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
Intuitive
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.
Technical
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.
Applied
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.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
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.
Reflect
Why is 'one matrix–vector product per step' such an attractive property for very large problems?
Write your answer on paper or in your own notes. Lite never stores what you write.
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.