Excellent question. This gets to the heart of the relationship between the geometric concept of orthogonality and the algebraic concept of a null space.
The short answer is: Yes, (W^{\perp}) is the kernel of a specific matrix.
Let's break down why this is true.
1. Definitions
-
Orthogonal Complement ((W^{\perp})): This is a geometric concept. For a subspace (W) of (\mathbb{R}^n), its orthogonal complement (W^{\perp}) is the set of all vectors (\mathbf{v}) in (\mathbb{R}^n) that are orthogonal to every vector (\mathbf{w}) in (W).
( W^{\perp} = { \mathbf{v} \in \mathbb{R}^n \mid \mathbf{v} \cdot \mathbf{w} = 0 \text{ for all } \mathbf{w} \in W } )
-
Kernel (or Null Space): This is an algebraic concept. The kernel of a matrix (A) (denoted (\text{ker}(A)) or (\text{Null}(A))) is the set of all vectors (\mathbf{x}) that are mapped to the zero vector by the linear transformation represented by (A).
( \text{ker}(A) = { \mathbf{x} \in \mathbb{R}^n \mid A\mathbf{x} = \mathbf{0} } )
2. The Connection
The key insight is that the geometric condition of orthogonality ((\mathbf{v} \cdot \mathbf{w} = 0)) can be rewritten as an algebraic matrix equation.
Here’s how:
-
Let (W) be a subspace of (\mathbb{R}^n), and let ({ \mathbf{w}_1, \mathbf{w}_2, \ldots, \mathbf{w}_k }) be a basis for (W).
-
A vector (\mathbf{x}) is in (W^{\perp}) if and only if it is orthogonal to every basis vector of (W). (If it's orthogonal to the basis vectors, it's orthogonal to any linear combination of them, which is all of (W)).
So, (\mathbf{x} \in W^{\perp}) if and only if:
[
\begin{cases}
\mathbf{w}_1 \cdot \mathbf{x} = 0 \
\mathbf{w}_2 \cdot \mathbf{x} = 0 \
\vdots \
\mathbf{w}_k \cdot \mathbf{x} = 0
\end{cases}
]
-
Now, let's construct a matrix (A) by taking these basis vectors and making them the rows of (A):
[
A = \begin{bmatrix}
\text{--- } \mathbf{w}_1^T \text{ ---} \
\text{--- } \mathbf{w}_2^T \text{ ---} \
\vdots \
\text{--- } \mathbf{w}_k^T \text{ ---}
\end{bmatrix}
]
(We write (\mathbf{w}_i^T) to emphasize that the column vectors (\mathbf{w}_i) are being used as rows).
-
The matrix-vector product (A\mathbf{x}) is precisely the system of dot products from step 2:
[
A\mathbf{x} = \begin{bmatrix}
\mathbf{w}_1^T \
\mathbf{w}_2^T \
\vdots \
\mathbf{w}_k^T
\end{bmatrix}
\mathbf{x} =
\begin{bmatrix}
\mathbf{w}_1 \cdot \mathbf{x} \
\mathbf{w}_2 \cdot \mathbf{x} \
\vdots \
\mathbf{w}_k \cdot \mathbf{x}
\end{bmatrix}
]
-
The condition that (\mathbf{x} \in W^{\perp}) (i.e., all those dot products are zero) is now identical to the condition that (A\mathbf{x} = \mathbf{0}).
( \mathbf{x} \in W^{\perp} \iff A\mathbf{x} = \mathbf{0} \iff \mathbf{x} \in \text{ker}(A) )
Therefore, the orthogonal complement of (W) is precisely the kernel (null space) of the matrix (A) whose rows form a basis for (W).
Summary
| Concept | Orthogonal Complement ((W^{\perp})) | Kernel (ker(A)) |
|---|
| Type | Geometric | Algebraic |
| Definition | The set of all vectors orthogonal to a subspace (W). | The set of all vectors (\mathbf{x}) such that (A\mathbf{x} = \mathbf{0}). |
| Equivalence | (W^{\perp}) is the kernel of the matrix (A) whose rows form a basis for (W). | |
This equivalence is the fundamental reason why the method for finding a basis for (W^{\perp}) works. You are converting a geometric problem into an algebraic one that you can solve by row-reducing a matrix.