Define the rank as the number of pivots
Count the pivots of a matrix after elimination. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.
The rank of is the number of pivots after elimination.
That is the whole definition. Three things it is emphatically not:
| Not the rank | Why not | |---|---| | the number of rows | a zero row loses its pivot | | the number of columns | a dependent column loses its pivot | | the number of nonzero entries | a matrix full of nonzeros can have rank 1 |
The rank is bounded by and can be anything from (the zero matrix) up to that bound.
Two statements that have to match:
- - Pivot columns are independent. Look at the reduced matrix. Each pivot column has a 1 in its own row and zeros in the other pivot rows, so no combination of the pivot columns can give zero unless all coefficients are zero.
- - Every other column is a combination of them. In the reduced form, a free column is visibly a combination of the pivot columns — its entries are the coefficients. Row operations do not change which combinations of columns give zero, so the same relation holds in the original matrix.
So the pivot columns form a maximal independent set, and their number is both the pivot count and the size of the largest independent set of columns. That is why the two readings agree.
The rank is also the dimension of the column space, and — a genuinely surprising fact proved later in the module — equal to the dimension of the row space.
Question. What is the rank of?
Step 1. Row 3 equals row 1. Subtract it away: the third row becomes zero.
Step 2. Now row 2 is and row 1 is. Subtract twice row 1 from row 2:.
Step 3. The matrix is.
Verdict. Two pivots, so the rank is 2. Three rows, three columns, two pivots — and column 3 is, which is exactly the dependence that costs a pivot.
A sanity check that costs nothing: the matrix is square with a zero row, so its rank must be below 3. It is, so the answer is at least consistent.
- Count the pivots of a matrix after elimination
- Recognise a rank from the shape of the matrix
- Match matrices to their ranks
<ol class="steps"> <li>Rank of? <em>(1: row 2 is twice row 1.)</em></li> <li>Rank of the all-ones matrix? <em>(1: every row is a multiple of the first.)</em></li> <li>Largest possible rank of a matrix? <em>(3, since there are only three columns.)</em></li> <li>Rank of? <em>(2: pivots in columns 2 and 3.)</em></li> <li>If a matrix has rank 3, what is its determinant? <em>(Nonzero — the three columns are independent, so the matrix is invertible.)</em></li> </ol>
Answers
- 1. 1. Subtracting twice row 1 from row 2 leaves a zero row.
- 2. 1. Subtracting row 1 from each other row leaves three zero rows.
- 3. 3, the column count, which is the smaller dimension.
- 4. 2. The first column is entirely zero, so it cannot pivot.
- 5. Nonzero. Rank 3 on a square matrix means invertible, and invertible means the determinant is not zero.