The coefficient matrix is transformed in such a way that there are only zeros under the diagonal, it is then in row step form:
With this form you can now easily calculate the entries of the solution vector from bottom to top.
Example
In the following, the procedure of the Gaussian method is explained by an example.
Consider the following system of equations:
First, you should rewrite it to an extended coefficient matrix:
As the first step of the Gaussian method you now use the addition method to bring the two entries, which are now marked orange, to zero.
To do this, you subtract twice the first line from the second line (II−2⋅I). Then you subtract the first line from the third line multiplied by 23 , which reads (III−23⋅I):
Now there is only one non-zero entry in your extended coefficient matrix below the diagonal, it is marked green in the matrix.
So that there is also a zero in this entry of the matrix, you now subtract half of the second row from the third row: (III−21⋅II):
Now your matrix is in a "stair form", so you can easily determine the solution of the equation system. The best way to see how this works is to look at the matrix again in the original representation:
By dividing the equation III by −3 , you get the solution z=2. You can now substitute this value into the other two equations:
Here you can now solve the equation II , by first subtracting 2 , which yields −7y=7 . Then, you divide by −7 , wihch gives you y=−1. You can also plug this value into equation I :
If you solve this equation for x you get x=1.
So the total solution of the system of equations is:
Gauß-Jordan method
The Gauss-Jordan method is a variation of the Gauss method. Here, the addition method is also applied to the expanded coefficient matrix. However, the coefficient matrix is transformed in such a way that the value 1 is everywhere on the diagonal and the remaining entries of the matrix are zeros. The result should look like this:
With the Gauss-Jordan method you have to use the addition method more often than with the Gauss method, but it has the advantage that you can read the solution vector immediately in the right column:
Example
Here you can understand how the Gauss-Jordan method works by means of an example: