4.8.21 · D3Numerical Methods

Worked examples — Eigenvalue computation — power method, inverse iteration

3,228 words15 min readBack to topic

Every symbol here was earned in the parent: is our matrix, an eigenpair satisfies , is ordinary vector length , and the Rayleigh quotient is the current best eigenvalue guess. We reuse only those.


The scenario matrix

Every cell below is a distinct way the iteration behaves. The last column says which example covers it.

# Scenario class What makes it tricky Example
C1 Two positive eigenvalues, clear gap baseline power method Ex 1
C2 Dominant eigenvalue negative flips sign every step Ex 2
C3 Equal magnitude, opposite sign () power method never settles Ex 3
C4 Bad seed () amplification has nothing to grab Ex 4
C5 Smallest eigenvalue wanted inverse iteration, LU not Ex 5
C6 Interior / any eigenvalue shifted inverse iteration Ex 6
C7 Degenerate shift ( exactly) singular Ex 7
C8 Complex conjugate pair real power method oscillates, no limit Ex 8
C9 Real-world word problem translate a story into an eigenproblem Ex 9
C10 Exam twist: rate prediction predict convergence before iterating Ex 10
C11 Defective / repeated eigenvalue fewer eigenvectors than Ex 11

Ex 1 — C1 · Baseline power method (positive gap)

The true eigenvalues solve the Characteristic Polynomial , so . We aim for .

Index convention: is the vector after steps ( is the seed), and is the Rayleigh quotient built from that same .

  1. . Why this step? One multiply is the whole engine — pulls the vector toward its strongest stretch. , so .
  2. Rayleigh from the seed: . Why? uses , so it is our crude starting estimate — the least-squares eigenvalue for that vector.
  3. , normalize by : . Now . Why? uses , which already leans strongly toward , so the estimate jumps almost all the way to .
  4. Next step: (to three places), and keeps drifting toward . Why the indexing: each pairs with its own , so we report in order.

Verify: True for : , so normalized. Our is drifting toward . ✓ And . ✓


Ex 2 — C2 · Dominant eigenvalue negative

Rounding rule for this page: all decimals are rounded to three places, rounding half up.

  1. , , . Why? Standard iterate. Notice the first component went negative.
  2. , , . Why note the sign? Multiplying by flips the sign every step alternates along .
  3. Rayleigh reads the signed value: . Why the quotient still works: carries the sign, so a negative dominant eigenvalue is reported correctly even while the vector flips.

Verify: , . and . ✓


Ex 3 — C3 · Equal magnitude, opposite sign

  1. . Why watch this? The strict-gap assumption is broken, so the "landslide" argument dies.
  2. . Why it matters: we're back where we started — the vector oscillates forever between and , never settling on an eigenvector.
  3. every step (off-diagonal , axis vectors). Why ? Neither axis vector is an eigenvector; the two components never separate because their magnitudes tie.

The figure below plots exactly these iterates. Look at it: the coloured arrows land only on the two dashed axes — they hop between (lavender/butter) and (coral/mint) and never rotate toward the true eigenvector lines (the two grey dashed diagonals and ). That visual "trapped on the axes" is why the estimate stalls: the seed sits exactly halfway between the two eigenvectors, so neither can pull it in.

Figure — Eigenvalue computation — power method, inverse iteration

Verify: True eigenvectors are and . Our seed has equal weight on and , so they never separate. ✓


Ex 4 — C4 · Bad seed ()

  1. , . Why? With there is no piece to multiply by , so the first component stays exactly forever.
  2. forever. Why: in exact arithmetic the iteration is trapped on , reporting the subdominant , not .
  3. The rescue: perturb the seed, with tiny . Now the decomposition has ; each step multiplies that weight by against the other's — a relative factor per step — so it grows and eventually dominates.

Verify: With exact , (wrong). With , after enough steps . ✓


Ex 5 — C5 · Smallest eigenvalue via inverse iteration

  1. Solve , i.e. . Why solve, not invert? The parent's rule: solve, don't invert — LU-factor (see LU Decomposition) once, then each step is cheap substitution. , so .
  2. Normalize: , . Why? Keeps the vector from blowing up as the small- direction gets amplified.
  3. Rayleigh on the original : . Why not ? We want 's eigenvalue, and the eigenvectors are shared. roughly; .
  4. One more solve pushes .

Verify: for : , normalized. Our is already leaning that way; . ✓ (Compare the Rayleigh Quotient Iteration which updates each step for cubic speed.)


Ex 6 — C6 · Any interior eigenvalue via shift

  1. Form . Why shift? Its inverse has eigenvalues . The middle direction now has the huge value — it dominates.
  2. Solve : component-wise . Why one solve suffices: the component was multiplied by , dwarfing the others in a single step.
  3. Normalize (): — essentially , the middle eigenvector. Why normalize? The huge factor blew up; dividing by rescales it back to unit length so the next step (and the Rayleigh quotient) stay numerically sane.
  4. Rayleigh on : . Why so close? One step, because the shift sits right next to .

Verify: , . and . ✓


Ex 7 — C7 · Degenerate shift ( exactly)

First, recall the convergence-rate formula and name its indices. In shifted inverse iteration the error shrinks per step by where is the target eigenvalue (the one closest to , whose eigenvector we want) and is the second-closest eigenvalue to (the slowest-decaying leftover). This is just the power-method rate from the parent, applied to the transformed matrix whose eigenvalues are : the biggest is , the next biggest is , and their ratio is the boxed expression.

  1. . Why singular? The middle diagonal entry is (that is ), so — no inverse, the linear solve has no unique answer.
  2. The rate says "converge in zero steps". Why compute the rate here? It quantifies the "secretly good news": a rate of means the method wants to hand over the answer instantly — the singularity is the ideal limit, not a failure — but the exact-zero denominator entry makes the system unsolvable as written.
  3. The practical fix: back off to . Why it works: now is invertible but nearly singular, the middle direction is amplified by , and — remarkably — the near-singularity is harmless: the error vector aligns with , exactly what we want.

Verify: (singular), while . ✓


Ex 8 — C8 · Complex conjugate pair

  1. , . Why? rotates ; the seed just turns.
  2. , . Then , . Why it cycles: a rotation has no real eigenvector, so there's no real direction for power method to lock onto — the vector loops with period 4.
  3. always (rotation sends ). Why : is the dot product of a vector with its turn — always zero.

The figure shows this spin. Look at it: the four coloured arrows sit on the unit circle a quarter-turn apart, and the annotation "+90 deg each step" traces the rotation; after four hops you are back at . There is no arrow drifting toward a fixed line — visual proof that no real eigenvector exists to converge to.

Figure — Eigenvalue computation — power method, inverse iteration

Verify: Eigenvalues of are , both , no real gap. so . ✓


Ex 9 — C9 · Word problem (PageRank-style)

  1. . Columns sum to , so multiplying redistributes importance. . Why is the right operator: a page's importance = sum of importances flowing in along links, which is exactly a matrix–vector product.
  2. Normalize with ; already sums to . Iterate: ; .
  3. Watch the vector settle toward the eigenvector, and read off . Why is guaranteed: column sums means (the all-ones row-vector is a left eigenvector for eigenvalue ), forcing an eigenvalue ; the Perron–Frobenius theorem makes it the dominant one. So power method converges here, and the limiting Rayleigh quotient equals .
  4. Fixed point: solve directly. From row 1, ; from row 2, ; from row 3, ✓. So up to scale → normalize with (sum ) to .

Conclusion: the steady importances are — pages 1 and 3 tie for most important, page 2 is least. Our forecast (page 3 on top) was almost right: it ties for the lead.

Verify: . ✓ Eigenvalue , importances sum to . ✓


Ex 10 — C10 · Exam twist: predict the rate before iterating

  1. Power method error factor per step . Why this ratio: the parent showed the surviving decay term is . Need .
  2. Solve: steps. Why the log: raising to a power to hit a target is inverted by . (See Convergence Rates.)
  3. Shift-invert rate: eigenvalues of have sizes . Using the Ex 7 formula with target and second-closest : distances and , so rate .
  4. Need : steps.

Verify: ✓; (just above) so is correct. ✓, (too big) so is correct. 66 vs 4 — a speedup from a good shift.


Ex 11 — C11 · Defective / repeated eigenvalue

  1. Eigen-check: has a one-dimensional nullspace . Why "defective": algebraic multiplicity but geometric multiplicity — one eigenvector short, so is not diagonalizable and Spectral Decomposition does not apply; you use a Jordan form instead.
  2. , . , . Why the drift? Each multiply feeds a bit of in through the off-diagonal ; the first component grows.
  3. , — creeping toward , but slowly. Why slow: with equal eigenvalues there is no ratio to drive fast decay; convergence is only algebraic (like ), not geometric. See Convergence Rates.
  4. Rayleigh: . It overshoots then settles to as .

Verify: has the single eigenvalue (multiplicity ), one eigenvector ; and . ✓


Recall Scenario checklist (self-test)

Match each symptom to its fix. Vector flips sign every step ::: Dominant eigenvalue is negative — read the signed Rayleigh quotient (Ex 2). Vector cycles, never settles, real matrix ::: Either a tie (shift to break it, Ex 3) or a complex pair (use QR, Ex 8). Estimate stuck on the wrong (smaller) eigenvalue ::: Bad seed with ; perturb (Ex 4). Want the smallest eigenvalue ::: Inverse iteration — LU-solve, don't invert (Ex 5). Want an interior eigenvalue ::: Shift near it, then inverse iterate (Ex 6). Linear solve says "singular" ::: hit an eigenvalue exactly; nudge by (Ex 7). Convergence painfully slow, single eigenvalue ::: Defective/repeated eigenvalue — only algebraic decay; use QR (Ex 11).