Skip to content or footer

Gaussian Elimination

The Gaussian elimination is a procedure for solving systems of linear equations. The addition method is applied to the expanded coefficient matrix.

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 (II2I)\left( \mathrm{II}-2\cdot\mathrm{I}\right). Then you subtract the first line from the third line multiplied by 32\dfrac32 , which reads (III32I)\left( \mathrm{III} - \frac32 \cdot\mathrm{I}\right):

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: (III12II)\left( \mathrm{III} - \frac12 \cdot\mathrm{II}\right):

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\mathrm{III} by 3-3 , you get the solution z=2\mathbf{z = 2}. You can now substitute this value into the other two equations:

Here you can now solve the equation II\mathrm{II} , by first subtracting 22 , which yields 7y=7-7y = 7 . Then, you divide by 7-7 , wihch gives you y=1\mathbf{y = -1}. You can also plug this value into equation I\mathrm{I} :

If you solve this equation for xx you get x=1x=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:

This still has to be converted!!!


This content is licensed under
CC BY-SA 4.0Info