Wize University Linear Algebra Textbook > Vector Spaces and Subspaces

Column Space and Null Space (Range and Kernel)

0:00 / 0:00

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 xRn\vec x \in \reals^n.
Col(A)={Ax    xRn }\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=[    a1an    ]A = \left[ \begin{array}{rrr} | \ \ & & |\ \ \\ \vec a_1 & \dots & \vec a_n \\ | \ \ & & |\ \ \\ \end{array} \right]
Then for any vector x=[x1xn]\vec x = \begin{bmatrix} x_1\\ \vdots\\ x_n\\ \end{bmatrix} , we have:
Ax=[    a1an    ][x1xn]=x1a1++xnanA\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({a1,,an})\boxed{\quad {\rm Col}(A) = \text{span}(\{ \vec a_1, \dots, \vec a_n \}) \quad}

Wize Tip
You can make sure you have the right number of vectors by checking the rank:
dim(Col(A))=rank(A)\text{dim}\big(\text{Col}(A)\big)=\text{rank}(A)

PAGE BREAK

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)={ xRn  Ax=0 }\boxed{\quad \text{Null}(A)=\{\ \vec x\in \mathbb{R}^n\ |\ A\vec x=\vec 0\ \} \quad}

Wize Concept
Recall that Ax=0A\vec x=\vec 0 is a homogeneous system:
Solve for x\vec x by row-reducing AA, then setting each row of the system equal to 0.

Wize Tip
You can make sure you have the right number of vectors by checking the rank:
rank(A)+dim(Null(A))=n\text{rank}(A) + \text{dim}\big(\text{Null}(A)\big) = n

PAGE BREAK

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 AxA\vec x for any x\vec x.
  • row space, Row(A){\rm Row} (A): the result of multiplying ATxA^T \vec x for any x\vec x.
  • null space, Null(A){\rm Null} (A): the vectors x\vec x that result in Ax=0A \vec x = \vec 0 .
  • left null space, Null(AT){\rm Null} (A^T): the vectors x\vec x that result in ATx=0A^T \vec x = \vec 0 .
0:00 / 0:00

Example: Column Space and Null Space

Given A=[112220]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: a1=[12],a2=[12],a3=[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 {a1,a2}\{\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 a1, a2\vec a_1, \ \vec a_2.
Adding the third column, {a1,a2,a3}\{\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({a1,a2,a3})=span({a1,a2})=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=0A\vec x=\vec 0.

Let's row reduce AA to solve this homogeneous linear system:
[11   2220]R22R1[11   2044]14R2[1   1   2011]R1R2[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[111]\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 [111]\begin{bmatrix} -1\\ -1\\ 1\\ \end{bmatrix}produces 0\vec 0.
Wize Tip
The number of free variables/parameters is always equal to the number of vectors in the null space.

Therefore, dim(Null(A))=1{\rm dim(Null}(A)) = 1 and:
Null(A)=span{[111]}\boxed{ \text{Null}(A) = {\rm span} \left\{ \begin{bmatrix} -1\\ -1\\ 1\\ \end{bmatrix} \right\} }
checklist
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=[101022132]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).
Extra Practice