Exercise. Let . Using two Householder reflections, find an orthogonal and an upper triangular with , and read off the QR factorization of Theoremย 6.4.38.
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 to (Exerciseย 8.4.22).
Hint 2. Then apply a reflection to the lower part of the second column, inside .
Sketch. gives . maps to , so gives . , and with and the first two columns of .
The first column has length . By Exerciseย 8.4.22,
The vector has length ; Propositionย 8.4.21 with
Since are orthogonal and their own inverses, with . Only the first two columns of meet the nonzero rows of , so with and
has positive diagonal, so by uniqueness this is the factorization of Theoremย 6.4.38. Check: has second column