Dimension Theorem for Subspaces
The Dimension Theorem describes how the dimensions of two subspaces relate to the dimensions of their sum and intersection. It is the linear algebra analogue of the inclusion-exclusion principle.
Statement
Let and be finite-dimensional subspaces of a vector space . Then is finite-dimensional and
Let , , .
Choose a basis of . Extend it to a basis of and to a basis of .
Claim: is a basis for .
Spanning: Any element of is with and . Both can be written in terms of the given bases, so .
Independence: Suppose . Then . But , so . Write . Since is a basis for , the relation forces all and . Then , and independence of the basis of gives .
So .
Examples
In , let (the -plane, ) and (the -plane, ).
(the -axis, ).
, so .
() and (the -axis, ).
().
, so (a direct sum since the intersection is trivial).
() and ().
().
, so .
If , then and , so . Trivially true.
In , let () and ().
().
, so .
() and ().
().
, so .
In (char ): and .
(if and , then , so ).
.
So .
upper triangular, lower triangular. Then (diagonal).
.
So .
For three subspaces, the inclusion-exclusion analogy breaks down. There is no general formula
In , three distinct lines through the origin each have and pairwise intersection , but .
if and only if and . Equivalently, and .
Every subspace of a finite-dimensional space has a complement: a subspace such that . Extend a basis of to a basis of ; the additional vectors span . The complement is not unique (unless or ).
A hyperplane in (i.e., , say ) has a one-dimensional complement. Any nonzero gives .
The Dimension Theorem for subspaces extends to the Rank-Nullity Theorem, which relates the dimension of the domain, kernel, and image of a linear transformation.