Rank from RREF
Find matrix rank by row-reducing and counting pivot columns.
Count two pivots
The second and third rows reveal dependencies during elimination. Two columns retain pivots, so the rank is 2 rather than 3.
rank([[1, 2, 1], [2, 4, 3], [3, 6, 4]])Recognize full column rank
Both columns of this square matrix contain a pivot. Its rank equals its column count, 2.
rank([[1, 2], [3, 5]])Collapse proportional columns
Every column after the first is a multiple of it. Only one pivot remains, so the rank is 1.
rank([[1, 2, 3], [2, 4, 6]])Practice
Practice: problems like this one, made and checked in your browser.
Recap
- Rank is the number of pivot columns after row reduction.
- Zero rows do not contribute to rank.
- Full column rank means every column has a pivot.