Wize University Linear Algebra Textbook > Vector Spaces and Subspaces

Column Space and Null Space (Range and Kernel)

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Column Space and Null Space

Given a matrix Am×nA_{m \times n}, there are some special subspaces we can define.

Column Space

The column space (or range, or image) of AA is the set of all possible vectors b⃗\vec b that result from multiplying AA by any vector x⃗∈Rn\vec x \in \reals^n.

Col(A)={Ax⃗  ∣  x⃗∈Rn }\boxed{\quad {\rm Col}(A) = \{ A\vec x \ \ |\ \ \vec x \in \reals^n\ \} \quad}

Why is it called the column space?

Think of Am×nA_{m \times n} as a matrix of nn column vectors: A=[∣  ∣  a⃗1…a⃗n∣  ∣  ]A = \left[ \begin{array}{rrr} | \ \ & & |\ \ \\ \vec a_1 & \dots & \vec a_n \\ | \ \ & & |\ \ \\ \end{array} \right]

Then for any vector x⃗=[x1⋮xn]\vec x = \begin{bmatrix} x_1\\ \vdots\\ x_n\\ \end{bmatrix} , we have:

Ax⃗=[∣  ∣  a⃗1…a⃗n∣  ∣  ][x1⋮xn]=x1a⃗1+…+xna⃗nA\vec x = \left[ \begin{array}{rrr} | \ \ & & |\ \ \\ \vec a_1 & \dots & \vec a_n \\ | \ \ & & |\ \ \\ \end{array} \right] \begin{bmatrix} x_1\\ \vdots\\ x_n\\ \end{bmatrix} = x_1 \vec a_1 + \ldots + x_n\vec a_n

This is simply a linear combination of the columns.

So, the column space can also be defined as the span of the columns of AA:

Col(A)=span({a⃗1,…,a⃗n})\boxed{\quad {\rm Col}(A) = \text{span}(\{ \vec a_1, \dots, \vec a_n \}) \quad}



Null Space

The null space (or kernel) is the set of vectors that, when left multiplied by Am×nA_{m \times n}, produce the zero vector:

Null(A)={ x⃗∈Rn ∣ Ax⃗=0⃗ }\boxed{\quad \text{Null}(A)=\{\ \vec x\in \mathbb{R}^n\ |\ A\vec x=\vec 0\ \} \quad}




Fundamental Subspaces

The row space of matrix AA is the span of its rows (or simply the column space of the transpose!).

Row(A)=Col(AT)\boxed{\quad {\rm Row}(A) = {\rm Col}(A^T) \quad}

The left null space of AA is the null space of the transpose, Null(AT){\rm Null}(A^T).

Together, these four subspaces are called the fundamental subspaces of the matrix AA:

  • column space, Col(A){\rm Col} (A): the result of multiplying Ax⃗A\vec x for any x⃗\vec x.
  • row space, Row(A){\rm Row} (A): the result of multiplying ATx⃗A^T \vec x for any x⃗\vec x.
  • null space, Null(A){\rm Null} (A): the vectors x⃗\vec x that result in Ax⃗=0⃗A \vec x = \vec 0 .
  • left null space, Null(AT){\rm Null} (A^T): the vectors x⃗\vec x that result in ATx⃗=0⃗A^T \vec x = \vec 0 .

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Example: Column Space and Null Space

Given A=[1122−20]A= \left[\begin{array}{rrr} 1&1&2\\ 2&-2&0 \end{array}\right], find Col(A)\text{Col}(A) and Null(A)\text{Null}(A).

Column Space

Col(A)\text{Col}(A) is the span of the columns of A.

We can write the columns as vectors: a⃗1=[12],a⃗2=[1−2],a⃗3=[20]\vec a_1 = \begin{bmatrix} 1\\ 2\\ \end{bmatrix} ,\quad \vec a_2 = \begin{bmatrix} 1\\ -2\\ \end{bmatrix} ,\quad \vec a_3 = \begin{bmatrix} 2\\ 0\\ \end{bmatrix} .

Notice that {a⃗1,a⃗2}\{\vec a_1,\vec a_2\} are two linearly independent vectors, so we already know that they form a generating set for R2\reals^2.

That is, any vector b⃗=[b1b2]∈R2\vec b = \begin{bmatrix} b_1\\ b_2\\ \end{bmatrix} \in \reals^2 can be written as a linear combination of the vectors a⃗1, a⃗2\vec a_1, \ \vec a_2.

Adding the third column, {a⃗1,a⃗2,a⃗3}\{\vec a_1,\vec a_2, \vec a_3\} is still a generating set for R2\reals^2 (although it is not linearly independent).

Therefore:

Col(A)=span({a⃗1,a⃗2,a⃗3})=span({a⃗1,a⃗2})=R2\text{Col}(A) = \text{span}(\{\vec a_1,\vec a_2, \vec a_3\}) = \text{span}(\{\vec a_1,\vec a_2\}) = \boxed{\reals^2}


Null Space

To find Null(A)\text{Null}(A), we must find the vectors x⃗=[xyz]\vec x = \begin{bmatrix} x\\ y\\ z\\ \end{bmatrix} such that Ax⃗=0⃗A\vec x=\vec 0.


Let's row reduce AA to solve this homogeneous linear system:

[11   22−20]R2−2R1⟶[11   20−4−4]−14R2⟶[1   1   2011]R1−R2⟶[1   0   1011]\begin{aligned} &\left[ \begin{array}{rrr} 1 & 1 & \ \ \ 2\\ 2 & -2 & 0\\ \end{array} \right] \begin{array}{l} \\ R_2 - 2R_1\\ \end{array}\\[1.8em] \longrightarrow& \left[ \begin{array}{rrr} 1 & 1 & \ \ \ 2\\ 0 & -4 & -4\\ \end{array} \right] \begin{array}{l} \\ -\dfrac{1}{4}R_2\\ \end{array}\\[1.8em] \longrightarrow& \left[ \begin{array}{rrr} 1 & \ \ \ 1 & \ \ \ 2\\ 0 & 1 & 1\\ \end{array} \right] \begin{array}{l} R_1-R_2\\ \\ \end{array}\\[1.8em] \longrightarrow& \left[ \begin{array}{rrr} 1 & \ \ \ 0 & \ \ \ 1\\ 0 & 1 & 1\\ \end{array} \right] \end{aligned}

Rewriting as a linear system with a parameter for the free variable, and setting each row equal to 0:

{1x+0y+1z=00x+1y+1z=0z=t  ⟹  {x=−1z=−ty=−1z=−tz=t  ⟹  [xyz]=t[−1−11]\begin{cases} 1x +0y +1z = 0\\ 0x + 1y + 1z = 0\\ z=t \end{cases} \quad\implies\quad \begin{cases} x = -1z = -t\\ y = -1z = -t\\ z=t \end{cases} \quad\implies\quad \begin{bmatrix} x\\ y\\ z\\ \end{bmatrix} =t \begin{bmatrix} -1\\ -1\\ 1\\ \end{bmatrix}

This means that matrix AA times any multiple of [−1−11]\begin{bmatrix} -1\\ -1\\ 1\\ \end{bmatrix}produces 0⃗\vec 0.


Therefore, dim(Null(A))=1{\rm dim(Null}(A)) = 1 and:

Null(A)=span{[−1−11]}\boxed{ \text{Null}(A) = {\rm span} \left\{ \begin{bmatrix} -1\\ -1\\ 1\\ \end{bmatrix} \right\} }

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

Practice: Column Space and Null Space

A=[101022−132]A= \left[\begin{array}{rrr} 1&0&1\\ 0&2&2\\ -1&3&2 \end{array}\right]

Find Col(A)\text{Col}(A) and Null(A)\text{Null}(A).

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice