Matrix Rank, Null Space, and Rank-Nullity

Master the concepts of matrix rank, null space, basis vectors, and the fundamental Rank-Nullity Theorem.

Vector Spaces Associated with a Matrix

Every matrix A of size m x n defines a linear transformation that maps vectors from Rn to Rm. Associated with this mapping are three fundamental vector subspaces:

What is Matrix Rank?

The dimension of the row space and the column space are mathematically identical. This shared dimension is called the rank of the matrix, denoted as rank(A). The rank tells us the number of dimensions in the output space of the transformation. To find the rank by hand:

  1. Perform Gaussian elimination to reduce the matrix to Row Echelon Form (REF) or RREF.
  2. Count the number of non-zero rows (rows containing a pivot).
  3. This count is the rank of the matrix.

What is the Null Space?

The null space consists of all vectors that are mapped to zero. The dimension of the null space is called the nullity of the matrix. To find a basis for the null space:

  1. Perform Gauss-Jordan elimination on the matrix to reduce it to RREF.
  2. Write out the equations representing the homogeneous system Av = 0.
  3. Identify the free variables (columns without pivots).
  4. Express the pivot variables in terms of the free variables, and pull out the coefficients of the free variables to obtain the basis vectors.

The Rank-Nullity Theorem

The Rank-Nullity Theorem is one of the most important theorems in linear algebra. It establishes a conservation law for the dimensions of vector spaces. For any matrix A with n columns:

rank(A) + nullity(A) = n

In other words, the number of independent pivot columns (rank) plus the number of independent free variable columns (nullity) must equal the total number of columns in the matrix.

Worked Example

Consider a 3x3 matrix A whose RREF is:

120
001
000

We analyze the RREF matrix:

Go to RREF Calculator