Solve systems of equations using matrices.
In this section, we consider additional techniques for solving systems of equations. You have probably observed that when we solve a system of equations, we perform computations with the coefficients and the constants and continually rewrite the variables. We can streamline the solution process by omitting the variables until a solution is found. For example, the system
can be written more simply as
The vertical line replaces the equals signs.
A rectangular array of numbers like the one above is called a matrix (pl., matrices). The matrix above is called an augmented matrix for the given system of equations, because it contains not only the coefficients but also the constant terms. The matrix
is called the coefficient matrix of the system.
The rows of a matrix are horizontal, and the columns are vertical. The augmented matrix above has 2 rows and 3 columns, and the coefficient matrix has 2 rows and 2 columns. A matrix with m rows and n columns is said to be of order m×n
In Section 9.2, we described a series of operations that can be used to transform a system of equations to an equivalent system. Each of these operations corresponds to one that can be used to produce row-equivalent matrices.
We can use these operations on the augmented matrix of a system of equations to solve the system.
Solve the following system:
First, we write the augmented matrix, writing 0 for the missing y-term in the last equation:
Our goal is to find a row-equivalent matrix of the form
The variables can then be reinserted to form equations from which we can complete the solution. This is done by working from the bottom equation to the top and using back-substitution.
The first step is to multiply and/or interchange rows so that each number in the first column below the first number is a multiple of that number. In this case, we interchange the first and second rows to obtain a 1 in the upper left-hand corner.
Next, we multiply the first row by −2
Now we multiply the second row by 13
Then we multiply the second row by −6
Finally, we multiply the third row by −114
Now we can write the system of equations that corresponds to the last matrix above:
We back-substitute −12
Next, we back-substitute 7 for y and −12
The triple (3,7,−12)
Now Try Exercise 27.
The procedure followed in Example 1 is called Gaussian elimination with matrices. The last matrix in Example 1 is in row-echelon form. To be in this form, a matrix must have the following properties.
Which of the following matrices are in row-echelon form? Which, if any, are in reduced row-echelon form?
[1−350 1−40 01|−2 310]
[0−101|25]
[1−2−64035−80019|7 −12]
[100010001|−2.40.85.6]
[1000010000100000|23−14670]
[1−4200001−3|50−8]
The matrices in (a), (d), and (e) satisfy the row-echelon criteria and, thus, are in row-echelon form. In (b) and (c), the first nonzero elements of the first and second rows, respectively, are not 1. In (f), the row consisting entirely of 0’s is not at the bottom of the matrix. Thus the matrices in (b), (c), and (f) are not in row-echelon form. In (d) and (e), not only are the row-echelon criteria met but each column that contains a leading 1 also has 0’s elsewhere, so these matrices are in reduced row-echelon form.
We have seen that with Gaussian elimination we perform row-equivalent operations on a matrix to obtain a row-equivalent matrix in row-echelon form. When we continue to apply these operations until we have a matrix in reduced row-echelon form, we are using Gauss–Jordan elimination. This method is named for Karl Friedrich Gauss and Wilhelm Jordan (1842–1899).
Use Gauss–Jordan elimination to solve the system of equations in Example 1.
Using Gaussian elimination in Example 1, we obtained the matrix
We continue to perform row-equivalent operations until we have a matrix in reduced row-echelon form. We multiply the third row by 10 and add it to the first row. We also multiply the third row by −8
Next, we multiply the second row by 2 and add it to the first row.
Writing the system of equations that corresponds to this matrix, we have
We can actually read the solution, (3,7,−12)
Now Try Exercise 27.
Solve the following system:
First, we write the augmented matrix and use Gauss–Jordan elimination.
We then multiply the second and third rows by 3 so that each number in the first column below the first number, 3, is a multiple of that number.
Next, we multiply the first row by −2
Now we add the second row to the third row.
We can stop at this stage because we have a row consisting entirely of 0’s. The last row of the matrix corresponds to the equation 0=0
This particular system has infinitely many solutions. (A system containing dependent equations could be inconsistent.)
Solving the second equation for y gives us
Substituting −z−3
Then the solutions of this system are of the form
where z can be any real number.
Now Try Exercise 33.
Similarly, if we obtain a row whose only nonzero entry occurs in the last column, we have an inconsistent system of equations. For example, in the matrix
the last row corresponds to the false equation 0=6
Determine the order of the matrix.
1.
[1−6−3205]
2.
[7−5−13]
3.
[2−409]
4.
[−8]
5.
[1−5−864−2−307]
9.
[132−64−1185−12]
Write the augmented matrix for the system of equations.
7.
2x−y=7,x+4y=−5
8.
3x+2y=8,2x−3y=15
9.
x−2y+3z=12,2x−4z=8,3y+z=7
10.
x+y−z=7,3y+2z=1,−2x−5y=6
Write the system of equations that corresponds to the augmented matrix.
11.
[3−514|1−2]
12.
[1241|−6−3]
13.
[21−43051−11|12−12]
14.
[−1−230412−10|629]
Solve the system of equations using Gaussian elimination or Gauss–Jordan elimination.
15.
4x+2y=11,3x-y=2
16.
2x+y=1,3x+2y=−2
17.
5x-2y=−3,2x+5y=−24
18.
2x+y=1,3x-6y=4
19.
3x+4y=7,−5x+2y=10
20.
5x-3y=−2,4x+2y=5
21.
3x+2y=6,2x-3y=−9
22.
x-4y=9,2x+5y=5
23.
x-3y=8,−2x+6y=3
24.
4x-8y=12,−x+2y=−3
25.
−2x+6y=4,3x-9y=−6
26.
6x+2y=−10,−3x-y=6
27.
x+2y-3z=9,2x-y+2z=−8,3x-y-4z=3
28.
x-y+2z=0,x-2y+3z=−1,2x-2y+z=−3
29.
4x-y-3z=1,8x+y-z=5,2x+y+2z=5
30. 3x+2y+2z=3,x+2y-z=5,2x-4y+z=0
31. x-2y+3z=−4,3x+y-z=0,2x+3y-5z=1
32. 2x-3y+2z=2,x+4y-z=9,−3x+y-5z=5
33. 2x-4y-3z=3,x+3y+z=−1,5x+y-2z=2
34. x+y-3z=4,4x+5y+z=1,2x+3y+7z=−7
35. p+q+r=1,p+2q+3r=4,4p+5q+6r=7
36. m+n+t=9,m-n-t=−15,3m+n+t=2
37. a+b-c=7,a-b+c=5,3a+b-c=−1
38. a-b+c=3,2a+b-3c=5,4a+b-c=11
39. −2w+2x+2y-2z=−10,w+x+y+z=−5,3w+x-y+4z=−2,w+3x-2y+2z=−6
40. −w+2x-3y+z=−8,−w+x+y-z=−4,w+x+y+z=22,−w+x-y-z=−14
Use Gaussian elimination or Gauss–Jordan elimination in Exercises 41–44.
41. Borrowing. Greenfield Manufacturing borrowed $30,000 to buy a new piece of equipment. Part of the money was borrowed at 8%, part at 10%, and part at 12%. The annual interest was $3040, and the total amount borrowed at 8% and at 10% was twice the amount borrowed at 12%. How much was borrowed at each rate?
42. Time of Return. The Patels pay their babysitter $11 per hour before 11 p.m. and $14.50 after 11 p.m. One evening, they went out for 6 hr and paid the sitter $73. What time did they return?
43. Stamp Purchase. For her business, Olivia spent $86.80 on both 49¢ and 21¢ stamps. She bought a total of 200 stamps. How many of each type did she buy?
44. Advertising Expense. eAuction.com spent a total of $11 million on advertising in fiscal years 2010, 2011, and 2012. The amount spent in 2012 was three times the amount spent in 2010. The amount spent in 2011 was $3 million less than the amount spent in 2012. How much was spent on advertising each year?
In Exercises 45–52, classify the function as linear, quadratic, cubic, quartic, rational, exponential, or logarithmic.
45. f(x)=3x−1 [5.2]
46. f(x)=3x−1 [1.3]
47. f(x)=3x-1x2+4 [4.5]
48. f(x)=−34x4+92x3+2x2-4 [4.1]
49. f(x)=ln(3x-1) [5.3]
50. f(x)=34x3-x [4.1]
51. f(x)=3 [1.3]
52. f(x)=2-x-x2 [3.2]
In Exercises 53 and 54, three solutions of the equation y=ax2+bx+c are given. Use a system of three equations in three variables and Gaussian elimination or Gauss–Jordan elimination to find the constants a, b, and c and write the equation.
53. (−3,12), (−1,−7), and (1,−2)
54. (−1,0), (1,−3), and (3,−22)
55. Find two different row-echelon forms of
56. Consider the system of equations
For what value(s) of k, if any, will the system have:
no solution?
exactly one solution?
infinitely many solutions?
Solve using matrices.
57. y=x+z,3y+5z=4,x+4=y+3z
58. x+y=2z,2x-5z=4,x-z=y+8
59. x-4y+2z=7,3x+y+3z=−5
60. x-y-3z=3,−x+3y+z=−7
61. 4x+5y=3,−2x+y=9,3x-2y=−15
62. 2x−3y=−1,−x+2y=−2,3x-5y=1
18.219.189.247