Gaussian Elimination
Systematic row reduction to solve linear systems, compute rank, and find inverses â the foundational algorithm of linear algebra.
pivot row target row
21-18-3-12-11-212-3
Initial augmented matrix [A|b]
Step 0 of 4
Definition
Gaussian elimination is the standard algorithm for solving systems of linear equations .
It transforms the augmented matrix into row echelon form using three elementary row operations:
- Swap two rows
- Multiply a row by a nonzero scalar
- Add a multiple of one row to another
Then back substitution solves the triangular system from bottom to top.
Key properties
- Each elementary row operation preserves the solution set of the system
- Row echelon form has all leading entries (pivots) strictly to the right as you move down rows
- The number of pivots equals the rank of the matrix
- A row of all zeros equal to a nonzero constant signals an inconsistent (unsolvable) system
Common mistakes
- Forgetting to apply a row operation to the entire row (including the augmented column ) â a common source of silent arithmetic errors
- Dividing by a zero or near-zero pivot: this either breaks the algorithm outright or (if the pivot is merely tiny) introduces large numerical error â partial pivoting exists specifically to avoid this
Solving a 3Ã3 system
After elimination: upper triangular system â .
Try it
Solve the system: , using Gaussian elimination.
Solution
Augmented matrix:
:
Back substitute: . Then .