TactivergeLite

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?

About 40 min · 3 goals · Checked by automated tests · Full interactive version

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.

Predict

A has eigenvalues 1.0 and 0.9. How quickly will power iteration settle on the dominant eigenvector?

  1. In one or two steps
  2. Slowly: the error shrinks by only about 10% per step
  3. 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.

You can also open the interactive on the full site when you have a faster connection.

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

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 4. Power iteration on [[0, 1], [1, 0]] from (1, 0) does what?
Practice 5. To find the smallest-magnitude eigenvalue, you…

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.

← Conditioning: when small errors become big onesLeast squares and the normal equations →