Mark the pivot entry in a column
Find the first nonzero entry at or below the current row as the pivot. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.
At the stage where rows to have been finished, the pivot in the current column is the first nonzero entry at or below row.
Two rules and one consequence:
- Rows already used are out. A pivot comes from the rows not yet processed, so it is at or below the current row, never above it. - Zero can never be a pivot, because the next step divides by it. - If the pivot position holds zero but a lower entry in the same column does not, exchange rows. If the whole column below that position is zero, the column has no pivot and you move to the next column.
A column with no pivot is called a free column, and its variable is free.
The first nonzero at or below the current row is the one that can serve, and using it keeps the algorithm deterministic: one rule, always applicably. Choosing the largest entry instead — partial pivoting — is what a computer does, and it is strictly better for numerical accuracy, but it is a different rule with a different purpose and it does not change the pivot columns, only which row supplies them.
In exact arithmetic the choice does not matter for the answer. What matters is that a pivot is never zero and never comes from a row already used. Those two conditions are what make the pivot columns of the reduced form well defined, which is what makes the rank well defined.
A column that yields no pivot is not a failure of the method — it is the method reporting a fact: that column is a combination of the pivot columns before it.
Column 1: the entry in the pivot position is, but row 2 holds. So exchange:
Now column 1 has pivot and nothing below it to clear. Column 2 has pivot. Two pivots, so the rank is and both variables are determined.
Without the exchange, a student who "divides by the pivot" gets in row 1 and a meaningless step. The exchange is not an optional flourish — it is what makes the algorithm possible.
- Find the first nonzero entry at or below the current row as the pivot
- Decide between exchanging rows and skipping a column
- Count the pivots elimination will produce and name the free columns
How many pivots does elimination produce, and which column is free?
Answer
Column 1: the pivot is in row 1. Clear the: gives.
Column 2: the pivot position (row 2) holds, and nothing below it. No pivot — column 2 is free.
Column 3: the pivot is in row 2.
So two pivots — and — and column 2 is the free column. The second column was twice the first, which is exactly the dependence the missing pivot detects.