TOPICS
Search

QR Algorithm


The QR algorithm is an iterative method for computing the eigenvalues and Schur decomposition of a square matrix. A shifted step starts with a complex matrix A_k and a shift s_k, forms the QR decomposition

 A_k-s_kI=Q_kR_k,

and reverses the factors to obtain

 A_(k+1)=R_kQ_k+s_kI=Q_k^HA_kQ_k,

where Q_k is a unitary matrix, R_k is an upper triangular matrix, I is the identity matrix, and the superscript H denotes conjugate transpose. Each step is therefore a similarity transformation and preserves the eigenvalues.

For a dense matrix, a Hessenberg decomposition first produces a Hessenberg matrix, reducing the work in subsequent iterations. Francis's implicitly shifted form realizes the transformations without explicitly factoring each shifted matrix. Local transformations create and move a small departure from Hessenberg form down the matrix, a procedure called bulge chasing. For a real matrix, conjugate-pair shifts permit real arithmetic and produce the 1×1 and 2×2 blocks of the real Schur decomposition. Small subdiagonal entries allow completed blocks to be separated from the remaining problem, a step called deflation (Watkins 2011).

The basic unshifted iteration does not converge for every matrix. Shift selection and deflation are central to practical implementations. The accumulated transformation gives Schur vectors, which need not be eigenvectors; these can instead be recovered by solving the corresponding triangular or block-triangular linear systems of equations.


See also

Eigenvalue, Hessenberg Decomposition, QR Decomposition, Schur Decomposition

Explore with Wolfram|Alpha

References

Francis, J. G. F. "The QR Transformation-Part 2." Comput. J. 4, 332-345, 1962. https://doi.org/10.1093/comjnl/4.4.332.Francis, J. G. F. "The QR Transformation: A Unitary Analogue to the LR Transformation-Part 1." Comput. J. 4, 265-271, 1961. https://doi.org/10.1093/comjnl/4.3.265.Watkins, D. S. "Understanding the QR Algorithm." SIAM Rev. 24, 427-440, 1982. https://doi.org/10.1137/1024100.Watkins, D. S. "Francis's Algorithm." Amer. Math. Monthly 118, 387-403, 2011. https://doi.org/10.4169/amer.math.monthly.118.05.387.

Cite this as:

Weisstein, Eric W. "QR Algorithm." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/QRAlgorithm.html

Subject classifications