Euler Hall — free maths guides

Use rank plus nullity equals the number of columns

State r + (n - r) = n and read the nullity off it. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

The theorem, and the two ways to read it

r+(n−r)=n,i.e.dim⁡C(A)+dim⁡N(A)=n.r+(n-r)=n,\qquad\text{i.e.}\qquad \dim C(A)+\dim N(A)=n.

  • - Forward. From the shape and the rank, the nullity isn−rn-r. No elimination needed beyond findingrr.
  • - Backward. From the nullity, the rank isn−nullityn-\text{nullity}. This is how you answer "how many independent columns" when the question is phrased in terms of solutions.

The same computation on the transpose gives the other side:

r+(m−r)=m,i.e.dim⁡C(AT)+dim⁡N(AT)=m.r+(m-r)=m,\qquad\text{i.e.}\qquad \dim C(A^T)+\dim N(A^T)=m.

The transpose isn×mn\times m, so its "columns" areAA's rows, and its nullity is the left nullspace.

Why exactly n - r free columns exist

The argument is a partition, not a computation.

Elimination sweeps left to right and puts a pivot in a column exactly when that column is not a combination of the columns to its left. At the end:

  • -rr columns are pivot columns — each one is genuinely new;
  • - the remaining columns are free columns — each is a combination of the pivot columns.

Since every column is one or the other, and there arenn columns,

r+(number of free columns)=n.r+(\text{number of free columns})=n.

And each free column contributes exactly one special solution: set that free variable to 1, the other free variables to 0, and solve for the pivot variables. The special solutions are independent — each has a 1 in a different free position — and they span the nullspace, because every solution is determined by its free entries. So the nullity, which is the nullspace dimension, equals the number of free columns, which isn−rn-r.

That is why the theorem is not a coincidence: both sides count the same object.

A concrete count

Question.A=[123247]A=\begin{bmatrix}1&2&3\\2&4&7\end{bmatrix}. Find the rank, the nullity, and a basis for the nullspace, and check the count.

Step 1. Subtract twice row 1 from row 2:[123001]\begin{bmatrix}1&2&3\\0&0&1\end{bmatrix}. Two pivots (columns 1 and 3), sor=2r=2.

Step 2.n=3n=3, so the nullity is3−2=13-2=1: one free column, column 2.

Step 3. Setx2=1x_2=1, the free variable. Row 2 givesx3=0x_3=0; row 1 givesx1+2+0=0x_1+2+0=0, sox1=−2x_1=-2. The special solution is(−2,1,0)(-2,1,0).

Check.A⋅(−2,1,0)=(−2+2+0, −4+4+0)=(0,0)A\cdot(-2,1,0)=(-2+2+0,\,-4+4+0)=(0,0). Correct, and the countr+nullity=2+1=3=nr+\text{nullity}=2+1=3=n holds.

One free variable, one special solution, a line of solutions. Every part of that sentence comes from the same number.

By the end you can
  • State r + (n - r) = n and read the nullity off it
  • Compute the nullity of a specific matrix by counting pivots
  • Apply the same counting to the transpose
Test yourself

<ol class="steps"> <li5×35\times3, rank 3 — nullity? <em>3−3=03-3=0.)</em></li> <li4×64\times6, rank 2 — nullity? <em>6−2=46-2=4.)</em></li> <li>Ann×nn\times n matrix with nullity 0 — what do you know? <em>(Full column rank, so since it is square, it is invertible.)</em></li> <li8×58\times5, rank 3 — what isdim⁡N(AT)\dim N(A^T)? <em>8−3=58-3=5.)</em></li> <li>Can a3×53\times5 matrix have nullity 0? <em>(No: rank would have to be 5, impossible with three rows.)</em></li> </ol>

Answers
  1. 1. 0.
  2. 2. 4.
  3. 3. It is invertible.
  4. 4. 5 — the left nullspace, using the row count.
  5. 5. No: the nullity is5−r5-r andr≤3r\le3, so the nullity is at least 2.
Work out where to start — free, no accountAnswer six real questions — free, no account