Gaussian Elimination
Definition
Gaussian elimination is the standard algorithm for solving a system of linear equations . It reduces the augmented matrix to upper-triangular form via row operations, followed by back substitution.
Intuition
Work column by column from left to right: use the current diagonal entry (the pivot) to zero out everything below it. After steps the matrix is upper-triangular and the unknowns can be read off from the bottom row upward by back substitution.
Formal Description
The three allowed elementary row operations are:
- Interchange any two rows.
- Multiply a row by a nonzero constant.
- Add a multiple of one row to another.
These operations do not change the solution set. The goal is to reduce to upper-triangular form .
Example. For the system
form the augmented matrix and reduce:
Back substitution then gives .
The matrix element used to eliminate entries below it is called the pivot. Elimination fails if a pivot is zero; row interchange must be performed first. For numerical stability on large systems, partial pivoting (always swapping to bring the largest-magnitude entry to the pivot position) is used.
Applications
- Direct method for solving for a single right-hand side.
- Basis for LU Decomposition and Reduced Row Echelon Form.
Trade-offs
- A zero pivot requires a row interchange; without pivoting the algorithm may fail even for non-singular .
- Without partial pivoting, small pivots can cause catastrophic cancellation and large rounding errors.
- Costs for an system; inefficient when the same must be used with many right-hand sides (use LU instead).