Lesson 1.2 · Systems of Linear Equations
Row reduction and echelon forms
Elimination works, but to handle any system, with any number of equations and unknowns, you need a precise target shape and an algorithm that always reaches it. This lesson defines echelon form and reduced echelon form, introduces pivots, and shows how the reduced form lets you read off the entire solution set, including systems with infinitely many solutions.
Echelon forms
In a matrix, a nonzero row is a row with at least one nonzero entry, and its leading entry is its leftmost nonzero entry.
Definition
Echelon form and reduced echelon form
A matrix is in (row) echelon form if
- all nonzero rows are above any rows of all zeros,
- each leading entry is in a column to the right of the leading entry of the row above it, and
- all entries in a column below a leading entry are zero.
It is in reduced row echelon form (RREF) if, in addition,
- every leading entry is , and
- each leading is the only nonzero entry in its column.
Echelon form looks like a staircase descending to the right. For example, with standing for any number and for any nonzero number,
show an echelon form and the corresponding reduced echelon form.
A matrix can be row reduced to many different echelon forms (you can always scale a row, for instance). But the reduced form is special.
Uniqueness of the reduced echelon form
Each matrix is row equivalent to exactly one matrix in reduced row echelon form.
Because every echelon form of has its leading entries in the same positions as the RREF of , those positions are a property of itself.
Definition
Pivot position and pivot column
A pivot position in a matrix is a location that holds a leading in the reduced echelon form of . A pivot column is a column of that contains a pivot position. A pivot is a nonzero number in a pivot position, used during row reduction to create zeros.
The row reduction algorithm
Reaching the RREF takes two phases.
Forward phase (produces an echelon form):
- Start with the leftmost nonzero column. This is a pivot column; its top position is a pivot position.
- If necessary, interchange rows so that a nonzero entry sits in the pivot position.
- Use replacement operations to create zeros in every position below the pivot.
- Cover the row containing the pivot (and all rows above it) and repeat steps 1 to 3 on the submatrix that remains.
Backward phase (produces the RREF):
- Starting with the rightmost pivot and working up and to the left, scale each pivot row to make the pivot , then create zeros above it with replacements.
Doing the zeros above the pivots only at the end, from right to left, saves work: each backward step touches a column that is already mostly zeros.
Worked example: Reducing to RREF
Row reduce the augmented matrix of , , , and solve.
Forward phase. The pivot in column 1 is the top-left . Use and , then :
Backward phase. Clear column 3 with and , then column 2 with :
The RREF says directly , , .
Basic variables, free variables and parametric solutions
When the RREF of an augmented matrix is consistent but not every variable column has a pivot, the system has infinitely many solutions. Variables whose columns are pivot columns are basic variables; the others are free variables. Each nonzero row of the RREF expresses one basic variable in terms of the free ones, and the free variables may take any values.
Worked example: A parametric description
Solve the system whose augmented matrix is .
and both produce , and then gives a zero row:
This is already the RREF. The pivot columns are 1 and 3, so and are basic and , are free. Reading the rows:
Every choice of and gives a solution. For instance, and give , . You can confirm in the original second equation: .
Existence and uniqueness
The RREF, or even any echelon form, answers the two basic questions about a system at a glance.
Existence and uniqueness theorem
A linear system is consistent if and only if the rightmost column of its augmented matrix is not a pivot column, that is, an echelon form has no row of the form with .
If the system is consistent, it has
- a unique solution when there are no free variables (every variable column is a pivot column), and
- infinitely many solutions when there is at least one free variable.
Worked example: Deciding from an echelon form
Is the system with augmented matrix consistent?
gives and gives . Then gives . The last column is a pivot column, so the system is inconsistent, even though it has more unknowns than equations.
Common mistake
"More unknowns than equations" does not guarantee infinitely many solutions; the system can still be inconsistent, as the last example shows. What it does guarantee is that a consistent system of that shape has a free variable, because there are more variable columns than there can be pivots.
Tip
You only need an echelon form, not the full RREF, to decide consistency and to count free variables. Save the backward phase for when you need the actual solution.
Practice
Which matrix is in reduced row echelon form?
How many pivot positions does have?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Row reduce to solve , , . Give .
Enter a point like (2, -3)
The augmented matrix of a system has been reduced to . How many free variables does the system have?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
For the system in the previous problem, if , what is ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
An echelon form of the augmented matrix of a system is . Which describes the system?
Row reduce the augmented matrix and describe the solutions in terms of the free variables. If and , what is ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.