Tutorials › Linear Algebra › Constructing Householder Reflections

Orthogonal Matrices and Isometries · Tutorial 719 of 1000

Constructing Householder Reflections

Learn how a unit normal determines a Householder reflection and how to verify the resulting matrix.

Intermediate 8 min read

What You'll Learn

  • Describe a reflection across a hyperplane using its normal and orthogonal components.
  • Derive the matrix formula \( \mathbf{H}=\mathbf{I}-2\mathbf{u}\mathbf{u}^{\top} \).
  • Prove that a Householder matrix is symmetric, orthogonal, and its own inverse.
  • Normalize a normal vector before constructing the reflection matrix.
  • Compute and verify Householder reflections in \(\mathbb{R}^2\) and \(\mathbb{R}^3\).

Build a Reflection from Its Normal

A reflection across a line in the plane or a plane in three-dimensional space can be specified by the direction perpendicular to it. In \(\mathbb{R}^n\), the corresponding object is a hyperplane through the origin. Its unit normal tells us which component of a vector must change sign: the component parallel to the hyperplane stays fixed, while the component perpendicular to it is reversed. This description leads directly to the Householder matrix.

Work over \(\mathbb{R}\), with vectors written as columns. Let \(\mathbf{u}\in\mathbb{R}^n\) be a unit vector, so \(\mathbf{u}^{\top}\mathbf{u}=1\). The hyperplane with normal \(\mathbf{u}\) is \(W=\{\mathbf{x}\in\mathbb{R}^n:\mathbf{u}^{\top}\mathbf{x}=0\}\). The condition says exactly that \(\mathbf{x}\) is perpendicular to \(\mathbf{u}\). For any \(\mathbf{x}\in\mathbb{R}^n\), its component in the normal direction is \((\mathbf{u}^{\top}\mathbf{x})\mathbf{u}\); subtracting that component leaves a vector in \(W\).

Definition: Given a unit vector \(\mathbf{u}\in\mathbb{R}^n\), the Householder reflection across the hyperplane \(W=\{\mathbf{x}:\mathbf{u}^{\top}\mathbf{x}=0\}\) fixes every vector in \(W\) and reverses the component parallel to \(\mathbf{u}\). Its matrix in standard coordinates is called a Householder matrix.

To derive its formula, write an arbitrary vector as the sum of its hyperplane component and its normal component:

$$ \mathbf{x} = \underbrace{\bigl(\mathbf{x}-(\mathbf{u}^{\top}\mathbf{x})\mathbf{u}\bigr)}_{\text{in }W} + \underbrace{(\mathbf{u}^{\top}\mathbf{x})\mathbf{u}}_{\text{parallel to }\mathbf{u}}. $$

The first component is in \(W\), because its dot product with \(\mathbf{u}\) is \(\mathbf{u}^{\top}\mathbf{x}-(\mathbf{u}^{\top}\mathbf{x})(\mathbf{u}^{\top}\mathbf{u})=0\). A reflection keeps the first component and negates the second. Thus its output is \(\mathbf{x}-2(\mathbf{u}^{\top}\mathbf{x})\mathbf{u}\). Since \((\mathbf{u}^{\top}\mathbf{x})\mathbf{u}=(\mathbf{u}\mathbf{u}^{\top})\mathbf{x}\), this gives the matrix formula.

$$ \mathbf{H}=\mathbf{I}_n-2\mathbf{u}\mathbf{u}^{\top}. $$

The unit-length condition matters: it makes \((\mathbf{u}^{\top}\mathbf{x})\mathbf{u}\) the normal component itself. The matrix \(\mathbf{u}\mathbf{u}^{\top}\) is \(n\times n\), so \(\mathbf{H}\) acts on column vectors in \(\mathbb{R}^n\).

Why a Householder Matrix Is Symmetric and Orthogonal

Theorem: If \(\mathbf{u}\in\mathbb{R}^n\) satisfies \(\mathbf{u}^{\top}\mathbf{u}=1\), then \(\mathbf{H}=\mathbf{I}_n-2\mathbf{u}\mathbf{u}^{\top}\) is symmetric and orthogonal. In addition, \(\mathbf{H}^2=\mathbf{I}_n\).

Proof. First, \((\mathbf{u}\mathbf{u}^{\top})^{\top}=\mathbf{u}\mathbf{u}^{\top}\), so taking the transpose of the formula gives \(\mathbf{H}^{\top}=\mathbf{I}_n-2\mathbf{u}\mathbf{u}^{\top}=\mathbf{H}\). For the product, use the unit-length assumption to calculate \((\mathbf{u}\mathbf{u}^{\top})(\mathbf{u}\mathbf{u}^{\top})=\mathbf{u}(\mathbf{u}^{\top}\mathbf{u})\mathbf{u}^{\top}=\mathbf{u}\mathbf{u}^{\top}\). Therefore \(\mathbf{H}^2=(\mathbf{I}_n-2\mathbf{u}\mathbf{u}^{\top})^2 =\mathbf{I}_n-4\mathbf{u}\mathbf{u}^{\top}+4\mathbf{u}\mathbf{u}^{\top} =\mathbf{I}_n\). Since \(\mathbf{H}^{\top}=\mathbf{H}\), this also gives \(\mathbf{H}^{\top}\mathbf{H}=\mathbf{I}_n\), which is the defining test for orthogonality. \(\square\)

The equation \(\mathbf{H}^2=\mathbf{I}_n\) expresses that reflecting twice restores every vector. The formula also verifies the geometric description directly. If \(\mathbf{x}\in W\), then \(\mathbf{u}^{\top}\mathbf{x}=0\), so \(\mathbf{H}\mathbf{x}=\mathbf{x}\). For the normal vector itself, \(\mathbf{H}\mathbf{u}=\mathbf{u}-2(\mathbf{u}^{\top}\mathbf{u})\mathbf{u}=-\mathbf{u}\). Thus the hyperplane is fixed and the normal direction is reversed.

Constructing and Checking the Matrix

1
Identify a normal.
Read a normal vector \(\mathbf{n}\) from the equation of the hyperplane. For example, \(a_1x_1+\cdots+a_nx_n=0\) has normal \((a_1,\dots,a_n)^{\top}\).
2
Normalize it.
Set \(\mathbf{u}=\mathbf{n}/\|\mathbf{n}\|\), where \(\|\mathbf{n}\|=\sqrt{\mathbf{n}^{\top}\mathbf{n}}\). The formula requires \(\mathbf{u}^{\top}\mathbf{u}=1\).
3
Form the outer product.
Compute \(\mathbf{u}\mathbf{u}^{\top}\), then subtract twice this matrix from the identity matrix of the same size.
4
Check the result.
Confirm that the matrix is symmetric and that multiplying it by itself gives the identity. Also check that it fixes vectors perpendicular to \(\mathbf{u}\) and sends \(\mathbf{u}\) to \(-\mathbf{u}\).

Worked Example: A Reflection in \(\mathbb{R}^2\)

Construct the reflection across the line \(3x+4y=0\), and verify its matrix.

The normal vector is \(\mathbf{n}=(3,4)^{\top}\), with length \(\sqrt{3^2+4^2}=5\). Hence \(\mathbf{u}=(3/5,4/5)^{\top}\), and

$$ \mathbf{u}\mathbf{u}^{\top} = \begin{bmatrix}3/5\\4/5\end{bmatrix} \begin{bmatrix}3/5&4/5\end{bmatrix} = \begin{bmatrix}9/25&12/25\\12/25&16/25\end{bmatrix}. $$

Subtracting twice this outer product from \(\mathbf{I}_2\) gives

$$ \mathbf{H} = \begin{bmatrix}1&0\\0&1\end{bmatrix} - \begin{bmatrix}18/25&24/25\\24/25&32/25\end{bmatrix} = \begin{bmatrix}7/25&-24/25\\-24/25&-7/25\end{bmatrix}. $$

The matrix is symmetric because its off-diagonal entries agree. To check the reflection property, the normal is sent to its negative: \(\mathbf{H}\mathbf{u}=( -3/5,-4/5)^{\top}=-\mathbf{u}\). A vector in the line, such as \((-4,3)^{\top}\), is fixed: \(\mathbf{H}(-4,3)^{\top}=(-4,3)^{\top}\).

For an explicit orthogonality check, symmetry means \(\mathbf{H}^{\top}\mathbf{H}=\mathbf{H}^2\). Multiplying the integer numerators gives

$$ \mathbf{H}^{\top}\mathbf{H} = \frac{1}{625} \begin{bmatrix}7&-24\\-24&-7\end{bmatrix} \begin{bmatrix}7&-24\\-24&-7\end{bmatrix} = \frac{1}{625} \begin{bmatrix}49+576&-168+168\\-168+168&576+49\end{bmatrix} = \begin{bmatrix}1&0\\0&1\end{bmatrix}. $$

The matrix therefore fixes the specified line, reverses its normal direction, and is orthogonal.

Worked Example: A Reflection in \(\mathbb{R}^3\)

Construct the reflection across the plane \(x+y+z=0\), and verify the result.

A normal is \(\mathbf{n}=(1,1,1)^{\top}\), whose length is \(\sqrt{3}\). Thus \(\mathbf{u}=(1,1,1)^{\top}/\sqrt{3}\), and \(\mathbf{u}\mathbf{u}^{\top}\) has every entry equal to \(1/3\). The Householder matrix is

$$ \mathbf{H} = \begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix} - \frac{2}{3} \begin{bmatrix}1&1&1\\1&1&1\\1&1&1\end{bmatrix} = \frac{1}{3} \begin{bmatrix}1&-2&-2\\-2&1&-2\\-2&-2&1\end{bmatrix}. $$

Its entries show that \(\mathbf{H}^{\top}=\mathbf{H}\). For the multiplication check, each numerator row has squared length \(1+4+4=9\), and the dot products of distinct rows are \(1(-2)+(-2)(1)+(-2)(-2)=0\). Therefore

$$ \mathbf{H}^{\top}\mathbf{H} = \frac{1}{9} \begin{bmatrix}9&0&0\\0&9&0\\0&0&9\end{bmatrix} = \mathbf{I}_3. $$

The normal is reversed: multiplying the numerator matrix by \((1,1,1)^{\top}\) gives \((-3,-3,-3)^{\top}\), so \(\mathbf{H}\mathbf{u}=-\mathbf{u}\). A vector in the plane, such as \((1,-1,0)^{\top}\), is fixed because the numerator matrix sends it to \((3,-3,0)^{\top}\), and division by \(3\) returns \((1,-1,0)^{\top}\).

Worked Example: A Different Normal in \(\mathbb{R}^3\)

Find the Householder matrix for the plane \(2x-y+2z=0\), and check it by multiplication.

The normal \(\mathbf{n}=(2,-1,2)^{\top}\) has length \(3\), so \(\mathbf{u}=(2,-1,2)^{\top}/3\). The outer product and resulting matrix are

$$ \mathbf{u}\mathbf{u}^{\top} = \frac{1}{9} \begin{bmatrix}4&-2&4\\-2&1&-2\\4&-2&4\end{bmatrix}, \qquad \mathbf{H} = \frac{1}{9} \begin{bmatrix}1&4&-8\\4&7&4\\-8&4&1\end{bmatrix}. $$

The matrix is symmetric. Its numerator rows have squared lengths \(1+16+64=81\), \(16+49+16=81\), and \(64+16+1=81\). Their pairwise dot products are \(4+28-32=0\), \(-8+16-8=0\), and \(-32+28+4=0\). Thus the product is

$$ \mathbf{H}^{\top}\mathbf{H} = \frac{1}{81} \begin{bmatrix}81&0&0\\0&81&0\\0&0&81\end{bmatrix} = \mathbf{I}_3. $$

As a geometric check, the numerator matrix sends \((2,-1,2)^{\top}\) to \((-18,9,-18)^{\top}\); dividing by \(9\) shows that \(\mathbf{H}\mathbf{u}=-\mathbf{u}\). This verifies the reversal of the normal.

Common Mistake: Forgetting to Normalize

The formula \(\mathbf{I}_n-2\mathbf{u}\mathbf{u}^{\top}\) requires a unit normal. For the line \(x+y=0\), using the unnormalized vector \((1,1)^{\top}\) as though it were unit gives the incorrect matrix

$$ \begin{bmatrix}1&0\\0&1\end{bmatrix} - 2\begin{bmatrix}1&1\\1&1\end{bmatrix} = \begin{bmatrix}-1&-2\\-2&-1\end{bmatrix}. $$

This is not an orthogonal matrix: its transpose times itself is its square, which equals \(\begin{bmatrix}5&4\\4&5\end{bmatrix}\), not \(\mathbf{I}_2\). The correction is to normalize first. The unit normal is \((1/\sqrt{2},1/\sqrt{2})^{\top}\), so the correct matrix is

$$ \mathbf{I}_2- 2\begin{bmatrix}1/2&1/2\\1/2&1/2\end{bmatrix} = \begin{bmatrix}0&-1\\-1&0\end{bmatrix}. $$

Its square is \(\mathbf{I}_2\); it fixes \((1,-1)^{\top}\), which lies in the line, and sends the unit normal to its negative. The failure in the incorrect calculation is not a rounding issue: the unnormalized vector makes the normal component too large.

What the Construction Guarantees

The construction gives a useful set of checks whenever a reflection matrix is requested. The normal vector must be nonzero so it can be normalized. The hyperplane is the set of vectors whose dot product with that normal is zero. The resulting matrix is symmetric and orthogonal, and applying it twice gives the identity. These properties are consequences of the formula and the unit-normal condition, rather than extra assumptions to impose on the answer.

There is also a useful distinction between choosing a normal direction and choosing a particular unit normal. Replacing \(\mathbf{u}\) by \(-\mathbf{u}\) does not change the matrix, because \((-\mathbf{u})(-\mathbf{u})^{\top}=\mathbf{u}\mathbf{u}^{\top}\). Thus either orientation of the same normal line gives the same reflection. The essential data are the hyperplane and its perpendicular direction, not the sign used to represent that direction.

Check Your Understanding

For each construction, use the unit-normal condition and the reflection properties to check your work.

  1. Find the Householder matrix for the line \(4x-3y=0\) in \(\mathbb{R}^2\).
  2. For \(\mathbf{u}=(1,2,2)^{\top}/3\), write the plane fixed by the corresponding reflection and construct its matrix.
  3. Explain why replacing a unit normal \(\mathbf{u}\) with \(-\mathbf{u}\) leaves the Householder matrix unchanged.
  4. Show from the formula that every vector \(\mathbf{x}\) satisfying \(\mathbf{u}^{\top}\mathbf{x}=0\) is fixed.
  5. What goes wrong if the formula is used with a normal vector whose length is not \(1\)? Give a specific calculation.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon