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.
QR shift 2026-10-31
A QR shift is a scalar subtracted before the QR factorization in a QR algorithm step and restored after reversing the factors:
The final identity uses the orthogonality of , proving that the eigenvalues are preserved. Choosing a shift near an eigenvalue can accelerate block deflation in the QR algorithm. A common choice is the current bottom-right entry, but it can stall, as in Exact-shift diagonalization of a two-state swap matrix.