




























































































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!





























































































Systems of linear equations are common in science and mathematics. These two examples from high school science [Onan] give a sense of how they arise. The first example is from Statics. Suppose that we have three objects, we know that one has a mass of 2 kg, and we want to find the two unknown masses. Experimentation with a meter stick produces these two balances.
h c^2 15
40 50 c (^2) h
25 50
25
For the masses to balance we must have that the sum of moments on the left equals the sum of moments on the right, where the moment of an object is its mass times its distance from the balance point. That gives a system of two linear equations.
40h + 15c = 100 25c = 50 + 50h
The second example is from Chemistry. We can mix, under controlled conditions, toluene C 7 H 8 and nitric acid HNO 3 to produce trinitrotoluene C 7 H 5 O 6 N 3 along with the byproduct water (conditions have to be very well controlled — trinitrotoluene is better known as TNT). In what proportion should we mix them? The number of atoms of each element present before the reaction
x C 7 H 8 + y HNO 3 −→ z C 7 H 5 O 6 N 3 + w H 2 O
2 Chapter One. Linear Systems
must equal the number present afterward. Applying that in turn to the elements C, H, N, and O gives this system.
7x = 7z 8x + 1y = 5z + 2w 1y = 3z 3y = 6z + 1w
Both examples come down to solving a system of equations. In each system, the equations involve only the first power of each variable. This chapter shows how to solve any such system of equations.
1.1 Definition A linear combination of x 1 ,... , xn has the form
a 1 x 1 + a 2 x 2 + a 3 x 3 + · · · + anxn
where the numbers a 1 ,... , an ∈ R are the combination’s coefficients. A linear equation in the variables x 1 ,... , xn has the form a 1 x 1 + a 2 x 2 + a 3 x 3 + · · · + anxn = d where d ∈ R is the constant. An n-tuple (s 1 , s 2 ,... , sn) ∈ Rn^ is a solution of, or satisfies, that equation if substituting the numbers s 1 ,... , sn for the variables gives a true statement: a 1 s 1 + a 2 s 2 + · · · + ansn = d. A system of linear equations
a1,1x 1 + a1,2x 2 + · · · + a1,nxn = d 1 a2,1x 1 + a2,2x 2 + · · · + a2,nxn = d 2 .. . am,1x 1 + am,2x 2 + · · · + am,nxn = dm
has the solution (s 1 , s 2 ,... , sn) if that n-tuple is a solution of all of the equations.
1.2 Example The combination 3x 1 + 2x 2 of x 1 and x 2 is linear. The combination 3x^21 + 2x 2 is not a linear function of x 1 and x 2 , nor is 3x 1 + 2 sin(x 2 ).
We usually take x 1 ,... , xn to be unequal to each other because in a sum with repeats we can rearrange to make the elements unique, as with 2x + 3y + 4x = 6x + 3y. We sometimes include terms with a zero coefficient, as in x − 2y + 0z, and at other times omit them, depending on what is convenient.
4 Chapter One. Linear Systems
1.5 Theorem (Gauss’s Method) If a linear system is changed to another by one of these operations
(1) an equation is swapped with another (2) an equation has both sides multiplied by a nonzero constant (3) an equation is replaced by the sum of itself and a multiple of another
then the two systems have the same set of solutions.
Each of the three operations has a restriction. Multiplying a row by 0 is not allowed because obviously that can change the solution set. Similarly, adding a multiple of a row to itself is not allowed because adding − 1 times the row to itself has the effect of multiplying the row by 0. And we disallow swapping a row with itself, to make some results in the fourth chapter easier. Besides, it’s pointless.
Proof We will cover the equation swap operation here. The other two cases are similar and are Exercise 33. Consider a linear system.
a1,1x 1 + a1,2x 2 + · · · + a1,nxn = d 1 .. . ai,1x 1 + ai,2x 2 + · · · + ai,nxn = di .. . aj,1x 1 + aj,2x 2 + · · · + aj,nxn = dj .. . am,1x 1 + am,2x 2 + · · · + am,nxn = dm
The tuple (s 1 ,... , sn) satisfies this system if and only if substituting the values for the variables, the s’s for the x’s, gives a conjunction of true statements: a1,1s 1 +a1,2s 2 +· · ·+a1,nsn = d 1 and... ai,1s 1 +ai,2s 2 +· · ·+ai,nsn = di and
... aj,1s 1 + aj,2s 2 + · · · + aj,nsn = dj and... am,1s 1 + am,2s 2 + · · · + am,nsn = dm. In a list of statements joined with ‘and’ we can rearrange the order of the statements. Thus this requirement is met if and only if a1,1s 1 + a1,2s 2 + · · · + a1,nsn = d 1 and... aj,1s 1 + aj,2s 2 + · · · + aj,nsn = dj and... ai,1s 1 + ai,2s 2 + · · · + ai,nsn = di and... am,1s 1 + am,2s 2 + · · · + am,nsn = dm. This is exactly the requirement that (s 1 ,... , sn) solves the system after the row swap. QED
Section I. Solving Linear Systems 5
1.6 Definition The three operations from Theorem 1.5 are the elementary re- duction operations, or row operations, or Gaussian operations. They are swapping, multiplying by a scalar (or rescaling), and row combination.
When writing out the calculations, we will abbreviate ‘row i’ by ‘ρi’. For instance, we will denote a row combination operation by kρi + ρj, with the row that changes written second. To save writing we will often combine addition steps when they use the same ρi, as in the next example.
1.7 Example Gauss’s Method systematically applies the row operations to solve a system. Here is a typical case.
x + y = 0 2x − y + 3z = 3 x − 2y − z = 3
We begin by using the first row to eliminate the 2x in the second row and the x in the third. To get rid of the 2x we mentally multiply the entire first row by − 2 , add that to the second row, and write the result in as the new second row. To eliminate the x in the third row we multiply the first row by − 1 , add that to the third row, and write the result in as the new third row.
−2ρ 1 +ρ 2 −ρ^ −→ 1 +ρ 3
x + y = 0 −3y + 3z = 3 −3y − z = 3
We finish by transforming the second system into a third, where the bottom equation involves only one unknown. We do that by using the second row to eliminate the y term from the third row.
−ρ 2 +ρ 3 −→
x + y = 0 −3y + 3z = 3 −4z = 0
Now finding the system’s solution is easy. The third row gives z = 0. Substitute that back into the second row to get y = − 1. Then substitute back into the first row to get x = 1.
1.8 Example For the Physics problem from the start of this chapter, Gauss’s Method gives this.
40h + 15c = 100 −50h + 25c = 50
5/4ρ −→ 1 + ρ 2 40h + 15c = 100 (175/4)c = 175
So c = 4 , and back-substitution gives that h = 1. (We will solve the Chemistry problem later.)
Section I. Solving Linear Systems 7
Strictly speaking, to solve linear systems we don’t need the row rescaling operation. We have introduced it here because it is convenient and because we will use it later in this chapter as part of a variation of Gauss’s Method, the Gauss-Jordan Method. All of the systems so far have the same number of equations as unknowns. All of them have a solution and for all of them there is only one solution. We finish this subsection by seeing other things that can happen.
1.12 Example This system has more equations than variables.
x + 3y = 1 2x + y = − 3 2x + 2y = − 2
Gauss’s Method helps us understand this system also, since this
−2ρ −→ 1 +ρ 2 −2ρ 1 +ρ 3
x + 3y = 1 −5y = − 5 −4y = − 4
shows that one of the equations is redundant. Echelon form
−(4/5 −→)ρ 2 +ρ 3
x + 3y = 1 −5y = − 5 0 = 0
gives that y = 1 and x = − 2. The ‘ 0 = 0 ’ reflects the redundancy.
Gauss’s Method is also useful on systems with more variables than equations. The next subsection has many examples. Another way that linear systems can differ from the examples shown above is that some linear systems do not have a unique solution. This can happen in two ways. The first is that a system can fail to have any solution at all.
1.13 Example Contrast the system in the last example with this one.
x + 3y = 1 2x + y = − 3 2x + 2y = 0
−2ρ −→ 1 +ρ 2 −2ρ 1 +ρ 3
x + 3y = 1 −5y = − 5 −4y = − 2
Here the system is inconsistent: no pair of numbers (s 1 , s 2 ) satisfies all three equations simultaneously. Echelon form makes the inconsistency obvious.
−(4/5)ρ 2 +ρ 3 −→
x + 3y = 1 −5y = − 5 0 = 2
The solution set is empty.
8 Chapter One. Linear Systems
1.14 Example The prior system has more equations than unknowns but that is not what causes the inconsistency — Example 1.12 has more equations than unknowns and yet is consistent. Nor is having more equations than unknowns necessary for inconsistency, as we see with this inconsistent system that has the same number of equations as unknowns.
x + 2y = 8 2x + 4y = 8
−2ρ −→ 1 +ρ 2 x + 2y = 8 0 = − 8
Instead, inconsistency has to do with the interaction of the left and right sides; in the first system above the left side’s second equation is twice the first but the right side’s second constant is not twice the first. Later we will have more to say about dependencies between a system’s parts.
The other way that a linear system can fail to have a unique solution, besides having no solutions, is to have many solutions.
1.15 Example In this system
x + y = 4 2x + 2y = 8
any pair of numbers satisfying the first equation also satisfies the second. The solution set {(x, y) | x + y = 4 } is infinite; some example member pairs are (0, 4), (−1, 5), and (2.5, 1.5). The result of applying Gauss’s Method here contrasts with the prior example because we do not get a contradictory equation.
−2ρ 1 +ρ 2 −→
x + y = 4 0 = 0
Don’t be fooled by that example: a 0 = 0 equation is not the signal that a system has many solutions.
1.16 Example The absence of a 0 = 0 equation does not keep a system from having many different solutions. This system is in echelon form, has no 0 = 0 , but has infinitely many solutions, including (0, 1, − 1 ), (0, 1/2, −1/2), (0, 0, 0), and (0, −π, π) (any triple whose first component is 0 and whose second component is the negative of the third is a solution).
x + y + z = 0 y + z = 0
Nor does the presence of 0 = 0 mean that the system must have many solutions. Example 1.12 shows that. So does this system, which does not have
10 Chapter One. Linear Systems
X 1.19 Use Gauss’s Method to solve each system or conclude ‘many solutions’ or ‘no solutions’. (a) 2x + 2y = 5 x − 4y = 0
(b) −x + y = 1 x + y = 2
(c) x − 3y + z = 1 x + y + 2z = 14
(d) −x − y = 1 −3x − 3y = 2 (e) 4y + z = 20 2x − 2y + z = 0 x + z = 5 x + y − z = 10
(f) 2x + z + w = 5 y − w = − 1 3x − z − w = 0 4x + y + 2z + w = 9 1.20 Solve each system or conclude ‘many solutions’ or ‘no solutions’. Use Gauss’s Method. (a) x + y + z = 5 x − y = 0 y + 2z = 7
(b) 3x + z = 7 x − y + 3z = 4 x + 2y − 5z = − 1
(c) x + 3y + z = 0 −x − y = 2 −x + y + 2z = 8 X 1.21 We can solve linear systems by methods other than Gauss’s. One often taught in high school is to solve one of the equations for a variable, then substitute the resulting expression into other equations. Then we repeat that step until there is an equation with only one variable. From that we get the first number in the solution and then we get the rest with back-substitution. This method takes longer than Gauss’s Method, since it involves more arithmetic operations, and is also more likely to lead to errors. To illustrate how it can lead to wrong conclusions, we will use the system x + 3y = 1 2x + y = − 3 2x + 2y = 0 from Example 1.13. (a) Solve the first equation for x and substitute that expression into the second equation. Find the resulting y. (b) Again solve the first equation for x, but this time substitute that expression into the third equation. Find this y. What extra step must a user of this method take to avoid erroneously concluding a system has a solution?
X 1.22 For which values of k are there no solutions, many solutions, or a unique solution to this system? x − y = 1 3x − 3y = k 1.23 This system is not linear in that it says sin α instead of α 2 sin α − cos β + 3 tan γ = 3 4 sin α + 2 cos β − 2 tan γ = 10 6 sin α − 3 cos β + tan γ = 9 and yet we can apply Gauss’s Method. Do so. Does the system have a solution?
X 1.24 What conditions must the constants, the b’s, satisfy so that each of these systems has a solution? Hint. Apply Gauss’s Method and see what happens to the right side.
Section I. Solving Linear Systems 11
(a) x − 3y = b 1 3x + y = b 2 x + 7y = b 3 2x + 4y = b 4
(b) x 1 + 2x 2 + 3x 3 = b 1 2x 1 + 5x 2 + 3x 3 = b 2 x 1 + 8x 3 = b 3
1.25 True or false: a system with more unknowns than equations has at least one solution. (As always, to say ‘true’ you must prove it, while to say ‘false’ you must produce a counterexample.) 1.26 Must any Chemistry problem like the one that starts this subsection — a balance the reaction problem — have infinitely many solutions? X 1.27 Find the coefficients a, b, and c so that the graph of f(x) = ax^2 + bx + c passes through the points (1, 2), (−1, 6), and (2, 3). 1.28 After Theorem 1.5 we note that multiplying a row by 0 is not allowed because that could change a solution set. Give an example of a system with solution set S 0 where after multiplying a row by 0 the new system has a solution set S 1 and S 0 is a proper subset of S 1 , that is, S 0 6 = S 1. Give an example where S 0 = S 1. 1.29 Gauss’s Method works by combining the equations in a system to make new equations. (a) Can we derive the equation 3x − 2y = 5 by a sequence of Gaussian reduction steps from the equations in this system? x + y = 1 4x − y = 6 (b) Can we derive the equation 5x − 3y = 2 with a sequence of Gaussian reduction steps from the equations in this system? 2x + 2y = 5 3x + y = 4 (c) Can we derive 6x − 9y + 5z = − 2 by a sequence of Gaussian reduction steps from the equations in the system? 2x + y − z = 4 6x − 3y + z = 5 1.30 Prove that, where a, b, c, d, e are real numbers with a 6 = 0 , if this linear equation ax + by = c has the same solution set as this one ax + dy = e then they are the same equation. What if a = 0? 1.31 Show that if ad − bc 6 = 0 then ax + by = j cx + dy = k has a unique solution. X 1.32 In the system ax + by = c dx + ey = f each of the equations describes a line in the xy-plane. By geometrical reasoning, show that there are three possibilities: there is a unique solution, there is no solution, and there are infinitely many solutions.
Section I. Solving Linear Systems 13
A linear system with a unique solution has a solution set with one element. A linear system with no solution has a solution set that is empty. In these cases the solution set is easy to describe. Solution sets are a challenge to describe only when they contain many elements.
2.1 Example This system has many solutions because in echelon form
2x + z = 3 x − y − z = 1 3x − y = 4
−(1/2 −→)ρ 1 +ρ 2 −(3/2)ρ 1 +ρ 3
2x + z = 3 −y − (3/2)z = −1/ −y − (3/2)z = −1/
−ρ 2 +ρ 3 −→
2x + z = 3 −y − (3/2)z = −1/ 0 = 0
not all of the variables are leading variables. Theorem 1.5 shows that an (x, y, z) satisfies the first system if and only if it satisfies the third. So we can describe the solution set {(x, y, z) | 2x + z = 3 and x − y − z = 1 and 3x − y = 4 } in this way.
{(x, y, z) | 2x + z = 3 and −y − 3z/2 = −1/2} (∗)
This description is better because it has two equations instead of three but it is not optimal because it still has some hard to understand interactions among the variables.
To improve it, use the variable that does not lead any equation, z, to describe the variables that do lead, x and y. The second equation gives y = (1/2)−(3/2)z and the first equation gives x = (3/2)−(1/2)z. Thus we can describe the solution set as this set of triples.
{((3/2) − (1/2)z, (1/2) − (3/2)z, z) | z ∈ R} (∗∗)
Compared with (∗), the advantage of (∗∗) is that z can be any real number. This makes the job of deciding which tuples are in the solution set much easier. For instance, taking z = 2 shows that (1/2, −5/2, 2) is a solution.
2.2 Definition In an echelon form linear system the variables that are not leading are free.
2.3 Example Reduction of a linear system can end with more than one variable
14 Chapter One. Linear Systems
free. Gauss’s Method on this system
x + y + z − w = 1 y − z + w = − 1 3x + 6z − 6w = 6 −y + z − w = 1
−3ρ 1 +ρ 3 −→
x + y + z − w = 1 y − z + w = − 1 −3y + 3z − 3w = 3 −y + z − w = 1
3ρ 2 +ρ 3 ρ^ −→ 2 +ρ 4
x + y + z − w = 1 y − z + w = − 1 0 = 0 0 = 0
leaves x and y leading and both z and w free. To get the description that we prefer, we work from the bottom. We first express the leading variable y in terms of z and w, as y = − 1 + z − w. Moving up to the top equation, substituting for y gives x + (− 1 + z − w) + z − w = 1 and solving for x leaves x = 2 − 2z + 2w. The solution set
{( 2 − 2z + 2w, − 1 + z − w, z, w) | z, w ∈ R} (∗∗)
has the leading variables expressed in terms of the variables that are free.
2.4 Example The list of leading variables may skip over some columns. After this reduction
2x − 2y = 0 z + 3w = 2 3x − 3y = 0 x − y + 2z + 6w = 4
−(3/2 −→)ρ 1 +ρ 3 −(1/2)ρ 1 +ρ 4
2x − 2y = 0 z + 3w = 2 0 = 0 2z + 6w = 4
−2ρ −→ 2 +ρ 4
2x − 2y = 0 z + 3w = 2 0 = 0 0 = 0
x and z are the leading variables, not x and y. The free variables are y and w and so we can describe the solution set as {(y, y, 2 − 3w, w) | y, w ∈ R}. For instance, (1, 1, 2, 0) satisfies the system — take y = 1 and w = 0. The four-tuple (1, 0, 5, 4) is not a solution since its first coordinate does not equal its second.
A variable that we use to describe a family of solutions is a parameter. We say that the solution set in the prior example is parametrized with y and w. The terms ‘parameter’ and ‘free variable’ do not mean the same thing. In the prior example y and w are free because in the echelon form system they do not lead. They are parameters because we used them to describe the set of solutions. Had we instead rewritten the second equation as w = 2/3 − (1/3)z then the free variables would still be y and w but the parameters would be y and z.
16 Chapter One. Linear Systems
above. We like matrix notation because it lightens the clerical load, the copying of variables and the writing of +’s and =’s.
2.7 Example We can abbreviate this linear system
x + 2y = 4 y − z = 0 x + 2z = 4
with this matrix. (^)
The vertical bar reminds a reader of the difference between the coefficients on the system’s left hand side and the constants on the right. With a bar, this is an augmented matrix.
−ρ 1 +ρ 3 −→
2ρ 2 +ρ 3 −→
The second row stands for y − z = 0 and the first row stands for x + 2y = 4 so the solution set is {( 4 − 2z, z, z) | z ∈ R}.
Matrix notation also clarifies the descriptions of solution sets. Example 2.3’s {( 2 − 2z + 2w, − 1 + z − w, z, w) | z, w ∈ R} is hard to read. We will rewrite it to group all of the constants together, all of the coefficients of z together, and all of the coefficients of w together. We write them vertically, in one-column matrices.
· z +
· w | z, w ∈ R}
For instance, the top line says that x = 2 − 2z + 2w and the second line says that y = − 1 + z − w. (Our next section gives a geometric interpretation that will help us picture the solution sets.)
2.8 Definition A column vector, often just called a vector, is a matrix with a single column. A matrix with a single row is a row vector. The entries of a vector are sometimes called components. A column or row vector whose components are all zeros is a zero vector.
Vectors are an exception to the convention of representing matrices with capital roman letters. We use lower-case roman or greek letters overlined with an
Section I. Solving Linear Systems 17
arrow: a~, ~b,... or ~α, ~β,... (boldface is also common: a or α). For instance, this is a column vector with a third component of 7.
~v =
A zero vector is denoted ~ 0. There are many different zero vectors — the one-tall zero vector, the two-tall zero vector, etc. — but nonetheless we will often say “the” zero vector, expecting that the size will be clear from the context.
2.9 Definition The linear equation a 1 x 1 + a 2 x 2 + · · · + anxn = d with unknowns x 1 ,... , xn is satisfied by
~s =
s 1 .. . sn
if a 1 s 1 + a 2 s 2 + · · · + ansn = d. A vector satisfies a linear system if it satisfies each equation in the system.
The style of description of solution sets that we use involves adding the vectors, and also multiplying them by real numbers. Before we give the examples showing the style we first need to define these operations.
2.10 Definition The vector sum of ~u and ~v is the vector of the sums.
~u + ~v =
u 1 .. . un
v 1 .. . vn
u 1 + v 1 .. . un + vn
Note that for the addition to be defined the vectors must have the same number of entries. This entry-by-entry addition works for any pair of matrices, not just vectors, provided that they have the same number of rows and columns.
2.11 Definition The scalar multiplication of the real number r and the vector ~v is the vector of the multiples.
r · ~v = r ·
v 1 .. . vn
rv 1 .. . rvn
As with the addition operation, the entry-by-entry scalar multiplication operation extends beyond vectors to apply to any matrix.
Section I. Solving Linear Systems 19
both w and u to zero gives that
x y z w u
is a particular solution of the linear system.
2.14 Example In the same way, the system
x − y + z = 1 3x + z = 3 5x − 2y + 3z = 5
reduces
−3ρ 1 +ρ 2 −5ρ^ −→ 1 +ρ 3
−ρ 2 +ρ 3 −→
to give a one-parameter solution set.
z | z ∈ R}
As in the prior example, the vector not associated with the parameter
is a particular solution of the system.
Before the exercises, we will consider what we have accomplished and what we will do in the remainder of the chapter. So far we have done the mechanics of Gauss’s Method. We have not stopped to consider any of the questions that arise, except for proving Theorem 1.5 — which justifies the method by showing that it gives the right answers. For example, can we always describe solution sets as above, with a particular solution vector added to an unrestricted linear combination of some other vectors?
20 Chapter One. Linear Systems
We’ve noted that the solution sets described in this way have infinitely many members so answering this question would tell us about the size of solution sets. The following subsection shows that the answer is “yes.” This chapter’s second section then uses that answer to describe the geometry of solution sets. Other questions arise from the observation that we can do Gauss’s Method in more than one way (for instance, when swapping rows we may have a choice of rows to swap with). Theorem 1.5 says that we must get the same solution set no matter how we proceed but if we do Gauss’s Method in two ways must we get the same number of free variables in each echelon form system? Must those be the same variables, that is, is it impossible to solve a problem one way to get y and w free and solve it another way to get y and z free? The third section of this chapter answers “yes,” that from any starting linear system, all derived echelon form versions have the same free variables. Thus, by the end of the chapter we will not only have a solid grounding in the practice of Gauss’s Method but we will also have a solid grounding in the theory. We will know exactly what can and cannot happen in a reduction.
Exercises X 2.15 Find the indicated entry of the matrix, if it is defined. A =
( 1 3 1 2 − 1 4
)
(a) a2,1 (b) a1,2 (c) a2,2 (d) a3, X 2.16 Give the size of each matrix.
(a)
( 1 0 4 2 1 5
) (b)
1 1 − 1 1 3 − 1
(^) (c)
( 5 10 10 5
)
X 2.17 Do the indicated vector operation, if it is defined.
(a)
2 1 1
(^) +
3 0 4
(^) (b) 5
( 4 − 1
) (c)
1 5 1
(^) −
3 1 1
(^) (d) 7
( 2 1
)
( 3 5
)
(e)
( 1 2
)
1 2 3
(^) (f) 6
3 1 1
(^) − 4
2 0 3
(^) + 2
1 1 5
X 2.18 Solve each system using matrix notation. Express the solution using vec- tors. (a) 3x + 6y = 18 x + 2y = 6
(b) x + y = 1 x − y = − 1
(c) x 1 + x 3 = 4 x 1 − x 2 + 2x 3 = 5 4x 1 − x 2 + 5x 3 = 17 (d) 2a + b − c = 2 2a + c = 3 a − b = 0
(e) x + 2y − z = 3 2x + y + w = 4 x − y + z + w = 1
(f) x + z + w = 4 2x + y − w = 2 3x + y + z = 7 2.19 Solve each system using matrix notation. Give each solution set in vector notation.