Row and Column Spaces
BasisPrerequisites
Every matrix stores two natural families of vectors: its rows and its columns. The span of the rows and the span of the columns are both important subspaces, and they encode which linear systems are solvable and how much “reach” the matrix has. The surprising fact — not obvious at first glance — is that these two spans, living in completely different spaces, always have the same dimension.
Row space and column space
For an matrix over a field , write for its row vectors and for its column vectors.
- The row space of is .
- The column space of is .
Both are linear subspaces of their respective ambient spaces, because the span of any set of vectors is always a subspace. Note the different homes: the row space lives in (as many coordinates as columns), while the column space lives in (as many coordinates as rows).
What the column space tells you
The product is a linear combination of the columns of :
So as ranges over all of , ranges over all of . This gives a clean solvability criterion:
If is outside the column space, the system is inconsistent — no combination of the columns can produce .
Row operations preserve the row space
The key tool for computing with row and column spaces is Gauss-Jordan elimination. Here is how it interacts with each space.
Every elementary row operation (swap two rows; multiply a row by a nonzero scalar; add a multiple of one row to another) replaces the set of rows with a new set whose spans are identical. Why? Because each operation is invertible and produces rows that are linear combinations of the old rows — and the old rows are recoverable as linear combinations of the new ones. Since the span only depends on what linear combinations are achievable, the span does not change.
Consequence: The row space is invariant under row operations. In particular, the nonzero rows of the reduced row echelon form (RREF) of form a basis for — they span the same space and are clearly linearly independent (each has a leading 1 in a column where all other nonzero rows have 0).
Row operations do not preserve the column space
Row operations do change the column vectors. Adding times row to row changes all entries in row , which changes every column simultaneously. So you cannot read off a basis for from the RREF columns.
What row operations do preserve is the linear dependence relations among columns: if a column is a linear combination of others before reduction, the same relation holds after, and vice versa. This means the positions of pivot columns are reliable — the pivot columns of are a basis for — but you must take those columns from the original matrix , not from the RREF.
Worked example
Find bases for the row space and column space of
Apply Gauss-Jordan elimination. , :
Swap and , then :
Back-substitute: :
Row space: The nonzero rows of the RREF are and . These form a basis for .
Column space: Pivot columns are columns 1 and 2 (where the leading 1s appear). Take those columns from the original :
Row rank equals column rank
In the example, both the row space and the column space have dimension 2. This is not a coincidence.
Theorem: for any matrix .
Proof: In the RREF of , every pivot corresponds to a nonzero row (contributing to the row space) and a pivot column (contributing to the column space). The number of pivots is the same count in both cases. Since the nonzero rows of the RREF are a basis for and the pivot columns of are a basis for , both dimensions equal the number of pivots.
Rank
This common dimension is the rank of :
\text{rank}(A) \coloneqq \dim(\text{row}(A)) = \dim(\text{col}(A)) = \text{(number of pivots in the RREF of } A). \tag{1}
The rank measures how much of the matrix is genuinely independent — how many linearly independent rows (equivalently, columns) has. For an matrix, , since neither the row space (dimension ) nor the column space (dimension ) can exceed its ambient space.
The relationship between rank, nullity, and the structure of solutions is made precise in the Rank-Nullity Theorem.
Summary
- The row space and the column space are both linear subspaces.
- The system is consistent if and only if .
- Row operations preserve the row space: a basis is given by the nonzero rows of the RREF.
- Row operations do not preserve the column space: a basis uses the pivot columns of the original matrix .
- Row rank equals column rank: .
- The rank is this common value, equal to the number of pivots in the RREF.