14 Vector Iterations and the QR Algorithm
To compute an eigenpair approximately, we seek a unit vector \(\bv\) and scalar \(\theta\) for which \(\bA\bv-\theta\bv\) is small. The residual bounds of the preceding section explain what such a calculation establishes for symmetric matrices.
We first multiply a vector repeatedly by the matrix, then replace multiplication by the solution of a shifted linear system to select other eigenvalues. These methods approximate one eigenpair at a time. The QR algorithm instead changes the whole matrix by orthogonal similarity transformations to expose all its eigenvalues.
14.1 Power Iteration and Shifted Inverse Iteration
The convergence claim comes from expanding the starting vector in an orthonormal eigenbasis. Write \(\bv^{(0)}=\sum_i c_i\bq_i\) with \(c_1\neq0\). Then \[ \begin{align} \bA^k\bv^{(0)} =\lambda_1^k\left(c_1\bq_1+\sum_{i=2}^nc_i(\lambda_i/\lambda_1)^k\bq_i\right). \end{align} \] Each unwanted component decreases relative to the first at least as fast as \(|\lambda_2/\lambda_1|^k\). Normalizing removes the common scale. A negative dominant eigenvalue can alternate the sign of the vector, so convergence is to a direction.
The vectors used in the shift formula must have unit norm. Before solving the next shifted system, test the eigenpair residual. At an exact eigenpair, the shift makes the matrix singular and the calculation should stop. A singular shift can also occur away from an eigenvector, so the formula alone is not a globally defined iteration. The local theorem below concerns steps for which the shifted solve exists, with exact convergence treated as termination.
14.2 The Practical QR Algorithm
14.3 The Jacobi Eigenvalue Algorithm
For a symmetric matrix, an alternative to the QR algorithm drives the off-diagonal entries to zero directly. Each step applies an orthogonal similarity by a plane rotation chosen to annihilate one off-diagonal entry. The method, due to Jacobi in 1846, is slower than shifted QR for a general dense matrix. It remains useful because it can compute the small eigenvalues of graded positive definite matrices to high relative accuracy (Demmel 1997), and because rotations acting on disjoint pairs of indices can be applied in parallel.
A rotation that annihilates \(a_{pq}\) may make a previously annihilated entry nonzero again, so the method does not terminate after \(n(n-1)/2\) steps. Convergence follows instead from a quantity that decreases at every step.
the referenced result shows that \(\operatorname{off}(\bA)^2\) decreases by \(2a_{pq}^2\) at every rotation. Choosing the largest off-diagonal entry at each step gives linear convergence, as the exercises show. The cyclic order avoids that search, and once the off-diagonal entries are small compared with the gaps between the eigenvalues, cyclic Jacobi converges quadratically, measured sweep by sweep (Golub and Van Loan 2013). Each sweep costs \(O(n^3)\) flops.
14.4 Shifted Hessenberg Systems
Several calculations require the solution of \((s\bI-\bA)\bx=\bb\) for many complex shifts \(s\) with the same \(\bA\) and \(\bb\). The vector \((s\bI-\bA)^{-1}\bb\) is the resolvent of \(\bA\) applied to \(\bb\). Resolvents appear in Laplace transforms of solutions of linear differential equations, in frequency responses, and in contour-integral formulas for matrix functions. Factoring \(s\bI-\bA\) separately for each of \(N\) shifts costs about \(\tfrac23n^3\) flops per shift. The Hessenberg reduction of the referenced result removes this repetition, because adding a multiple of the identity does not change Hessenberg structure.
Reducing \(\bA\) to Hessenberg form with Householder reflectors costs about \(\tfrac{10}{3}n^3\) flops when \(\bQ\) is kept as a product of reflectors, and this reduction is done once (Golub and Van Loan 2013). Applying \(\bQ^T\) and \(\bQ\) to a vector costs \(O(n^2)\) flops. For \(N\) shifts, the total cost is therefore about \(\tfrac{10}{3}n^3+O(Nn^2)\) flops, compared with about \(\tfrac23Nn^3\) for separate factorizations. The reduction pays for itself after five shifts, and with one hundred shifts it reduces the cost by a factor of about twenty.