Eliminate downward to upper-triangular form
Clear every entry below each pivot, column by column. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.
Forward elimination is nothing more than one step, repeated in a fixed order. The order is what makes it an algorithm rather than a collection of tricks.
For a:
1. Column 1. Take as the pivot — exchange rows first if it is zero. Clear with, then with. 2. Column 2. Take the new as the pivot. Clear with, read from the matrix as it now stands. 3. Column 3. Nothing below the diagonal to clear. You are done.
The result is upper triangular:
Two rules carry the whole procedure. Go column by column, left to right. And never touch a row you have already finished with — once column 1 is done, row 1 is a pivot row and nothing rewrites it again.
Each column's pivot lives in a row that must have zeros everywhere to its left already. Column's pivot is taken from row, and row has entries in columns that were cleared by the earlier stages.
Clearing column uses only rows as pivot rows. Those rows are finished: no later step touches them. So each stage works on a strictly smaller bottom-right block, and the triangular shape grows one row and one column at a time.
That is also why the count of operations has the shape it does: the first stage touches entries, the second, and so on, summing to about. The shrinking block is the reason elimination is affordable at all.
Reduce to upper triangular form, carrying the right side along.
Column 1. Pivot.: gives.: gives.
Column 2. The pivot is now, and the entry below it is, so and gives.
Back substitute.; then so; then so.
Check in the original rows. Row 2: ✓. Row 3: ✓.
The pivots are and their product is, which equals since no exchange was used.
- Clear every entry below each pivot, column by column
- Carry the right-hand side through the same steps
- Read the pivots off the diagonal of the resulting
- 1. Eliminate to. What are the pivots?
- 2. In a, how many entries does the first stage clear?
- 3. Which row does the second stage never change?
- 4. What is the second multiplier in after column 1 is cleared?
- 5. Why does a silent row exchange make the pivot product differ from?
Answers
- 1.,, pivots and.
- 2. Two: the entries in rows 2 and 3 of column 1.
- 3. Row 1 — it is the pivot row for column 1 and is finished.
- 4. Column 1:, giving. The second multiplier is.
- 5. An exchange flips the sign of the determinant, so. Writing the equality the wrong way round is a sign error, not an arithmetic one.