A Householder transformation is a reflection that leaves every direction in a chosen hyperplane fixed and reverses its normal direction. For a real unit vector , its matrix is
To understand the formula, decompose any vector into its orthogonal projection onto the normal and a perpendicular component:
Then . Subtracting twice the normal component changes its sign while retaining everything parallel to the mirror. A nonzero normal gives the equivalent formula , so normalization can be deferred.
For example, take . Its mirror is the straight line , and
The midpoint of these two vectors is , which lies on the mirror; their connecting segment is parallel to its normal. Both vectors have Euclidean norm five.
Figure 1.
A Householder reflection reverses the normal component and preserves the mirror component
. The mirror is . The vector becomes ; their midpoint is the orthogonal projection onto the mirror. Details.
Several useful properties follow from this decomposition. The Householder reflection is a symmetric matrix and an orthogonal matrix:
Reflecting twice restores the original vector; Euclidean norms and inner products are preserved. The eigenvalue is along and on , so . A reflection reverses orientation even though it preserves lengths.
The computational payoff is that the mirror can be chosen to send a whole vector onto one coordinate axis, eliminating several entries at once. Householder QR decomposition repeats this operation on the remaining parts of successive columns. For a real symmetric matrix, applying the same Householder reflection on both sides gives a matrix similarity that preserves symmetry and eigenvalues; this is the basis of Householder tridiagonalization.
Alston S. Householder's 1958 paper Unitary Triangularization of a Nonsymmetric Matrix develops this elimination method. Its motivation includes reducing the arithmetic needed for triangularization while retaining the conditioning advantages of orthogonal transformations. [ref] Over the complex numbers, for a unit is Hermitian and unitary, with the star denoting the conjugate transpose; the coordinate-axis construction below is stated for real vectors.
For real unit vectors , the Householder reflections and commute exactly when their normals are parallel or orthogonal. Expanding their products proves the formula. If , a zero commutator requires ; applying this identity to gives , hence parallelism. Orthogonal normals make the prefactor zero.
Equality on one selected vector is weaker than equality of the operators. For nonparallel, nonorthogonal normals in three dimensions, the commutator's kernel is the line perpendicular to both normals, spanned by . A vector on that line is fixed by both reflections even though the operators do not commute.
For a nonzero real vector , choose with and put . When , the Householder reflection
satisfies : every component except the first becomes zero. Here is the first Cartesian basis vector. The calculation is short:
If , the vector is already at the selected target, so the identity matrix suffices.
In floating-point arithmetic, a customary choice is
Then , avoiding subtraction of nearly equal positive quantities in the first component. Either sign can be valid in exact arithmetic; the numerical choice protects the construction from catastrophic cancellation. [ref]
For , this choice gives and . Dividing by its Euclidean norm gives , exactly the normal in the geometric example.
Apply the preceding Householder reflection to the columns of
The first column becomes and the second becomes :
Thus an orthogonal matrix multiplying an upper triangular matrix reconstructs . The zero below the diagonal came from a geometric operation that preserves Euclidean norms and inner products.
Figure 1.
A single Householder reflection makes a two-column matrix upper triangular
. Both columns are reflected by the same orthogonal transformation. The first lands on the first coordinate axis; the second retains a nonzero second component. The intermediate triangular factor has a negative first diagonal entry. Details.
Our positive-diagonal convention for QR decomposition is obtained by a sign adjustment. With , put
Then and . The intermediate sign chooses an orientation for a basis vector; the adjustment makes the diagonal positive.
For a larger matrix, the next Householder reflection acts only on the lower rows of the remaining columns, retaining the zeros already created. Store its defining vector and apply instead of forming a dense reflection matrix. This links a simple mirror operation to efficient QR decomposition, including least-squares solutions.

Articles by others on the same topic (1)

The Householder transformation is a linear algebra technique used to perform orthogonal transformations of vectors and matrices. It is particularly useful in numerical linear algebra for QR decomposition and in other applications where one needs to reflect a vector across a hyperplane defined by another vector.