Chapter 19 computed a Perron vector three times and
each time stopped at the same place. Section 4 bracketed
by the
ratios of to
and observed:
“the iteration is the power method, and Chapter 24
studies how fast it converges.” Section 8 said the same
of PageRank — “Chapter 24 studies it for general
matrices, where the rate is governed by the ratio of the
two largest eigenvalue moduli” — and Section 9’s ledger
listed “the power method, the algorithm that computes a
Perron vector at the size of the web” among the debts.
Chapter 17 §01 and Chapter 20 §06 each promised, in the
same words, that “Chapter 24 builds an iteration on” the
Rayleigh quotient.
This section pays all five. It is about one idea used
three times: multiply by a matrix repeatedly and
the largest eigenvalue takes over. Applied to
itself, the idea
finds the eigenvalue of largest modulus. Applied to
,
it finds the eigenvalue nearest — any eigenvalue we
choose to aim at. Applied to with
refreshed at
every step from the Rayleigh quotient, it converges
cubically, and that is the iteration Chapters 17 and 20
promised.
Throughout, or , matrices are in read inside , and . Iteration indices are
superscripts in parentheses, so that subscripts stay
free for coordinates.
Multiplying by the matrix
Take
diagonalizable with eigenbasis and
eigenvalues , and expand a starting
vector:
Divide by , and suppose
is
strictly the largest. Every coefficient except the first
is multiplied by ,
a number of modulus less than raised to the -th power. So the sum
collapses onto its first term. Nothing here needs to be
discovered; it needs to be named, and its rate
measured.
The power method is: multiply, rescale, repeat,
and read off the dominant eigenvector.
Definition
24.4.1 (Power Iteration)
Let and let with
. The power iteration
generated by and
is the
sequence defined for by which is defined as long as , together with the
eigenvalue estimates
Clause by clause. The vectors are
unit vectors: the normalization has no
mathematical content, since spans the same
line as , and its
only purpose is to stop the entries from growing or
shrinking like until the
arithmetic can no longer hold them. The iteration is
partial: if the
sequence stops, and it stops exactly when —
which, as we shall see, a good starting vector avoids.
The estimate
is the natural number to attach to a unit vector that is nearly an
eigenvector: if exactly then .
For Hermitian it is the Rayleigh
quotient of Definition 17.1.1,
whose denominator is here; for a general
the book
reserves that name for the Hermitian case, so we write
the quadratic form out.
Examples.
- The identity. : every unit
vector is fixed, for all , and . The degenerate
case is worth a glance, because it shows that the method
converges to an eigenvector, never to a
distinguished one.
- A diagonal matrix. and
: then , and the normalized vector runs to with second
coordinate .
The rate is
.
- A stochastic matrix. For the Google
matrix of
Chapter 19 §08, and every other eigenvalue has modulus at
most (Theorem 19.8.2), so
the iteration of Proposition 19.8.3 is
a power iteration with rate at most . Chapter 19 proved
the rate directly from stochasticity, with no hypothesis
on beyond that;
the theorem below proves it from the eigenvalues, for
any diagonalizable matrix.
Non-example by minimal change.
Replace
by .
The eigenvalues now have equal modulus,
the collapse never happens, and from the iterates alternate
between
and
forever. One clause of the hypothesis has been dropped —
strictness in — and the conclusion is
gone with it.
Here is the theorem, with the rate.
Theorem
24.4.1 (The Power Method)
Let be diagonalizable, with a basis of
eigenvectors, , ordered by
modulus so that Let be a unit vector with
, and put
,
and Then the power iteration of Definition 24.4.1 is
defined for every , and for every with
there is a scalar of modulus with
- (a) ;
- (b) .
In particular , and the iterates approach the
eigenline in the sense
of (a), both at the rate .
Idea. The whole content is the
display at the head of this subsection: divide by and what
is left is
plus a tail of size . Two pieces of
bookkeeping then stand between that and the statement.
First, normalizing: a bound on is not yet a
bound on , and the conversion costs a
factor and the
hypothesis , which only says that we are past the
point where the tail could swamp . Second, phases:
over the scalar
has
a modulus and an argument, and normalizing kills the
modulus but not the argument. That argument is the . It cancels out
of , because a
quadratic form does not see it.
Proof. The iterates are
defined, and what they are. Since , the
vector has a non-zero coefficient
on , so for
every , the
eigenvectors being a basis. An induction on then gives : true at , and if it holds at
then is a positive
multiple of , so normalizing it gives the same unit
vector as normalizing .
The tail. Put Since for , the triangle inequality (Corollary 11.1.6)
gives
Normalizing. Let , where has modulus . Then , so and . For any non-zero , the last step by the reverse triangle
inequality (Lemma 16.1.1). Hence . Apply this with
and . If then
, so , and which is (a).
The estimates. Write , a
unit vector, and note because
. Since and , we have
, so By Cauchy–Schwarz (Theorem 11.1.5) and
Theorem 16.3.2 (a), each
term is at most , so by (a). This proves the
theorem.
Aftermath. One matrix–vector product
per step:
flops for a dense , and far fewer when
is sparse — for
the hyperlink matrix of Chapter 19 §08, one operation
per link. Nothing is factorized and nothing is stored
but a vector, which is why the method survives at sizes
where the matrix itself could never be written down.
What it buys with that cheapness is a linear
rate: to gain one decimal digit takes
steps, and for that is of them.
Example
(Every iterate exactly)
Let and . Compute
, the
estimates ,
and the errors, in closed form.
Solution. has eigenvectors and with eigenvalues
and , so . Writing
, So the iterates are proportional to , visibly running to
the direction . Put and with , . Then and
, so
The values are , with errors — falling by
factors , so by about a ninth in the limit, not a
third.
The eigenvector error tells the other half. The
component of orthogonal to is , of
length , and , so the sine of the angle
between
and is , which
does shrink like . Exactly: The eigenvector converges at rate
and the
eigenvalue estimate at rate , and
the second is the square of the first. That is not an
accident of this matrix.
The corollary explains it, and pays Chapter 17 §01 in
its own words.
Corollary
24.4.2 (Hermitian Matrices: the Rayleigh
Quotient Converges Twice as Fast)
Let be Hermitian, with an orthonormal basis
of eigenvectors, , ordered by modulus so that . Let
be a unit vector with , and put . Then for
every ,
Idea. The Rayleigh quotient is
unchanged by scaling, so evaluate it at the unnormalized
, where
the coefficients are just . Both the
numerator and the denominator are then sums of
non-negative multiples of — the
exponent is even, which is the whole point — so the
denominator is bounded below by its first term alone,
and the numerator, after is subtracted,
loses its first term entirely. What is left is against
: one
factor of
per step.
Proof. Write . Since ,
, and
is a
scalar multiple of as in the proof of Theorem 24.4.1, so by the scale-invariance of the
Rayleigh quotient (Definition 17.1.1).
The basis is orthonormal and , so by Theorem 11.2.1 (b)
and (c), all the being real (Proposition 11.6.7).
Subtract ,
which is the same as subtracting times the
denominator from the numerator; the term cancels, leaving
Every is
non-negative, so the denominator is at least its first
term , and the
numerator is at most in
modulus, since for . Dividing gives
the stated bound with .
This proves the corollary.
This is the “second-order accuracy” of Chapter 17
§01, seen along an iteration: the eigenvector error is
and the
eigenvalue error is its square. Theorem 20.6.2 says
the same thing structurally and without any iteration —
a residual of size yields an
eigenvalue error of at most divided by
the gap — and the corollary above is that estimate made
explicit for the particular unit vectors the power
method produces.
Solution. Proposition 17.1.1:
for a Hermitian ,
the values of fill exactly the
interval between the smallest and largest
eigenvalues. Here
has eigenvalues
and , so every
lies in and no estimate
can exceed . The
power method on a Hermitian matrix with dominant
therefore produces a sequence of certified
lower bounds for , which is what
Chapter 19 §04’s brackets were doing by hand.
Example
(The method that never converges)
Let be the cyclic permutation matrix of Example (The Cyclic Permutation),
with columns , so that . Run the power iteration from and from
.
Solution. By Example (The Cyclic Permutation)
the eigenvalues of are the three cube
roots of unity, all of modulus : the hypothesis fails as badly as it can.
Every is a
permutation matrix, so no normalization is needed, and
. From
the iterates
are and from
they are
times . In both cases the
sequence takes three distinct values over and over, so
neither it nor the line it spans has a limit. The
estimates behave worse than that: they are
constant, for every in the first case and
in the second, so they converge
perfectly well — to a number that is not an eigenvalue
of at all. Yet
does have the
eigenvalue , with
eigenvector , and
the method never finds it.
The failure is exactly the one Chapter 19 §04 warned
of for the swap ,
whose brackets “never improve”. It is not a defect of
the arithmetic and no amount of care repairs it: the
hypothesis of Theorem 24.4.1 is false,
and its conclusion is false too.
Warning. Two hypotheses,
two different kinds of failure. If , as in Example (The method that never converges),
the method fails permanently and no starting vector
helps. If instead — the starting vector happens to miss the
dominant eigendirection — the method converges, but to
the wrong eigenvector. The second failure is fragile and
the first is not: a starting vector with lies in a proper
subspace, and in the arithmetic of Definition 24.1.1 the
first rounding error generally puts a small non-zero
back, after
which Theorem 24.4.1 takes over,
only being large.
This is the one situation in the chapter where rounding
helps, and it is not a reason to rely on it: a
starting vector chosen without regard to is a better plan than
a lucky rounding.
Shifting
and inverting
The power method finds the eigenvalue of largest
modulus, and that is usually not the one anybody wants.
The repair is a change of matrix. If is not an eigenvalue
of , then is invertible,
and the eigenvalues of its inverse are the numbers —
large exactly for the close to . Multiplying
repeatedly by therefore singles out the
eigenvalue nearest to , and is ours to
choose.
Definition
24.4.2 (Inverse Iteration)
Let , let be not an eigenvalue of , and let
be a unit
vector. Inverse iteration with shift is the power
iteration of Definition 24.4.1
generated by and ; that is, The eigenvalue estimates are taken from itself: .
The shifted matrix is never
inverted. One factorization of by elimination
with pivoting is computed once, at a cost of flops
(Section 2), and each step then costs two triangular
solves, flops
— the same price per step as the power method, after a
one-off payment.
Theorem
24.4.3 (Inverse Iteration Converges to the
Nearest Eigenvector)
Let be diagonalizable with eigenbasis and
eigenvalues , and let be not an
eigenvalue of .
Suppose there is an index with so that is the unique
eigenvalue nearest . Let be a unit vector
whose -coefficient is
non-zero. Then inverse iteration with shift is defined for every
, the iterates
approach the eigenline in the sense
of Theorem 24.4.1 (a), and
, both at the rate , where
Idea. There is nothing to prove
that Theorem 24.4.1 has not
proved. The only work is to check that
satisfies its hypotheses — same eigenvectors, reciprocal
shifted eigenvalues, a strict winner in modulus — and to
read off what the ratio of that theorem
becomes after the reciprocals are taken: dividing by the
largest reciprocal is multiplying by the smallest
difference, so the ratio turns upside down.
Proof. Let , invertible because its columns are a
basis, and , so that
(Theorem 9.4.1). Then
and is invertible because no equals . Hence is
diagonalizable, with the same
eigenvectors
and eigenvalues .
Their moduli are , so the
hypothesis on
says exactly that for every : the eigenvalue
is strictly
dominant. Relabeling so that comes first, the second
largest modulus is , so
the ratio of Theorem 24.4.1 is Since the -coefficient of is non-zero, Theorem 24.4.1 applies to
and and gives
unimodular
with , where
and is that
theorem’s constant for and . That is the
convergence of the line.
For the estimates, repeat the last paragraph of the
proof of Theorem 24.4.1 with in place of : with we
have and , so . This proves the
theorem.
Example
(Aiming at the smaller eigenvalue)
Let
again, and take the shift , which is
nearer to the eigenvalue than to . Run inverse iteration
from , and compare with Example (Every iterate exactly).
Solution. has determinant , so Ignoring positive scalars, each step is , so the iterates are running to the direction — the eigenvector
of the eigenvalue . In closed form: the
eigenvalues of are and , so expanding gives the last step on multiplying by . Halving, this
is the list above. Writing with , we have and
so since . The errors are , each
about
of the last, while the sine of the angle to is ,
shrinking by per step. The
theorem predicts exactly that: with the estimates again going at the squared
rate , as in Example (Every iterate exactly)
and for the same reason. Compare that example, where the
same matrix and the same starting vector gave rate towards the
other eigenvector: one well-chosen shift has
both redirected the method and made it gain twice as
many digits per step.
The objection, and the answer. If
is close to
, then
is close
to singular and is enormous. For normal (Corollary 12.4.3)
we have , whose singular values are the
numbers , so by Proposition 16.8.2 (d) which grows without bound as .
Section 3 spent its length on how much a large condition
number costs. And the better the shift, the worse the
conditioning: the method is deliberately solving
an ill-conditioned system, and it does so on
purpose.
It does no harm, and here is why. Suppose the linear
solve is backward stable in the sense of Definition 24.1.3, so that
the computed is the exact
solution of for a unit . The computed may be wrong
in every digit — the forward error is bounded only by
,
which may exceed .
But rearrange the same equation as a residual: , so the
normalized vector satisfies
The first term is small when is
large, and that takes an argument and a hypothesis.
Near-singularity alone will not supply it: for , and
, the
matrix
is as near singular as one pleases and yet
has norm to ten
digits. What is needed is that see the
near-singular direction.
Take normal
with orthonormal eigenbasis (Corollary 12.4.3),
so that and hence . Multiplying the perturbed
equation by gives , so by
Cauchy–Schwarz (Theorem 11.1.5) and
Theorem 16.3.2 (a),
So a shift close to does force
to be large, provided the component is not
small — which is the hypothesis Theorem 24.4.3 already
makes on the starting vector. Granting it, the first
term of the residual bound is small, and the second is
at the rounding level. The residual of the
normalized answer is small even though the answer itself
is inaccurate, and a small residual is all that
an eigenvector approximation has to have.
For Hermitian
one can say precisely how much it buys. Let be a unit
vector, its Rayleigh quotient and
its residual. Expand in an orthonormal eigenbasis (Corollary 12.4.3);
by Theorem 11.2.1 (c),
If is the only
eigenvalue within distance of , every term
with has
, so and the sine of the angle
between and is at most . Together
with Theorem 20.6.1, which
puts an eigenvalue of within of , and Theorem 20.6.2, which
improves that to , the
small residual certifies both halves of the answer.
Warning. “Ill-conditioned”
is a statement about the wrong question. The
system is indeed almost unsolvable if what is
wanted is .
What is wanted is the direction of , and the direction is
precisely the part the ill-conditioning leaves alone:
the huge factor multiplies the component along , which is the
component being sought, and dividing by
removes it. The residual estimate above is the rigorous
form of that sentence. The same reasoning does
not license inverse iteration when the
eigenvalue is not simple or two eigenvalues are nearly
equal: then is
small, the bound says
nothing, and the computed direction really is
unreliable.
The shift
that improves itself
Inverse iteration needs a shift, and a better shift
converges faster. But the iteration is manufacturing
better and better approximations to as it goes, in
the estimates . Use them.
Definition
24.4.3 (Rayleigh Quotient Iteration)
Let be Hermitian and let be a unit
vector. Rayleigh quotient iteration is
the sequence defined for by the step being undefined, and the
iteration stopped, when is an eigenvalue of
— in
which case is
the answer, exactly.
It is inverse iteration with the shift refreshed at
every step, and it is what Chapter 17 §01 and Chapter 20
§06 both promised. The price is a new factorization of
at
every step, flops instead
of . What is
bought is the following rate.
Theorem
24.4.4 (Rayleigh Quotient Iteration Converges
Cubically)
Let be Hermitian with an orthonormal basis
of eigenvectors, , and fix an index whose eigenvalue is
simple. Put and for a unit vector write , the length of the part of
orthogonal to
.
Let be a unit iterate with satisfying
and
. Then , and either — the
iteration has found the eigenvalue exactly — or the next
iterate is defined and Consequently, if
satisfies and , then
satisfies with
,
so and .
Idea. Two facts, multiplied
together. The Rayleigh quotient is accurate to
second order in the eigenvector error, so a
shift built from an iterate at distance is wrong by only — that is Corollary 24.4.2’s
squaring again, in its non-iterative form. And one step
of inverse iteration with a shift wrong by multiplies the
error by about . Put and the
step multiplies
by : a factor
per step, which
is one cube. Everything else is the arithmetic of
keeping the shift far enough from the other eigenvalues
for to survive,
and that is what the two smallness hypotheses are
for.
Proof. Expand with
(Theorem 11.2.1
(c)). Then , so
Step 1: the shift is accurate to second
order. By Theorem 11.2.1 (b),
, and since
the weights sum to ,
Step 2: the shift stays away from the other
eigenvalues. By hypothesis , so and, for , In particular the only eigenvalue can equal is . If it does,
the iteration stops with the exact answer. Otherwise
is
invertible and the step is defined.
Step 3: one step. Since ,
The quantity is unchanged by
scaling, so is the ratio of the
length of the part of orthogonal to
to the length
of : Bound the numerator above using Step 2, and
the denominator below by its term alone: using Step 1 at the end. Taking square roots
and using , so that ,
Step 4: the iteration. Put and . The hypotheses and
give , so , and also . Whenever
the hypotheses hold at step , Step 3 gives , so ; hence and , and the hypotheses hold again. By
induction for every . Since , and so ; by
Step 1, . This proves
the theorem.
Cubic convergence is a different animal from the
linear convergence of Theorem 24.4.1. Each step
roughly triples the number of correct
digits, so an iterate with two correct digits
has six after one step and eighteen after two — which is
more than the arithmetic holds. In practice the
iteration is over in three or four steps from any
reasonable start, and the cost is dominated by those
three or four factorizations.
Example
(Three steps, exactly)
Run Rayleigh quotient iteration on
from , in exact arithmetic.
Solution. Write each iterate as an
integer vector, scaling being irrelevant. Take , so , and here
, giving
.
Step 0. . Then ,
and has determinant . Solving
gives .
Step 1. , , and .
Solving again gives .
Step 2. , with .
Step 3. and
.
The eigenvalue errors are and the eigenvector errors are Check the theorem: , , , all
comfortably below the predicted constant . Four steps have
produced twenty-five correct digits from a starting
vector accurate to none.
Deflation,
and what comes next
One eigenpair is rarely enough. For Hermitian , once a unit
eigenvector
and its eigenvalue are known, the
next one can be reached by removing the first: put
Let be an orthonormal eigenbasis (Corollary 12.4.3).
Then , and for , by orthonormality. So is Hermitian with
the same eigenvectors and the eigenvalue list : the power method applied to finds , provided is now dominant
in modulus.
Warning. Deflation is exact
only with an exact eigenvector. If the computed
differs from
by an angle ,
then the matrix actually formed differs from the
intended by
, of norm of order
,
and by the perturbation bounds of Chapters 17 and 20
that error is inherited by every eigenvalue and
eigenvector computed afterwards. Deflating times accumulates
such errors.
For one or two extreme eigenvalues deflation is the
right tool; for the whole spectrum it is not, and the
next section builds the algorithm that is.
Everything in this section has been a single vector
chasing a single eigenvector. The next section iterates
on a whole basis at once, and the result — the QR
algorithm — turns out to be the power method in
disguise, its accumulated factors furnishing a factorization of
, with the
shifts of this section reappearing as the device that
makes it fast.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) State the two
hypotheses of Theorem 24.4.1 on the
eigenvalues and on the starting vector, and say what the
rate is.
- (b) For a Hermitian
, at what rate
does the eigenvector converge and at what rate does the
Rayleigh quotient? Which earlier result explains the
relation between the two?
- (c) Explain in one
sentence why inverse iteration with shift finds the eigenvalue
nearest .
- (d) True or false:
“the shifted matrix in inverse iteration is nearly
singular, so the method is unreliable”. Justify your
answer.
- (e) Give the
per-step cost of the power method, of inverse iteration
and of Rayleigh quotient iteration, for a dense matrix.
Solution.
(a) The dominant
eigenvalue must be strictly dominant in
modulus, , and the starting vector
must have a non-zero coefficient on the corresponding
eigenvector. The rate is , the ratio of
the two largest moduli.
(b) The
eigenvector converges at rate (Theorem 24.4.1 (a)) and
the Rayleigh quotient at rate (Corollary 24.4.2). The
relation is the second-order accuracy of the Rayleigh
quotient at a Hermitian matrix, quantified by Theorem 20.6.2: a
residual of size gives an
eigenvalue error of at most divided
by the gap.
(c) Because has the
same eigenvectors as and the eigenvalues
, whose moduli are largest precisely
for the
nearest (Theorem 24.4.3).
(d) False. The
forward error in is indeed large,
but only its direction is used, and
normalizing removes the part of the error that the
ill-conditioning creates; the residual of the normalized answer is
small, and that is what certifies an eigenvector. The
method is unreliable for a different reason — a small
gap — as the
warning after Theorem 24.4.3
says.
(e) Power method:
one matrix–vector product, flops. Inverse
iteration: one factorization of by elimination
with pivoting, , computed
once, then per
step. Rayleigh quotient iteration: a new factorization
every step, per step —
paid for by the cubic rate, which needs only three or
four steps.
B. Practice
Exercise
(B1: A rate, read off the spectrum)
Let .
- (a) Find the
eigenvalues and eigenvectors of , and the rate of the power
method.
- (b) Starting from
,
compute in
closed form and verify that the direction converges at
rate .
- (c) How many steps
are needed to gain six decimal digits?
Solution.
(a) and , so the
eigenvalues are
and . For : reads
,
giving . For : , giving . Hence .
(b) , as one checks by adding. So
Dividing by gives
, so the distance
from the direction is a constant times
, as Theorem 24.4.1
says.
(c) Each step
multiplies the error by , that is by . Six digits need steps, so
sixteen (and indeed , ).
Exercise
(B2: Choosing a shift)
Let .
- (a) What is the rate
of the plain power method?
- (b) Find the rate of
inverse iteration with shift , and say which
eigenvector it finds.
- (c) Find the rate of
inverse iteration with shift , and say
which eigenvector it finds.
- (d) Which shift
would you choose to compute the middle eigenvalue as
fast as possible, and what rate does it give? Explain
why no shift gives a rate of .
Solution.
(a) By Theorem 24.4.1, , and the iterates converge to .
(b) With the eigenvalue
nearest is , at distance ; the next nearest is
, at distance
. So ,
and the method finds . (Inverse iteration
with shift is the
power method on .)
(c) Distances
from are
.
The nearest eigenvalue is , the next nearest , so , and the method finds , the
middle eigenvector — which the plain
power method can never reach.
(d) Take with
: the distances are , , , so as . Any
very close to is
excellent. No shift gives rate exactly , because is an eigenvalue
and Definition 24.4.2 then
does not apply: is singular and there is nothing to solve
with. The limiting case is not a fast method but no
method — which is why Rayleigh quotient iteration, which
walks the shift towards the eigenvalue, stops the moment
it arrives.
Exercise
(B3: Deflating a symmetric matrix)
Let .
- (a) Write down for the unit eigenvector of the eigenvalue
, and verify its
eigenvalues directly.
- (b) What does the
power method of Theorem 24.4.1, applied to
from , produce,
and at what rate?
- (c) Explain why the
answer to (b) makes deflation look better than it
is.
Solution.
(a) and ,
so Then and :
the eigenvalues are and , as predicted, with the
same eigenvectors.
(b) , which is already an
eigenvector, so the power iteration of Definition 24.4.1 gives
and every later iterate
equals it: it converges in one step, with
exactly.
(c) Because the
deflation was exact. The eigenvector was known in closed form,
so had the
eigenvalue
exactly and the remaining eigenvector survived
untouched. In a computation is known only to
within the accuracy of the first run, and by the warning
after the deflation formula the error in enters as a perturbation
of size about ,
which every later eigenpair inherits. One clean step
here is not evidence about dirty ones.
C. Going deeper
Exercise
(C1: What the squaring really needs)
Let be Hermitian with orthonormal eigenbasis
,
and let be a
unit vector with .
- (a) Prove that .
- (b) Show by example
that the corresponding statement for a non-Hermitian
is false:
exhibit , an eigenvalue with unit
eigenvector ,
and unit vectors
with for
which is not .
- (c) Hence say which
hypothesis of Theorem 24.4.4 the example
violates, and which step of the proof breaks.
Solution.
(a) This is Step
1 of the proof of Theorem 24.4.4 with . Expanding with
, we get and, by Theorem 11.2.1 (b),
. Since the weights sum to
, whose modulus is at most .
(b) Take , the standard
non-diagonalizable example, with and . Let
for small ,
a unit vector whose part orthogonal to has length exactly
. Then which is : first order in , not second. So no
bound of the form can hold as .
(c) The example
violates the hypothesis that be Hermitian. The step
that breaks is Step 1: for a Hermitian the quantity is the
weighted average of the eigenvalues, in
which only the squared moduli of the coefficients appear
and the first-order term is therefore absent. For a
general the
cross terms
with
survive, and they are of first order in the small
coefficients. With Step 1 weakened to , Step 3 multiplies
by and the rate is
quadratic, not cubic — which is the remark after Theorem 24.4.4.
Exercise
(C2: Two eigenvalues of equal modulus, over the
reals)
Let be the rotation matrix .
- (a) Find the
eigenvalues of
and explain why Theorem 24.4.1 does not
apply.
- (b) Describe the
power iteration from an arbitrary unit , and
show that no line is a limit.
- (c) Now take the
shift and run inverse iteration over . Does the theorem
apply? Compute . Hint: the
eigenvalues of
are .
- (d) Deduce a
one-sentence moral about which of the two failures of Example (The method that never converges)
a shift can repair.
Solution.
(a) , so
the eigenvalues are and , both of modulus . The hypothesis fails.
(b) is orthogonal, so
and no normalization is needed: .
Since ,
the iterates are , of period , and the lines they
span alternate between and , which
are distinct because has no real
eigenvector. A sequence taking two distinct values
infinitely often has no limit.
(c) Over the matrix is
diagonalizable, with eigenvectors and . The shift is not an
eigenvalue, and the distances are —
equal. So there is no unique nearest
eigenvalue and Theorem 24.4.3 still does
not apply; . Any real shift fails in the same way, by
symmetry in the conjugate pair; a shift such as does
work, with distances and and .
(d) A shift
repairs a bad rate and a wrong target,
by moving the origin from which moduli are measured; it
cannot repair a tie, and over a conjugate pair of
eigenvalues is a tie that no real shift can
break.
Exercise
(C3: A small residual certifies an eigenpair)
Let be Hermitian with orthonormal
eigenbasis , let be a unit
vector, let and . Suppose is the only
eigenvalue of in
the interval .
- (a) Prove that ,
assuming .
- (b) Deduce a bound
on from Theorem 20.6.2, and
compare it with the bound from Theorem 20.6.1.
- (c) In the inverse
iteration of Definition 24.4.2 with a
backward stable solve, is about
. Explain what (a) then says
about the computed direction, and in particular why the
accuracy improves as the shift improves.
Solution.
(a) Expand with . Then , so by Theorem 11.2.1 (c),
because every with lies outside
. Since , taking square roots gives the
bound.
(b) Theorem 20.6.1 gives
an eigenvalue within of , and by
hypothesis the only candidate in that range (once ) is
, so . Theorem 20.6.2,
applied with and ,
improves this to which is smaller by a factor — the
quadratic gain of the Rayleigh quotient once
more.
(c) It says that
the direction of the computed is within
of
, whatever the
relative error in itself. As
the shift
approaches , the matrix
becomes
more nearly singular, and — provided the right-hand side
has a
component along that is not small,
by the bound established in the
discussion following Theorem 24.4.3 — grows
like . So the first part of shrinks in
proportion, and the second part is already at the
rounding level. A worse-conditioned system gives
a better answer, because the quantity that
grows is the one in the denominator. What the bound
never forgives is a small : two nearby eigenvalues
leave
large no matter how good the shift is.