Power iteration
In mathematics, power iteration (also known as the power method) is an eigenvalue algorithm: given a diagonalizable matrix A , the algorithm will produce a number \lambda , which is the greatest (in absolute value) eigenvalue of A , and a nonzero vector v , which is a corresponding eigenvector of \lambda , that is, Av = \lambda v .[src] The algorithm is also known as the Von Mises iteration.[src] Power iteration is a very simple algorithm, but it may converge slowly.[src] The most time-consuming operation of the algorithm is the multiplication of matrix A by a vector, so it is effective for a very large sparse matrix with appropriate implementation.[src] The speed of convergence is like (\lambda_2 / \lambda_1)^k where k is the number of iterations, and \lambda_1 and \lambda_2 are, respectively, the eigenvalue of largest absolute value and an eigenvalue of second-largest absolute value (see a later section).[src] In other words, convergence is exponential with base being the spectral gap.[src]
In mathematics, power iteration (also known as the power method) is an eigenvalue algorithm: given a diagonalizable matrix A , the algorithm will produce a number \lambda , which is the greatest (in absolute value) eigenvalue of A , and a nonzero vector v , which is a corresponding eigenvector of \lambda , that is, Av = \lambda v .[src] The algorithm is also known as the Von Mises iteration.[src] Power iteration is a very simple algorithm, but it may converge slowly.[src] The most time-consuming operation of the algorithm is the multiplication of matrix A by a vector, so it is effective for a very large sparse matrix with appropriate implementation.[src] The speed of convergence is like (\lambda_2 / \lambda_1)^k where k is the number of iterations, and \lambda_1 and \lambda_2 are, respectively, the eigenvalue of largest absolute value and an eigenvalue of second-largest absolute value (see a later section).[src] In other words, convergence is exponential with base being the spectral gap.[src] ==The method== The power iteration algorithm starts with a vector b_0 , which may be an approximation to the dominant eigenvector or a random vector.[src] The method is described by the recurrence relation b_{k+1} = \frac{Ab_k}{\lVert Ab_k \rVert} So, at every iteration, the vector b_k is multiplied by the matrix A and normalized.[src] If we assume A has an eigenvalue that is strictly greater in magnitude than its other eigenvalues, i.e., \left\vert \lambda_1 \right\vert > \left\vert \lambda_2 \right\vert \geq \ldots \geq \left\vert \lambda_n \right\vert \geq 0 and the starting vector b_0 has a nonzero component in the direction of an eigenvector associated with the dominant eigenvalue, then a subsequence \left( b_k \right) converges to an eigenvector associated with the dominant eigenvalue.[src] Without the two assumptions above, the sequence \left( b_k \right) does not necessarily converge.[src] In this sequence, b_k = e^{i \phi_k} v_1 + r_k , where v_1 is an eigenvector associated with the dominant eigenvalue, and \| r_k \| \rightarrow 0 .[src] The presence of the term e^{i \phi_k} implies that \left( b_k \right) does not converge unless e^{i \phi_k} = 1 .[src] Under the two assumptions listed above, the sequence \left( \mu_k \right) defined by \mu_k = \frac{b_k^{*}Ab_k}{b_k^{*}b_k} converges to the dominant eigenvalue (with Rayleigh quotient).[src] One may compute this with the following algorithm (shown in Python with NumPy): import numpy as np from numpy import typing as npt def random_vector(dimension: int) -> npt.NDArray[np.float64]: rng = np.random.default_rng() return rng.random(dimension) def power_method( A: npt.NDArray[np.float64], num_iterations: int, ) -> npt.NDArray[np.float64]: if A.shape[0] != A.shape[1]: raise ValueError("A must be a square matrix.") # Choose a random initial vector to reduce the chance # that it is orthogonal to the dominant eigenvector.[src] b_k = random_vector(A.shape[1]) # Normalize the initial vector.[src] b_k /= np.linalg.norm(b_k) for _ in range(num_iterations): # Multiply by the matrix.[src] b_k1 = A @ b_k # Compute the length of the new vector.[src] b_k1_norm = np.linalg.norm(b_k1) # Stop if the new vector is within machine precision of 0.[src] if np.isclose(b_k1_norm, 0.0): raise ValueError("Power method produced the zero vector.") # Normalize the vector for the next iteration.[src] b_k = b_k1 / b_k1_norm # Return the approximate dominant eigenvector.[src] return b_k The vector b_k converges to an associated eigenvector.[src] Ideally, one should use the Rayleigh quotient in order to get the associated eigenvalue.[src] This algorithm is used to calculate the Google PageRank.[src] The method can also be used to calculate the spectral radius (the eigenvalue with the largest magnitude, for a square matrix) by computing the Rayleigh quotient \rho(A) = \max \left \{ \vert \lambda_1 \vert, \vert \lambda_2 \vert, \ldots, \vert \lambda_n \vert \right \} = \frac{b_k^\top A b_k}{b_k^\top b_k}.[src] ==Analysis== Let A be decomposed into its Jordan canonical form: A=VJV^{-1} , where the first column of V is an eigenvector of A corresponding to the dominant eigenvalue \lambda_1 .[src] Since generically, the dominant eigenvalue of A is unique, the first Jordan block of J is the 1 \times 1 matrix [\lambda_1], where \lambda_1 is the largest eigenvalue of A in magnitude.[src] The starting vector b_0 can be written as a linear combination of the columns of V : b_0 = c_1v_1 + c_2v_2 + \ldots + c_nv_n.[src] By assumption, b_0 has a nonzero component in the direction of the dominant eigenvector, so c_1 \ne 0 .[src] The computationally useful recurrence relation for b_{k+1} can be rewritten as: b_{k+1} = \frac{Ab_k}{\left\|Ab_k\right\|} = \frac{A^{k+1}b_0}{\left\|A^{k+1} b_0\right\|}, where the expression: \frac{A^{k+1}b_0}{\|A^{k+1}b_0\|} is more amenable to the following analysis: \begin{align} b_k &= \frac{A^kb_0}{\| A^k b_0 \|} \\ &= \frac{\left( VJV^{-1} \right)^k b_0}{\|\left( VJV^{-1} \right)^k b_0\|} \\ &= \frac{ VJ^kV^{-1} b_0}{\| V J^k V^{-1} b_0\|} \\ &= \frac{ VJ^kV^{-1} \left( c_1v_1 + c_2v_2 + \cdots + c_nv_n \right)}{\| V J^k V^{-1} \left( c_1v_1 + c_2v_2 + \cdots + c_nv_n \right)\|} \\ &= \frac{ VJ^k\left( c_1e_1 + c_2e_2 + \cdots + c_ne_n \right)}{\| V J^k \left( c_1e_1 + c_2e_2 + \cdots + c_ne_n \right) \|} \\ &= \left( \frac{\lambda_1} \right)^k \frac{c_1} \frac{ v_1 + \frac{1}{c_1} V \left( \frac{1}{\lambda_1} J \right)^k \left( c_2e_2 + \cdots + c_ne_n \right)}{ \left \| v_1 + \frac{1}{c_1} V \left( \frac{1}{\lambda_1} J \right)^k \left( c_2e_2 + \cdots + c_ne_n \right) \right \| } \end{align} The expression above simplifies as k \to \infty \left( \frac{1}{\lambda_1} J \right)^k = \begin{bmatrix} [1] & & & & \\ & \left( \frac{1}{\lambda_1} J_2 \right)^k& & & \\ & & \ddots & \\ & & & \left( \frac{1}{\lambda_1} J_m \right)^k \\ \end{bmatrix} \rightarrow \begin{bmatrix} 1 & & & & \\ & 0 & & & \\ & & \ddots & \\ & & & 0 \\ \end{bmatrix} \quad \text{as} \quad k \to \infty.[src] The limit follows from the fact that the eigenvalue of \frac{1}{\lambda_1} J_i is less than 1 in magnitude, so \left( \frac{1}{\lambda_1} J_i \right)^k \to 0 \quad \text{as} \quad k \to \infty.[src] It follows that: \frac{1}{c_1} V \left( \frac{1}{\lambda_1} J \right)^k \left( c_2e_2 + \cdots + c_ne_n \right) \to 0 \quad \text{as} \quad k \to \infty Using this fact, b_k can be written in a form that emphasizes its relationship with v_1 when k is large: \begin{align} b_k &= \left( \frac{\lambda_1} \right)^k \frac{c_1} \frac{v_1 + \frac{1}{c_1} V \left( \frac{1}{\lambda_1} J \right)^k \left( c_2e_2 + \cdots + c_ne_n \right)}{\left \| v_1 + \frac{1}{c_1} V \left( \frac{1}{\lambda_1} J \right)^k \left( c_2e_2 + \cdots + c_ne_n \right) \right \| } \\[6pt] &= e^{i \phi_k} \frac{c_1} \frac{v_1}{\|v_1\|} + r_k \end{align} where e^{i \phi_k} = \left( \lambda_1 / |\lambda_1| \right)^k and \| r_k \| \to 0 as k \to \infty The sequence \left( b_k \right) is bounded, so it contains a convergent subsequence.[src] Note that the eigenvector corresponding to the dominant eigenvalue is only unique up to a scalar, so although the sequence \left(b_k\right) may not converge, b_k is nearly an eigenvector of A for large k .[src] Alternatively, if A is diagonalizable, then the following proof yields the same result: Let \lambda_1, \lambda_2, \ldots, \lambda_m be the m eigenvalues (counted with multiplicity) of A in the order of descending absolute value (equalities allowed), that is |\lambda_1| \ge |\lambda_2|\ldots \ge |\lambda_m| , and let v_1, v_2, \ldots, v_m be the corresponding eigenvectors.[src] Suppose that \lambda_1 is the dominant eigenvalue, so that |\lambda_1| > |\lambda_j| for all j>1 .[src] The initial vector b_0 can be written: b_0 = c_1v_1 + c_2v_2 + \cdots + c_mv_m.[src] If b_0 is chosen randomly (with uniform probability), then c_1 \neq 0 with probability 1.[src] Now, \begin{align} A^kb_0 &= c_1A^kv_1 + c_2A^kv_2 + \cdots + c_mA^kv_m \\ &= c_1\lambda_1^kv_1 + c_2\lambda_2^kv_2 + \cdots + c_m\lambda_m^kv_m \\ &= c_1\lambda_1^k \left( v_1 + \frac{c_2}{c_1}\left(\frac{\lambda_2}{\lambda_1}\right)^kv_2 + \cdots + \frac{c_m}{c_1}\left(\frac{\lambda_m}{\lambda_1}\right)^kv_m\right) \\ &\to c_1\lambda_1^k v_1 && \left |\frac{\lambda_j}{\lambda_1} \right | 1 \end{align} On the other hand: b_k = \frac{A^k b_0}{\|A^kb_0\|}.[src] Therefore, b_k converges to (a multiple of) the eigenvector v_1 .[src] The convergence is geometric, with ratio \left| \frac{\lambda_2}{\lambda_1} \right|.[src] Thus, the method converges slowly if there is an eigenvalue close in magnitude to the dominant eigenvalue.[src] ==Applications== Although the power iteration method approximates only one eigenvalue of a matrix, it remains useful for certain computational problems.[src] For instance, Google uses it to calculate the PageRank of documents in their search engine, and Twitter uses it to show users recommendations of whom to follow.[src] The power iteration method is especially suitable for sparse matrices, such as the web matrix, or as the matrix-free method that does not require storing the coefficient matrix A explicitly, but can instead access a function evaluating matrix-vector products Ax .[src] For non-symmetric matrices that are well-conditioned the power iteration method can outperform more complex Arnoldi iteration.[src] For symmetric matrices, the power iteration method is rarely used, since its convergence speed can be easily increased without sacrificing the small cost per iteration; see, e.g., Lanczos iteration and LOBPCG.[src] Some of the more advanced eigenvalue algorithms can be understood as variations of the power iteration.[src] For instance, the inverse iteration method applies power iteration to the matrix A^{-1} .[src] Other algorithms look at the whole subspace generated by the vectors b_k .[src] This subspace is known as the Krylov subspace.[src] It can be computed by Arnoldi iteration or Lanczos iteration.[src] Gram iteration is a super-linear and deterministic method to compute the largest eigenpair.[src] ==See also== Rayleigh quotient iteration Inverse iteration ==References==[src]
58 sentences · 58 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Power iteration." encyclopegia.org, 2026, https://encyclopegia.org/wiki/power-iteration. Accessed 04 December 2026.
Chicago
"Power iteration." encyclopegia.org. Accessed December 4, 2026. https://encyclopegia.org/wiki/power-iteration.
APA
encyclopegia.org. (2026). Power iteration. Retrieved December 4, 2026, from https://encyclopegia.org/wiki/power-iteration
Accessed December 4, 2026 · CC BY-SA 4.0 · citation page · JSON