MathorynMathematical Formula Database

Linear Algebra

Rank–Nullity Theorem

For an m×nm\times n matrix, the dimension of the column space plus the dimension of the null space equals the number of columns. It is used to count free variables in linear systems and to reason about whether linear maps are injective or surjective.

rank⁡A+nullity⁡A=n\operatorname{rank}A+\operatorname{nullity}A=n
LaTeX\operatorname{rank}A+\operatorname{nullity}A=n

Variables

rank⁡A\operatorname{rank}A
number of pivot columns (dimension of the image)
nullity⁡A\operatorname{nullity}A
dimension of the solution space of Ax = 0
nn
number of columns

Example

A 3×53\times5 matrix has rank 33. How many free variables does Ax=0Ax=0 have?

  1. nullity⁡=5−3\operatorname{nullity}=5-3.

Answer: 22 free variables.

Related formulas