# Householder transformation

In linear algebra, a **Householder transformation** (also known as **Householder reflection** or **elementary reflector**) is a linear transformation that describes a reflection about a plane or hyperplane containing the origin. Householder transformations are widely used in numerical linear algebra, to perform QR decompositions and in the first step of the QR algorithm. The Householder transformation was introduced in 1958 by Alston Scott Householder.^{[1]}

Its analogue over general inner product spaces is the Householder operator.

## Definition and properties

The reflection hyperplane can be defined by a unit vector *v* (a vector with length 1) which is orthogonal to the hyperplane. The reflection of a point *x* about this hyperplane is:

where *v* is given as a column unit vector with Hermitian transpose *v*^{H}. This is a linear transformation given by the **Householder matrix**:

- , where
*I*is the identity matrix.

The Householder matrix has the following properties:

- it is Hermitian:
- it is unitary:
- hence it is involutory: .
- A Householder matrix has eigenvalues . To see this, notice that if is orthogonal to the vector which was used to create the reflector, then , i.e., 1 is an eigenvalue of multiplicity , since there are independent vectors orthogonal to . Also, notice , and so -1 is an eigenvalue with multiplicity 1.
- The determinant of a Householder reflector is -1, since the determinant of a matrix is the product of its eigenvalues.

## Applications

In geometric optics, specular reflection can be expressed in terms of the Householder matrix.

Householder reflections can be used to calculate QR decompositions by reflecting first one column of a matrix onto a multiple of a standard basis vector, calculating the transformation matrix, multiplying it with the original matrix and then recursing down the (*i*, *i*) minors of that product.

They are also widely used for tridiagonalization of symmetric matrices and for transforming non-symmetric matrices to a Hessenberg form.

### Tridiagonalization

{{#invoke:main|main}} This procedure is taken from the book: Numerical Analysis, Burden and Faires, 8th Edition. In the first step, to form the Householder matrix in each step we need to determine and r, which are:

From and r, construct vector v:

Then compute:

Having found and computed the process is repeated for k =2, 3, ..., *n-1* as follows:

Continuing in this manner, the tridiagonal and symmetric matrix is formed.

### Examples

This example is taken from the book "Numerical Analysis" by Richard L. Burden (Author), J. Douglas Faires. In this example, the given matrix is transformed to the similar tridiagonal matrix A_{2} by using Householder Method.

Following those steps in Householder Method. We have:

The first Householder matrix:

As we can see, the final result is a tridiagonal symmetric matrix which is similar to the original one. The process finished after 2 steps.

## Computational and Theoretical Relationship to other Unitary Transformations

{{#invoke:see also|seealso}}
The Householder Transformation is a reflection about a certain hyperplane, namely, the one with unit normal vector v, as stated earlier. An N by N unitary transformation U satisfies *UU*^{H}=*I*. Taking determinant (N-th power of the geometric mean) and trace (proportional to arithmetic mean) of a unitary matrix reveals that its eigenvalues λ_{i} are unit modulus. This can be seen directly and swiftly:

Since arithmetic and geometric means are equal if the variables are constant, see, inequality of arithmetic and geometric means, we establish the claim of unit modulus.

For the case of real valued unitary matrixes we obtain orthogonal matrices, In this case all eigenvalues are real, and so the unit modulus eigenvalue constraint is replaced by the binary constraint that all eigenvalues lie in the set {+1,-1}. It follows rather readily (see orthogonal matrix) that any orthogonal matrix can be decomposed into a product of 2 by 2 rotations, called Givens Rotations, and Householder reflections. This is appealing intuitively since multiplication of a vector by an orthogonal matrix preserves the length of that vector, and rotations and reflections exhaust the set of (real valued) geometric operations that render invariant a vector's length.

The Householder transformation was shown to have a one to one relationship with the canonical coset decomposition of unitary matrices defined in group theory, which can be used to parametrize unitary operators in a very efficient manner.^{[2]}

Finally we note that a single Householder Transform, unlike a solitary Givens Transform, can act on all columns of a matrix, and as such exhibits the lowest computational cost for QR decomposition and Tridiagonalization. The penalty for this "computational optimality" is, of course, that Householder operations cannot be as deeply or efficiently parallelized. As such Householder is preferred for dense matrices on sequential machines, whilst Givens is preferred on sparse matrices, and/or parallel machines.

## References

- {{#invoke:Citation/CS1|citation

|CitationClass=journal }}

- {{#invoke:Citation/CS1|citation

|CitationClass=journal }}

- {{#invoke:Citation/CS1|citation

|CitationClass=journal }} (Herein Householder Transformation is cited as a top 10 algorithm of this century)

- {{#invoke:citation/CS1|citation

|CitationClass=book }}