Skip to content

Null space vs column space

5 min read

Short answer

For an m×nm\times n matrix AA, the null space is the set of inputs x\mathbf x with Ax=0A\mathbf x=\mathbf 0 (a subspace of Rn\mathbb R^n), and the column space is the set of all outputs AxA\mathbf x, which is the span of the columns (a subspace of Rm\mathbb R^m). Their dimensions add up: dim⁡Col⁡A+dim⁡Null⁡A=n\dim\operatorname{Col}A+\dim\operatorname{Null}A=n.

Null space compared with Column spaceNull spaceSolve A x = 0Lives in input spaceFree variables → basisDimension = nullityMeasures what is lostColumn spaceSpan of the columnsLives in output spacePivot columns → basisDimension = rankMeasures what isreachable
Null space is about inputs that vanish; column space is about outputs that can occur. Rank + nullity = number of columns.

How to find each basis

Row reduce AA to RREF.

  • Null space: write the solution of Ax=0A\mathbf x=\mathbf 0 with each free variable as a parameter; the vector multiplying each parameter is a basis vector.
  • Column space: find the pivot columns in the reduced form, then take the original columns of AA in those positions.

Why it matters

Ax=bA\mathbf x=\mathbf b is solvable exactly when b\mathbf b is in the column space. When it is solvable, the solutions form a shifted copy of the null space, so a nonzero null space means infinitely many solutions.

Worked example

Find bases for the null space and column space of A=(123246)A=\begin{pmatrix}1&2&3\\2&4&6\end{pmatrix}.

Row 2 −2×-2\timesrow 1 is zero, so RREF is (123000)\begin{pmatrix}1&2&3\\0&0&0\end{pmatrix}: one pivot (column 1), two free variables y,zy,z.

Null space: x=−2y−3zx=-2y-3z, so x=y(−2,1,0)+z(−3,0,1)\mathbf x=y(-2,1,0)+z(-3,0,1). Basis {(−2,1,0),(−3,0,1)}\{(-2,1,0),(-3,0,1)\}, nullity 2.

Column space: the pivot column is column 1 of the original matrix, (1,2)(1,2). Basis {(1,2)}\{(1,2)\}, rank 1.

Check: 1+2=31+2=3 columns. ✓

Try it yourself

For A=(1111)A=\begin{pmatrix}1&1\\1&1\end{pmatrix}, describe the null space and the column space.

Show the answer

Null space: x+y=0x+y=0, so it is the line spanned by (1,−1)(1,-1). Column space: both columns equal (1,1)(1,1), so it is the line spanned by (1,1)(1,1). Rank 1 plus nullity 1 equals 2 columns.

Keep going with practice

Null space and column space are explored in Vidi's Linear Algebra & Probability course, alongside row reduction practice.