Euler Hall — free maths guides

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.

Plain words first

At the stage where rows11 tor−1r-1 have been finished, the pivot in the current column is the first nonzero entry at or below rowrr.

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.

Why the first nonzero, and not the largest

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.

Worked example where the pivot position is zero

[024137].\begin{bmatrix}0&2&4\\1&3&7\end{bmatrix}.

Column 1: the entry in the pivot position is00, but row 2 holds11. So exchange:

[137024].\begin{bmatrix}1&3&7\\0&2&4\end{bmatrix}.

Now column 1 has pivot11 and nothing below it to clear. Column 2 has pivot22. Two pivots, so the rank is22 and both variables are determined.

Without the exchange, a student who "divides by the pivot" gets0x1+2x2=40x_1+2x_2=4 in row 1 and a meaningless step. The exchange is not an optional flourish — it is what makes the algorithm possible.

By the end you can
  • 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
Check yourself

[241483].\begin{bmatrix}2&4&1\\4&8&3\end{bmatrix}. How many pivots does elimination produce, and which column is free?

Answer

Column 1: the pivot is22 in row 1. Clear the44:R2→R2−2R1R_2\to R_2-2R_1 gives[241001]\begin{bmatrix}2&4&1\\0&0&1\end{bmatrix}.

Column 2: the pivot position (row 2) holds00, and nothing below it. No pivot — column 2 is free.

Column 3: the pivot is11 in row 2.

So two pivots —22 and11 — and column 2 is the free column. The second column was twice the first, which is exactly the dependence the missing pivot detects.

Work out where to start — free, no accountAnswer six real questions — free, no account