A vector can be orthogonal to a whole subspace: perpendicular to every vector in it. Collecting all such vectors gives another subspace, and for a matrix this links the row space to the null space.
For a subspace $W$ of $\mathbb{R}^n$, the orthogonal complement $W^{\perp}$ is the set of all $\mathbf{z}$ with $\mathbf{z}\cdot\mathbf{w} = 0$ for every $\mathbf{w}$ in $W$. To test membership it is enough to check a spanning set of $W$: if $\mathbf{z}$ is orthogonal to each $\mathbf{w}_i$, it is orthogonal to every combination of them.
Key idea
Why it works
Worked example: Complement of a line
- $\mathbf{z} = (x, y, z)$ is in $W^{\perp}$ when $x + y + z = 0$: a plane through the origin.
- Solve: $x = -y - z$; with $y = s$, $z = t$: $\mathbf{z} = s(-1, 1, 0) + t(-1, 0, 1)$.
- Dimensions: $1 + 2 = 3$. ✓
Answer: The plane $x + y + z = 0$, basis $\{(-1, 1, 0), (-1, 0, 1)\}$.
Worked example: Complement of a plane
- Put the spanning vectors in the rows of $A = \begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 2 \end{bmatrix}$; then $W^{\perp} = \operatorname{Nul} A$.
- $A$ is already reduced: $x = -z$, $y = -2z$, $z$ free.
- $W^{\perp} = \operatorname{Span}\{(-1, -2, 1)\}$, a line. Check: $(-1, -2, 1)\cdot(1, 0, 1) = 0$ and $(-1, -2, 1)\cdot(0, 1, 2) = 0$. ✓
Answer: The line through $(-1, -2, 1)$.
Two more facts: $W \cap W^{\perp} = \{\mathbf{0}\}$ (a vector orthogonal to itself has $\mathbf{z}\cdot\mathbf{z} = 0$, so it is $\mathbf{0}$), and $(W^{\perp})^{\perp} = W$. Together with the dimension count they say that $\mathbb{R}^n$ splits cleanly into $W$ and $W^{\perp}$: every vector is a piece in $W$ plus a piece in $W^{\perp}$, which is the next topic.
| Subspace of | Orthogonal complement of | |
|---|---|---|
| $\operatorname{Nul} A$ | $\mathbb{R}^n$ | $\operatorname{Row} A$ |
| $\operatorname{Nul} A^{T}$ | $\mathbb{R}^m$ | $\operatorname{Col} A$ |
Orthogonal complements turn "solve a system" into geometry. Every row of $A$ is a normal vector to the solution set of $A\mathbf{x} = \mathbf{0}$. For one equation in $\mathbb{R}^3$, that is the familiar fact that $(a, b, c)$ is perpendicular to the plane $ax + by + cz = 0$.
Common mistake