15.3. THE QR ALGORITHM 431

other entries. Thus a block triangular matrix multiplied by Λ on either side is still blocktriangular. If the matrix is close to being block triangular this property of being close to ablock triangular matrix is also preserved by multiplying on either side by Λ. Other patternsdepending only on the size of the absolute value occurring in the matrix are also preservedby multiplying on either side by Λ. In other words, in looking for a pattern in a matrix,multiplication by Λ is irrelevant.

Now let A be an n×n matrix having real or complex entries. By Lemma 15.3.3 and theassumption that A is nondefective, there exists an invertible S,

Ak = Q(k)R(k) = SDkS−1 (15.12)

where

D =

λ 1 0

. . .

0 λ n

and by rearranging the columns of S, D can be made such that |λ 1| ≥ |λ 2| ≥ · · · ≥ |λ n| .Assume S−1 has an LU factorization. Then

Ak = SDkLU = SDkLD−kDkU.

Consider the matrix in the middle, DkLD−k. The i jth entry is of the form

(DkLD−k

)i j=

λ

ki Li jλ

−kj if j < i

1 if i = j0 if j > i

and these all converge to 0 whenever |λ i|<∣∣λ j∣∣ . Thus DkLD−k = (Lk +Ek) where Lk is a

lower triangular matrix which has all ones down the diagonal and some subdiagonal termsof the form

λki Li jλ

−kj (15.13)

for which |λ i|=∣∣λ j∣∣ while Ek→ 0. (Note the entries of Lk are all bounded independent of

k but some may fail to converge.) Then

Q(k)R(k) = S (Lk +Ek)DkU

LetSLk = QkRk (15.14)

where this is the QR factorization of SLk. Then

Q(k)R(k) = (QkRk +SEk)DkU

= Qk(I +Q∗kSEkR−1

k

)RkDkU

= Qk (I +Fk)RkDkU

where Fk→ 0. Let I +Fk = Q′kR′k. Then Q(k)R(k) = QkQ′kR′kRkDkU. By Lemma 15.3.4

Q′k→ I and R′k→ I. (15.15)

15.3. THE QR ALGORITHM 431other entries. Thus a block triangular matrix multiplied by A on either side is still blocktriangular. If the matrix is close to being block triangular this property of being close to ablock triangular matrix is also preserved by multiplying on either side by A. Other patternsdepending only on the size of the absolute value occurring in the matrix are also preservedby multiplying on either side by A. In other words, in looking for a pattern in a matrix,multiplication by A is irrelevant.Now let A be an n x n matrix having real or complex entries. By Lemma 15.3.3 and theassumption that A is nondefective, there exists an invertible S,Ak = QMR® = spks—! (15.12)whereAy 0D= .0 Anand by rearranging the columns of S, D can be made such that |A;| > |A2| >--- > |An|.Assume S~! has an LU factorization. ThenA‘ = SD‘LU = SD‘LD*D'U.Consider the matrix in the middle, D‘LD~. The i jin entry is of the formNLjAj* if j <i(D'LD~*) —=8 lifizj4 Oif j>iand these all converge to 0 whenever || < |A;|. Thus D‘LD~* = (Ly + Ex) where Ly is alower triangular matrix which has all ones down the diagonal and some subdiagonal termsof the formA LijA; (15.13)for which |A;| = |A | while EF; — 0. (Note the entries of L, are all bounded independent ofk but some may fail to converge.) ThenOM RY = $ (Ly + Ex) DSULetSLy = OR (15.14)where this is the QR factorization of SL;. ThenOR = (QR, +SEx) DU= Ok (1+ O{SE,R,') ReD‘U= O(I+F)R.D‘Uwhere F, > 0. Let 1+ Fy = QO} Ri. Then QR = Q. OL RLR,D‘U. By Lemma 15.3.4QO, T and Ri, > 1. (15.15)