TL;DR
A matrix that stretches space has one direction that gets stretched more than all the others. That direction is its dominant eigenvector. Power iteration finds it by a very simple loop: multiply a starting Vector by the matrix, divide the result by its length, and repeat. After enough rounds the vector points along the dominant direction, and the length you divided by tells you the stretch factor.
Builds on: Eigenvalues and Eigenvectors, Vector Norm · Leads to: PageRank
Where it's used
Ranking web pages. Google's early search engine ranked pages with PageRank. The score of every page is the eigenvector of a matrix with billions of rows, one per page, and that matrix is far too large to diagonalise. Power iteration needs only products of the matrix with a vector, which the link structure supplies directly. The 1998 and 1999 papers by Brin, Page and colleagues describe repeated multiplication of this kind.
Estimating the leading mode of data. In Principal Component Analysis the first component is the direction of greatest variance, which is the top eigenvector of the data's covariance matrix. For a very large dataset, a few power-iteration steps give that direction without computing all the eigenvectors.
Long-run behaviour of a random process. A Markov Chain with a transition matrix settles into a steady share of time spent in each state. That steady share is a row vector with , so it is an eigenvector of 's transpose with eigenvalue 1. Multiplying a starting distribution by over and over is exactly power iteration, and it is how the chain's long-run mix is often computed in practice.
How it works
Take a tiny matrix and trace one run. Let
- Start with any nonzero vector. Here . Check: it has length 1.
- Multiply by the matrix. . The vector changed direction and got longer. Check the second entry: the second row is , so it is .
- Divide by the length. The length of is . So . Check: its length is 1 again. The division changes only the size, never the direction, so the direction is what we keep.
- Repeat the multiply and divide. Multiplying by gives , with length . Dividing gives . Each round the direction moves a little closer to the answer.
- Stop when the direction stops moving. After a few more rounds the vector is to three decimals, and the lengths before dividing settle near . Check: times is , which is 3 times .
- Read off the answer. The direction is the dominant eigenvector , and the length is its eigenvalue.
The plot below shows the length from step 4 onward. It climbs quickly toward the dashed line at 3.
- eigenvalue 3
- length of A x_k
flowchart LR
S[start with x0] --> M[multiply by A]
M --> N[divide by its length]
N --> T{direction still changing?}
T -- yes --> M
T -- no --> R[direction is the dominant eigenvector, length is its eigenvalue]
The math
A vector is written in the eigenvector basis as a sum. Here we assume that is , that it has independent eigenvectors with eigenvalues , and that the eigenvalue of largest absolute value is strictly larger than the rest: . This is the dominant eigenvalue, and is the dominant eigenvector.
Step 1 in symbols: split the start vector
Write the starting vector as . The coefficient must not be zero, or the start has no component along the dominant direction. A random start satisfies this with probability 1.
For the example, , where has eigenvalue 3 and has eigenvalue 1.
Step 2 in symbols: multiply k times
Since , applying a total of times scales each piece by its own eigenvalue to the -th power:
In the example, . The first term grows three times faster each round.
Step 3 in symbols: divide out the growth
Factor out :
Because for every , each power shrinks to zero as grows. What is left is , which points along the dominant eigenvector. This is why the loop works: the other directions fade relative to the dominant one.
The normalised iteration is . Dividing by the length at each round keeps the numbers from overflowing; it does not change the direction, so the limit is the same.
Step 4 in symbols: estimate the eigenvalue
Once is close to with length 1, the length is close to . Here is over four rounds, converging to .
The ratio of the gaps decides the speed. The error after rounds shrinks roughly like . With ratio the error falls by a factor of about three each round. If the two eigenvalues are nearly equal in size, convergence is very slow.
Worked examples
Let and . Skip the division so the growth is visible.
- Multiply: . The first entry doubled and the second stayed the same.
- Multiply again: .
- Multiply once more: .
- Read the pattern: the first entry is and the second is always 1. The direction is already close to .
- Interpretation: the dominant eigenvector is with eigenvalue 2, and the iteration found it because the first coordinate grows fastest.
Use and start from , with the division at each step.
- Round 1: , length . So .
- Round 2: , length . So .
- Round 3: , length . So .
- Round 4: the length is , and the direction is to three decimals.
- Interpretation: the lengths approach , the dominant eigenvalue, and the direction approaches , its eigenvector. The gap to 3 shrinks by roughly a factor of nine each round (0.136, then 0.016, then 0.002), faster than the direction's error, which shrinks by about three, as Step 4 predicted.
Three pages link as follows. Page A links to B and to C. Page B links to C. Page C links to A. Think of a surfer who, on each page, picks one outgoing link at random. The chance of being on each page after one step is given by the matrix
acting on the vector of probabilities . Start with equal chances .
- Round 1: A gets all of C's chance, so . B gets half of A's chance, so . C gets half of A plus all of B: . So .
- Round 2: .
- Round 3: .
- Round 4: .
- Round 5: .
- Round 6: .
- Interpretation: the vector settles toward . This is the eigenvector of with eigenvalue 1, and it says the surfer spends 40 percent of the time on A, 20 percent on B and 40 percent on C in the long run. PageRank does the same kind of calculation on the web, with a small extra step that makes sure the process always settles.
Try it: from , compute .
Answer: . Check: the first entry is C's old value ; the second is half of A's , which is ; the third is half of A's plus B's, .
Common mistakes and tradeoffs
It is tempting to think the iteration finds all the eigenvectors. In fact it finds only the dominant one, because the other components fade away. To get the second eigenvector you must remove the first from the vectors (deflation) or use a different method.
It is tempting to think the start vector must be chosen carefully. In fact almost any random start works, because only the dominant coefficient has to be nonzero. The only real failure is a start that lies exactly in the subspace of the other eigenvectors, which a random start almost never does.
It is tempting to think that a larger matrix needs more rounds. In fact the speed depends on the ratio , not on the size . A matrix with a clear gap between its top two eigenvalues converges in a few dozen rounds even when it has millions of rows.
It is tempting to think the method always converges. In fact it can fail when two eigenvalues have equal absolute value, for example and , because the two terms then do not fade relative to each other and the direction keeps flipping. A matrix that rotates vectors can also fail for the same reason. For a cycle in a Markov chain, a small change such as adding a tiny chance to jump anywhere restores convergence.
Use power iteration when the matrix is very large, sparse, or available only through products with vectors, and when only the top eigenvector matters. Do not use it when you need all eigenvalues or when the top two eigenvalues are close in size. For a rectangular matrix, the singular value decomposition does the same job for the top direction. For small dense matrices, a full eigenvalue decomposition is the right tool.
History
The method is old: a 1929 paper by Richard von Mises and Hilda Pollaczek-Geiringer describes the iteration, and it was used for decades before computers made it common. Its strength is that it needs only matrix-vector products, so it suits machines with little memory.
It became famous in the late 1990s. Sergey Brin and Larry Page used the same idea to rank web pages, treating the link structure as a matrix and computing its dominant eigenvector by repeated multiplication. The method caught on because a single loop scales to a matrix with billions of rows, where computing every eigenvalue is impossible.
Recap
- A matrix stretches most directions and one direction most of all: the dominant eigenvector.
- Repeatedly multiplying any generic start vector by the matrix and dividing by its length pulls the vector toward that direction.
- The reason is that each eigenvalue's contribution grows as its eigenvalue to the power , so the largest one wins.
- The length after the division estimates the dominant eigenvalue, and the speed depends on the gap between the top two.
- Next, read PageRank for the concept of ranking pages with this idea, then the PageRank paper for how it was applied to the web.