Exercises — Eigenvalue computation — power method, inverse iteration
Throughout, our workhorse matrix is We reuse it so you can watch the same matrix answer many different questions.
Before starting, four reminders in plain words:
- An eigenpair satisfies : the matrix only stretches , never rotates it. See Spectral Decomposition.
- The identity matrix is the "do-nothing" matrix: for every vector (in 2D, ). We need it because " minus a number " makes no sense — you can't subtract a number from a matrix — so we subtract copies of the do-nothing matrix, written , which quietly means "subtract from each diagonal entry."
- The Rayleigh quotient of a vector is the number — read it as "if were an eigenvector, what stretch factor would it have?" See Rayleigh Quotient Iteration.
- Normalize means: divide a vector by its length so it has length . We do this every step so numbers don't explode.
The whole page in one picture. Before the algebra, look at the geometry the exercises live in. The figure below shows our unit vector starting at (pointing straight right) and swinging, step by step, toward the red dominant-eigenvector line. The dashed quarter-circle is the set of unit vectors (length exactly 1), and the angle marks show how each step shaves the angle to the red line. Every L1–L3 exercise is really "how fast does the black arrow reach the red line, and how do I read the stretch factor off it?" Keep this picture in your head as you compute.

Notice two things you'll verify numerically later: (1) each black arrow lands closer to the red line than the last, and (2) the gaps between consecutive arrows shrink — that shrinking is the linear convergence of Exercise 3.1.
L1 — Recognition
Exercise 1.1 (L1)
Which of these vectors is an eigenvector of , and with what eigenvalue?
Recall Solution 1.1
WHAT to do: an eigenvector is one where comes out as a plain multiple of — same direction, just scaled.
Test : . Is a multiple of ? No — the second entry went from to . So is NOT an eigenvector.
Test : . Is this a multiple of ? Check the ratio of first entries: . Check second: . Same factor → yes! .
Answer: is an eigenvector with eigenvalue ; is not.
Exercise 1.2 (L1)
The power method turns into and . Fill the blanks in words.
Recall Solution 1.2
Start from .
- Multiply both sides by : , so . The eigenvector is unchanged; the eigenvalue flips to .
- Subtract from : (recall is the do-nothing matrix, so ). Eigenvector unchanged; eigenvalue slides by .
This single fact — eigenvectors survive both operations, eigenvalues transform predictably — is the whole engine behind inverse and shifted iteration.
L2 — Application
Exercise 2.1 (L2)
Run two power-method steps on from . Report (normalized) and the Rayleigh estimates using the consistent rule (each has length 1).
Recall Solution 2.1
Convention (fixing the inconsistency): the Rayleigh estimate belongs to whatever normalized vector we currently hold. So for the same index . We report one per vector: for , for , for .
WHY normalize before each Rayleigh quotient: two reasons. (1) Numbers stay tame. Without rescaling, grows like and overflows; dividing by the length each step keeps every on the unit circle. (2) The quotient formula simplifies. When the denominator , so needs no division — the number you compute is the estimate.
WHY the Rayleigh quotient converges to the dominant eigenvalue: as the black arrow swings onto the red line (see the opening figure), , so . Feed that into the quotient: . So the closer the arrow gets to red, the closer gets to — which is exactly the monotone climb we compute below.
Rayleigh at the seed (length 1 already):
Step 1 — WHAT we do: apply , then rescale to length 1. WHY: tilts the vector toward the dominant direction; rescaling removes the growth so only the direction survives. Rayleigh at : first , then
Step 2: Rayleigh at : , then
Answer: , , and — a clean monotone climb toward .
Exercise 2.2 (L2)
Do one shifted-inverse step targeting the small eigenvalue: , . Solve , normalize, and give the Rayleigh estimate.
Recall Solution 2.2
WHAT to do: solve the linear system for the unknown — do not build an inverse matrix. This is the message of LU Decomposition: to find with , factor once and run forward/back-substitution, never form .
Set up the system. Here (subtract from each diagonal entry — that's what does). We solve Solve by elimination (this is what LU does under the hood). From row 1: . From row 2: , i.e. . Substitute into row 1: Back-substitute: . So — obtained without ever computing , exactly as preached.
Normalize: , so . Rayleigh: . First , then
Answer: , — essentially in a single step.
L3 — Analysis
Exercise 3.1 (L3)
For our , power-method error shrinks like with . Compute . How many steps to cut the error by a factor of ? Relate this to the shrinking arrow-gaps in the opening figure.
Recall Solution 3.1
WHY this ratio: the derivation factors out , leaving the leftover component scaled by . That leftover is the error, so its size after steps is . See Convergence Rates. We need . Take logs (log = "how many times do I multiply to reach this?"): Answer: ; about steps to gain three decimal digits. This is linear convergence — a fixed number of steps per digit. In the opening figure, this is exactly why each black arrow's angular gap to the red line is times the previous gap — the arrows visibly pile up against the red line.
Exercise 3.2 (L3)
For shifted inverse iteration with targeting , the rate is . Compute it and contrast with Exercise 3.1.
Recall Solution 3.2
WHY these two gaps: after shifting and inverting, the target eigenvalue becomes the huge one , and the nearest competitor is (the only other eigenvalue). The rate is the ratio of the "distance to target" over "distance to competitor": Answer: — one step already gains digits, versus for plain power method. Choosing near the target is what makes inverse iteration explosive: shrink and the rate plummets.
L4 — Synthesis
Exercise 4.1 (L4)
The dominant eigenvector of is . The other eigenvector is (the eigenvector of ). Suppose I start power method from the seed — i.e. exactly the direction. In exact arithmetic, where does power method converge, and why? What rescues it in real computation? Use the geometry of the opening figure to explain.
Recall Solution 4.1
Check the seed really is : . Is that ? Compute . Exact match — so is genuinely the direction, with zero component along , i.e. .
WHY it fails: the derivation needed with . If , then forever — it converges to and reports , not . Power method amplifies the largest present component; if the dominant one is absent it can't invent it.
Geometric picture: in the opening figure the red line is . A seed lying exactly on the perpendicular eigen-direction is a black arrow that maps straight back onto itself — it never swings toward the red line, because there's no red-line component to amplify. It's a knife-edge balance point.
WHAT rescues it: floating-point rounding. Every real multiplication injects a tiny error, which almost surely has a nonzero component. That seed of then gets amplified by and eventually takes over — the black arrow, nudged off the knife-edge, slides onto the red line after all. Lesson: a random seed has with probability 1, so we never worry in practice.
Exercise 4.2 (L4)
You want the eigenvalue of nearest to . Design the method, pick the shift, and predict the convergence rate. (Eigenvalues: .)
Recall Solution 4.2
WHAT to build: shifted inverse iteration with (put the shift exactly at the target region).
- , . They're equidistant! is the midpoint of the two eigenvalues.
- The eigenvalues of are and — equal magnitude, opposite sign. Rate
WHY this is the worst case: rate means no convergence — the method stalls because neither transformed eigenvalue dominates. Fix: nudge the shift off-center, e.g. : then , , and the closer eigenvalue is , so it converges to at rate . Answer: never place exactly between two eigenvalues; bias it toward the one you want.
L5 — Mastery
Exercise 5.1 (L5)
Prove that for our symmetric , the Rayleigh quotient error is second order: if (a perturbation of the true unit eigenvector by a small in a unit direction ), then , not . Verify numerically for our with .
Recall Solution 5.1
WHY symmetry matters: for symmetric , eigenvectors are orthogonal, and is a smooth function whose gradient vanishes at every eigenvector (each eigenvector is a critical point of the Rayleigh quotient — this is the Rayleigh Quotient Iteration insight). A function at a critical point changes only quadratically.
Proof. Write with , , . Expand the numerator, using and — crucially — symmetry, which gives : Denominator: The linear-in- term cancelled (thanks to , which needed symmetry). Hence .
Numeric check (): take the unit dominant eigenvector and the unit orthogonal direction (). Form and compute . The result gives , whereas the vector error is . Ratio — a clean (the constant , and , matching order). A linear error would have given , five times bigger.
Exercise 5.2 (L5)
Explain, using the transformation rules, why Rayleigh Quotient Iteration (updating the shift to the current Rayleigh estimate every step) converges cubically for symmetric matrices, and why plain shifted inverse iteration (fixed ) is only linear. Connect to the QR Algorithm and Characteristic Polynomial.
Recall Solution 5.2
Fixed shift (linear): with constant, each step multiplies the error by the fixed ratio . Constant ratio → error like → linear. See Convergence Rates.
Adaptive shift (cubic) — the full chain: set , the Rayleigh quotient of the current vector, and let be the current vector error.
- Shift accuracy (from Exercise 5.1): because the Rayleigh quotient is second-order accurate at a symmetric eigenvector, the shift lands within of the true eigenvalue. This is the crucial input — the shift error is quadratically small, not merely linearly small.
- One inverse-iteration step with that shift: the transformed target eigenvalue is , and the nearest competitor is with a fixed distance away. So the one-step contraction factor is
- Compound the two: the new error is the old error times that contraction factor: That is cubic convergence — the number of correct digits triples every step (3, 9, 27, …). The engine is the feedback loop: an accurate vector → a quadratically-accurate shift → a quadratically-strong contraction → an even more accurate vector.
Concrete link to QR and the characteristic polynomial:
- The QR Algorithm is, in disguise, shifted inverse iteration run on all eigenvectors at once. It uses Rayleigh-type Wilkinson shifts (essentially a corner Rayleigh quotient of the current matrix) to inherit exactly this cubic speed on symmetric problems — which is why practical libraries use QR, not the definitions we started from.
- We avoid the Characteristic Polynomial route () entirely: for that polynomial has no closed-form roots (Abel–Ruffini), and even numerically its roots are wildly sensitive to coefficient errors. Iteration sidesteps the polynomial: every eigenvalue is found by shifting and solving, and the Rayleigh feedback makes it cubically fast. Slogan: "don't root the polynomial — shift, solve, and let Rayleigh chase the answer."
Recall One-line recap of the whole page
Power method rides the biggest stretch; inverse iteration flips to the smallest; shifting aims anywhere; the Rayleigh quotient reads off the eigenvalue quadratically (symmetric case); and letting the shift chase that quotient buys cubic speed — the seed of the QR Algorithm.