Section 2.2: Using Matrices to Solve Systems of Linear Equations with Two Unknowns

Part B. Solving a System by Pivoting

If you got here directly from the outside world and see no frames, press here to bring up the frames that will allow you to properly navigate this tutorial and site.

Part A.
Setting Up a System & Doing Row Operations
Part C.
Row-Reduced Echelon Form

Part B: Solving by Pivoting

Solution of Systems of Equations by Row Operations
(The following discussion is based on pp. 126-130 of Finite Mathematics Applied to the Real World and Finite Mathematics and Calculus Applied to the Real World. )

Here, we put row operations to work for us in solving systems of equations. (If you are not familiar with row operations, go to Part A of this tutorial.) First of all, let's start with a complicated looking system of equations, such as

This system has the following augmented matrix.

We shall now reduce the matrix with our bare hands in a few simple steps by performing row operations to obtain a new matrix that will instantly tell us the solution of the system.

First Step: Clear all fractions and/or decimals (if any) by multiplying rows that contain them by a suitable number.

To clear the fractions, we multiply the first row by 6 and the second row by 4 as follows.

Second Step: Designate the first non-zero entry in the first row as the pivot.

This gives the 3 as the pivot:

Third Step: Use the pivot to clear its column using operations of type 3. By clearing a column, or pivoting,we mean winding up with a matrix in which the pivot is the only non-zero number in its column. This the goal is to end up with the 8 "cleared away:"

The asterisks stand for whatever numbers come out of the calculation. We must accomplish that by replacing Row 2 using an operation of the third type listed above. Here, we do the following:

Question
Wait a minute! Just how did you come up with that row operation?

Answer
Press the little pearl to open a new window showing a method that always works, and requires little or no thought!

The next step is one that can be performed at any time.

Simplification Step: If at any stage of the process, all the numbers in a row are multiples of an integer, divide by that integer -- a type 2 operation.

Here, we notice that the entries in Row 2 are divisible by 7, so we divide that row by 7.

Fourth Step: Select the first non-zero number in the next row (Row 2) as pivot, and go to the Third Step.

This is a two-step process: First select a pivot on the second row. Next, perform the pivoting operation; that is, clear the pivot column (the pivot column is now the second column).

Question
So how did you come up with that row operation?

Answer
Press the little pearl to find out! Note that all the row operations we use to pivot have the following form:

Here, a and b are always positive numbers.
Rc is the row you are changing. This is also the row next to which the instruction is written.
Rp is the pivot row -- the row containing the pivot.
Note that the only place a minus sign ever appears is between Rc and Rp.

We have one last step:

Final Step: Turn all the pivots into 1's by dividing each of the rows by the value of its pivot.

And we're done! The first row now corresponds to the equation

The second row corresponds to

So we have solved for x and y!

Press the little pearl to bring up a new window showing the complete sequence of row operations we used.

Press the "summary" button on the sidebar for a convenient summary of this procedure and also other material...

Consider the following system.

Which of the following corresponds to the augmented matrix after fractions are cleared?

The instruction required to perform the first pivot operation is:

The result of the above pivot operation is

The instruction required to perform the next pivot operation is:

The result of the above pivot operation is

The solution of the original system of equations is

Note Sometimes, things don't work out so smoothly. For instance, you might wind up with a row of zeros, or a row like this: [0 0 9]. Just how to deal with this is discussed in Part C of this tutorial.

Tired of tutorials for now? Try some of the exercises on pp. 137-138 of Finite Mathematics Applied to the Real World, or Finite Mathematics and Calculus Applied to the Real World and then go on to Part C to help answer unresolved questions.

Part A.
Setting Up a System & Doing Row Operations
Part C.
Row-Reduced Echelon Form

Last Updated: January, 1997
Copyright © 1996 StefanWaner and Steven R. Costenoble