A Householder transformation is a linear map that reflects vectors across a hyperplane through the origin. In real Euclidean space, it is represented by a symmetric orthogonal matrix differing from the identity by a rank-one matrix. Its principal computational use is to eliminate selected components of a vector while preserving lengths, making it a fundamental tool in numerical linear algebra, especially for QR decomposition and reductions preceding eigenvalue and singular-value computations. The transformation is named after Alston S. Householder, whose 1958 paper described its use in matrix triangularization. (web.stanford.edu)
Definition and geometric interpretation
For a nonzero vector , the Householder matrix is
where is the identity matrix and denotes the transpose of . Equivalently, with the unit vector ,
This is the real reflection form of the elementary-reflector representation used in matrix algorithms. (web.stanford.edu)
The geometry follows directly from the formula. Decompose any vector as
Then
Thus, reverses the component parallel to and leaves its orthogonal complement unchanged. The fixed hyperplane is . In terms of orthogonal projection, , where projects onto the line spanned by . (web.stanford.edu)
Algebraic properties
Direct calculation gives
Consequently, the transformation is symmetric, orthogonal, and its own inverse. Orthogonality implies preservation of the inner product:
It therefore preserves the Euclidean norm, angles, and distances. These identities explain why reflections are useful for transforming numerical problems without amplifying errors simply through the transformation itself. (web.stanford.edu)
Further consequences of the defining formula include:
- , so is an eigenvector with eigenvalue .
- Every vector perpendicular to has eigenvalue .
- The determinant is .
- has rank one.
- Replacing by any nonzero scalar multiple produces the same .
For , the eigenvalues are therefore once and with multiplicity . A product of Householder matrices remains orthogonal, although it need not itself be a single reflection. (web.stanford.edu)
Constructing a reflector to eliminate components
Given a nonzero , a common objective is to construct such that
where . Length preservation requires . In exact arithmetic, setting
and using the defining Householder formula achieves this whenever . All components except the first are then annihilated in one operation. (web.stanford.edu)
For computation in floating-point arithmetic, the conventional choice is
Then
The first component of is formed by adding quantities of the same sign, avoiding the cancellation that could occur with the opposite choice when is nearly parallel to . Practical implementations also rescale intermediate quantities when necessary to avoid underflow or overflow. If the components to be eliminated are already zero, software may use the identity transformation rather than perform a reflection; this is a computational convention, not a nontrivial geometric reflection. (netlib.org)
Example
Let
Since , choose and . Substitution gives
Multiplication verifies that : the second component is eliminated and the length remains .
Efficient application and storage
Explicitly forming the dense matrix is usually unnecessary. With
its action on a vector is
This requires a dot product and a scaled vector update, taking operations rather than the work of a general dense matrix–vector multiplication. For a matrix , multiplication from either side can likewise be expressed as a rank-one update:
These are direct computational consequences of the elementary-reflector representation. (netlib.org)
Software often normalizes the stored reflector vector so that its first active component is , retaining only its remaining components and the scalar . A sequence of reflectors can represent an orthogonal matrix implicitly, allowing multiplication by that matrix or its transpose without constructing it explicitly. (netlib.org)
For blocked computations, a product can be represented as
where the columns of contain reflector vectors and is upper triangular. This compact WY representation permits application through matrix–matrix operations, improving the use of high-performance numerical kernels. The product is sometimes called a block reflector, but it generally is not symmetric or involutory like an individual reflection. (netlib.org)
QR factorization and least-squares problems
For a real matrix , with , Householder QR successively eliminates entries below the diagonal. At step , a reflector acts only on rows , leaving previously established zeros undisturbed. If the embedded reflectors are , then
so that , with orthogonal and upper trapezoidal. A reduced factorization retains only the first columns of and the corresponding square triangular factor. (web.stanford.edu)
The connection to linear least squares follows from norm preservation. Writing
gives
When has full column rank, the minimizer is obtained by solving the triangular system . The identity illustrates why orthogonal triangularization can solve least-squares problems without explicitly forming . (web.stanford.edu)
Eigenvalue and singular-value computations
Householder transformations also provide structured reductions before iterative spectral computations:
- A real symmetric matrix can be reduced to tridiagonal form by orthogonal similarity transformations.
- A general square matrix can be reduced to upper Hessenberg form, with zeros below the first subdiagonal, as a preliminary step for algorithms such as the QR algorithm.
- A rectangular matrix can be reduced to bidiagonal form using transformations from both sides, preparing it for singular value decomposition.
These reductions preserve the relevant spectral information: similarity preserves eigenvalues, while orthogonal multiplication from the left and right preserves singular values. A general nonsymmetric matrix is not, in general, reducible to tridiagonal form by the same orthogonal-similarity procedure used for symmetric matrices. (netlib.org)
Complex transformations
For vectors over the complex numbers, the direct reflection analogue is
where is the conjugate transpose. This matrix is Hermitian and unitary, and satisfies . (netlib.org)
Numerical libraries also use a broader complex elementary-reflector convention,
with complex . Unitarity requires
Such an need not be Hermitian or involutory. For example, LAPACK’s complex reflector generator constructs so that maps the input vector to a real leading component followed by zeros. Thus, in complex computations, “Householder reflector” may denote a unitary rank-one modification rather than a literal order-two reflection. (netlib.org)
Numerical stability and limitations
Properly implemented Householder QR has strong numerical stability properties. In backward-error terms, its computed factors can be interpreted as the factors of a nearby input matrix, with small normwise perturbation and a numerically orthogonal computed . This does not ensure small relative errors in every individual matrix entry or in every solution derived from the factorization. (netlib.org)
Nor do orthogonal transformations cure an ill-conditioned problem. In exact arithmetic, they preserve the spectral-norm condition number of an invertible matrix. Accurate transformation and sensitivity of the original problem are therefore separate issues. (web.stanford.edu)
Householder reflectors eliminate an entire group of components at once, making them well suited to dense matrix reductions. Givens rotations, by contrast, act on two coordinates at a time and provide more localized transformations. Householder’s original triangularization paper explicitly compared the two approaches, emphasizing the reduction in arithmetic work achieved by replacing sequences of plane rotations with reflections. (web.stanford.edu)
References
- Unitary Triangularization of a Nonsymmetric Matrixweb.stanford.edu
- Representation of Orthogonal or Unitary Matricesnetlib.org
- Non-Negative Diagonals and High Performance onnetlib.org
- LAPACK: SRC/dlarfgp.f Source Filenetlib.org
- LAPACK: zlarfgnetlib.org
- LAPACK: larf: apply Householder reflectornetlib.org
- QR Factorizationnetlib.org
- LAPACK: clarftnetlib.org
- LAPACK Working Note #2: Block Algorithms for Reducing Symmetric and General Matrices to Tridiagonal, Bidiagonal and Hessenberg Formsnetlib.org
- LAPACK Users’ Guide: Block Algorithms for Eigenvalue Problemsnetlib.org
- LAPACK Working Note #176netlib.org