Loading…
Gaussian elimination preserves a system's solution set while exposing its pivot equations and free variables.
Gaussian elimination rewrites a system so that its solutions can be read from a sequence of pivot equations. At each stage, choose a pivot, clear the entries beneath it, and continue with the rows and columns that remain. Every operation must preserve the solution set while making the next variable easier to isolate.
The target shape makes each leading variable visible and allows the equations to be read from bottom to top.
In practice, that means:
So elimination is a controlled way of building a staircase of pivots.
Definition 2.3.1
(REF and RREF)
A matrix is in row echelon form (REF) when:
A matrix is in reduced row echelon form (RREF) when, in addition:
The first nonzero entry in a nonzero row is called a pivot or leading entry. A column containing a pivot is a pivot column. Columns without a pivot among the coefficient columns correspond to free variables, once the augmented system is known to be consistent.
Theorem 2.3.2
(Why row reduction is safe)
If two augmented matrices are row-equivalent, then they represent equivalent systems of linear equations. In other words, row operations change the look of the system, but not its solution set.
Consider the system
Its augmented matrix is
Worked example 2.3.3
(Read every row operation as a purpose)
The entry in the top-left corner is already a convenient pivot because it is . So the first goal is simple:
make everything below that pivot become .
Use
Then the matrix becomes
Now column 1 is finished. The next pivot lives in row 2, column 2. So we use it to clear the below it:
This gives
This matrix is in REF. Read the equations from bottom to top:
The system is already solved. Continuing to RREF records these substitutions in the matrix itself, so that each variable's value can be read directly.
First make the last pivot equal to :
Then clear the entries above that pivot:
so the matrix becomes
Finally clear the above the second pivot:
which gives the RREF
Now the solution can be read immediately:
Concept lensAlgorithmic
Row equivalence tells us which changes are legal. Gaussian elimination tells us how to choose those changes so that a finite calculation reaches an interpretable destination. These are different questions. Swapping the same pair of rows forever preserves the solution set at every step, but does not solve the system. A useful algorithm needs both an invariant and a measure of progress.
The invariant is the solution set of the augmented system. During forward elimination, the progress is that successive pivot positions move strictly to the right and occupy successively lower rows. Once a pivot column is finished below its pivot, later operations on lower rows do not disturb those zeros. The algorithm works because its local simplifications accumulate rather than undoing one another.
To make that description precise, consider the rows still waiting to be processed. Find their leftmost column containing a nonzero entry. If necessary, swap one such entry into the top unprocessed row. Use this entry as the pivot and eliminate all entries beneath it. Then continue with the lower rows, searching only farther to the right. A column containing only zeros in the unprocessed rows is skipped; it does not require a division or a replacement pivot.
The phrase “leftmost” matters. It ensures that every unprocessed row has zero entries before the newly selected pivot. Linear combinations of these rows keep that prefix zero. Thus a later row cannot acquire a leading entry to the left of an earlier pivot. The definition of echelon form is therefore maintained by construction, not checked only after a fortunate calculation.
If all unprocessed rows are zero, forward elimination stops immediately. Otherwise each pivot uses another row and another column. There are only finitely many rows and columns, so the process must terminate. This is an existence argument for an echelon form, independent of any special numerical example. It does not prove uniqueness of the echelon form: different legal choices can give different nonzero pivot values and different entries above pivots.
Starting with REF, normalize each nonzero pivot to one. Work from the last pivot row upward. To clear an entry above the current pivot, subtract its multiple of the pivot row. The pivot row has zero entries before its leading entry, so this subtraction cannot change any earlier pivot column. Pivot columns to its right have already been cleaned, including in the current row, so they are not spoiled either.
After finishing a pivot column, its leading one is the only nonzero entry there. Continue upward until every pivot column has this property. This gives RREF. The argument also explains why eliminating upwards in a carefully chosen order is easier to audit than making arbitrary substitutions throughout the matrix.
Normalization is not needed merely to obtain REF. A leading entry of two or minus three is allowed there. It becomes necessary for the reduced form because the definition of RREF requires leading ones. Back-substitution can already solve a consistent echelon system; reduced form is useful when the goal is to display all parameter dependence directly.
The existence of an algorithm and the uniqueness of its reduced output are separate theorems. The reduction procedure proves that some RREF can be reached. The uniqueness theorem says that every completed RREF obtained from the same matrix is identical. A different sequence of operations is therefore not evidence of an error, whereas two different claimed final RREF matrices cannot both be correct. The dedicated uniqueness note later supplies the proof of this distinction.
The following sequence keeps the active pivot and the entries being cleared visible at each stage of the same reduction.
Follow the same elimination example as a short visual sequence: pivots are selected, entries are cleared, and the final RREF is read as a solved system.
Start from the augmented matrix
The first column already has a convenient pivot in row 1. The immediate goal is to make every entry below that pivot equal to 0.
Build the pivot staircase
After the first clearing step, the next pivot appears in row 2, column 2. Clearing beneath it produces a row echelon form.
Normalize the last pivot
The last nonzero row has leading entry -1. Multiplying the row by -1 turns the pivot into 1 without changing the solution set.
Clear above pivots
RREF is obtained only after each pivot is the sole nonzero entry in its column, so the operations move upward as well as downward.
Read the solved variables
Once the left block is the identity, the right column can be read directly as x = 2, y = -3, and z = 4.
The calculation is not a collection of disconnected row operations. It is a controlled change of form: first create REF by clearing below pivots, then create RREF by normalizing pivots and clearing above them.
In the stepper, compare each row operation with the entries it clears and check that the zeros in earlier pivot columns remain intact.
Trace one full row-reduction path
Each step applies one group of elementary row operations. Watch the entries above and below each pivot become 0.
Choose the first pivot in column 1.
| 1 | 2 | 2 | 4 |
| 1 | 3 | 3 | 5 |
| 2 | 6 | 5 | 6 |
1pivot in focus0changed in this stepright of the bar: constants
Start with the augmented matrix. The first pivot should help us clear the entries underneath it.
Not yet in row echelon form
Row 2 still has 1 in column 1, which is not to the right of the pivot in row 1.
NoticeColumn 1 already has a convenient pivot 1 in the first row, so we do not need a row swap.
A larger system tests whether the same pivot strategy remains clear across many steps. Before each operation, identify the column being cleared and the pivot being used; after it, check that the earlier pivot columns remain intact.
Consider the augmented matrix
The first column already has a usable pivot in row 1. Clearing below that pivot gives
Now row 2 supplies the next pivot. Use it to remove the matching entries below:
After also clearing the duplicate row created by the next pivot, one clean echelon stage is
This is the point where you should pause and read the structure: pivot columns are columns , , and ; free columns are columns , , and . To reach RREF, clear the entry above the pivot in column :
The final reduced form is
Let
Then the pivot equations read
So every solution has the form
This example illustrates the real purpose of a long reduction: not merely to produce zeros, but to expose the pivot/free-variable pattern from which the whole solution set follows.
Once a matrix is in RREF, the main reading questions are:
Worked example 2.3.4
(Read structure before you compute)
Suppose you arrive at
Here columns 1 and 2 are pivot columns, but column 3 is not. That means the third variable is free.
So this system does not have one unique solution. Instead, it has infinitely many solutions, because you may choose the free variable first and then solve for the pivot variables.
Theorem 2.3.5
(What a contradiction row means)
If row reduction produces a row such as
then the corresponding equation is . That is impossible, so the system is inconsistent and has no solution.
Worked example 2.3.6
(When a matrix is almost RREF)
Sometimes a matrix is very close to RREF, but one pivot column has not yet been cleaned. For example,
is not RREF because the pivot in column has a above it. The single move
gives
Now the pivot columns are clean, so the matrix is in RREF. The free variables are and ; with and , the solution is
Worked example 2.3.7
(Start with a zero column and still finish the algorithm)
Treat the last column as the constants column in a system with three unknowns:
The first coefficient column is zero, so there is no pivot to find there. The first pivot is in column two. Normalize both rows, then clear the entry above the second pivot:
The result says and . No equation restricts , so all solutions are with . Substitution into the original rows gives and , regardless of . Skipping column one did not skip an equation or lose a condition; the variable was absent from every equation from the beginning.
This example also shows why a pivot need not lie on the main diagonal. Echelon form is a staircase determined by leading entries, not a demand that the first row have a pivot in the first column. In larger matrices, several nonpivot columns can appear between successive pivots.
When the matrix is augmented, variable columns and the constants column must remain distinct. A pivot in the last column represents a contradiction, not an extra determined variable. First check consistency; only then describe the nonpivot coefficient columns as freely assignable coordinates of solutions. A nonpivot column need not be a zero column: its entries can record how a free variable influences several pivot variables.
For example, the column containing the coefficients and in the earlier structural reading is nonpivot although it is not zero. Its variable may be chosen freely, but the pivot variables must then adjust. “Free” means unconstrained as an independent choice, not irrelevant to the remaining equations.
For each displayed arrow, verify the targeted entry first, then verify the rest of the affected row, especially the last column. Next inspect the structural claim: a matrix called REF must have the staircase and zero rows at the bottom; a matrix called RREF must also have leading ones and cleaned pivot columns. These checks catch different errors. Correct arithmetic can still stop short of RREF, and a matrix with the right visual pattern can still come from incorrect arithmetic.
Finally substitute the parameterization into the reduced equations. Because every arrow was reversible, the same parameterization then solves the original system. Setting all free parameters to zero gives one easy numerical check, but a full check retains the parameters and verifies their coefficients as well. This prevents a sign error in a direction vector from hiding behind an accidentally correct particular solution.
Common mistake
(REF need not be RREF)
Clearing the entries below each pivot produces REF, which is enough for back-substitution. The result may already be RREF, but that requires a separate check: every pivot must be , with zeros everywhere else in its column.
Common mistake
(Choosing operations without a target)
Do not subtract rows just because “something should happen.” Before each move, state the target clearly:
That habit keeps your work organized and makes sign mistakes easier to catch.
Quick check
(When should you swap rows before eliminating?)
Think about the first available pivot position. What if the entry there is but a nonzero entry appears lower in the same column?
Swap rows when the current pivot position is unusable, for example when it is but a nonzero entry appears below it in the same column. The row swap moves a usable pivot into place so elimination can continue.
Quick check
(Is a harmless row?)
Translate the row back into an equation before you answer.
No. It represents , which is a contradiction. That means the system is inconsistent and has no solution.
Quick check
(In the longer reduction above, why are , , and free?)
Look at the final RREF . Which variable columns contain leading s?
The leading s are in columns , , and . Therefore columns , , and have no pivots, so , , and are free variables.
Start from
What is the most natural first row operation if your goal is to clear the entry below the first pivot?
The first pivot is already the in row 1, column 1. The entry beneath it is , so the natural move is
That operation clears column 1 below the pivot in one step.
Consider the matrix
Does this represent a system with a unique solution, infinitely many solutions, or no solution?
There is no contradiction row, so the system is not inconsistent. But column 3 has no pivot, which means there is a free variable. Therefore the system has infinitely many solutions.
Start from
Which single row operation turns this matrix into RREF?
The pivot in column is the in row 3. The only nonzero entry elsewhere in that pivot column is the in row 1, so subtract twice row 3 from row 1:
For the RREF matrix
set , , and . Write , , and in terms of , , and .
Read the three nonzero rows:
Therefore
This page builds directly on 2.2 Augmented matrices and row operations. If you are still unsure why row operations preserve the solution set, go back to that note first before practicing longer elimination paths.
Work out your answer, then check it. You can revise and try again.
Loading…