









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










In this section we will develop a systematic method for solving systems of linear equations. We’ll begin with a simple case, two equations in two unknowns:
ax + by = α cx + dy = β
Our objective is to solve this system of equations. This means that we want to find all pairs of numbers x, y that satisfy both equations simultaneously. As you probably know, there is a variety of ways to do this. We’ll illustrate an approach which we’ll extend to systems of m equations in n unknowns.
Example 1. Solve the system
3 x + 12y = 6 2 x − 3 y = − 7
SOLUTION We multiply the first equation by 1 / 3 (divide by 3). This results in the system
x + 4y = 2 2 x − 3 y = − 7
This system has the same solution set as the original system (multiplying an equation by a nonzero number produces an equivalent equation).
Next, we multiply the first equation by −2, add it to the second equation, and use the result as the second equation. This produces the system
x + 4y = 2 − 11 y = − 11
As we will show below, this system also has the same solution set as the original system.
Finally, we multiply the second equation by − 1 / 11 (divide by −11) to get
x + 4y = 2 y = 1 ,
and this system has the same solution set as the original. Notice the “triangular” form of our final system. The advantage of this system is that it is easy to solve. From the second equation, y = 1. Substituting y = 1 in the first equation gives
x + 4(1) = 2 which implies x = − 2.
The system has the unique solution x = − 2 , y = 1.
The basic idea is this: given a system of linear equations, perform a sequence of operations to produce a new system which has the same solution set as the given system, and which is easy to solve.
Two systems of equations are equivalent if they have the same solution set.
The Elementary Operations
In Example 1, we performed a sequence of operations on a system to produce an equivalent system which was easy to solve.
The operations that produce equivalent systems are called elementary operations. The elementary operations are
It is obvious that the first two operations preserve the solution set; that is, produce equivalent systems.
Using two equations in two unknowns, we’ll justify that the third operation also preserves the solution set. Exactly the same proof will work in the general case of m equations in n unknowns.
Given the system ax + by = α cx + dy = β.
(a)
Multiply the first equation by k and add the result to the second equation. Replace the second equation in the given system with this new equation. We then have
ax + by = α kax + cx + kby + dy = kα + β
which is the same as ax + by = α (ka + c)x + (kb + d)y = kα + β.
(b)
Suppose that (x 0 , y 0 ) is a solution of system (a). To show that (a) and (b) are equivalent, we need only show that (x 0 , y 0 ) satisfies the second equation in system (b):
(ka + c)x 0 + (kb + d)y 0 = kax 0 + cx 0 + kby 0 + dy 0 = kax 0 + kby 0 + cx 0 + dy 0 = k(ax 0 + by 0 ) + (cx 0 + dy 0 ) = kα + β.
Thus, (x 0 , y 0 ) is a solution of (b).
Now suppose that (x 0 , y 0 ) is a solution of system (b). In this case, we only need to show that
Note the “strategy:” use the first equation to eliminate x from the second and third equations. Then use the (new) second equation to eliminate y from the third equation. This results in an equivalent system in which the third equation is easily solved for z. Putting that value in the second equation gives y, substituting the values for y and z in the first equation gives x.
We continue with examples that illustrate the solution method as well as the other two possibil- ities for solution sets: no solution, infinitely many solutions.
Example 3. Solve the system
3 x − 4 y − z = 3 2 x − 3 y + z = 1 x − 2 y + 3z = 2
3 x − 4 y − z = 3 2 x − 3 y + z = 1 x − 2 y + 3z = 2
1 ↔E 3
x − 2 y + 3z = 2 2 x − 3 y + z = 1 3 x − 4 y − z = 3
Having x with coefficient 1 in the first equation makes it much easier to eliminate x from the remaining equations; we want to avoid fractions as long as we can in order to keep the calculations as simple as possible. This is the value of the “interchange” operation.
x − 2 y + 3z = 2 2 x − 3 y + z = 1 3 x − 4 y − z = 3
(−2)E 1 +E 2 →E 2 ,(−3)E 1 +E 3 →E 3
x − 2 y + 3z = 2 y − 5 z = − 3 2 y − 10 z = − 3
2 +E 3 →E 3
x − 2 y + 3z = 2 y − 5 z = − 3 0 z = 3
Clearly, the third equation in this system has no solution. Therefore the system has no solution. Since this system is equivalent to the original system, the original system has no solution.
Example 4. Solve the system
x + y − 3 z = 1 2 x + y − 4 z = 0 − 3 x + 2y − z = 7
x + y − 3 z = 1 2 x + y − 4 z = 0 − 3 x + 2y − z = 7
(−2)E 1 +E 2 →E 2 , 3 E 1 +E 3 →E 3
x + y − 3 z = 1 −y + 2z = − 2 5 y − 10 z = 10
(−1)E 2 →E 2
x + y − 3 z = 1 y − 2 z = 2 5 y − 10 z = 10
(−5)E 2 +E 3 →E 3
x + y − 3 z = 1 y − 2 z = 2 0 z = 0
Since every real number satisfies the third equation, the system has infinitely many solutions. Set z = a, a any real number. Then, from the second equation, we get y = 2 + 2a and, from the first equation, x = 1 − y + 3a = 1 − (2 + 2a) + 3a = −1 + a. Thus, the solution set is:
x = −1 + a, y = 2 + 2a, z = a, a any real number.
If we regard a as a parameter, then we can say that the system has a one-parameter family of solutions.
In our examples thus far our systems have been “square”– the number of unknowns equals the number of equations. As we’ll see, this is the most interesting case. However having the number of equations equal the number of unknowns is certainly not a requirement; the same method can be used on a system of m linear equations in n unknowns.
Example 5. Solve the system
x 1 − 2 x 2 + x 3 − x 4 = − 2 − 2 x 1 + 5x 2 − x 3 + 4x 4 = 1 3 x 1 − 7 x 2 + 4x 3 − 4 x 4 = − 4
Note: We typically use subscript notation when the number of unknowns is greater than 3.
SOLUTION
x 1 − 2 x 2 + x 3 − x 4 = − 2 − 2 x 1 + 5x 2 − x 3 + 4x 4 = 1 3 x 1 − 7 x 2 + 4x 3 − 4 x 4 = − 4
E 1 +2E 2 →E 2 , (−3)E 1 +E 3 →E 3
x 1 − 2 x 2 + x 3 − x 4 = − 2 x 2 + x 3 + 2x 4 = − 3 −x 2 + x 3 − x 4 = 2
2 +E 3 →E 3
x 1 − 2 x 2 + x 3 − x 4 = − 2 x 2 + x 3 + 2x 4 = − 3 2 x 3 + x 4 = − 1
(1/2)E 3 →E 3
x 1 − 2 x 2 + x 3 − x 4 = − 2 x 2 + x 3 + 2x 4 = − 3 x 3 + 12 x 4 = − (^12)
This system has infinitely many solutions: set x 4 = a, a any real number. Then, from the third equation, x 3 = − 12 − 12 a. Substituting into the second equation, we’ll get x 2 , and then substituting into the first equation we’ll get x 1. The resulting solution set is:
x 1 = − 132 − 32 a, x 2 = − 52 − 32 a, x 3 = − 12 − 12 a, x 4 = a, a any real number.
This system has a one-parameter family of solutions.
Some terminology A system of linear equations is said to be consistent if it has at least one solution; that is, a system is consistent if it has either a unique solution of infinitely many solutions. A system that has no solutions is inconsistent.
The final augmented matrix corresponds to the system
x + 2y − 5 z = − 1 y − 2 z = 1 z = − 1
from which we can obtain the solutions x = − 4 , y = − 1 , z = − 1 as we did before.
It’s time to look at systems of linear equations in general.
A system of m linear equations in n unknowns has the form a 11 x 1 + a 12 x 2 + a 13 x 3 + · · · + a 1 nxn = b 1 a 21 x 1 + a 22 x 2 + a 23 x 3 + · · · + a 2 nxn = b 2 a 31 x 1 + a 32 x 2 + a 33 x 3 + · · · + a 3 nxn = b 3 ......................................................... am 1 x 1 + am 2 x 2 + am 3 x 3 + · · · + amnxn = bm
The augmented matrix for the system is the m × (n + 1) matrix
a 11 a 12 a 13 · · · a 1 n b 1 a 21 a 22 a 23 · · · a 2 n b 2 a 31 a 32 a 33 · · · a 3 n b 3 .. .
am 1 am 2 am 3 · · · amn bm
The m × n matrix whose entries are the coefficients of the unknowns
a 11 a 12 a 13 · · · a 1 n a 21 a 22 a 23 · · · a 2 n a 31 a 32 a 33 · · · a 3 n .. .
am 1 am 2 am 3 · · · amn
is called the matrix of coefficients.
Example 6. Given the system of equations
x 1 + 2x 2 − 3 x 3 − 4 x 4 = 2 2 x 1 + 4x 2 − 53 − 7 x 4 = 7 − 3 x 1 − 6 x 2 + 11x 3 + 14x 4 = 0
The augmented matrix for the system is the 3 × 5 matrix
and the matrix of coefficients is the 3 × 4 matrix
Example 7. The matrix (^)
is the augmented matrix of a system of linear equations. What is the system?
SOLUTION The system of equations is
2 x − 3 y + z = 6 5 y − 2 z = − 1 − 3 x + 4z = 10 7 x + 2y − 2 z = 3
In the method of Gaussian elimination we use the elementary operations to reduce the system to an equivalent system in triangular form. The elementary operations on the equations can be viewed as operations on the rows of the augmented matrix. Rather than using the elementary operations on the equations, we’ll use corresponding operations on the rows of the augmented matrix. The elementary row operations on a matrix are:
Obviously these correspond exactly to the elementary operations on equations. We’ll use the following notation to denote the row operations:
Ri → Ri means “multiply row (i) by the nonzero number k.
Ri ↔ Rj means “interchange rows i and j.
kRi + Rj → Rj means “multiply row (i) by k and add the result to row (j).
Now we’ll re-do Examples 3 and 4 using elementary row operations on the augmented matrix.
Example 8. (Example 3) Solve the system
3 x − 4 y − z = 3 2 x − 3 y + z = 1 x − 2 y + 3z = 2
The last augmented matrix represents the system of equations x + y − 3 z = 1 0 x + y − 2 z = 2 0 x + 0y + 0z = 0
As we saw in Example 4, this system has infinitely many solutions given by:
x = −1 + a, y = 2 + 2a, z = a, a any real number.
Example 10. Solve the system of equations
x 1 − 3 x 2 + 2x 3 − x 4 + 2x 5 = 2 3 x 1 − 9 x 2 + 7x 3 − x 4 + 3x 5 = 7 2 x 1 − 6 x 2 + 7x 3 + 4x 4 − 5 x 5 = 7
SOLUTION The augmented matrix is
Perform elementary row operations to reduce this matrix to triangular form:
(−3)R 1 +R 2 →R 2 , − 2 R 1 +R 3 →R 3
(−3)R 2 +R 3 →R 3
The system of equations corresponding to this augmented matrix is: x 1 − 3 x 2 + 2x 3 − x 4 + 2x 5 = 2 0 x 1 + 0x 2 + x 3 + 2x 4 − 3 x 5 = 1 0 x 1 + 0x 2 + 0x 3 + 0x 4 + 0x 5 = 0.
Since all values of the unknowns satisfy the third equation, the system can be written equivalently as
x 1 − 3 x 2 + 2x 3 − x 4 + 2x 5 = 2 x 3 + 2x 4 − 3 x 5 = 1
From the second equation, x 3 = 1 − 2 x 4 + 3x 5. Substituting into the first equation, we get x 1 = 2 + 3x 2 − 2 x 3 + x 4 − 2 x 5 = 3x 2 + 5x 4 − 8 x 5. If we set x 2 = a, x 4 = b, x 5 = c. Then the solution set can be written as
x 1 = 3a + 5b − 8 c, x 2 = a, x 3 = 1 − 2 b + 3c, x 4 = b, x 5 = c, a, b, c arbitrary real numbers
The system has a three-parameter family of solutions.
Row Echelon Form and Rank The Gaussian elimination procedure applied to the augmented matrix of a system of linear equations consists of row operations on the matrix which convert it to a “triangular” form. Look at the examples above. This “triangular” form is called the row-echelon form of the matrix. A matrix is in row-echelon form if
NOTE: Because the leading 1’s in the row echelon form of a matrix move to the right as you move down the matrix, the number of leading 1’s cannot exceed the number of columns in the matrix. To put this another way, the number of nonzero rows in the row echelon form of a matrix is always less than or equal the number of columns in the matrix.
Stated in simple terms, the procedure for solving a system of m linear equations in n unknowns is:
It should be clear from the examples we’ve worked that it is the nonzero rows in the row-echelon form of the augmented matrix that determine the solution set of the system of equations. The zero rows, if any, represent redundant equations in the original system; the nonzero rows represent the “independent” equations in the system.
If an m × n matrix A is reduced to row echelon form, then the number of non-zero rows in its row echelon form is called the rank of A. It is obvious that the rank of a matrix is less than or equal to the number of rows in the matrix. Also, as we noted above, the number of nonzero rows in the row echelon form is always less than or equal to the number of columns. Therefore the rank of a matrix is also less than or equal to the number of columns in the matrix.
The last nonzero row of the augmented matrix usually determines the nature of the solution set of the system.
Case 1: If the last nonzero row has the form (0 0 0 · · · 0 | b), b 6 = 0,
then the row corresponds to the equation 0 x 1 + 0x 2 + 0x 3 + · · · + 0xn = b, b 6 = 0
Solve the following systems of equations.
x − 2 y = − 8 2 x − 3 y = − 11
x + z = 3 2 y − 2 z = − 4 y − 2 z = 5
x + 2y − 3 z = 1 2 x + 5y − 8 z = 4 3 x + 8y − 13 z = 7
x + y + z = 6 x + 2y + 4z = 9 2 x + y + 6z = 11
x + 2y − 2 z = − 1 3 x − y + 2z = 7 5 x + 3y − 4 z = 2
−x + y − z = − 2 3 x + y + z = 10 4 x + 2y + 3z = 14
x 1 + 2x 2 − 3 x 3 − 4 x 4 = 2 2 x 1 + 4x 2 − 5 x 3 − 7 x 4 = 7 − 3 x 1 − 6 x 2 + 11x 3 + 14x 4 = 0
3 x 1 + 6x 2 − 3 x 4 = 3 x 1 + 3x 2 − x 3 − 4 x 4 = − 12 x 1 − x 2 + x 3 + 2x 4 = 8 2 x 1 + 3x 2 = 8
x 1 + 2x 2 + 2x 3 + 5x 4 = 11 2 x 1 + 4x 2 + 2x 3 + 8x 4 = 14 x 1 + 3x 2 + 4x 3 + 8x 4 = 19 x 1 − x 2 + x 3 = 2
x 1 + 2x 2 − 3 x 3 + 4x 4 = 2 2 x 1 + 5x 2 − 2 x 3 + x 4 = 1 5 x 1 + 12x 2 − 7 x 3 + 6x 4 = 7
x 1 + 2x 2 − x 3 − x 4 = 0 x 1 + 2x 2 + x 4 = 4 −x 1 − 2 x 2 + 2x 3 + 4x 4 = 5
2 x 1 − 4 x 2 + 16x 3 − 14 x 4 = 10 −x 1 + 5x 2 − 17 x 3 + 19x 4 = − 2 x 1 − 3 x 2 + 11x 3 − 11 x 4 = 4 3 x 1 − 4 x 2 + 18x 3 − 13 x 4 = 17
x 1 − x 2 + 2x 3 = 7 2 x 1 − 2 x 2 + 2x 3 − 4 x 4 = 12 −x 1 + x 2 − x 3 + 2x 4 = − 4 − 3 x 1 + x 2 − 8 x 3 − 10 x 4 = − 29
2 x 1 − 5 x 2 + 3x 3 − 4 x 4 + 2x 5 = 4 3 x 1 − 7 x 2 + 2x 3 − 5 x 4 + 4x 5 = 9 5 x 1 − 10 x 2 − 5 x 3 − 4 x 4 + 7x 5 = 22
x + y − z = 1 2 x + 3y + kz = 3 x + ky + 3z = 2
x + 2y − 3 z = a 2 x + 6y − 11 z = b x − 2 y + 7z = c
has at least one solution.
(a) Is it possible for (A | b 1 ) to have a unique solution and (A | b 2 ) to have infinitely many solutions? Explain. (b) Is it possible for (A | b 1 ) to have a unique solution and (A | b 2 ) to have no solution? Explain. (c) Is it possible for (A | b 1 ) to have infinitely many solutions and (A | b 2 ) to have no solutions? Explain.