Orthogonality &
Complements
Explore when vectors are perpendicular, how to decompose spaces into orthogonal pieces, and why the dot product \(\mathbf{u} \cdot \mathbf{v} = 0\) unlocks powerful tools in linear algebra.
What Is Orthogonality?
Two vectors \(\mathbf{u}\) and \(\mathbf{v}\) in \(\mathbb{R}^n\) are orthogonal if their dot product equals zero:
Geometrically, orthogonal vectors meet at a right angle (\(90^\circ\)). The zero vector \(\mathbf{0}\) is orthogonal to every vector.
Orthogonal Vectors in \(\mathbb{R}^2\)
Why Does Orthogonality Matter?
The Orthogonal Complement \(W^\perp\)
\(W^\perp\) collects every vector that is perpendicular to every vector in \(W\). It is itself a subspace of \(\mathbb{R}^n\).
Visualizing \(W\) and \(W^\perp\) in \(\mathbb{R}^3\)
If \(W\) is a plane through the origin in \(\mathbb{R}^3\) (dimension 2), then \(W^\perp\) is the line perpendicular to that plane (dimension 1). Together they account for all of \(\mathbb{R}^3\).
Orthogonal Decomposition Theorem
The component \(\hat{\mathbf{y}}\) is the orthogonal projection of \(\mathbf{y}\) onto \(W\), and \(\mathbf{z} = \mathbf{y} - \hat{\mathbf{y}}\) is the residual in \(W^\perp\).
Computing the Projection
If \(W = \text{Span}\{\mathbf{u}_1, \ldots, \mathbf{u}_p\}\) and the \(\mathbf{u}_i\) are orthogonal to each other, then:
Orthogonal vs Orthonormal
| Property | Orthogonal Set | Orthonormal Set |
|---|---|---|
| Dot product of distinct vectors | \(\mathbf{u}_i \cdot \mathbf{u}_j = 0\) | \(\mathbf{u}_i \cdot \mathbf{u}_j = 0\) |
| Length of each vector | Any nonzero length | \(\|\mathbf{u}_i\| = 1\) |
| Projection formula | \(\dfrac{\mathbf{y} \cdot \mathbf{u}_i}{\mathbf{u}_i \cdot \mathbf{u}_i}\,\mathbf{u}_i\) | \((\mathbf{y} \cdot \mathbf{u}_i)\,\mathbf{u}_i\) |
| How to obtain | Gram-Schmidt (raw output) | Normalize each vector |
The Fundamental Subspace Connections
For any \(m \times n\) matrix \(A\), the four fundamental subspaces pair up as orthogonal complements:
Row space and null space are complements.
Column space and left null space are complements.
How to Find \(W^\perp\)
Example 1: Orthogonality Check
Are \(\mathbf{u} = \begin{bmatrix} 2 \\ -3 \\ 1 \end{bmatrix}\) and \(\mathbf{v} = \begin{bmatrix} 1 \\ 2 \\ 4 \end{bmatrix}\) orthogonal?
Example 2: Finding \(W^\perp\)
Let \(W = \text{Span}\left\{\begin{bmatrix}1\\2\\-1\end{bmatrix},\;\begin{bmatrix}0\\1\\3\end{bmatrix}\right\}\) in \(\mathbb{R}^3\). Find \(W^\perp\).
Example 3: Projecting onto \(W\)
Let \(\mathbf{u}_1 = \begin{bmatrix}1\\1\\0\end{bmatrix}\), \(\mathbf{u}_2 = \begin{bmatrix}-1\\1\\0\end{bmatrix}\) (orthogonal), \(W = \text{Span}\{\mathbf{u}_1, \mathbf{u}_2\}\). Find \(\text{proj}_W \mathbf{y}\) for \(\mathbf{y} = \begin{bmatrix}3\\5\\7\end{bmatrix}\).
Common Mistakes
Summary: Key Facts
| Concept | Statement |
|---|---|
| Orthogonal vectors | \(\mathbf{u} \cdot \mathbf{v} = 0\) |
| Orthogonal complement | \(W^\perp = \{\mathbf{x} : \mathbf{x} \cdot \mathbf{w} = 0,\;\forall \mathbf{w} \in W\}\) |
| Dimension theorem | \(\dim W + \dim W^\perp = n\) |
| Decomposition | \(\mathbf{y} = \text{proj}_W \mathbf{y} + \mathbf{z},\; \mathbf{z} \in W^\perp\) |
| Row/Null duality | \(\text{Row}(A)^\perp = \text{Nul}(A)\) |
| Col/Left-null duality | \(\text{Col}(A)^\perp = \text{Nul}(A^T)\) |
Question 1 of 5
Which condition makes \(\mathbf{u}\) and \(\mathbf{v}\) orthogonal?
Question 2 of 5
If \(W\) is a 3-dimensional subspace of \(\mathbb{R}^5\), what is \(\dim(W^\perp)\)?
Question 3 of 5
The null space of a matrix \(A\) is the orthogonal complement of which subspace?
Question 4 of 5
Let \(\mathbf{u} = \begin{bmatrix}1\\0\\1\end{bmatrix}\) and \(W = \text{Span}\{\mathbf{u}\}\). Compute \(\text{proj}_W \begin{bmatrix}4\\3\\2\end{bmatrix}\).
Question 5 of 5
A set of vectors \(\{\mathbf{u}_1, \mathbf{u}_2, \mathbf{u}_3\}\) is orthonormal. Which statement is always true?