Nullity — Definition, Formula & Examples
Nullity is the number of free variables in the solution to , or equivalently, the dimension of the null space of a matrix.
For an matrix , the nullity of is defined as , where . By the rank–nullity theorem, .
Key Formula
Where:
- = An m × n matrix
- = The number of columns of A
- = The number of pivot columns in the row echelon form of A
How It Works
To find the nullity of a matrix, row-reduce it to echelon form and count the number of columns that do not contain a pivot. Each non-pivot column corresponds to a free variable, and the total count equals the nullity. Alternatively, if you already know the rank, subtract it from the number of columns: . A nullity of zero means the only solution to is the trivial solution .
Worked Example
Problem: Find the nullity of the matrix A = [[1, 2, 3], [2, 4, 6]].
Step 1: Row-reduce A. Subtract 2 times row 1 from row 2.
Step 2: Count the pivots. There is 1 pivot (in column 1), so rank(A) = 1.
Step 3: Apply the rank–nullity theorem. The matrix has n = 3 columns.
Answer: The nullity of A is 2, meaning the null space is a 2-dimensional subspace of R³.
Why It Matters
Nullity tells you how many degrees of freedom exist in the solution set of a homogeneous system. In applications like computer graphics and data science, a nonzero nullity signals redundancy among the columns, which affects everything from solving systems of equations to performing dimensionality reduction.
Common Mistakes
Mistake: Confusing nullity with rank, or subtracting rank from the number of rows instead of columns.
Correction: The rank–nullity theorem uses the number of columns, not rows: nullity = n − rank(A), where n is the column count.
