Exercise.standardBeyond 21-242 Let ๐ด=(215102โˆ’6). Using two Householder reflections, find an orthogonal ๐‘„โˆˆโ„3ร—3 and an upper triangular ๐‘…0โˆˆโ„3ร—2 with ๐ด=๐‘„๐‘…0, and read off the QR factorization of Theoremย 6.4.38.

Solution.

Uses. Propositionย 8.4.21 (A reflection exchanging two vectors), Exampleย 8.4.20 (Householder reflections), Theoremย 6.4.38 (QR factorization)

Hint 1. First map the first column (2,1,2) to (3,0,0) (Exerciseย 8.4.22).
Hint 2. Then apply a 2ร—2 reflection to the lower part of the second column, inside diag(1,๐ปโ€ฒ).
Sketch. ๐ป1=13(21212โˆ’22โˆ’2โˆ’1) gives ๐ป1๐ด=(3609012). ๐ปโ€ฒ=15(344โˆ’3) maps (9,12) to (15,0), so ๐ป2=diag(1,๐ปโ€ฒ) gives ๐ป2๐ป1๐ด=(3601500). ๐‘„=๐ป1๐ป2, and ๐ด=๐‘„1๐‘… with ๐‘…=(36015) and ๐‘„1 the first two columns of ๐‘„.

The first column (2,1,2) has length 3. By Exerciseย 8.4.22, ๐ป1=13(21212โˆ’22โˆ’2โˆ’1) maps it to (3,0,0), and

๐ป1(150โˆ’6)=13(30โˆ’1215+1230+6)=(6912),so๐ป1๐ด=(3609012).

The vector (9,12) has length 15; Propositionย 8.4.21 with ๐=(9,12)โˆ’(15,0)=(โˆ’6,12), parallel to (โˆ’1,2), gives ๐ปโ€ฒ=๐ผ2โˆ’25(1โˆ’2โˆ’24)=15(344โˆ’3) with ๐ปโ€ฒ(9,12)=(15,0). Let ๐ป2=diag(1,๐ปโ€ฒ), also a Householder reflection (with ๐ฎ=(0,โˆ’1,2)/5). Then

๐ป2๐ป1๐ด=(3601500)=๐‘…0.

Since ๐ป1,๐ป2 are orthogonal and their own inverses, ๐ด=๐‘„๐‘…0 with ๐‘„=๐ป1๐ป2. Only the first two columns ๐‘„1 of ๐‘„ meet the nonzero rows of ๐‘…0, so ๐ด=๐‘„1๐‘… with ๐‘…=(36015) and

๐‘„1=๐ป1(1003/504/5)=115(10115โˆ’210โˆ’10).

๐‘… has positive diagonal, so by uniqueness this is the factorization of Theoremย 6.4.38. Check: ๐‘„1๐‘… has second column 115(60+165,30โˆ’30,60โˆ’150)=(15,0,โˆ’6).