A fantastic question!
Yes, ( W^{\perp} ) is exactly the same as the kernel (null space) of the matrix ( A ) whose rows are the basis vectors of ( W ).
Here's why:
Definitions Recap
-
Orthogonal Complement (( W^{\perp} )):
- Given a subspace ( W \subseteq \mathbb{R}^n ), the orthogonal complement ( W^{\perp} ) is the set of all vectors ( \mathbf{x} \in \mathbb{R}^n ) such that:
[
\mathbf{x} \cdot \mathbf{w} = 0 \quad \text{for all } \mathbf{w} \in W.
]
- In other words, ( \mathbf{x} ) is orthogonal to every vector in ( W ).
-
Kernel (Null Space) of a Matrix ( A ):
- For a matrix ( A ), the kernel (or null space) is the set of all vectors ( \mathbf{x} ) such that:
[
A \mathbf{x} = \mathbf{0}.
]
- The kernel is denoted as ( \ker(A) ) or ( \text{Null}(A) ).
The Connection
Let ( A ) be the matrix whose rows are the basis vectors of ( W ). Then:
[
A = \begin{bmatrix}
\mathbf{w}_1^T \
\mathbf{w}_2^T \
\vdots \
\mathbf{w}_k^T
\end{bmatrix}
]
where ( {\mathbf{w}_1, \mathbf{w}_2, \ldots, \mathbf{w}_k} ) is a basis for ( W ).
Claim: ( W^{\perp} = \ker(A) ).
Proof:
-
Take any ( \mathbf{x} \in W^{\perp} ). By definition, ( \mathbf{x} ) is orthogonal to every vector in ( W ), meaning:
[
\mathbf{w}_i \cdot \mathbf{x} = \mathbf{w}_i^T \mathbf{x} = 0 \quad \text{for all } i = 1, 2, \ldots, k.
]
Stacking these dot products into a matrix equation:
[
\begin{bmatrix}
\mathbf{w}_1^T \mathbf{x} \
\mathbf{w}_2^T \mathbf{x} \
\vdots \
\mathbf{w}_k^T \mathbf{x}
\end{bmatrix}
= \begin{bmatrix}
0 \
0 \
\vdots \
0
\end{bmatrix}
\quad \implies \quad
A \mathbf{x} = \mathbf{0}.
]
Thus, ( \mathbf{x} \in \ker(A) ).
-
Conversely, take any ( \mathbf{x} \in \ker(A) ), meaning ( A \mathbf{x} = \mathbf{0} ). Expanding this:
[
\begin{bmatrix}
\mathbf{w}_1^T \
\mathbf{w}_2^T \
\vdots \
\mathbf{w}_k^T
\end{bmatrix}
\mathbf{x}
= \begin{bmatrix}
0 \
0 \
\vdots \
0
\end{bmatrix}
\quad \implies \quad
\mathbf{w}_i^T \mathbf{x} = 0 \quad \text{for all } i.
]
Since ( {\mathbf{w}_1, \ldots, \mathbf{w}_k} ) is a basis for ( W ), every vector in ( W ) is a linear combination of these basis vectors. For any ( \mathbf{w} \in W ):
[
\mathbf{w} = c_1 \mathbf{w}_1 + c_2 \mathbf{w}_2 + \cdots + c_k \mathbf{w}_k.
]
Then:
[
\mathbf{w}^T \mathbf{x} = (c_1 \mathbf{w}_1 + \cdots + c_k \mathbf{w}_k)^T \mathbf{x} = c_1 (\mathbf{w}_1^T \mathbf{x}) + \cdots + c_k (\mathbf{w}_k^T \mathbf{x}) = 0.
]
Thus, ( \mathbf{x} \in W^{\perp} ).
Conclusion:
[
W^{\perp} = \ker(A),
]
where ( A ) is the matrix whose rows are the basis vectors of ( W ).
Key Takeaways
-
Geometrically:
- ( W^{\perp} ) is the set of vectors orthogonal to ( W ).
- ( \ker(A) ) is the set of vectors "annihilated" by ( A ) (i.e., ( A \mathbf{x} = \mathbf{0} )).
-
Algebraically:
- The condition ( \mathbf{w}_i^T \mathbf{x} = 0 ) (orthogonality) is exactly the same as ( A \mathbf{x} = \mathbf{0} ) (kernel condition).
-
Computationally:
- To find ( W^{\perp} ), row reduce ( A ) and solve ( A \mathbf{x} = \mathbf{0} ). The solutions form a basis for ( W^{\perp} ).
So, in short:
[
\boxed{W^{\perp} = \ker(A)}
]
where ( A ) is the matrix with the basis vectors of ( W ) as its rows.
Happy math-ing!