Power Method

The power method finds the dominant eigenvalue of a matrix, the eigenvalue with the largest absolute value, along with an eigenvector for it. Start with a nonzero vector, multiply by A again and again, and rescale each time. The vectors line up with the dominant eigenvector, and the scale factors approach the eigenvalue.

Before this lesson: Eigenvalues and Eigenvectors, Condition Number of a Matrix and Matrix Multiplication

Why repeated multiplication finds the dominant eigenvector

Suppose A has eigenvalues with |λ₁| > |λ₂| ≥ … ≥ |λₙ| and eigenvectors v₁, …, vₙ that form a basis. Any starting vector can be written x⁽⁰⁾ = c₁v₁ + c₂v₂ + … + cₙvₙ. Multiplying by A multiplies each piece by its eigenvalue:

A^k \mathbf{x}^{(0)} = \lambda_1^k \left( c_1 \mathbf{v}_1 + c_2 \left(\dfrac{\lambda_2}{\lambda_1}\right)^k \mathbf{v}_2 + \cdots + c_n \left(\dfrac{\lambda_n}{\lambda_1}\right)^k \mathbf{v}_n \right)

Every ratio (λᵢ/λ₁)ᵏ shrinks toward 0, so the v₁ piece takes over, as long as c₁ ≠ 0. The vectors grow or shrink like λ₁ᵏ, so the method rescales each one to keep the numbers manageable.

Vectors from the origin to the points (1, 0), (1, 0.5), (1, 0.778) and (1, 0.907), the first four power-method vectors for A with rows (4, 1) and (2, 3). They turn toward the dashed line y = x, the direction of the dominant eigenvector (1, 1).
Each scaled vector x⁽ᵏ⁾ turns closer to the dominant eigenvector direction (1, 1).

Power method algorithm

  1. Choose a starting vector x⁽⁰⁾, often all ones or a random vector.
  2. Multiply: y = Ax⁽ᵏ⁾.
  3. Let μₖ be the entry of y with the largest absolute value (keep its sign).
  4. Rescale: x⁽ᵏ⁺¹⁾ = y / μₖ, so the largest entry of x⁽ᵏ⁺¹⁾ is 1.
  5. Repeat until μₖ and x⁽ᵏ⁾ stop changing; then λ₁ ≈ μₖ and v₁ ≈ x⁽ᵏ⁾.
\mathbf{y} = A\mathbf{x}^{(k)},\qquad \mu_k = \text{largest-magnitude entry of } \mathbf{y},\qquad \mathbf{x}^{(k+1)} = \dfrac{\mathbf{y}}{\mu_k}

Rate of convergence

The error shrinks by about the factor |λ₂/λ₁| each iteration, so the method is fast when the dominant eigenvalue is well separated and slow when |λ₂| is close to |λ₁|.

The Rayleigh quotient

A better eigenvalue estimate from a vector x is the Rayleigh quotient

R(\mathbf{x}) = \dfrac{\mathbf{x}^T A \mathbf{x}}{\mathbf{x}^T \mathbf{x}}

For a symmetric matrix, its error shrinks like |λ₂/λ₁|²ᵏ, about twice as many correct digits as μₖ (see dot product).

Power method examples

Example 1: A 2 × 2 matrix

Use the power method on A = \begin{bmatrix} 4 & 1 \\ 2 & 3 \end{bmatrix} starting from x⁽⁰⁾ = (1, 0). Do three iterations by hand, then use the table. The exact answer is λ₁ = 5 with eigenvector (1, 1).

\mathbf{y} = A(1, 0) = (4, 2),\quad \mu_0 = 4

Multiply; the largest entry is 4.

\mathbf{x}^{(1)} = \tfrac{1}{4}(4, 2) = (1, 0.5)

Rescale.

\mathbf{y} = A(1, 0.5) = (4 + 0.5,\ 2 + 1.5) = (4.5, 3.5),\quad \mu_1 = 4.5

Multiply.

\mathbf{x}^{(2)} = \tfrac{1}{4.5}(4.5, 3.5) = \left(1, \tfrac{7}{9}\right) \approx (1, 0.777778)

Rescale.

\mathbf{y} = A\left(1, \tfrac{7}{9}\right) = \left(4 + \tfrac{7}{9},\ 2 + \tfrac{21}{9}\right) = \left(\tfrac{43}{9}, \tfrac{39}{9}\right) \approx (4.777778, 4.333333)

Multiply; μ₂ = 43/9.

\mathbf{x}^{(3)} = \left(1, \tfrac{39}{43}\right) \approx (1, 0.906977)

Rescale.

kμₖx⁽ᵏ⁺¹⁾
04(1, 0.5)
14.5(1, 0.777778)
24.777778(1, 0.906977)
34.906977(1, 0.962085)
44.962085(1, 0.984718)

Answer: μₖ → 5 and x⁽ᵏ⁾ → (1, 1). The other eigenvalue is 2 (the trace is 7), so the error shrinks by about 2/5 = 0.4 per step: 5 − 4.906977 ≈ 0.093 and 5 − 4.962085 ≈ 0.038.

Example 2: A 3 × 3 symmetric matrix

Use the power method on A = \begin{bmatrix} 2 & 1 & 0 \\ 1 & 3 & 1 \\ 0 & 1 & 2 \end{bmatrix} from x⁽⁰⁾ = (1, 1, 1). Its eigenvalues are 4, 2 and 1.

\mathbf{y} = A(1, 1, 1) = (2 + 1,\ 1 + 3 + 1,\ 1 + 2) = (3, 5, 3)

Multiply.

\mu_0 = 5,\quad \mathbf{x}^{(1)} = (0.6, 1, 0.6)

Rescale by the largest entry.

\mathbf{y} = A(0.6, 1, 0.6) = (1.2 + 1,\ 0.6 + 3 + 0.6,\ 1 + 1.2) = (2.2, 4.2, 2.2)

Multiply.

\mu_1 = 4.2,\quad \mathbf{x}^{(2)} = \left(\tfrac{11}{21}, 1, \tfrac{11}{21}\right) \approx (0.523810, 1, 0.523810)

2.2/4.2 = 11/21.

\mathbf{y} = A\mathbf{x}^{(2)} = \left(\tfrac{43}{21}, \tfrac{85}{21}, \tfrac{43}{21}\right) \approx (2.047619, 4.047619, 2.047619)

For example, 2(11/21) + 1 = 43/21.

\mu_2 = \tfrac{85}{21} \approx 4.047619,\quad \mathbf{x}^{(3)} = \left(\tfrac{43}{85}, 1, \tfrac{43}{85}\right) \approx (0.505882, 1, 0.505882)

Rescale.

A(0.5, 1, 0.5) = (2, 4, 2) = 4(0.5, 1, 0.5)

Check the limit: it is an eigenvector for 4.

Answer: μₖ → 4 and x⁽ᵏ⁾ → (0.5, 1, 0.5), a multiple of (1, 2, 1). The start (1, 1, 1) has no component along (1, 0, −1), the eigenvector for λ = 2, so the error in μₖ shrinks by about |λ₃/λ₁| = 1/4 per step: 0.2, 0.047619, 0.011765.

Example 3: Improving the estimate with the Rayleigh quotient

Use x⁽²⁾ = (11/21, 1, 11/21) from Example 2 to compute the Rayleigh quotient, and compare it with μ₂ ≈ 4.047619.

A\mathbf{x}^{(2)} = \left(\tfrac{43}{21}, \tfrac{85}{21}, \tfrac{43}{21}\right)

From Example 2.

\mathbf{x}^T A\mathbf{x} = 2\left(\tfrac{11}{21}\right)\left(\tfrac{43}{21}\right) + \tfrac{85}{21} = \tfrac{946}{441} + \tfrac{1785}{441} = \tfrac{2731}{441}

Dot product of x with Ax.

\mathbf{x}^T\mathbf{x} = 2\left(\tfrac{11}{21}\right)^2 + 1 = \tfrac{242}{441} + \tfrac{441}{441} = \tfrac{683}{441}

Dot product of x with itself.

R = \dfrac{2731/441}{683/441} = \dfrac{2731}{683} \approx 3.998536

Divide; the 441s cancel.

|4 - 3.998536| \approx 0.0015,\quad |4.047619 - 4| \approx 0.048

Compare the errors.

Answer: R ≈ 3.998536, about 30 times closer to 4 than μ₂. For symmetric matrices, use the Rayleigh quotient as the eigenvalue estimate.

Example 4: When the power method fails

Try the power method on B = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} from (1, 0), and on the matrix \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix} from (1, −1).

B(1, 0) = (0, 1),\quad B(0, 1) = (1, 0)

The vectors swap forever.

\lambda = 1,\ -1

Eigenvalues of B: |λ₁| = |λ₂|, so no eigenvalue dominates.

\begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}(1, -1) = (1, -1)

The start is itself an eigenvector, for λ = 1.

c_1 = 0 \text{ for } \mathbf{v}_1 = (1, 1)

The start has no component along the dominant eigenvector (λ = 3).

Answer: for B the iterates cycle and never converge because the two eigenvalues tie in absolute value. In the second case the method returns λ = 1 instead of 3 because c₁ = 0. In practice, round-off usually adds a tiny c₁, but a random starting vector is safer.

Example 5: Long-run population growth (word problem)

A species has juveniles and adults. Each year, each juvenile produces 1 offspring and each adult produces 1.5; half the juveniles survive to become adults, and adults do not survive a second year. The Leslie matrix is L = \begin{bmatrix} 1 & 1.5 \\ 0.5 & 0 \end{bmatrix}. Use the power method from (1, 1) to find the long-run growth rate and age mix.

\mathbf{y} = L(1, 1) = (1 + 1.5,\ 0.5) = (2.5, 0.5),\quad \mathbf{x}^{(1)} = (1, 0.2)

μ₀ = 2.5.

\mathbf{y} = L(1, 0.2) = (1 + 0.3,\ 0.5) = (1.3, 0.5),\quad \mathbf{x}^{(2)} = \left(1, \tfrac{5}{13}\right) \approx (1, 0.384615)

μ₁ = 1.3.

\mathbf{y} = \left(1 + \tfrac{7.5}{13},\ 0.5\right) = \left(\tfrac{41}{26}, 0.5\right),\quad \mathbf{x}^{(3)} = \left(1, \tfrac{13}{41}\right) \approx (1, 0.317073)

μ₂ = 41/26 ≈ 1.576923.

\mathbf{y} = \left(1 + \tfrac{19.5}{41},\ 0.5\right) = \left(\tfrac{121}{82}, 0.5\right),\quad \mathbf{x}^{(4)} = \left(1, \tfrac{41}{121}\right) \approx (1, 0.338843)

μ₃ = 121/82 ≈ 1.475610.

\lambda^2 - \lambda - 0.75 = 0 \Rightarrow \lambda = 1.5 \text{ or } -0.5

Check with the characteristic equation (see characteristic polynomial).

L(1, \tfrac{1}{3}) = (1.5, 0.5) = 1.5\left(1, \tfrac{1}{3}\right)

Eigenvector for 1.5.

Answer: the estimates μₖ approach 1.5, so in the long run the population grows by 50% per year, with about 3 juveniles for every adult. The ratio |−0.5/1.5| = 1/3 explains the fast, alternating approach.

Common mistakes

MistakeExample of the errorFix
Scaling by the largest absolute value but dropping the signDividing (−6, 3) by 6 instead of −6Divide by the signed entry, −6, so a negative dominant eigenvalue shows up as negative μₖ.
Not rescalingComputing A²⁰x for λ₁ = 10, getting numbers near 10²⁰Rescale every iteration to avoid overflow and underflow.
Expecting the largest eigenvalue, not the largest in absolute valueExpecting 4 when the eigenvalues are 4 and −6The power method finds −6, the one with the largest |λ|.
Starting with a vector that has c₁ = 0Starting the matrix with rows (2, 1) and (1, 2) at (1, −1)Use a random start, or all ones when it is not special.
Stopping when μₖ changes little but x⁽ᵏ⁾ still movesStopping as soon as μₖ changes by less than 0.01Check both μₖ and the vector, or the residual ‖Ax − μx‖.

Related methods

Inverse power method

Applying the power method to A⁻¹ finds the eigenvalue of A closest to 0, since A⁻¹ has eigenvalues 1/λ. In practice, each step solves Ay = x with an LU factorization instead of forming A⁻¹.

Shifted inverse power method

Using (A − sI)⁻¹ finds the eigenvalue closest to a chosen shift s, and converges very fast when s is a good guess. With the Rayleigh quotient as the shift each step, this is Rayleigh quotient iteration.

PageRank

Google’s original PageRank is the dominant eigenvector of a huge web-link matrix, computed with the power method because only matrix-vector products are needed. The same idea ranks long-run states of Markov chains.

Practice problems

  1. Do two power-method iterations for A = \begin{bmatrix} 3 & 1 \\ 1 & 3 \end{bmatrix} from (1, 0).
  2. Compute the Rayleigh quotient for the matrix in Problem 1 with x = (1, 0.6).
  3. A matrix has eigenvalues 5, 2 and −1. By about what factor does the power-method error shrink per iteration?
  4. A matrix has eigenvalues −6, 4 and 1. Which eigenvalue does the power method find?
  5. Do two iterations for A = \begin{bmatrix} 4 & 1 & 0 \\ 1 & 4 & 1 \\ 0 & 1 & 4 \end{bmatrix} from (1, 1, 1).
  6. Will the power method converge for \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}? Explain.
  7. If |λ₂/λ₁| = 0.5, about how many iterations reduce the error by a factor of 10⁶?
  8. Is (1, 1) an eigenvector of \begin{bmatrix} 4 & 1 \\ 2 & 3 \end{bmatrix}? For which eigenvalue?
  9. A Leslie matrix is \begin{bmatrix} 0.5 & 1 \\ 0.5 & 0 \end{bmatrix}. Do two iterations from (1, 0), then find the dominant eigenvalue exactly. Is the population growing?
  10. Why does the power method rescale the vector at every step?
Show answers

1.

A(1, 0) = (3, 1),\quad \mathbf{x}^{(1)} = \left(1, \tfrac{1}{3}\right)

μ₀ = 3.

A\left(1, \tfrac{1}{3}\right) = \left(\tfrac{10}{3}, 2\right),\quad \mathbf{x}^{(2)} = (1, 0.6)

μ₁ = 10/3; 2 ÷ 10/3 = 0.6.

Answer: x⁽²⁾ = (1, 0.6) with μ₁ ≈ 3.3333; the iterates approach λ = 4 and (1, 1)

2.

A(1, 0.6) = (3.6, 2.8)

Multiply.

\mathbf{x}^T A\mathbf{x} = 3.6 + 0.6(2.8) = 5.28,\quad \mathbf{x}^T\mathbf{x} = 1 + 0.36 = 1.36

Dot products.

R = \dfrac{5.28}{1.36} \approx 3.882353

Divide.

Answer: about 3.8824 (the scale factor at this step is 3.6)

3.

\dfrac{|2|}{|5|} = 0.4

Ratio of the two largest |λ|.

Answer: about 0.4 per iteration

4.

Answer: −6, the eigenvalue with the largest absolute value; μₖ approaches −6

5.

A(1, 1, 1) = (5, 6, 5),\quad \mathbf{x}^{(1)} = \left(\tfrac{5}{6}, 1, \tfrac{5}{6}\right)

μ₀ = 6.

A\mathbf{x}^{(1)} = \left(\tfrac{13}{3}, \tfrac{17}{3}, \tfrac{13}{3}\right),\quad \mathbf{x}^{(2)} = \left(\tfrac{13}{17}, 1, \tfrac{13}{17}\right) \approx (0.764706, 1, 0.764706)

μ₁ = 17/3 ≈ 5.666667.

Answer: x⁽²⁾ ≈ (0.764706, 1, 0.764706); the exact dominant eigenvalue is 4 + √2 ≈ 5.414 with eigenvector (1, √2, 1)

6.

\lambda = 1,\ -1

|λ₁| = |λ₂|.

Answer: no; the iterates swap between two vectors because no eigenvalue dominates

7.

0.5^k \le 10^{-6} \Rightarrow k \ge \dfrac{6}{\log_{10} 2} \approx 19.9

Take logs.

Answer: about 20 iterations

8.

A(1, 1) = (4 + 1,\ 2 + 3) = (5, 5) = 5(1, 1)

Multiply.

Answer: yes, for λ = 5

9.

L(1, 0) = (0.5, 0.5),\quad \mathbf{x}^{(1)} = (1, 1)

μ₀ = 0.5.

L(1, 1) = (1.5, 0.5),\quad \mathbf{x}^{(2)} = \left(1, \tfrac{1}{3}\right)

μ₁ = 1.5.

\lambda^2 - 0.5\lambda - 0.5 = 0 \Rightarrow \lambda = 1 \text{ or } -0.5

Characteristic equation; factor as (λ − 1)(λ + 0.5) = 0.

Answer: the dominant eigenvalue is exactly 1, so the population levels off (neither grows nor shrinks) with 2 juveniles per adult

10.

Answer: Aᵏx grows or shrinks like λ₁ᵏ, which soon overflows or underflows in floating-point arithmetic; rescaling keeps the entries near 1 without changing the direction

Power method FAQ

What does the power method find?

It finds the dominant eigenvalue (the one with the largest absolute value) and a corresponding eigenvector. With A⁻¹ or a shift, variants find other eigenvalues.

When does the power method converge?

It converges when one eigenvalue is strictly larger in absolute value than all the others and the starting vector has a nonzero component along its eigenvector. The error shrinks by about |λ₂/λ₁| per step.

What is the Rayleigh quotient in the power method?

It is R(x) = xᵀAx / xᵀx, an eigenvalue estimate from the current vector. For symmetric matrices it is much more accurate than the scale factor.

Why is the power method used if it is slow?

Each step needs only one matrix-vector product, so it works on huge sparse matrices, such as web-link graphs, where factoring the matrix would be impossible.

Summary

  • The power method repeats y = Ax, then x = y/μ, where μ is the largest-magnitude entry of y.
  • μₖ → λ₁ and x⁽ᵏ⁾ → v₁ when |λ₁| is strictly largest and c₁ ≠ 0.
  • The error shrinks by about |λ₂/λ₁| per step.
  • The Rayleigh quotient xᵀAx / xᵀx gives a sharper estimate for symmetric matrices.
  • The inverse and shifted inverse power methods find the smallest eigenvalue or the one nearest a shift.

Previous lesson: Condition Number of a Matrix

Next lesson: Newton’s Method for Systems

Back to the Numerical Methods Index