Evanalysis
6.6Estimated reading time: 9 min

6.6 Column space, row space, and rank

Read a matrix as both a source of outputs and a source of linear relations, then use rank to count the genuinely independent directions that remain.

Course contents

MATH1030: Linear algebra I

Rigorous linear algebra notes on systems, matrices, structure, and proof, with interaction used only where it clarifies the mathematics.

Chapter 1Systems of equations1 sections
Chapter 4Solution structure1 sections
Chapter 5Invertibility1 sections

This section is where matrix language and vector-space language meet directly. Once a matrix is fixed, two natural subspaces appear:

  • the subspace generated by its columns;
  • the subspace generated by its rows.

These are not cosmetic definitions. They answer real questions.

  • Which right-hand sides b can occur in a system Ax=bAx = b?
  • How much independent linear information is actually stored in the rows?
  • How many genuinely independent directions remain after all redundancy is removed?

The answers are called the column space, the row space, and the rank of the matrix.

Column space: what outputs can the matrix produce?

Let AA be an m×nm \times n matrix, and write its columns as

A=[a1a2an].A = \begin{bmatrix} a_1 & a_2 & \cdots & a_n \end{bmatrix}.

Definition

Column space

The column space of AA, written C(A), is the span of the columns of AA:

C(A)=Span{a1,a2,,an}.C(A) = \operatorname{Span}\{a_1, a_2, \ldots, a_n\}.

It is a subspace of RmR^m.

The most useful way to read this definition is through matrix multiplication. If x=(x1,,xn)tx = (x_1, \ldots, x_n)^t, then

Ax=x1a1+x2a2++xnan.Ax = x_1 a_1 + x_2 a_2 + \cdots + x_n a_n.

So every vector of the form Ax is a linear combination of the columns. Conversely, every linear combination of the columns can be written as Ax for some vector x.

Theorem

Column space as an output set

For an m×nm \times n matrix AA,

C(A)={Ax:xRn}.C(A) = \{Ax : x \in R^n\}.

Therefore a vector bRmb \in R^m belongs to C(A) exactly when the system Ax=bAx = b is consistent.

This is why column space matters in practice. It tells us precisely which right-hand sides are reachable.

Row space: what linear information do the rows carry?

If the rows of AA are r1,r2,,rmr_1, r_2, \ldots, r_m, each regarded as row vectors in RnR^n, then we define a second subspace.

Definition

Row space

The row space of AA, written R(A), is the span of the rows of AA:

R(A)=Span{r1,r2,,rm}.R(A) = \operatorname{Span}\{r_1, r_2, \ldots, r_m\}.

It is a subspace of RnR^n.

The ambient spaces are different in general:

  • C(A) lives in RmR^m, because the columns each have m entries;
  • R(A) lives in RnR^n, because the rows each have n entries.

Even when AA is square, the two spaces should not be confused. They are built from different vectors and answer different questions.

There is also a clean relation with transpose:

R(A)=C(At).R(A) = C(A^t).

That identity lets you translate statements about row space into statements about column space of the transpose.

Row reduction: what changes and what does not?

Reduced row-echelon form is the main computational tool in this topic. But you have to use it carefully.

Theorem

What row operations preserve

If BB is row-equivalent to AA, then

R(B)=R(A).R(B) = R(A).

In general, however,

C(B)C(A)C(B) \neq C(A)

need not hold.

Why is this distinction so important?

  • Row operations replace each new row by a linear combination of old rows, so the row space stays the same.
  • Row operations act on whole rows, not on columns independently, so the actual column space usually changes.

This is the source of a standard rule that students often memorize before they understand it:

ℹ️Basis-selection rule

To find a basis for C(A), use the pivot columns of the original matrix AA.

To find a basis for R(A), use the nonzero rows of the RREF of AA.

The pivot positions are read from the RREF, but the column-space basis vectors must be taken from the original matrix.

Rank counts the independent directions

The dimension of the column space is called the column rank. The dimension of the row space is called the row rank. One of the central theorems of linear algebra says that these numbers are equal.

Definition

Rank

The rank of a matrix AA is the common dimension of its column space and row space:

rank(A)=dimC(A)=dimR(A).\operatorname{rank}(A) = \dim C(A) = \dim R(A).

When you row-reduce a matrix to RREF, the number of pivot columns is exactly the rank. So rank measures how many independent directions survive after all redundancy has been removed.

Worked example: read everything from one row reduction

Worked example

Column space, row space, and rank from a single matrix

Consider

A=[121301111324].A = \begin{bmatrix} 1 & 2 & 1 & 3 \\ 0 & 1 & 1 & 1 \\ 1 & 3 & 2 & 4 \end{bmatrix}.

Row-reducing gives

A[101101110000]=R.A \sim \begin{bmatrix} 1 & 0 & -1 & 1 \\ 0 & 1 & 1 & 1 \\ 0 & 0 & 0 & 0 \end{bmatrix} = R.

There are two pivot columns, namely columns 1 and 2.

Write the columns of AA as

c1=[101],c2=[213],c3=[112],c4=[314].c_1 = \begin{bmatrix} 1 \\ 0 \\ 1 \end{bmatrix}, \quad c_2 = \begin{bmatrix} 2 \\ 1 \\ 3 \end{bmatrix}, \quad c_3 = \begin{bmatrix} 1 \\ 1 \\ 2 \end{bmatrix}, \quad c_4 = \begin{bmatrix} 3 \\ 1 \\ 4 \end{bmatrix}.

Then a basis for the column space is

{c1,c2}.\{c_1, c_2\}.

Indeed, the non-pivot columns are combinations of the pivot columns:

c3=c1+c2,c4=c1+c2.c_3 = -c_1 + c_2, \qquad c_4 = c_1 + c_2.

For the row space, we use the nonzero rows of RR:

{(1,0,1,1),(0,1,1,1)}.\{(1, 0, -1, 1), (0, 1, 1, 1)\}.

So

dimC(A)=2,dimR(A)=2,rank(A)=2.\dim C(A) = 2, \qquad \dim R(A) = 2, \qquad \operatorname{rank}(A) = 2.

Finally, if

b=[527],b = \begin{bmatrix} 5 \\ 2 \\ 7 \end{bmatrix},

then bC(A)b \in C(A) because

b=c1+2c2.b = c_1 + 2c_2.

Equivalently, the system Ax=bAx = b is consistent.

Why the basis rule works

Suppose RR is the RREF of AA.

  • The pivot columns of RR show which column positions are independent.
  • Row operations preserve linear relations among the columns.
  • Therefore the corresponding columns of the original matrix AA are also independent and still span C(A).

For the row space, life is easier: row operations preserve the row space itself, so the nonzero rows of RR already form a basis of R(A).

Common mistake

Common mistake

Do not use pivot columns of the RREF as a basis for the column space

Row reduction usually changes the column space. So while the pivot positions are read from the RREF, the actual basis vectors for C(A) must be taken from the corresponding columns of the original matrix.

Another common mistake is to say that column space and row space are equal because they have the same dimension. Equal dimension does not mean equal subspace; it only means they contain the same number of independent directions.

Quick checks

Quick check

If AA is a 4×34 \times 3 matrix, in which ambient space does C(A) live, and in which ambient space does R(A) live?

Count entries in a column and in a row separately.

Solution

Answer

Quick check

If the RREF of a matrix has three pivot columns, what is the rank?

Recall how rank is read from RREF.

Solution

Answer

Exercises

Quick check

Let A=[101011112]A = \begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 1 \\ 1 & 1 & 2 \end{bmatrix}. Find the rank and a basis for the column space.

Row-reduce first, identify the pivot columns, and then go back to the original matrix.

Solution

Guided solution

Read this first

This note depends especially on 2.3 Gaussian elimination and RREF, 3.2 Transpose and special matrices, and 6.5 Basis and dimension.

Section mastery checkpoint

Answer each question correctly to complete this section checkpoint. Correct progress: 0%.

Skills: rank-nullity, null-space, dimension

Fill in the blank: For an m×n matrix A, rank(A) + nullity(A) = ____.

Attempts used: 0

Attempts remaining: Unlimited attempts

Preview does not consume an attempt.

Submit records a graded attempt.

Syntax guidance: Enter a scalar symbol or a short phrase only if the question explicitly asks for words.

  • Preview can normalize a short answer like `n` before you submit.