For , the Householder transformation is
Let . Then and , since is the orthogonal projection matrix onto the span of . Hence and
Thus is a symmetric matrix and an orthogonal matrix. Geometrically it reverses the component parallel to and fixes the perpendicular hyperplane.
Let , and choose if and otherwise. Set
This vector is nonzero, because has magnitude . Direct computation gives
so the Householder transformation satisfies
The first entry is nonzero and every other entry is zero. The sign choice also avoids cancellation when forming the first entry of , which is useful in numerical computation.
Apply part (b) to the first column of , using the identity if it is already the zero vector. This gives an orthogonal matrix for which has zeros below its first diagonal entry. At stage , apply a Householder transformation to rows of column , and extend it by the identity on the first coordinates. If that trailing column is zero, again use the identity. The transformation preserves zeros in earlier columns, since their trailing entries already vanish.
After at most stages,
is an upper triangular matrix. Each is symmetric and orthogonal, so with
we have and
No invertibility assumption was used, so the Householder QR decomposition also exists for singular matrices.
Multiply by to get the equivalent triangular system
For nonsingular , compute and use back substitution:
Orthogonal transformations preserve the Euclidean norm, making this a numerically stable reduction. The factors can be applied as stored Householder transformations without explicitly forming .
Since is invertible, is singular exactly when is singular. For an upper triangular matrix,
Thus a singular forces at least one zero diagonal entry in . In that case, ordinary division-based back substitution must be replaced by a consistency/rank analysis: the system may have no solution or infinitely many solutions, and a rank-revealing factorization can identify the free parameters.

Articles by others on the same topic (0)

There are currently no matching articles.