Dimension & Rank

Basis
Last updated: Tags: Linear Algebra

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 VV is finite-dimensional if there exists a finite set of vectors that spans VV. All of FnF^n, all matrix spaces Mm,n(F)M_{m,n}(F), 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 FF — 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 {v1,,vn}\{v_1, \ldots, v_n\} spans VV and {u1,,um}\{u_1, \ldots, u_m\} is linearly independent in VV, then mnm \le n.

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 nn replacements, the spanning set is exhausted. Because the uiu_i are independent, none can be “used up” before all nn replacement slots are filled — so mnm \le n. \square

Theorem: Any two bases of a finite-dimensional vector space VV have the same number of elements.

Proof: Let B={b1,,bn}\mathcal{B} = \{b_1, \ldots, b_n\} and C={c1,,cm}\mathcal{C} = \{c_1, \ldots, c_m\} be two bases of VV. Since B\mathcal{B} spans VV and C\mathcal{C} is linearly independent, the lemma gives mnm \le n. Since C\mathcal{C} spans VV and B\mathcal{B} is linearly independent, the same argument gives nmn \le m. Therefore m=nm = n. \square

Definition of dimension

Because every basis has the same size, the following is well-defined:

The dimension of a finite-dimensional vector space VV, written dimV\dim V (or dimFV\dim_F V to emphasize the field), is the number of vectors in any basis of VV.

By convention, the trivial space has dim{0}=0\dim\{\mathbf{0}\} = 0, taking the empty set as its basis.

Dimensions of common spaces

SpaceStandard basisDimension
FnF^nStandard unit vectors e1,,ene_1, \ldots, e_nnn
Mm,n(F)M_{m,n}(F)Matrices EijE_{ij} (one 11, rest 00s)mnmn
F[x]dF[x]_{\le d} (polynomials of degree d\le d)1,x,x2,,xd1, x, x^2, \ldots, x^dd+1d+1
{0}\{\mathbf{0}\}\emptyset00

The dimension tells you how many independent parameters are needed to describe every element of the space: an element of FnF^n needs nn coordinates, a polynomial of degree d\le d needs d+1d+1 coefficients, and so on.

Dimension and subspaces

Let WW be a subspace of a finite-dimensional space VV. Then WW is also finite-dimensional, and:

  1. dimWdimV\dim W \le \dim V.
  2. dimW=dimV\dim W = \dim V if and only if W=VW = V.

Point 2 gives a useful shortcut: to prove that a subspace WW equals all of VV, it suffices to find dimV\dim V linearly independent vectors inside WW. If WW contains a linearly independent set of the right size, it must be all of VV.

Extending and reducing bases

Two practical facts follow from the replacement lemma:

  • Any linearly independent set in VV can be extended to a basis of VV (by adding vectors one at a time).
  • Any spanning set of VV can be reduced to a basis of VV (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 VV.

Rank as a dimension

The rank of a matrix AA, introduced in Row and Column Spaces, is exactly a dimension:

rank(A)=dim(row(A))=dim(col(A)).\text{rank}(A) = \dim(\text{row}(A)) = \dim(\text{col}(A)).

The nullity of AA is the dimension of its kernel — the solution set of the homogeneous system Ax=0Ax = \mathbf{0}:

nullity(A)=dim(ker(A)).\text{nullity}(A) = \dim(\ker(A)).

For an m×nm \times n matrix AA, these two quantities are related by the Rank-Nullity Theorem:

\text{rank}(A) + \text{nullity}(A) = n. \tag{1}

Every column of AA is either a pivot column (contributing 11 to the rank) or a free column (contributing 11 to the nullity). The nn 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 dimV\dim V is this common basis size: dimFn=n\dim F^n = n, dimMm,n(F)=mn\dim M_{m,n}(F) = mn, dim{0}=0\dim\{\mathbf{0}\} = 0.
  • For a subspace WVW \subseteq V: dimWdimV\dim W \le \dim V, with equality if and only if W=VW = V.
  • Any linearly independent set in VV extends to a basis; any spanning set of VV reduces to a basis.
  • Rank and nullity are dimensions: rank(A)=dim(col(A))=dim(row(A))\text{rank}(A) = \dim(\text{col}(A)) = \dim(\text{row}(A)) and nullity(A)=dim(ker(A))\text{nullity}(A) = \dim(\ker(A)), with rank(A)+nullity(A)=n\text{rank}(A) + \text{nullity}(A) = n.