Dimension & Rank
BasisPrerequisites
When you choose a basis for a subspace, you have many options — there are infinitely many valid bases for most spaces. But no matter which basis you pick, you always count the same number of vectors. This invariant is the dimension, and it is the most fundamental numerical property of a vector space. The entire theory of rank and the rank-nullity theorem rest on this single fact.
Finite-dimensional spaces
A vector space is finite-dimensional if there exists a finite set of vectors that spans . All of , all matrix spaces , and every subspace of a finite-dimensional space are finite-dimensional. A space with no finite spanning set — such as the space of all polynomials over — is infinite-dimensional.
This checkpoint focuses entirely on finite-dimensional spaces.
All bases have the same size
Linear Subspace introduced bases and stated without proof that all bases of a space have equal size. Here is why that is true.
Lemma (replacement): If spans and is linearly independent in , then .
Proof sketch: You can replace vectors in the spanning set one at a time with vectors from the independent set while maintaining a spanning set at each step. After at most replacements, the spanning set is exhausted. Because the are independent, none can be “used up” before all replacement slots are filled — so .
Theorem: Any two bases of a finite-dimensional vector space have the same number of elements.
Proof: Let and be two bases of . Since spans and is linearly independent, the lemma gives . Since spans and is linearly independent, the same argument gives . Therefore .
Definition of dimension
Because every basis has the same size, the following is well-defined:
The dimension of a finite-dimensional vector space , written (or to emphasize the field), is the number of vectors in any basis of .
By convention, the trivial space has , taking the empty set as its basis.
Dimensions of common spaces
| Space | Standard basis | Dimension |
|---|---|---|
| Standard unit vectors | ||
| Matrices (one , rest s) | ||
| (polynomials of degree ) | ||
The dimension tells you how many independent parameters are needed to describe every element of the space: an element of needs coordinates, a polynomial of degree needs coefficients, and so on.
Dimension and subspaces
Let be a subspace of a finite-dimensional space . Then is also finite-dimensional, and:
- .
- if and only if .
Point 2 gives a useful shortcut: to prove that a subspace equals all of , it suffices to find linearly independent vectors inside . If contains a linearly independent set of the right size, it must be all of .
Extending and reducing bases
Two practical facts follow from the replacement lemma:
- Any linearly independent set in can be extended to a basis of (by adding vectors one at a time).
- Any spanning set of can be reduced to a basis of (by removing redundant vectors one at a time).
Together these say: a basis is both a minimal spanning set and a maximal linearly independent set inside .
Rank as a dimension
The rank of a matrix , introduced in Row and Column Spaces, is exactly a dimension:
The nullity of is the dimension of its kernel — the solution set of the homogeneous system :
For an matrix , these two quantities are related by the Rank-Nullity Theorem:
\text{rank}(A) + \text{nullity}(A) = n. \tag{1}
Every column of is either a pivot column (contributing to the rank) or a free column (contributing to the nullity). The columns are partitioned between the two, with no column counted twice and no column left out.
Summary
- A vector space is finite-dimensional if it has a finite spanning set.
- All bases of a finite-dimensional space have the same number of elements — this follows from the replacement lemma applied in both directions.
- The dimension is this common basis size: , , .
- For a subspace : , with equality if and only if .
- Any linearly independent set in extends to a basis; any spanning set of reduces to a basis.
- Rank and nullity are dimensions: and , with .