Solving Systems with Gaussian Elimination
Problem
Solve the system 2x + y − z = 8, −3x − y + 2z = −11, −2x + y + 2z = −3 using row operations on the augmented matrix.
Explanation
What is Gaussian elimination?
Gaussian elimination is a systematic procedure that uses elementary row operations to transform the augmented matrix of a linear system into row-echelon form (upper triangular), from which the solution is read off by back substitution.
The three elementary row operations
- Swap two rows: .
- Scale a row: with .
- Combine: replace with .
Each operation preserves the solution set — the system before and after has the same solutions.
The augmented matrix
Step-by-step solution
Step 1 — Create a zero in column 1, row 2. Use :
Step 2 — Create a zero in column 1, row 3. Use :
Matrix now:
Step 3 — Create a zero in column 2, row 3. Use :
Upper triangular form:
Step 4 — Back substitution.
From row 3: .
From row 2: .
From row 1: .
Solution: .
Verification
- Eq 1: ✓
- Eq 2: ✓
- Eq 3: ✓
Common mistakes
- Forgetting to update the right-hand side. Every row operation applies to the full augmented row, not just the coefficient part.
- Not following a consistent pivot order. Work column by column from left to right, top to bottom, to avoid re-introducing non-zero entries.
- Dividing by zero. If the pivot element is 0, swap rows first to get a non-zero pivot.
Try it in the visualization
Each row operation is animated as a transformation of the matrix. Step through operations to see the zeros appearing in the lower triangle and the back-substitution unwinding from bottom to top.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.