MathLectures
gnu6 > IndexOffice

# Gaussian elimination procedure

### Gaussian elimination procedure

There are two boxes - one with apples, the other with plums. It is known that there are twice more apples than plums and total number of fruits is 300. How many apples and how many plums are in those two boxes?

Let us introduce notations:

x- number of apples,

y - number of plums.

In terms of these new notations this problem takes the following form.

 (1.1)

This is a simple example of a system of linear equations. This system has two equations and two unknowns. After replacing

x2y

which leads to

From the first equation we have

Now consider more general system of linear equations.

 (1.2)

where

and

are real numbers for all

and

To solve (1.2) we could follow the same idea that led us to the solution of (1.1). It is one of legitimate ways of handling this type of problems and it has some valuable theoretical aspects as we will see later. However, following this scenario we would face many computational difficulties. That is one of the main reason of adopting technique that is well known as "Gaussian Elimination Procedure"1.1.

To describe Gaussian Elimination Procedure we write system (1.2) in a different way. We preserve only the information that is essential for achieving our goal of finding solutions. This information is provided only by coefficients

and

with

and

All other symbols in (1.2) we can drop and replace all signs "=" with a vertical line. That leads us to the following table of numbers.

 (1.3)

We need to work only with this table of numbers in order to find solutions for (1.2). This table of numbers is called augmented matrix of system (1.2). The following operations over the rows of the augmented matrix do not change essentially the original system. In other words, they preserve the set of solutions.

Elementary Row Operations
i.
Any two rows can be interchanged.
ii.
Any row can be multiplied by a non zero number. Multiplication is performed entry-wise, i.e. each entry in the row is multiplied by the same number.
iii.
Any row can be replaced by its sum with any other row. Addition between two rows is performed entry-wise. That means any two entries with the same second index j are added to each other.

Now we play a game with augmented matrix (1.3). Rules of this game are defined by elementary row operations. The goal is to zero as many coefficients

as possible with

Those coefficients are in the lower left corner of the augmented matrix. There is abandon of strategies in playing this game. One of them is based on Gaussian Elimination Procedure. Although it is not the most efficient among the strategies it is very simple.

Gaussian Elimination Procedure
i.
By interchanging rows make sure that the leading element in the first row is not zero,

ii.
Multiply the first row with

iii.
Replace each i-th row for

by its sum with the first row multiplied by

where j=1 for the first invocation of the procedure.

iv.
Repeat the previous steps (i, ii, iii) for the matrix in the lower right corner defined by coefficient with indices

where

and

Under Gaussian Elimination Procedure the augmented matrix becomes "triangular" in the sense that coefficients in the lower left corner are zeroes. Let us take a closer look at the transformations of augmented matrix on different steps of Gaussian Elimination Procedure.

After the first step of Gaussian Elimination Procedure we make sure that the leading element in the first row is not zero. Our matrix looks as follows.

Then we multiply the fist row by

Now we can "kill" all elements below "1" in the first column of the matrix. It is done by replacing each i-th

row by its sum with the first row multiplied by

Let us introduce notations,

Then our new matrix will be of the following form.

Now we repeat the same steps (i, ii, iii) for the matrix in the lower right corner,i.e., the matrix with entries

where

and

Let us illustrate Gaussian Elimination Procedure with examples.

Example 1.1

Solve the system of linear equations.

Solution. First, we write the augmented matrix for this system.

After dividing each element in the first row by 2 we get the following matrix.

Now we replace the second and the first row by their sums with the first row multiplied by "-1". That lead to the matrix.

After replacing the third row by its sum with the second row the Gaussian Elimination Procedure is completed.

We can put back variables

and solve the system "backwards" starting from the last equation.

The last equation implies that

Then we are moving "backwards" in terms of the equations of this system. The second line gives us

and finally the first line leads us to

The system has the only solution

In other words, the solution is the string of numbers

If a linear system has at least one solution then it is called consistent.

Example 1.2

Solve the system of linear equations.

Solution. First, we write the augmented matrix for this system.

After dividing each element in the first row by 2 we get the following matrix.

We replace the second row by its sum with the first row multiplied by "-1".

After replacing the third row by its sum with the second row multiplied by "2" we get the matrix.

Gaussian Elimination Procedure is completed. We reduce the original system to the following form.

This system has infinitely many solutions. Indeed, the variable

can take any real value. Mathematical representation of this fact looks as follows.

Now the second equation of our system implies that

Finally, the first equation gives us.

Our system has infinitely many solutions presented as

where t is an arbitrary number. This is called a general solution of the system.

Example 1.3

Solve the system of linear equations.

Solution. First, we write the augmented matrix for this system.

It is left as an exercise for the reader to follow the same steps as in the previous two examples. Upon completion of Gaussian Elimination Procedure we obtain the following augmented matrix.

According to the last line of the augmented matrix "-1" is equal to "0" which is nonsense. That means the system does not have any solutions. Such systems are called inconsistent.

Any linear system falls in one of the following categories.

The system has the only solution.
The system has infinitely many solutions.
The system is inconsistent. That means it does not have any solutions.

Gaussian Elimination Procedure gives us a simple and effective way of dealing with a linear system. After a finite number of steps we are able to write the complete solution for a system or to conclude that the system is inconsistent.

Next:ExercisesUp:contentPrevious:content
Sergey Nikitin 2004-01-28