A Givens rotation acts as the identity matrix outside two selected coordinates , and has the following block on those coordinates:
The convention with the opposite signs of the sines is equivalent after replacing by . A Householder reflection with nonzero normal vector is
It reverses the component parallel to and fixes the perpendicular hyperplane. Both are orthogonal matrices, so their transposes are their inverses and they preserve the Euclidean norm.
If , any nonzero , for instance the first Cartesian basis vector , gives and . Suppose . Choose
where for and otherwise. This choice ensures , including when is already on the first coordinate axis. Since ,
Therefore the Householder reflection satisfies
The orthogonality of , used here to check length preservation, gives . The chosen sign also avoids catastrophic cancellation in . This is a Householder reflection sending a vector to a coordinate axis with no zero-normal exception.
Set . At step , let be the column below the diagonal. Choose a Householder reflection sending onto its first coordinate axis, and embed it as
If , use . Left multiplication annihilates entries in column . Right multiplication performs the matching operation on row , because the matrix remains symmetric. The first coordinates are fixed, so zeros already created in earlier columns and rows are preserved.
Here the orthogonality of each is used explicitly: , so each update is a similarity transformation and preserves eigenvalues. After steps,
where is orthogonal and is a real symmetric tridiagonal matrix. This is Householder tridiagonalization.
A QR factorization of a real matrix is
Thus is an orthogonal matrix and is an upper triangular matrix. It exists even if is singular; requiring positive diagonal entries of is a convenient uniqueness convention for nonsingular , rather than part of the general existence statement. Over the complex numbers, replace orthogonal by unitary and transpose by conjugate transpose.
For an efficient QR algorithm, first reduce a general real matrix to upper Hessenberg matrix by orthogonal similarities. For a real symmetric matrix, use Householder tridiagonalization; the resulting symmetric tridiagonal matrix is the usual input in this setting. These structures are preserved by suitable QR algorithm implementations and greatly reduce the work per iteration.
The output is the eigenvalues, together with an orthogonal reduction when the factors are accumulated. In the symmetric case the target is a diagonal matrix, whose diagonal entries are the real eigenvalues; the accumulated orthogonal columns are eigenvectors. For a general real matrix, the target is the real form in a Schur decomposition: an upper block triangular matrix with diagonal blocks of size one or two. The two-by-two blocks represent complex conjugate eigenvalue pairs. An arbitrary unshifted iteration need not converge, so these describe the intended converged output, with appropriate shifts and block deflation in the QR algorithm.
With , repeat the shifted QR algorithm:
The QR shift is chosen from , for example its bottom-right entry or an eigenvalue of a trailing two-by-two block. Explicitly using the orthogonality of gives
Thus each update is a matrix similarity preserving eigenvalues. Accumulate if eigenvectors or the full reduction are wanted. Once a subdiagonal entry is negligible, block deflation in the QR algorithm separates the corresponding blocks and iteration continues on the active block.
The initial bottom-right entry is zero, so the chosen QR shift is . One valid QR factorization is , , using explicitly that . The update is
It repeats forever and never approaches a diagonal matrix. With the standard positive-diagonal convention for , this factorization is unique, so the Rayleigh-shift iteration is stationary and fails to diagonalize .
The failure is independent of harmless sign conventions. The columns of are already orthonormal, so another QR factorization can only replace by and by , where is diagonal with entries . Then still has zero diagonal and off-diagonal magnitudes one. Subsequent bottom-right shifts remain zero and the off-diagonal magnitude never decreases. The eigenvalues are , with equal absolute values, explaining the lack of separation in the unshifted QR algorithm.
Let the real QR shift be and put . A valid QR factorization, including the singular cases , is
Here , and multiplying verifies . Using this orthogonality in the shifted update gives
It is diagonal exactly when . Therefore all real shifts giving the eigenvalues in one iteration are
The resulting diagonal is or , respectively. Both QR shifts are exact eigenvalues. Sign changes in the QR factorization conjugate by a diagonal sign matrix and do not alter its zero pattern. This is Exact-shift diagonalization of a two-state swap matrix.

Articles by others on the same topic (0)

There are currently no matching articles.