Chapter 11 §08 brought a square matrix to upper
Hessenberg form with reflections and then stopped, with
a warning attached: no finite procedure built from
arithmetic and square roots can carry that reduction on
to triangular form, because such a procedure would
extract the roots of an arbitrary polynomial from its
coefficients, and the theorem of Abel and Ruffini
forbids it — a theorem this book quotes, there and here,
and does not prove. Every eigenvalue method must
therefore iterate, and nothing proved below rests on
that quotation. The iteration this section develops is
the one Chapter 11 named in a single sentence — factor
, then
replace by — and we now ask why
it works, why it is always started from a Hessenberg
matrix, and why it is always run with a shift.
Factor and
multiply back
Section 4 iterated a matrix against a
vector: the power method drives towards the dominant
eigenvector, one eigenvalue at a time. The whole
spectrum at once needs an iteration on
matrices, and it must be an iteration
by similarity, or the spectrum would not survive it.
Chapter 11’s reflections already gave us a supply of
similarities that cost little:
with unitary.
The question is which to take.
Here is the answer, and it looks like sleight of
hand. Factor and then multiply the two factors back
in the other order. Since , the
product is
, so nothing has been lost; and the
reversal shifts weight from the upper triangle into the
lower one in a way that, repeated, empties the lower
triangle altogether.
Factor the matrix, then put the factors back the
wrong way round, and repeat.
Definition
24.5.1 (The QR Iteration)
Let , where or . Set , and for define where is a
factorization with unitary and upper
triangular. The sequence
is the unshifted QR iteration started
at .
In words: at every step we factor the current matrix,
then form the product of its factors in the reversed
order, and that product is the next matrix. The
superscript in parentheses counts steps, never
coordinates.
Well-definedness. A factorization
exists at every step, for every square matrix and with
no hypothesis on its columns, by Theorem 11.8.4. It
need not be unique: if is diagonal with ,
then is
another one. When is
invertible the ambiguity is exactly
that, and demanding a positive real diagonal in removes it, by
Theorem 11.8.1; and
if is invertible
then so is every , being similar
to . We do not
need the normalization for anything below, so the
definition leaves the choice open.
Proposition
24.5.1 (Every Step Is a Unitary
Similarity)
In the notation of Definition 24.5.1, for every . Consequently all the
matrices
are unitarily similar to , and they share its
characteristic polynomial, its eigenvalues with
multiplicities, its trace, and its determinant.
Proof. Since is unitary,
(Definition 11.7.2),
so A unitary matrix is invertible with , so this
exhibits
as similar to (Definition 4.2.2);
composing these similarities for makes similar to . Similar
matrices have the same characteristic polynomial (Theorem 7.10.3),
hence the same eigenvalues with multiplicities, and the
same trace and determinant. This proves the
proposition.
Two examples fix what the iteration does and does not
do.
Example
(Two matrices the iteration cannot move)
Determine the QR iterates of and of
the rotation .
Solution. For : the factorization
has
unitary and
upper triangular
with positive diagonal, so by the uniqueness in Theorem 11.8.1 it
is the factorization. Then ,
and the iteration stands still. It has nothing to do:
is already
triangular and its diagonal already lists the
eigenvalues (Theorem 9.7.4).
For : here
is itself
unitary, since its columns and are orthonormal,
so is
a factorization with upper triangular
with positive diagonal — again the unique one. So ,
and the iteration stands still here too. This time it
has everything to do: the eigenvalues of are , and is not triangular. The
iteration is stuck.
The second matrix is the section’s standing negative
example, and the reason it is stuck is visible already:
. We return to it after the convergence
theorem, and repair it with a shift.
Warning. Reversing the
factors is not a similarity for just any
factorization. The step works because is unitary, so that
and . Do the same with an factorization and
you get , which is still a similarity — but
with in
place of ,
and can be
enormous. That is the older iteration, and its
instability under rounding is exactly the instability of
elimination without pivoting met in Section 2.
The
iteration is the power method in disguise
Nothing said so far suggests that the iterates go
anywhere. The identity that explains them is the
following, and it is the heart of the section: the
accumulated factors of steps are a QR
factorization of the -th power of . Powers of are what the power
method of Section 4 runs on, so the identity says the
two methods are the same method, one applied to a vector
and the other to a whole basis at once.
Write The first is unitary, as a product of unitary
matrices (Proposition 11.7.4),
and the second is upper triangular, as a product of
upper triangular matrices.
Theorem
24.5.2 (QR Iterates Factor the Powers)
Let and let , , be as in Definition 24.5.1. Then
for every ,
In particular is a QR
factorization of .
Idea. Induction on , with the two
statements proved together, because each feeds the
other. The similarity statement is Proposition 24.5.1
telescoped. For the factorization, the move to find is
the one that turns into something
with a at the
front: the similarity statement, read backwards, says
, and is by
definition . One
line of bookkeeping then converts into .
Proof. Both statements by induction
on .
For : and , so , and
by Proposition 24.5.1.
Let and
suppose both statements hold for . By Proposition 24.5.1 applied
at step and the
inductive hypothesis, where the last equality uses
and . That is the first statement for
.
For the second, multiply the inductive similarity
on the left by , which is legitimate
because : Hence, using the inductive factorization , since by definition. As is unitary and
upper
triangular, this is a QR factorization of , and the
induction is complete.
The consequence to keep is about the first
column. Comparing first columns in and
writing , we get
(24.5.1)
because the first column of an upper triangular
matrix is . So
whenever , which the Quick check just below records for
invertible , the
first column of is the normalized
vector ,
up to a scalar of modulus one — which is precisely the
-th iterate of the
power method (Theorem 24.4.1) started at
. The QR
algorithm runs the power method in its first column,
and, as the next theorem shows, that alone forces the
first column of to
converge.
Quick check. Why is when is invertible?
Solution. Each is similar to
(Proposition 24.5.1), hence
invertible, and is then invertible as a
product of invertible matrices. So is invertible, being
a product of invertible matrices; an upper triangular
matrix is invertible exactly when its diagonal entries
are all nonzero (Lemma 3.6.2), so
.
What
converges, and how fast
Theorem
24.5.3 (Convergence of the First Column)
Let be invertible and diagonalizable, say
with and with the columns of . Assume a
single dominant eigenvalue, and write , assuming . Put . Then
there is a constant , depending on and but not on , such that the
unshifted QR iterates satisfy In particular and for
every , each
at the rate .
For this says
that the iterates converge to upper triangular form,
with and .
Idea. By Eq. 24.5.1 the first
column
of is the
power-method iterate, so it is close to the dominant
eigenvector, and the vector is small. Now read column by column: its first
column is , and
subtracting leaves . A unitary matrix does not
change lengths, so the whole error in the first column
equals the length of that small vector. Nothing
else is needed.
Proof. Write for the first column of , suppressing from the notation.
Step 1: the error in the first column is a
residual. Since is unitary and by Theorem 24.5.2, using twice. A unitary matrix
preserves the Euclidean norm (Theorem 11.7.3), so
Step 2: is a
power-method iterate. By Eq. 24.5.1, with , as the
Quick check above records. Since , which is legitimate because and . Every
ratio obeys , so by the triangle inequality (Corollary 11.1.6).
Put . Then for
the scalar , and
because .
Step 3: the residual is small. Since
, the vector drops out of
, leaving Choose with , possible because
. For the triangle
inequality gives , whence
For the finitely many the crude
bound holds, since .
So the displayed estimate holds for all with and combining with proves the main
estimate. The entrywise statements follow because each
coordinate of a vector is at most its Euclidean
norm.
For , the
estimate forces and ; and , the trace being preserved by Proposition 24.5.1. This
proves the theorem.
What is proved here, and what is
not. The theorem above settles the first
column, for every , and with it the whole
case.
The general statement is this: if is diagonalizable with
,
and if admits an factorization
without row swaps (Theorem 3.6.4),
then the whole of below the
diagonal tends to zero, with This is the classical convergence theorem of
the algorithm, due to Rutishauser, Francis, and
Kublanovskaya; it is not proved here.
The proof runs through the factorization of Theorem 24.5.2’s identity,
the observation that , and a continuity argument for the QR
factorization that this book has not developed. Nothing
in this section or later depends on it: the Hessenberg
and shifting results below are proved outright, and the
worked example at the end exhibits the rates rather than
assuming them. The extra hypothesis on is not cosmetic,
and the strict ordering of the moduli is not either —
the next example shows what happens without it.
Example
(The unshifted algorithm on a rotation)
Let . Explain
why no unshifted QR iteration can bring closer to triangular
form, and say which hypothesis of Theorem 24.5.3 fails.
Solution. By Example (Two matrices the iteration cannot move),
for
every : the
iteration is stationary, and is as far from
triangular as a matrix can be, with . The
eigenvalues are , so and the hypothesis
fails. The failure is not
an artifact of the proof. Over the matrix is
orthogonally similar to no real triangular matrix at
all, since a real triangular matrix has real
eigenvalues; and over the power method has
nothing to converge to, because simply
rotates around the plane forever (Theorem 24.4.1).
Warning. Convergence is to
triangular form, not to diagonal form. Even
when the iterates do converge, the strictly upper
triangular part generally does not: only the entries
below the diagonal die out. What is
more, in the convergence theorem quoted above — the one
this section does not prove — the order in which the
eigenvalues appear on the diagonal is decided by the
moduli, largest first, so that a run it covers reveals
in the
top-left corner and in the
bottom-right. With shifts, which is how the algorithm is
actually run, even that ordering goes away.
Hessenberg
first
As written, one step costs a QR factorization of a
full
matrix and a matrix product: that is flops, in the
counting convention of Proposition 24.2.3, and
the count really does grow like , since the product
alone touches
entries with
terms each. The iteration needs many steps, and no
amount of cleverness about the steps rescues a method
that spends
operations on each of them.
The remedy is Chapter 11’s. Reduce once to upper
Hessenberg form by Theorem 11.8.5, at
a cost of
paid a single time, and then iterate. This pays off only
if the pattern survives the step, which is the content
of the next proposition — and it is the sentence Chapter
11 §08 closed on: “Chapter 24 develops that iteration
and explains why every implementation starts with the
reduction proved here.”
Proposition
24.5.4 (A QR Step Preserves Hessenberg
Form)
Let be upper Hessenberg, . Then has a factorization
with
orthogonal and
upper triangular
in which is a
product of
Givens rotations and is itself upper
Hessenberg; and for this factorization is again upper
Hessenberg. Producing and then costs about flops.
Idea. A Hessenberg matrix has only
entries in the
way of triangularity, one per column, and Definition 11.8.2
removes one entry per rotation. So the natural
factorization to use is the rotation one, not the
reflection one — this is the case Chapter 11 §08
flagged, where “the count reverses”. Then two
bookkeeping facts finish it: the accumulated product of
the rotations is Hessenberg, and upper triangular times
upper Hessenberg is upper Hessenberg.
Proof. For let be a Givens rotation in the coordinates
(Definition 11.8.2).
Working left to right, choose to annihilate the
entry in position of the matrix produced so far: if that
matrix has entries in position and in position with , take
and with , as
in Chapter 11 §08; if , take . This is the only entry below the
diagonal in column : the entries in rows
of
that column were zero in , because is upper Hessenberg,
and the earlier rotations
touch only rows . Left multiplication by recombines rows
and only, so it cannot
disturb the zeros already created: in a column both of the
rows being combined are already zero, since . Hence is upper triangular, and with , orthogonal as
a product of orthogonal matrices.
Claim. is upper Hessenberg for
,
and its columns are .
Proof. Induction on . Each fixes for , so
whenever , which is the
second assertion. For , differs from only in rows and
columns , so
its only nonzero entry below the diagonal is in position
, and it is
upper Hessenberg. Let and suppose the claim holds for . Right multiplication
by changes
only columns and
, replacing them
by the two combinations By the inductive hypothesis has
zero entries in rows , being column of an upper Hessenberg
matrix, and since . So both
combinations vanish in rows . Column
of therefore vanishes
below row , as
an upper Hessenberg matrix requires; and column vanishes below row
, which is more
than required. All other columns are unchanged, so is upper
Hessenberg.
By the Claim, is upper Hessenberg. Finally, has a nonzero term only when , because is upper triangular,
and ,
because is upper
Hessenberg; together these force . So is upper
Hessenberg.
Cost. Rotation alters rows in columns only, since
in the earlier columns both of those rows are already
zero: that is
pairs of entries, each pair replaced by two combinations
of two terms, so flops. Summing
over gives . Forming applies on the right to
columns of
the matrix built so far, and the same induction as in
the Claim shows that those two columns vanish below row
; so flops suffice, and
summing gives again. The total is , which proves
the proposition.
So the reduction is done once, for , and every
subsequent step costs — a saving of a
factor of on each
of the many steps. That is the whole reason every
implementation begins with Theorem 11.8.5.
Quick check. A symmetric matrix is
upper Hessenberg exactly when it is tridiagonal. What
does Proposition 24.5.4 then
say about a QR step applied to a symmetric tridiagonal
matrix?
Solution. That the step returns a
symmetric tridiagonal matrix. Symmetry survives because
is
a congruence by an orthogonal matrix as well as a
similarity, so ; and Hessenberg form survives by the
proposition. A symmetric Hessenberg matrix has whenever , hence also
whenever , which is tridiagonality. The cost then
drops further, to per step.
Shifts
The rate
is a property of , and we cannot change
. We can change
the matrix we iterate on. For any , the matrix
has
eigenvalues , so its ratios of moduli are — and a
close to makes the last
of these tiny. This is the same observation that turned
the power method into inverse iteration in Section 4,
where the shift
was used to make have a huge dominant eigenvalue (Theorem 24.4.3).
The shifted QR step is and it is still a unitary similarity: , so
adding back
gives exactly as in Proposition 24.5.1. The
shift may be changed at every step, which is why the
ratio can be driven down as the information improves.
And since is Hessenberg whenever is, Proposition 24.5.4 applies
to the shifted step: as it stands for a real , and in the complex
form recorded in the Remark after it for a off the real line,
which the second of the two shifts below produces.
Two shifts are standard. The Rayleigh
shift takes , the trailing diagonal entry; when
is Hermitian
this is the Rayleigh quotient
of Definition 17.1.1,
hence a good eigenvalue estimate as soon as is nearly an
eigenvector. The Wilkinson shift takes
to be the
eigenvalue of the trailing block of nearer to ; it costs
one quadratic formula and, unlike the Rayleigh shift, it
can leave the real line, which is what lets it break the
deadlock of a rotation.
The extreme case says exactly why shifting works.
Proposition
24.5.5 (An Exact Shift Deflates in One
Step)
Let be upper Hessenberg, , with all its
subdiagonal entries
nonzero — such a matrix is called
unreduced, the word Lemma 17.4.5 used for
the tridiagonal case. Let be an
eigenvalue of .
Let with unitary and upper triangular, and
put . Then the last row of is zero, and the last
row of is
.
In particular and .
Idea. An unreduced Hessenberg
matrix cannot lose more than one dimension of rank: its
first columns
are independent whatever the matrix does, because the
subdiagonal alone makes them so. Shifting by an
eigenvalue makes the matrix singular, so the one missing
dimension must be the last one, and in a QR
factorization “the last dimension is missing” reads as a
zero last row of .
Proof. Write , again
upper Hessenberg with the same nonzero subdiagonal
entries.
First, the columns of are linearly
independent. Delete the first row: what remains is the
matrix with entries for , which
is lower triangular, since for , that is
for ; and
its diagonal entries are nonzero. A
triangular matrix with nonzero diagonal is invertible
(Lemma 3.6.2), so
those truncated
columns are independent, and the full columns are
independent a fortiori.
Second, : it is at least by the previous
paragraph and at most because is singular, being an eigenvalue
of .
Now
with invertible,
so and the columns are independent, being . Since is upper triangular,
its last row has the single possibly nonzero entry ; if , then would be invertible
(Lemma 3.6.2 applied
after noting that independence of the first columns forces ), contradicting . Hence
and the
last row of is
zero.
A matrix with zero last row keeps it under
multiplication on the right: . So the last row of is zero and the last
row of is , as
claimed.
The proposition is the ideal case, and it explains
the practice: the closer is to an
eigenvalue, the smaller is
observed to become, and the algorithm watches that one
entry. When it falls below a tolerance it is set to
zero, the matrix splits into a smaller Hessenberg block
and a known eigenvalue, and the iteration restarts on
the block. This is deflation, and with
it the algorithm is observed to finish after steps in total
rather than converging forever.
Two claims in that paragraph are descriptions
of observed behavior, not theorems, and this book proves
neither: that a nearer shift always gives a
smaller subdiagonal entry, and that the shifted
algorithm terminates after steps. Nothing in
this section or later depends on them. What is proved is
the exact case, Proposition 24.5.5, and
the example below exhibits it.
Example
(The shift repairs the rotation, and deflates a
symmetric example)
- (a) Apply one
shifted QR step with to .
- (b) Apply one
shifted QR step with to the symmetric tridiagonal matrix with diagonal and off-diagonal
entries .
Solution.
(a) Here is an eigenvalue,
so Proposition 24.5.5
predicts an exact deflation. Indeed whose second column is times the first, so
the matrix has rank . Its first column has
norm , so
take and , which is a unit vector orthogonal to since . With one computes ,
which is with zero last row as predicted. Then , and
One step, and the eigenvalues are on the
diagonal. The unshifted iteration would have run
forever.
(b) The matrix is
and is
an eigenvalue of , since . Two Givens rotations triangularize
, as in the
proof of Proposition 24.5.4. The
first uses the entries and in positions and , so , , , and exchanges rows and with a sign, producing
rows , , . The second uses
the entries and
now in positions
and , so , , , and it
turns those two rows into and . Hence with the last row of zero, as Proposition 24.5.5
predicts. One checks column by column. Multiplying back and
restoring the shift, The last row and column have split off,
carrying the eigenvalue , and the remaining
block
has eigenvalues — the other two eigenvalues of . One shifted step, and
the problem is finished.
Three
unshifted steps, watched
Example
(The subdiagonal shrinking at the predicted rate)
Run the unshifted QR iteration on the symmetric
tridiagonal matrix whose eigenvalues are , , and . Carry out the
first step exactly, and tabulate three steps.
Solution. Step one, by
hand. Apply Theorem 11.2.2 to
the columns , , .
From :
and .
From :
, and
since and ; so .
From :
and , and so . Now . Its
entry is the
first row of
against the first column of , namely and its entry is .
Continuing, Three checks: the matrix is symmetric and
tridiagonal, as the Quick check after Proposition 24.5.4
predicted; its trace is ; and the entry is zero, not merely
small.
Three steps, to eight places. The diagonal
entries and the two subdiagonal entries run as
follows.
| 1 |
2.00000000 |
2.00000000 |
2.00000000 |
1.000000 |
1.000000 |
| 2 |
2.80000000 |
2.34285714 |
0.85714286 |
0.748331 |
0.638877 |
| 3 |
3.14285714 |
2.24844720 |
0.60869565 |
0.559397 |
0.187848 |
| 4 |
3.30841121 |
2.10394692 |
0.58764187 |
0.372193 |
0.052177 |
The three diagonal entries are heading for ,
, and ,
largest modulus first — the order the convergence
theorem quoted above predicts, exhibited here rather
than proved. The two subdiagonal entries shrink by
factors The predicted asymptotic factors are and . The second entry has
already settled onto its rate; the first is still
approaching it, and by step its factor is . Convergence is
linear, and slow: each step buys about a quarter of a
decimal digit in the entry. That is the
cost of not shifting.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Write down one
step of the unshifted QR iteration, and one step of the
shifted one, and prove in one line each that both are
similarities.
- (b) State Theorem 24.5.2, and say in
one sentence what it has to do with the power
method.
- (c) True or false:
the QR iterates of a matrix always converge to an upper
triangular matrix. Justify your answer.
- (d) Why is the
iteration run on an upper Hessenberg matrix rather than
on a full one? Give the two costs.
- (e) In Proposition 24.5.5, which
hypothesis on is
doing the work, and where exactly is it used?
Solution.
(a) Unshifted:
,
;
then . Shifted: ,
; then .
(b) It says with
unitary and upper triangular, and
that . Comparing first columns, the
first column of is
normalized, which is the -th power-method iterate
started at .
(c) False. The
rotation is a fixed
point of the unshifted iteration (Example (Two matrices the iteration cannot move))
and is not triangular; its two eigenvalues have the same
modulus, which is exactly the hypothesis Theorem 24.5.3
needs.
(d) Because a QR
step on a full matrix costs flops, with the
count genuinely growing like , while a step on a
Hessenberg matrix costs about (Proposition 24.5.4), and
the pattern is preserved, so the saving is repeated at
every step. The reduction itself is , paid once (Theorem 11.8.5).
(e) That every
subdiagonal entry of is nonzero. It is used
exactly once, to show that the first columns of are
independent: deleting the first row leaves a lower
triangular matrix whose diagonal is that subdiagonal.
Without it could drop rank in an earlier column, and
the zero row of
need not be the last.
B. Practice
Exercise
(B1: One step by hand)
Let . Compute
the QR factorization of in the sense of Theorem 11.8.1,
then . Verify that is symmetric,
has trace and
determinant , and
that its off-diagonal entry is smaller than that of
. Hence estimate
how many steps are needed to make the off-diagonal entry
smaller than .
Solution. The columns are and
.
Then , , , and
So and It is symmetric; its trace is ; its
determinant is . The off-diagonal entry fell from
to .
The eigenvalues are and , so Theorem 24.5.3 gives the
asymptotic factor per step. To take below needs , that is : about six further steps, so seven in all.
(The first steps are a little slower than the asymptotic
rate, so eight is a safer count.)
Exercise
(B2: Fixed points)
Determine which of the following matrices are fixed
points of the unshifted QR iteration, that is, satisfy
. Justify your answer; for those that
are not, name what changes.
- (a) any upper
triangular with
positive real diagonal entries;
- (b) any unitary
;
- (c) ;
- (d) any normal .
Solution.
(a) Yes. Then
is a
factorization with unitary and upper triangular with
positive diagonal, hence the unique one (Theorem 11.8.1),
and .
(b) Yes. Then
is a
factorization with unitary and upper triangular with
positive diagonal, hence the unique one, and .
(c) Yes, by (b):
the matrix is a permutation matrix, so its columns are
orthonormal. This is worth noticing because its
eigenvalues are
and , of equal
modulus — another instance of the obstruction of Example (The unshifted algorithm on a rotation),
and this one is symmetric, so unlike the rotation it
is orthogonally similar to a diagonal matrix.
The unshifted iteration simply will not find
it.
(d) No. A normal
matrix need not be fixed: is symmetric, hence normal, and
Exercise (B1: One step by hand)
computed . What is preserved is
normality, not the matrix: is
unitarily similar to , and normality is
invariant under unitary similarity.
Exercise
(B3: A shift that deflates)
Let . Take
to be either
eigenvalue of
and carry out one shifted QR step. Verify the conclusion
of Proposition 24.5.5.
Hint: you need only the last row of .
Solution. The characteristic
polynomial is , with roots . Every matrix is
upper Hessenberg, and the single subdiagonal entry is nonzero, so Proposition 24.5.5 applies
with . Take
. Then
is singular, of rank since it is nonzero.
Its first column has norm , so a QR
factorization has and .
Because the rank is , the second column of
is a multiple of
, so
and the
last row of
vanishes. Then the last row of vanishes too, and
has last row . Its entry is then , since the trace is preserved. One step
produced both eigenvalues exactly.
C. Going deeper
Exercise
(C1: Hessenberg form is not enough by itself)
- (a) Prove that if
is upper
Hessenberg with for some , then , where is the leading
block
and the
trailing block.
- (b) Deduce that a QR
implementation may, at every step, replace the problem
by two smaller ones as soon as one subdiagonal entry
vanishes.
- (c) Give a upper
Hessenberg matrix with no zero subdiagonal entry for
which the unshifted iteration never reduces any
subdiagonal entry at all.
Solution.
(a) With and upper Hessenberg,
every entry
with
vanishes: for this is , and for it is either , again , or , the assumed entry. So is block upper
triangular with diagonal blocks and . By Theorem 8.1.1 and
the determinant of a block triangular matrix (Theorem 7.8.4), , so the
eigenvalues of
are those of the two blocks together.
(b) The two
blocks are again upper Hessenberg, and by (a) computing
their spectra computes that of . Each step on a block
of size costs
about rather
than (Proposition 24.5.4), so
splitting is a strict gain; and part (a) guarantees no
eigenvalue is lost. This is deflation.
(c) Take the
cyclic permutation matrix which is upper Hessenberg with subdiagonal
entries , and
is orthogonal. By Exercise (B2: Fixed points)
(b) it is a fixed point of the unshifted iteration, so
no subdiagonal entry ever moves. Its eigenvalues are the
three cube roots of , all of modulus — the obstruction of Theorem 24.5.3 in its
purest form.
Exercise
(C2: Hermitian iterates and the Rayleigh
quotient)
Let be Hermitian and let be its unshifted
QR iterates.
- (a) Prove that every
is
Hermitian with the same eigenvalues as .
- (b) Prove that , where is the
last column of and is the Rayleigh
quotient of Definition 17.1.1.
- (c) Hence explain,
citing Theorem 20.6.1, why
the Rayleigh shift is a certified eigenvalue
estimate, and say what the certificate is.
Solution.
(a) By Theorem 24.5.2, , with at , so , and
unitary similarity preserves eigenvalues.
(b) Writing , which is a unit vector
since is
unitary, the last equality because and
.
(c) Put and
. Then is real, being Hermitian, and
Theorem 20.6.1 says
that has an
eigenvalue in .
The certificate is , and it
costs nothing extra: by the computation in (b), is the last
column of
with its diagonal entry removed, so is the
Euclidean norm of the entries of that column other than
the diagonal one. If was first reduced to
Hessenberg form, so that every is Hermitian and
upper Hessenberg, hence tridiagonal, that norm is the
single entry . The algorithm is already
watching that number.
Exercise
(C3: Why the powers are the right object)
Let be invertible, with unshifted QR
iterates as in Definition 24.5.1.
- (a) Prove that for
, the
subspace spanned by the first columns of equals .
- (b) Deduce that if
the first columns
of converge to
a basis of an -invariant subspace
, then the entries
of in
rows
of columns tend to .
Hint for (b): write the entries as inner products
of applied to
one column against another.
Solution.
(a) By Theorem 24.5.2, with
upper
triangular and invertible (Quick check above), so lies in for each , since has zeros
below row . Hence
.
Both sides have dimension : the left because is invertible, the
right because the columns of a unitary matrix are
independent. One inclusion plus equal dimension gives
equality.
(b) Write . For , Suppose converge to an orthonormal basis
of an -invariant subspace
, let be the orthogonal
projection onto
(Definition 11.3.2)
and put , so
.
Since , we have and hence . Since for , we have by
Cauchy–Schwarz (Theorem 11.1.5), so
. Splitting and using that
is self-adjoint,
by Cauchy–Schwarz again and . The right-hand side
tends to , so
. This is Theorem 24.5.3 for , read as a
statement about invariant subspaces rather than about
eigenvectors, and it is the form in which the general
convergence theorem quoted above is proved.