15
NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even more precisely, the attempt to decide which one of the three possibilities outlined previously obtains. Recall them A linear system may 1 have no solutions at all. 2 have exactly one solution 3 have infinitely many solutions

NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

Embed Size (px)

Citation preview

Page 1: NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

NICE LOOKING MATRICES

By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even more precisely, the attempt to decide which one of the three possibilities outlined previously obtains.

Recall them A linear system may1 have no solutions at all.2 have exactly one solution3 have infinitely many solutions

Page 2: NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

(By the way, the textbook says that if 2 or 3 obtain the system is said to be consistent, if 1 obtains the system is called (duh!) inconsistent !Let’s see how far our three simple elementary row operations can take us.What I will do is use a program I wrote some time ago and show you (here) screenshots of the run, but in real life I will show you the run.I will in fact reproduce the algorithm shown on pp. 15-17 of the textbook.

Page 3: NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

First, however, we need to learn the technical (in context) meaning of a few words. We consider a matrix

(each bullet is an entry.) We define, for any rowLeading term to mean the leftmost non-zero entry in that row.

Page 4: NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

So, the leading term of the 3rd row of the matrix

Is ,while the 2nd row has leading term .Challenge: What does it mean to say a row has no leading term?Right, the row consists entirely of zeros, we call such anomaly a zero row. (They do happen) One more technical word.

Page 5: NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

A matrix M is said to be “right-on” (no need to throw a highly intimidating word at you, first we understand the concept, then the Sunday word.) if it obeys the following conditions:1 Every non-zero row is above every zero row.2 The leading term of every row R is strictly to

the right of every leading term of any row above R.

Your textbook has a third condition, namely3. All entries in a column below a leading term

are zeros.For extra credit (1 out of 100 at the end of the semester) give me an argument that shows that

Page 6: NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

conditions 1 and 2 imply 3.

Here are two matrices, one is “right-on”, the other not. Which is which? Why?

blue or green?

Page 7: NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

One last word! A matrix M is said to be “really right-on” if it is right-on and also3. Every entry in the same column and above a

leading term is zero.Both matrices shown are right-on, ony one is really right-on; which one?, Why? red or green

Page 8: NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

For another extra credit point rephrase 1, 2, 3 for an alien up in space who (that ?, do aliens have gender?) knows numbers but has no idea what you mean by “above” or “strictly to the right”. Extra credit due Monday, 1/23. Time to translate common English into impressive English. Common Impressive right-on in (row) echelon form really right-on in reduced (row) echelon formIf the augmented matrix of a linear system is in reduced echelon form, then the solutions are easy to read off (we’ll do many examples). The beauty of our row operations is in the following

Page 9: NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

Theorem. Let denote the augmented matrix of a linear system. ThenA. Elementary row operations do not change the

solution set of the system.B. An appropriate sequence of elementary row

operations produces a matrix that is in reduced echelon form.

(Note that B. says you solved the system !) We will provide a “hands-on” proof of the theorem by providing the steps needed to achieve B. for any augmented matrix.

Page 10: NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

We need one last word (for today, promise!)A position in the matrix is called apivot if it is a leading term in the reduced echelon form of .Returning to the theorem, the proof of A. is trivial, we did it when we defined each elementary row operation.To prove B. we take an augmented matrix such as the one exhibited in the textbook on p. 15 and follow the steps as shown in the textbook. The program I am using will be available to you online soon. Here we go.

Page 11: NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

Start:

Next:

Now use (1,1) as pivot, replace row2 with(-1)xRow1 + row2. You will get

Page 12: NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

the following display:

next use (2,2) as a pivot and (aiming for reduced echelon form) get

Page 13: NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

Writing things as a linear system we get

Which tells us that all the solutions are given by

and are called free variables and can have any value.

Page 14: NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

Study the previous example carefully, it contains all the aspects of solving linear systems but one:What happens if the last column in the augmented matrix ends up with a non-zero leading term?This means that you have a zero row of coef-ficients set equal to a non-zero number, like

Conclusion?Right, inconsistent system.Your book summarizes all this beautifully asTheorem 2, p.21.

Page 15: NICE LOOKING MATRICES By now it shoud be clear that matrices are the backbone (computationally at least) of the attempt to solve linear systems, or, even

We will do one more example from the book.

Exercise 11, p. 22