Skip to content
Lesson 7 of 9 · Linear Algebra

Rank, column space and null space

Find a matrix's rank, column space and null space, and use the rank-nullity theorem to count solutions.

22 min

Every m × n matrix A carries two important subspaces.

  • The column space Col(A): all combinations of the columns of A, which is exactly the set of b for which Ax = b is solvable. It lives in Rᵐ. A basis is given by the pivot columns of A (the columns of the original A in the positions where the reduced form has pivots).
  • The null space Null(A): all x with Ax = 0. It lives in Rⁿ. It always contains 0. Its basis comes from the free variables of the reduced system.

The rank is the dimension of the column space (the number of pivots). The nullity is the dimension of the null space (the number of free variables).

rank + nullity = n (the number of columns).

So an m × n matrix of rank r has an (n − r)-dimensional space of solutions to Ax = 0.

  • If b is in Col(A), solutions exist. If x₀ is one solution, all solutions are x₀ + (anything in Null(A)).
  • A unique solution (when one exists) happens exactly when Null(A) = {0}, that is, when nullity is 0 and the columns are independent.
  • A square n × n matrix is invertible exactly when rank = n.

Finding the null space: row reduce A to RREF, name the free variables, solve for the pivot variables in terms of them, and write the result as free variable × a fixed vector.

Find the rank, a basis for the column space and a basis for the null space of A = [1 2 3; 2 4 6; 1 1 1].

  1. 1

    R2 → R2 − 2R1 = [0 0 0]; R3 → R3 − R1 = [0 −1 −2]

    Eliminate below the first pivot.

1/6
  • Col(A) is the set of reachable outputs b; Null(A) is the set of inputs sent to 0.
  • Rank = number of pivots = dimension of Col(A).
  • Rank + nullity = number of columns.
  • All solutions of Ax = b are one solution plus anything in Null(A).
  • A square matrix is invertible exactly when its rank equals its size.
Check yourself

Practice.

1Numeric answer

A is 3 × 5 with rank 3. What is the dimension of Null(A)?

2Numeric answer

A is 4 × 4 with a one-dimensional null space. What is its rank?

3Multiple choice

Ax = b is solvable exactly when b is in:

  • Athe null space of A
  • Bthe column space of A
  • Cthe row space only
  • Dthe span of b
4Multiple choice

A 5 × 3 matrix has rank 3. Then Ax = 0 has:

  • Aonly the zero solution
  • Binfinitely many solutions
  • Cno solution
  • Dexactly 3 solutions
5Multiple choice

If x₀ solves Ax = b and n is in Null(A), then A(x₀ + n) equals:

  • Ab
  • B0
  • Cb + n
  • D2b

Practise this lesson, not just read it

In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of Linear Algebra is planned around your week. Free.