2.1: Gaussian Elimination
( \newcommand{\kernel}{\mathrm{null}\,}\)
View Gaussian Elimination on YouTube
The standard algorithm to solve a system of linear equations is called Gaussian elimination. It is easiest to illustrate this algorithm by example.
Consider the linear system of equations given by
which can be rewritten in matrix form as
To perform Gaussian elimination, we form what is called an augmented matrix by combining the matrix
Row reduction is then performed on this matrix. Allowed operations are
- multiply any row by a constant,
- add a multiple of one row to another row,
- interchange the order of any rows.
It is easy to confirm that these operations do not change the solution of the original equations. The goal here is to convert the matrix
We start with the first row of the matrix and work our way down as follows. The key element is called the pivot, which is the diagonal element that we use to zero all the elements below it. The pivot in the first row is the diagonal entry
We then go to the second row. The new pivot is the number
The original matrix
These equations can be solved by back substitution, starting from the last equation and working backwards. We have
Therefore,

