Module 11 · Systems of equations and inequalities · Lesson 69 of 84
Solving systems with Gaussian elimination
Writing a system as an augmented matrix and using row operations to solve it.
In this lesson · about 22 minutes
- Write a system as an augmented matrix
- Use the three row operations to reach row-echelon form
- Read the solution, or spot no solution or infinitely many
Elimination by hand means copying x, y and z over and over. An augmented matrix keeps only the numbers: each row is an equation, each column a variable, and a bar separates the constants.
x + y + z = 6, 2x − y + z = 3, x + 2y − z = 2 → [1 1 1 | 6; 2 −1 1 | 3; 1 2 −1 | 2]
Row operations
Three moves never change the solutions:
- Swap two rows: R1 ↔ R2.
- Multiply a row by a nonzero number: R2 → ½R2.
- Add a multiple of one row to another: R2 → R2 − 2R1.
The goal
Gaussian elimination works down the columns, making a 1 (a pivot) on the diagonal and 0s below it, to reach row-echelon form. Then back-substitute. Going further, making 0s above the pivots too, gives reduced row-echelon form, where the solution is read straight off (Gauss-Jordan elimination).
Reading the end result:
- A row [0 0 0 | 5] says 0 = 5: no solution.
- A row [0 0 0 | 0] with fewer pivots than variables: infinitely many solutions.
This is exactly how computers solve systems with thousands of unknowns.
Try it · interactive
Gaussian elimination, one row operation at a time
Step through the row operations one at a time. Then try the presets that need a row swap, have no solution, or have infinitely many. You can also type your own numbers.
Step 0 of 8
Start with the augmented matrix [A | b].
| 1 | 1 | 1 | 6 |
| 2 | −1 | 1 | 3 |
| 1 | 2 | −1 | 2 |
Whiteboard · watch and try
Row reducing a 2 × 2 system
Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.
Check your understanding0 of 4 correct
Key terms
Say the meaning to yourself, then tap a card to check.
Quiz score: 0 of 4
Based on Algebra and Trigonometry 2e by Jay Abramson and others (OpenStax, Rice University), openstax.org/details/books/algebra-and-trigonometry-2e, licensed under CC BY-NC-SA 4.0. Noviq Academy rewrote and reorganized the material in its own words and added its own examples, whiteboard lessons, tools and quizzes; this adapted course is free and shared under the same license. Not endorsed by OpenStax or Rice University. Read-aloud and the whiteboard voice use your device's built-in voices, so the voice varies by device.