Login
📚 Precalculus
Chapters ▾

8.2 Systems of Linear Equations: Augmented Matrices

In Section we introduced Gaussian Elimination as a means of transforming a system of linear equations into triangular form with the ultimate goal of producing an equivalent system of linear equations which is easier to solve. If we take a step back and study the process, we see that all of our moves are determined entirely by the coefficients of the variables involved, and not the variables themselves. Much the same thing happened when we studied long division in Section. Just as we developed synthetic division to streamline that process, in this section, we introduce a similar bookkeeping device to help us solve systems of linear equations. To that end, we define a matrix as a rectangular array of real numbers. We typically enclose matrices with square brackets, ` [ ' and ` ] ', and we size matrices by the number of rows and columns they have. For example, the size (sometimes called the dimension) of

[ 3 0 1 2 5 10 ]

is 2 × 3 because it has 2 rows and 3 columns. The individual numbers in a matrix are called its entries and are usually labeled with double subscripts: the first tells which row the element is in and the second tells which column it is in. The rows are numbered from top to bottom and the columns are numbered from left to right. Matrices themselves are usually denoted by uppercase letters ( A , B , C , etc.) while their entries are usually denoted by the corresponding letter. So, for instance, if we have

A = [ 3 0 1 2 5 10 ]

then a 11 = 3 , a 12 = 0 , a 13 = 1 , a 21 = 2 , a 22 = 5 , and a 23 = 10 . We shall explore matrices as mathematical objects with their own algebra in Section and introduce them here solely as a bookkeeping device. Consider the system of linear equations from number 2 in Example

{ ( E 1 ) 2 x + 3 y z = 1 ( E 2 ) 10 x z = 2 ( E 3 ) 4 x 9 y + 2 z = 5

We encode this system into a matrix by assigning each equation to a corresponding row. Within that row, each variable and the constant gets its own column, and to separate the variables on the left hand side of the equation from the constants on the right hand side, we use a vertical bar, | . Note that in E 2 , since y is not present, we record its coefficient as 0 . The matrix associated with this system is

x y z c ( E 1 ) ( E 2 ) ( E 3 ) [ 2 3 1 1 10 0 1 2 4 9 2 5 ]

This matrix is called an augmented matrix because the column containing the constants is appended to the matrix containing the coefficients.1 To solve this system, we can use the same kind operations on the rows of the matrix that we performed on the equations of the system. More specifically, we have the following analog of Theorem below.

As a demonstration of the moves in Theorem, we revisit some of the steps that were used in solving the systems of linear equations in Example of Section. The reader is encouraged to perform the indicated operations on the rows of the augmented matrix to see that the machinations are identical to what is done to the coefficients of the variables in the equations. We first see a demonstration of switching two rows using the first step of part 1 in Example.

{ ( E 1 ) 3 x y + z = 3 ( E 2 ) 2 x 4 y + 3 z = 16 ( E 3 ) x y + z = 5 Switch  E 1  and  E 3 { ( E 1 ) x y + z = 5 ( E 2 ) 2 x 4 y + 3 z = 16 ( E 3 ) 3 x y + z = 3

[ 3 1 1 3 2 4 3 16 1 1 1 5 ] Switch  R 1  and  R 3 [ 1 1 1 5 2 4 3 16 3 1 1 3 ]

Next, we have a demonstration of replacing a row with a nonzero multiple of itself using the first step of part 3 in Example.

{ ( E 1 ) 3 x 1 + x 2 + x 4 = 6 ( E 2 ) 2 x 1 + x 2 x 3 = 4 ( E 3 ) x 2 3 x 3 2 x 4 = 0 Replace  E 1  with  1 3 E 1 { ( E 1 ) x 1 + 1 3 x 2 + 1 3 x 4 = 2 ( E 2 ) 2 x 1 + x 2 x 3 = 4 ( E 3 ) x 2 3 x 3 2 x 4 = 0

[ 3 1 0 1 6 2 1 1 0 4 0 1 3 2 0 ] Replace  R 1  with  1 3 R 1 [ 1 1 3 0 1 3 2 2 1 1 0 4 0 1 3 2 0 ]

Finally, we have an example of replacing a row with itself plus a multiple of another row using the second step from part 2 in Example.

{ ( E 1 ) x + 3 2 y 1 2 z = 1 2 ( E 2 ) 10 x z = 2 ( E 3 ) 4 x 9 y + 2 z = 5 Replace  E 3  with  ¯ 4 E 1 + E 3 Replace  E 2  with  ¯ 10 E 1 + E 2 { ( E 1 ) x + 3 2 y 1 2 z = 1 2 ( E 2 ) 15 y + 4 z = 3 ( E 3 ) 15 y + 4 z = 3

[ 1 3 2 1 2 1 2 10 0 1 2 4 9 2 5 ] Replace  R 3  with  ¯ 4 R 1 + R 3 Replace  R 2  with  ¯ 10 R 1 + R 2 [ 1 3 2 1 2 1 2 0 15 4 3 0 15 4 3 ]

The matrix equivalent of `triangular form' is row echelon form. The reader is encouraged to refer to Definition for comparison. Note that the analog of `leading variable' of an equation is `leading entry' of a row. Specifically, the first nonzero entry (if it exists) in a row is called the leading entry of that row.

To solve a system of a linear equations using an augmented matrix, we encode the system into an augmented matrix and apply Gaussian Elimination to the rows to get the matrix into row-echelon form. We then decode the matrix and back substitute. The next example illustrates this nicely.

As part of Gaussian Elimination, we used row operations to obtain 0 's beneath each leading 1 to put the matrix into row echelon form. If we also require that 0 's are the only numbers above a leading 1 , we have what is known as the reduced row echelon form of the matrix.

Of what significance is the reduced row echelon form of a matrix? To illustrate, let's take the row echelon form from Example Example 1 and perform the necessary steps to put into reduced row echelon form. We start by using the leading 1 in R 3 to zero out the numbers in the rows above it.

[ 1 2 1 4 0 1 4 7 4 7 0 0 1 1 ] Replace  R 2  with  4 7 R 3 + R 2 Replace  R 1  with  R 3 + R 1 [ 1 2 0 3 0 1 0 0 0 0 1 1 ]

Finally, we take care of the 2 in R 1 above the leading 1 in R 2 .

[ 1 2 0 3 0 1 0 0 0 0 1 1 ] Replace  R 1  with  ¯ 2 R 2 + R 1 [ 1 0 0 3 0 1 0 0 0 0 1 1 ]

To our surprise and delight, when we decode this matrix, we obtain the solution instantly without having to deal with any back-substitution at all.

[ 1 0 0 3 0 1 0 0 0 0 1 1 ] Decode from the matrix { x = 3 y = 0 z = 1

Note that in the previous discussion, we could have started with R 2 and used it to get a zero above its leading 1 and then done the same for the leading 1 in R 3 . By starting with R 3 , however, we get more zeros first, and the more zeros there are, the faster the remaining calculations will be.4 It is also worth noting that while a matrix has several5 row echelon forms, it has only one reduced row echelon form. The process by which we have put a matrix into reduced row echelon form is called Gauss-Jordan Elimination.

Like all good algorithms, putting a matrix in row echelon or reduced row echelon form can easily be programmed into a calculator, and, doubtless, your graphing calculator has such a feature. We use this in our next example.

Exercises

In Exercises -, state whether the given matrix is in reduced row echelon form, row echelon form only or in neither of those forms.

  1. [ 1 0 3 0 1 3 ]
  2. [ 3 1 1 3 2 4 3 16 1 1 1 5 ]
  3. [ 1 1 4 3 0 1 3 6 0 0 0 1 ]
  4. [ 1 0 0 0 0 1 0 0 0 0 0 1 ]
  5. [ 1 0 4 3 0 0 1 3 6 0 0 0 0 0 0 ]
  6. [ 1 1 4 3 0 1 3 6 ]
  7. [ 1 0 2 0 1 7 ]
  8. [ 1 0 0 3 0 1 0 20 0 0 1 19 ]
  9. [ 1 0 0 3 4 0 1 0 6 6 0 0 1 0 2 ]
  10. [ 1 0 0 3 0 0 1 2 6 0 0 0 0 0 1 ]
  11. [ 1 0 8 1 7 0 1 4 3 2 0 0 0 0 0 0 0 0 0 0 ]
  12. [ 1 0 9 3 0 1 4 20 0 0 0 0 ]
  13. { 5 x + y = 17 x + y = 5
  14. { x + y + z = 3 2 x y + z = 0 3 x + 5 y + 7 z = 7
  15. { 4 x y + z = 5 2 y + 6 z = 30 x + z = 5
  16. { x 2 y + 3 z = 7 3 x + y + 2 z = 5 2 x + 2 y + z = 3
  17. { 3 x 2 y + z = 5 x + 3 y z = 12 x + y + 2 z = 0
  18. { 2 x y + z = 1 4 x + 3 y + 5 z = 1 5 y + 3 z = 4
  19. { x y + z = 4 3 x + 2 y + 4 z = 5 x 5 y + 2 z = 18
  20. { 2 x 4 y + z = 7 x 2 y + 2 z = 2 x + 4 y 2 z = 3
  21. { 2 x y + z = 1 2 x + 2 y z = 1 3 x + 6 y + 4 z = 9
  22. { x 3 y 4 z = 3 3 x + 4 y z = 13 2 x 19 y 19 z = 2
  23. { x + y + z = 4 2 x 4 y z = 1 x y = 2
  24. { x y + z = 8 3 x + 3 y 9 z = 6 7 x 2 y + 5 z = 39
  25. { 2 x 3 y + z = 1 4 x 4 y + 4 z = 13 6 x 5 y + 7 z = 25
  26. { x 1 x 3 = 2 2 x 2 x 4 = 0 x 1 2 x 2 + x 3 = 0 x 3 + x 4 = 1
  27. It's time for another meal at our local buffet. This time, 22 diners (5 of whom were children) feasted for $ 162.25 , before taxes. If the kids buffet is $ 4.50 , the basic buffet is $ 7.50 , and the deluxe buffet (with crab legs) is $ 9.25 , find out how many diners chose the deluxe buffet.
  28. Carl wants to make a party mix consisting of almonds (which cost $ 7 per pound), cashews (which cost $ 5 per pound), and peanuts (which cost $ 2 per pound.) If he wants to make a 10 pound mix with a budget of $ 35 , what are the possible combinations almonds, cashews, and peanuts? (You may find it helpful to review Example in Section.)
  29. Find the quadratic function passing through the points ( 2 , 1 ) , ( 1 , 4 ) , ( 3 , 2 )
  30. At 9 PM, the temperature was 60 F; at midnight, the temperature was 50 F; and at 6 AM, the temperature was 70 F. Use the technique in Example Example 3 to fit a quadratic function to these data with the temperature, T , measured in degrees Fahrenheit, as the dependent variable, and the number of hours after 9 PM, t , measured in hours, as the independent variable. What was the coldest temperature of the night? When did it occur?
  31. The price for admission into the Stitz-Zeager Sasquatch Museum and Research Station is $15 for adults and $8 for kids 13 years old and younger. When the Zahlenreich family visits the museum their bill is $38 and when the Nullsatz family visits their bill is $39. One day both families went together and took an adult babysitter along to watch the kids and the total admission charge was $92. Later that summer, the adults from both families went without the kids and the bill was $45. Is that enough information to determine how many adults and children are in each family? If not, state whether the resulting system is inconsistent or consistent dependent. In the latter case, give at least two plausible solutions.
  32. Use the technique in Example Example 3 to find the line between the points ( 3 , 4 ) and ( 6 , 1 ) . How does your answer compare to the slope-intercept form of the line in Equation ?
  33. With the help of your classmates, find at least two different row echelon forms for the matrix

    [ 1 2 3 4 12 8 ]

In Exercises -, the following matrices are in reduced row echelon form. Determine the solution of the corresponding system of linear equations or state that the system is inconsistent.

In Exercises -, solve the following systems of linear equations using the techniques discussed in this section. Compare and contrast these techniques with those you used to solve the systems in the Exercises in Section.

Answers

  1. Reduced row echelon form
  2. Neither
  3. Row echelon form only
  4. Reduced row echelon form
  5. Reduced row echelon form
  6. Row echelon form only
  7. ( 2 , 7 )
  8. ( 3 , 20 , 19 )
  9. ( 3 t + 4 , 6 t 6 , 2 , t ) for all real numbers t
  10. Inconsistent
  11. ( 8 s t + 7 , 4 s + 3 t + 2 , s , t ) for all real numbers s and t
  12. ( 9 t 3 , 4 t + 20 , t ) for all real numbers t
  13. ( 2 , 7 )
  14. ( 1 , 2 , 0 )
  15. ( t + 5 , 3 t + 15 , t ) for all real numbers t
  16. ( 2 , 1 , 1 )
  17. ( 1 , 3 , 2 )
  18. Inconsistent
  19. ( 1 , 3 , 2 )
  20. ( 3 , 1 2 , 1 )
  21. ( 1 3 , 2 3 , 1 )
  22. ( 19 13 t + 51 13 , 11 13 t + 4 13 , t ) for all real numbers t
  23. Inconsistent
  24. ( 4 , 3 , 1 )
  25. ( 2 t 35 4 , t 11 2 , t ) for all real numbers t
  26. ( 1 , 2 , 3 , 4 )
  27. This time, 7 diners chose the deluxe buffet.
  28. If t represents the amount (in pounds) of peanuts, then we need 1.5 t 7.5 pounds of almonds and 17.5 2.5 t pounds of cashews. Since we can't have a negative amount of nuts, 5 t 7 .
  29. f ( x ) = 4 5 x 2 + 1 5 x + 23 5
  30. T ( t ) = 20 27 t 2 50 9 t + 60 . Lowest temperature of the evening 595 12 49.58 F at 12:45 AM.
  31. Let x 1 and x 2 be the numbers of adults and children, respectively, in the Zahlenreich family and let x 3 and x 4 be the numbers of adults and children, respectively, in the Nullsatz family. The system of equations determined by the given information is

    { 15 x 1 + 8 x 2 = 38 15 x 3 + 8 x 4 = 39 15 x 1 + 8 x 2 + 15 x 3 + 8 x 4 = 77 15 x 1 + 15 x 3 = 45

    We subtracted the cost of the babysitter in E3 so the constant is 77, not 92. This system is consistent dependent and its solution is ( 8 15 t + 2 5 , t + 4 , 8 15 t + 13 5 , t ) . Our variables represent numbers of adults and children so they must be whole numbers. Running through the values t = 0 , 1 , 2 , 3 , 4 yields only one solution where all four variables are whole numbers; t = 3 gives us ( 2 , 1 , 1 , 3 ) . Thus there are 2 adults and 1 child in the Zahlenreichs and 1 adult and 3 kids in the Nullsatzs.

Adapted from Precalculus, 3rd corrected edition, by Carl Stitz and Jeff Zeager (stitz-zeager.com), licensed under CC BY-NC-SA 3.0. Changes were made: reformatted as an accessible XYZ web edition. License: CC-BY-NC-SA-3.0.