Rank of a Matrix
Problem
Find the rank of A = [[1,2,3],[4,5,6],[7,8,9]]. Reduce to echelon form and count pivots.
Explanation
What is rank?
The rank of an matrix , written , is the dimension of its column space — the number of linearly independent columns. Equivalently, it's:
- The number of pivots in any row-echelon form of .
- The dimension of the row space (row rank column rank — always).
- The number of non-zero rows in the RREF.
Rank satisfies .
Step-by-step
Step 1 — Row reduce.
: . : .
: .
Step 2 — Count pivots. Row 1 has a pivot in column 1; row 2 has a pivot in column 2; row 3 is zero (no pivot).
Since is but rank 2, the matrix is rank-deficient: it has fewer pivots than its size. It is singular () and not invertible.
A rank-2 story: what went wrong?
The original rows are arithmetic progressions: . Each row is the previous one shifted by 3. In particular,
One row is a linear combination of the others, so they span only a 2D subspace of .
Rank and properties
- (full column rank) ⟺ columns are linearly independent ⟺ has only the trivial solution.
- (full row rank) ⟺ is consistent for every .
- For a square matrix: ⟺ is invertible ⟺ .
How rank changes under operations
- Elementary row operations preserve rank.
- Transpose: — the row rank equals the column rank.
- Multiplication by invertible: if is invertible.
- Sub-additivity: .
- Multiplicativity: .
Common mistakes
- Counting rows instead of pivots. Zero rows in the reduced form contribute no pivot and no rank.
- Confusing rank with the number of non-zero entries. A matrix can be dense but have low rank (like above).
- Not being careful with identifying pivot columns vs. pivot rows. Pivots are at specific (row, column) positions, and the column index determines which column is a pivot column.
Try it in the visualization
Type entries into a matrix. As you row-reduce, pivots light up; rank updates live; a small 3D plot shows the column span — flat plane if rank 2, full space if rank 3, line if rank 1.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.