Short answer: Power iteration estimates the dominant eigenvector of a matrix by repeating x ← Ax and normalizing. If one eigenvalue is strictly larger in magnitude than the others, the direction of x converges to that eigenvector and the Rayleigh quotient converges to the eigenvalue. The error shrinks by about |λ₂/λ₁| each step. A tie for the largest magnitude, or a start that is orthogonal to the dominant eigenvector, breaks the argument. PageRank is this iteration on a damped link matrix.
What the problem actually asks
The definition Av = λv is a polynomial system. For one extreme eigenpair the power method uses only matrix-vector products. Each multiplication amplifies the component along the largest eigenvalue more than the others, so after normalization that component dominates. The Rayleigh quotient x·Ax / x·x reads the eigenvalue off the current vector without a separate solve.
The method does not find the full spectrum. Subspace iteration and QR algorithms do that. A shift-and-invert variant finds an eigenvalue near a chosen shift and is a different algorithm that needs a linear solve.
What the algorithm guarantees
Under a unique dominant eigenvalue and a start that has a nonzero component along its eigenvector, the angle to that eigenvector falls geometrically with ratio |λ₂/λ₁|. Time is one matrix-vector product per iteration. Extra memory is the vector. The sign of x is arbitrary. Convergence is slow when the top two magnitudes are close, which is a property of the matrix, not a bug in the normalization.
A stochastic matrix for PageRank is damped by a teleport probability so the dominant eigenvalue is simple and the ratio is bounded away from 1. Undamped PageRank on a general graph can have a dominant eigenvalue that is not unique in the way the plain iteration wants.
The working steps
- Start with a nonzero vector x, not orthogonal to the target eigenvector. A random start is the usual choice.
- Replace x by Ax, then divide x by its norm. A maximum-norm scaling also works and avoids a square root.
- The Rayleigh quotient x·Ax / x·x estimates the eigenvalue. For a nonnegative PageRank vector, the one-norm is the usual scale so the entries sum to 1.
- Stop when successive vectors, compared up to sign, differ by less than a tolerance.
- If the top magnitudes are close, expect many iterations. A shift or a different algorithm is the remedy, not more of the same ratio.
The geometric ratio requires a spectral gap. The method finds one extreme eigenpair. It is not a proof of the full set of eigenvalues. PageRank is a damped application. Without the damping the iteration may not match the theorem the caller has in mind.
Approaches that look simpler and fail
| Approach | Why it fails when the two largest magnitudes are equal |
|---|---|
| Expect convergence with no spectral gap | The error factor is the ratio of magnitudes. A ratio of 1 does not shrink the unwanted component. |
| Start at a vector orthogonal to the dominant eigenvector | Multiplication never creates that component in exact arithmetic. The iteration lives in the remaining invariant subspace. |
| Read an arbitrary entry of Ax as the eigenvalue | The scale of x is reset every step. The Rayleigh quotient, or a known normalization such as the PageRank sum, is the readout. |
| Use the undamped web matrix and cite the PageRank gap | The teleport term is what creates the convenient gap. The bare link matrix of a general graph need not have it. |
A full spectrum is a QR algorithm or a library eigensolver. A damped ranking iteration is PageRank. Power iteration is the repeated multiplication that isolates a dominant eigenpair.
A working example
This Python fragment repeatedly multiplies by the matrix and normalizes. The matrix [[2, 1], [1, 2]] has dominant eigenvalue 3 and eigenvector along (1, 1). It prints the Rayleigh quotient rounded to 3.00.
vec = [1.0, 0.0]
A = [[2.0, 1.0], [1.0, 2.0]]
for _ in range(20):
nxt = [A[i][0] * vec[0] + A[i][1] * vec[1] for i in range(2)]
norm = sum(v * v for v in nxt) ** 0.5
vec = [v / norm for v in nxt]
rayleigh = sum(vec[i] * (A[i][0] * vec[0] + A[i][1] * vec[1]) for i in range(2))
assert abs(rayleigh - 3) < 1e-6
print(f"{rayleigh:.2f}")
Where it is used
Power iteration extracts the dominant eigenvector of a large sparse matrix. PageRank is that iteration on the damped link matrix. A symmetric matrix whose whole spectrum is required uses a different solver.
When you can drop this algorithm
Drop plain power iteration when the desired eigenvalue is not the largest in magnitude or the gap is tiny. Use a shift-and-invert method or a library solver. Keep it for a dominant pair with a real gap, including damped PageRank.
Why this stays published
We publish this so a search for power iteration returns the normalize-and-multiply loop and the spectral-gap ratio that sets its speed. Power iteration converges to the dominant eigenvector by repeated multiplication and normalization, at a rate set by the ratio of the two largest eigenvalue magnitudes.
本文由 HoHo 與 AI 協作整理,最後更新於 2026 年 11 月 13 日。
