Mathwords logoMathwords

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 m×nm \times n matrix AA with real entries, the row space is Row⁡(A)=span⁡{r1,…,rm}\operatorname{Row}(A) = \operatorname{span}\{\mathbf{r}_1, \dots, \mathbf{r}_m\}, where ri\mathbf{r}_i is the ii-th row of AA. It is a subspace of Rn\mathbb{R}^n and equals Col⁡(AT)\operatorname{Col}(A^T). Elementary row operations do not change it. By contrast, the column space Col⁡(A)\operatorname{Col}(A) is a subspace of Rm\mathbb{R}^m, and row operations can change it.

Key Formula

dim⁡Row⁡(A)=dim⁡Col⁡(A)=rank⁡(A),rank⁡(A)+dim⁡Nul⁡(A)=n\dim \operatorname{Row}(A) = \dim \operatorname{Col}(A) = \operatorname{rank}(A), \qquad \operatorname{rank}(A) + \dim \operatorname{Nul}(A) = n
Where:
  • AA = An m×nm \times n matrix
  • nn = Number of columns of AA, which is also the number of entries in each row vector
  • rank⁡(A)\operatorname{rank}(A) = Number of pivots in an echelon form of AA
  • Nul⁡(A)\operatorname{Nul}(A) = The null space, the set of all solutions of Ax=0A\mathbf{x} = \mathbf{0}

Worked Example

Problem: Find a basis and the dimension of the row space of A=[120124143615]A = \begin{bmatrix} 1 & 2 & 0 & 1 \\ 2 & 4 & 1 & 4 \\ 3 & 6 & 1 & 5 \end{bmatrix}.
Step 1: Clear the first column below the pivot. Row operations preserve the row space, so the new rows span the same subspace.
R2−2R1=(0,0,1,2),R3−3R1=(0,0,1,2)R_2 - 2R_1 = (0, 0, 1, 2), \qquad R_3 - 3R_1 = (0, 0, 1, 2)
Step 2: Subtract the new second row from the new third row to reach echelon form.
[120100120000]\begin{bmatrix} 1 & 2 & 0 & 1 \\ 0 & 0 & 1 & 2 \\ 0 & 0 & 0 & 0 \end{bmatrix}
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.
dim⁡Row⁡(A)=2,dim⁡Nul⁡(A)=4−2=2\dim \operatorname{Row}(A) = 2, \qquad \dim \operatorname{Nul}(A) = 4 - 2 = 2
Answer: A basis for Row⁡(A)\operatorname{Row}(A) is {(1,2,0,1), (0,0,1,2)}\{(1, 2, 0, 1),\ (0, 0, 1, 2)\}. The row space is a 2-dimensional subspace of R4\mathbb{R}^4, so rank⁡(A)=2\operatorname{rank}(A) = 2.

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 Row⁡(A)\operatorname{Row}(A) and Nul⁡(A)\operatorname{Nul}(A) are orthogonal complements in Rn\mathbb{R}^n. 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, Row⁡(A)\operatorname{Row}(A) sits in R4\mathbb{R}^4, while Col⁡(A)\operatorname{Col}(A) sits in R3\mathbb{R}^3. They can coincide only when AA is square, and even then they often differ.

Related Terms