Next: Shifting Up: The Householder-QR/QL Algorithm Previous: Givens Rotations

## The QR and QL Algorithms

Any real matrix, symmetric or not, can be decomposed into either of the forms:

 A = (3.55) A = (3.56)

where R is the upper triangular matrix (the right part) that includes the diagonal, L is the lower triangular matrix (the left part) that includes the diagonal, and Q is a rotation matrix.

It is easy to see how such a decomposition can be eventuated by applying, for example, Householder rotations or Givens rotations to matrix A, in order to annihilate everything below the diagonal. Observe that these will not be full similarity transformations, in other words they are not going to be . Remember that we have acted with P on from the right in order to do to rows, what application of PT to A from the left did to the columns. So if we just leave alone, we'll be left with a new matrix , with, say, k-th column zeroed under the diagonal. An accumulation of those PiT is some combined rotation transformation QT, such that

Multiplying by Q from the left yields:

quod erat demonstrandum.

Now, once we have done all that hard work and found both Q and R, by merely changing the order, i.e., replacing with we eventuate a similarity transformation on A:

This is called the QR transformation of matrix A and it has the following properties:

1.
it preserves symmetry of A
2.
it preserves triadiagonal form of A
3.
it preserves Hessenberg form of A
A Hessenberg matrix is a matrix with everything under the diagonal and under the one line that is under the diagonal (like in a tridiagonal matrix) set to zero.

The QR algorithm now works as follows. Once you have a tridiagonal matrix A, you

1.
find its decomposition
2.
generate
3.
find the decomposition of A1
4.
generate
5.
find the decomposition of A2
6.
generate
7.
and so on, until the off-diagonal elements vanish. Now, will they vanish? Will this whole process really end up in diagonalization of matrix A?
theorem
1.
If a general real, not necessarily symmetric matrix A has eigenvalues of different absolute value then the sequence Ai, as defined by the QR transformations of A, converges to an upper triangular form, with eigenvalues of A appearing on the diagonal in increasing order of their absolute magnitude.
2.
If A has an eigenvalue of multiplicity p then Ai still converges to an upper triangular form with the exception for a diagonal block matrix of order p whose eigenvalues are .
The workload for this algorithm is per iteration for a general matrix, but only per iteration for a tridiagonal matrix, and for a Hessenberg matrix.
Which is why the combination of the Householder triadiagonalization followed by the QR transformations is such an efficient method for finding eigenvalues of a symmetric matrix.

If there is a degenerate eigenvalue, i.e., a value of multiplicity p, then at the end of this procedure there will be p-1 non-vanishing elements on the super and sub-diagonal, that correspond to that value. Those elements then determine a submatrix that can be cut out of the original matrix A and diagonalized separately, for example, by evaluating a characteristic polynomial, or by Jacobi iterations.

There is nothing sacred about QR versus QL, so everything that's been said about QR works just as well for QL. But when you write a program, of course, you must choose one or the other. Since academics have a long history of leaning towards the left, we're going to choose QL in our example code too.

Next: Shifting Up: The Householder-QR/QL Algorithm Previous: Givens Rotations
Zdzislaw Meglicki
2001-02-26