Skip to content

Power iteration for the dominant eigenvalue

5 min read

Short answer

Start with any vector x0\mathbf x_0 and repeat xk+1=Axk/∥Axk∥\mathbf x_{k+1}=A\mathbf x_k/\|A\mathbf x_k\|. The vectors converge to the eigenvector of the largest-magnitude eigenvalue, and the Rayleigh quotient xTAxxTx\dfrac{\mathbf x^TA\mathbf x}{\mathbf x^T\mathbf x} converges to that eigenvalue.

Bar chartk=1k=2k=3k=4Rayleigh estimates for A = [[2,1],[1,2]] (true λ = 3).
The estimate approaches the dominant eigenvalue geometrically.

Why it works

Write x0=c1v1+c2v2+⋯\mathbf x_0=c_1\mathbf v_1+c_2\mathbf v_2+\cdots in eigenvectors. Then Akx0=c1λ1kv1+c2λ2kv2+⋯A^k\mathbf x_0=c_1\lambda_1^k\mathbf v_1+c_2\lambda_2^k\mathbf v_2+\cdots. If ∣λ1∣>∣λ2∣|\lambda_1|>|\lambda_2|, the first term dominates and the direction tends to v1\mathbf v_1, at rate ∣λ2/λ1∣k|\lambda_2/\lambda_1|^k.

Limits and extensions

It needs a unique dominant eigenvalue and a starting vector with c1≠0c_1\ne0. For the smallest eigenvalue apply it to A−1A^{-1} (inverse iteration); for others, shift A−μIA-\mu I. Google's PageRank is power iteration on a huge matrix.

Worked example

Apply power iteration to A=(2112)A=\begin{pmatrix}2&1\\1&2\end{pmatrix} from x0=(1,0)\mathbf x_0=(1,0) for three steps (no normalizing) and estimate λ\lambda.

Ax0=(2,1)A\mathbf x_0=(2,1); A(2,1)=(5,4)A(2,1)=(5,4); A(5,4)=(14,13)A(5,4)=(14,13). Rayleigh with x=(14,13)\mathbf x=(14,13): Ax=(41,40)A\mathbf x=(41,40), so 14⋅41+13⋅40142+132=1094365=2.997\dfrac{14\cdot41+13\cdot40}{14^2+13^2}=\dfrac{1094}{365}=2.997. The true dominant eigenvalue is 33.

Try it yourself

How fast does the error shrink if λ1=3\lambda_1=3 and λ2=1\lambda_2=1?

Show the answer

By a factor of ∣λ2/λ1∣=13|\lambda_2/\lambda_1|=\tfrac13 per step.

Keep going with practice

Vidi's linear algebra lessons find eigenvalues exactly; this is how software does it for large matrices.