Row Space — Definition, Formula & Example
The row space of a matrix is the set of all vectors you can build by adding together scalar multiples of its rows. It tells you which directions the rows of the matrix actually cover.
For an matrix with real entries, the row space is , where is the -th row of . It is a subspace of and equals . Elementary row operations do not change it. By contrast, the column space is a subspace of , and row operations can change it.
Key Formula
Where:
- = An matrix
- = Number of columns of , which is also the number of entries in each row vector
- = Number of pivots in an echelon form of
- = The null space, the set of all solutions of
Worked Example
Problem: Find a basis and the dimension of the row space of .
Step 1: Clear the first column below the pivot. Row operations preserve the row space, so the new rows span the same subspace.
Step 2: Subtract the new second row from the new third row to reach echelon form.
Step 3: The nonzero rows of an echelon form are linearly independent, and they span the row space. Unlike the column-space method, you take these rows straight from the reduced matrix. Counting them gives the rank. The rank-nullity theorem then gives the null space dimension.
Answer: A basis for is . The row space is a 2-dimensional subspace of , so .
Why It Matters
In a linear algebra course, the row space is one of the four fundamental subspaces. Every vector in the null space is perpendicular to every row, so and are orthogonal complements in . This fact underlies least-squares fitting and the singular value decomposition used in data science.
Common Mistakes
Mistake: Assuming the row space and the column space are the same subspace because they always have the same dimension.
Correction: They share a dimension, the rank, but they usually live in different spaces. In the example, sits in , while sits in . They can coincide only when is square, and even then they often differ.
