Jim Hefferon 122 311 N 111  Notation R, R, TR N C {...} (a.. b), [a.. b] V, W, U 0, Ov B,D En = (e1, .. ., en)/ RepB (v) pn Manxm [S] V aW h,g H, G t, s T, S RepB,D (h) T 2(h), Y(h) - ,c(h), 4 (h) real numbers, reals greater than 0, n-tuples of reals natural numbers: {0, 1, 2,...} complex numbers set of ... such that ... interval (open or closed) of reals between a and b sequence; like a set but order matters vector spaces vectors zero vector, zero vector of V bases standard basis for R" basis vectors matrix representing the vector set of n-th degree polynomials set of n x m matrices span of the set S direct sum of subspaces isomorphic spaces homomorphisms, linear maps matrices transformations; maps from a space to itself square matrices matrix representing the map h matrix entry from row i, column j determinant of the matrix T rangespace and nullspace of the map h generalized rangespace and nullspace Lower case Greek alphabet name character name character name character ' ' alpha beta gamma delta epsilon zeta eta theta aO 13 b 7 0 iota kappa lambda mu nu xi omicron pi V 0 7r rho sigma tau upsilon phi chi psi omega p o- T V x w Cover. This is Cramer's Rule for the system xi + 2x2 = 6, 3xi + x2 = 8. The size of the first box is the determinant shown (the absolute value of the size is the area). The size of the second box is Xi times that, and equals the size of the final box. Hence, X1 is the final determinant divided by the first determinant.  Preface This book helps students to master the material of a standard US undergraduate linear algebra course. The material is standard in that the topics covered are Gaussian reduction, vector spaces, linear maps, determinants, and eigenvalues and eigenvectors. An- other standard about the book is its audience: sophomores or juniors, usually with a background of at least one semester of Calculus. The help that it gives to students comes from taking a developmental ap- proach this book's presentation emphasizes motivation and naturalness, driven home by a wide variety of examples and by extensive and careful exercises. The developmental approach is what sets this book apart, so I will expand on it below. Courses in the beginning of most Mathematics programs focus less on under- standing the theory and more on correctly applying formulas and algorithms. Later courses ask for mathematical maturity: the ability to follow different types of arguments, a familiarity with the themes that underlie many mathematical investigations such as elementary set and function facts, and a capacity for some independent reading and thinking. Linear algebra is an ideal spot to work on the transition. It comes early in a program so that progress made here pays off later, but also comes late enough that students are serious, often majors and minors. The material is coherent, accessible, and elegant. There are a variety of argument styles proofs by contradiction, if and only if statements, and proofs by induction, for instance-and examples are plentiful. So, this book aims to help students develop from being successful at their present level, in classes where a majority of students are interested mainly in science or engineering, to being successful at the next level, that of serious students of the subject of mathematics itself. Helping students make this transition means taking the mathematics seri- ously, so all of the results in this book are proved. On the other hand, we cannot assume that students have already arrived, and so in contrast with more abstract texts, we give many examples and they are often quite detailed. In the past, linear algebra texts commonly made this transition abruptly. They began with extensive computations of linear systems, matrix multiplica- tions, and determinants. When the concepts vector spaces and linear maps finally appeared, and definitions and proofs started, often the change brought students to a stop. In this book, while we start with a computational topic, linear reduction, from the first we do more than compute. We do linear systems iii  quickly but completely, including the proofs needed to justify what we are com- puting. Then, with the linear systems work as motivation and at a point where the study of linear combinations seems natural, the second chapter starts with the definition of a real vector space. This occurs by the end of the third week. Another example of our emphasis on motivation and naturalness is that the third chapter on linear maps does not begin with the definition of homomor- phism, but with that of isomorphism. That's because this definition is easily motivated by the observation that some spaces are "just like" others. After that, the next section takes the reasonable step of defining homomorphism by isolating the operation-preservation idea. This approach loses mathematical slickness, but it is a good trade because it comes in return for a large gain in sensibility to students. One aim of our developmental approach is that students should feel through- out the presentation that they can see how the ideas arise, and perhaps picture themselves doing the same type of work. The clearest example of the developmental approach taken here-and the feature that most recommends this book is the exercises. A student progresses most while doing the exercises, so they have been selected with great care. Each problem set ranges from simple checks to reasonably involved proofs. Since an instructor usually assigns about a dozen exercises after each lecture, each section ends with about twice that many, thereby providing a selection. There are even a few problems that are challenging puzzles taken from various journals, competitions, or problems collections. (These are marked with a '?' and as part of the fun, the original wording has been retained as much as possible.) In total, the exercises are aimed to both build an ability at, and help students experience the pleasure of, doing mathematics. Applications, and Computers. The point of view taken here, that linear algebra is about vector spaces and linear maps, is not taken to the complete ex- clusion of others. Applications and the role of the computer are important and vital aspects of the subject. Consequently, each of this book's chapters closes with a few application or computer-related topics. Some are: network flows, the speed and accuracy of computer linear reductions, Leontief Input/Output anal- ysis, dimensional analysis, Markov chains, voting paradoxes, analytic projective geometry, and difference equations. These topics are brief enough to be done in a day's class or to be given as independent projects for individuals or small groups. Most simply give a reader a taste of the subject, discuss how linear algebra comes in, point to some further reading, and give a few exercises. In short, these topics invite readers to see for themselves that linear algebra is a tool that a professional must have. The License. This book is freely available. You can download and read it without restriction. If you are a class instructor then you can make paper copies available to your students. Please see the web page http: //j oshua. smcvt . edu/linearalgebra for more information. In particular, I provide the LATEX source of the text and some instructors may wish to add their own material. If you like, you can send such additions to iv  me, and I may possibly incorporate them into future editions. I am very glad for bug reports. I save them and try to periodically issue updates; people who contribute in this way are acknowledged in the text's source files. For people reading this book on their own. This book's emphasis on motivation and development make it a good choice for self-study. But, while a professional instructor can judge what pace and topics suit a class, if you are an independent student then perhaps you would find some advice helpful. Here are two timetables for a semester. The first focuses on core material. week | Monday Wednesday Friday 1 2 3 4 5 6 7 8 9 10 11 12 13 14 One.I.1 One.I.3 One.III.1, 2 Two.I.2 Two.III.1, 2 Two.III.2, 3 Three.I.2 Three.II.2 Three.III.1 Three.IV.2, 3, 4 Three.IV.4, Three.V.1 Four.I.3 Four.III.1 Five.II.2 One.I.1, 2 One.II.1 One.III.2 Two.II Two.III.2 Two.III.3 Three.II.1 Three.II.2 Three.III.2 Three.IV.4 Three.V.1, 2 Four.II Five.I Five.II.3 One.I.2, 3 One.II.2 Two.I.1 Two.III.1 EXAM Three.I.1 Three.II.2 Three.III.1 Three.IV.1, 2 EXAM Four.I.1, 2 Four.II Five.Il.1 REVIEW The second timetable is more ambitious (it supposes that you know One.II, elements of vectors, usually covered in third semester calculus). the week Monday Wednesday Friday 1 One.I.1 One.I.2 One.I.3 2 One.I.3 One.III.1, 2 One.III.2 3 Two.I.1 Two.I.2 Two.II 4 Two.III.1 Two.III.2 Two.III.3 5 Two.III.4 Three.I.1 EXAM 6 Three.I.2 Three.II.1 Three.II.2 7 Three.III.1 Three.III.2 Three.IV.1, 2 8 Three.IV.2 Three.IV.3 Three.IV.4 9 Three.V.1 Three.V.2 Three.VI.1 10 Three.VI.2 Four.I.1 EXAM 11 Four.I.2 Four.I.3 Four.I.4 12 Four.II Four.II, Four.III.1 Four.III.2, 3 13 Five.II.1, 2 Five.II.3 Five.III.1 14 Five.III.2 Five.IV.1, 2 Five.IV.2 See the table of contents for the titles of these subsections. To help you make time trade-offs, in the table of contents I have marked sub- sections as optional if some instructors will pass over them in favor of spending v  more time elsewhere. You might also try picking one or two topics that appeal to you from the end of each chapter. You'll get more from these if you have access to computer software that can do the big calculations. The most important advice is: do many exercises. I have marked a good sample with /'s. (The answers are available.) You should be aware, however, that few inexperienced people can write correct proofs. Try to find a knowl- edgeable person to work with you on this. Finally, if I may, a caution for all students, independent or not: I cannot overemphasize how much the statement that I sometimes hear, "I understand the material, but it's only that I have trouble with the problems" reveals a lack of understanding of what we are up to. Being able to do things with the ideas is their point. The quotes below express this sentiment admirably. They state what I believe is the key to both the beauty and the power of mathematics and the sciences in general, and of linear algebra in particular (I took the liberty of formatting them as verse). I know of no better tactic than the illustration of exciting principles by well-chosen particulars. -Stephen Jay Gould If you really wish to learn then you must mount the machine and become acquainted with its tricks by actual trial. -Wilbur Wright Jim Hefferon Mathematics, Saint Michael's College Colchester, Vermont USA 05439 http://joshua.smcvt.edu 2008-Aug-13 Author's Note. Inventing a good exercise, one that enlightens as well as tests, is a creative act, and hard work. The inventor deserves recognition. But for some reason texts have traditionally not given attributions for questions. I have changed that here where I was sure of the source. I would greatly appreci- ate hearing from anyone who can help me to correctly attribute others of the questions. vi  Contents Chapter One: Linear Systems 1 I Solving Linecar Systemis. .. .. .. .. ... ... ... ... .....1 . Gau ss' Method .. .. .. .. ... ... .... ... ... .....2 2 Describing the Sointion Set. .. .. .. ... ... ... ... ..11 3 Generali Particu lar + IHomogeneo s . .. .. .. ... ... ..20 II Linear CGeomnetry of ri-kSpae. .. .. .. ... ... ... ... ....32 2 Length andI Angle Measrires* .. .. .. ... ... ... ... ..38 III Rednced Echelon Form .. .. .. .. ... ... ... ... ... ..46 1 Can::-'Jorda1 Redunction .. .. .. .. ... ... ... ... ....46 2 Rowv Equiva lence. .. .. .. ... ... ... ... ... ... ..52 Thpic: Conmpnter Algebra Systems .. .. .. ... ... ... ... ..62 Topic: lnpnt-Ont mt A nalysis .. .. .. .. ... ... ... .... ..64 Topic : Ac~curacy of Compntations. .. .. .. .. ... .... ... ..68 Topic: A- nalyzi ng Networks .. .. .. .. .. ... .... ... ... ..72 Chapter Two: Vector Spaces 79 I Definition of V .e ior Space .. .. .. .. ... ... ... .... ..80 1 Defi~nition andI Exampn~les .. .. .. .. .. .... ... ... ....80 2 Subspac~es and Spanning Sets:.. .. .. .. ... ... .... ..91 11 Linear Independence. .. .. .. ... ... ... ... ... ....101 I Definition and Exa mples. .. .. .. .. ... ... ... ... ..101 III Basis rid Dimension. .. .. .. ... ... ... ... ... ....112 2 Dimension .. .. .. .. .. ... .... ... ... ... ... ..118 3 Vector Spaces and Linear Syrstems. .. .. .. ... ... ....123 4 Combining rib: x ces* .. .. .. .. ... ... ... ... ....130 Tlopic: Fields .. .. .. .. .. ... ... ... .... ... ... ....140 Topic: CrystaIs .. .. .. ... ... ... ... ... ... ... ....142 Thpic: Voting Pa radox es. .. .. .. ... ... ... ... ... ....146 Topic: Dimensional Analysis .. .. .. .. ... ... ... ... ....152 vii  Chapter Tree: Maps Between Spaces 159 1ILso m or ph ism s. .. .. .. ... ... ... ... .... ... .....159 i. Definition. nd Examples. .. .. .. .. ... ... .... .....159 2 Dimersion Characterizes lsomorphism .. .. .. .. .......168 II HOmomor phim . .. .. ... ... ... ... ... ... ... ..176 I Definition .. .. .. .. .... ... ... ... ... ... ....176 2 1Rangesp ce and Nnllspace. .. .. .. .. ... .... ... ...183 111 Comp~uting Linear Mapjs. .. .. .. ... ... ... ... ... ..195 1 R1presnting Linear Maps with Matrices .. .. .. .. ... ...195 2 Any Matrix Re presentsa Linear Ma p*.. .. .. .. ... ....205 IV Ma trix C)perations. .. .. .. .... ... ... ... ... ....212 I1 Sums and Sc1lr Prodincts. .. .. .. .. ... .... ... ...212 2 Matrix Inul ti phlicat io n. .. .. .. .... ... ... ... ....214 3Mechanics of Matrix NMultiplication.. .. .. .. .. .. ... ...222 4In-verses .. .. .. ... ... ... ... ... ... ... ... ..231 V Change of Basis. .. .. .. .. .... ... ... ... ... ....238 I Changing Representations of Vectors. .. .. .. ... ... ...238 2 Cha nging Ma p 1Representations .. .. .. .. ... ... ......242 VI Projection.. .. ... ... ... ... ... ... ... ... ....250 I Orthogonal1 Projectioni Into a Line*. .. .. .. .... ... ...250 2 (Crami-Schhridt ( rt io ona lizrtiori .. .. ... ... ... ....254 3 Projection Into aiiubsp ce:. .. .. .. .. ... ... ... .....260 Topic: inme of B3est Fit .. .. .. .. ... ... .... ... ... ...269 Topic: Ceometry of Linear Maps. .. .. ... ... ... ... .....274 Topic: Markov Chains. .. .. ... ... ... ... ... ... ....281 1'opic: Orthonormal Matri~es .. .. .. ... ... ... ... ......287 Chapter Four: eter minants 293 I Definition .. .. .. ... ... ... ... ... ... ... ......294 I1FExploration*. .. ... ... ... ... ... ... ... ......294 2 IProp erties of Determninants. .. .. ... ... ... ... .....299 3 The1Permnutation Expa nsion .. .. .. .. ... ... ... .....303 4 Detcrmninants Exist* .. .. .. ... ... ... ... ... ....312 II CGeometry of Deterrninants. .. .. .. .. .... ... ... .....319 I Determinants as ize. Fnnctions. .. .. .. ... ... ... ...319 111 Other Formnlas. .. .. .. ... ... ... ... .... ... ...326 ILapiace's Expansion*. .. .. .. .. ... ... .... ... ...326 Topic: Cranmer's Rnle .. .. .. .. ... ... ... ... ... ......331 Topic: Speed of Calculating Determinants .. .. .. ... ... .....334 rIbpic: Projective Geometry.. .. ... ... ... ... .... .....337 LlaIpter Five: Similarity 349 I Complex Vector Saces. .. .. .. .. ... ... ... .... ...349 I1 Factoring anrd Comrplex Nbombers; A R eview*. .. .. .. ....350 2 Comnplex IReresenrta tions .. .. .. ... ... ... ... ....351 vi"i  I Definition and Exa mples.. .. .. .. ... ... ... ... ....353 2 Dii gonalizab1ility!.. .. .. ... ... ... ... ... ... ....355 3 Bigenvacluies rid Eig envectors. .. .. .. ... ... ... ....359 I.I.I.Nilpotence. .. .. .. .. .... ... ... ... ... ... ....367 1ISelf-Cornposition*. .. ... ... ... ... ... ... ......367 2 trings* .. .. .. ... ... ... ... ... ... ... ......370 IV Jordan Form. .. .. .. .. ... ... ... ... .... ... ...381 1 Polynomials of laps and Matrices*. .. .. .. ... ... ....381 2 Jor da'nCanonical Form*. .. .. .. .... ... ... ... ...388 Topic: NMethod of Powers... ... .. .. .. .. .. .. .. .. .. ....401 Topic: Stable Populations .. .. .. ... ... ... ... .... ...405 Topic: Linea r Recurrences:.. .. .. ... ... ... ... ... ....407 AppendixA- i Propositions. .. .. .. .. ... ... ... .... ... ... .....A-i Qnantifiers .. .. .. ... ... ... .... ... ... ... .....A-3 Technxiqutes of Proof. .. .. .. .... ... ... ... ... ....A-5 Sets, Fnnctions, and Relations. .. .. .. .. ... ... ... ....A-7 * Note: starred snbsections are optional. ix   Linear Systems I Solving Linear Systems 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 Physics. Suppose that we are given three objects, one with a mass known to be 2 kg, and are asked to find the unknown masses. Suppose further that experimentation with a meter stick produces these two balances. - 40 50 - 14- 25 a 50 1 --| 15 |- 1- 25 --| Since the sum of moments on the left of each balance equals the sum of moments on the right (the moment of an object is its mass times its distance from the balance point), the two balances give this system of two equations. 40h + 15c = 100 25c = 50 + 50h The second example of a linear system is from Chemistry. We can mix, under controlled conditions, toluene C7H8 and nitric acid HNO3 to produce trinitrotoluene C7H506N3 along with the byproduct water (conditions have to be controlled very well, indeed trinitrotoluene is better known as TNT). In what proportion should those components be mixed? The number of atoms of each element present before the reaction x C7H8 + y HNO3 - z C7H5O6N3 + w H20 must equal the number present afterward. Applying that principle to the ele- 1  2 Chapter One. Linear Systems ments C, H, N, and O in turn gives this system. 7x = 7z 8x + 1y =5z + 2w ly =3z 3y =6z + 1w To finish each of these examples requires solving a system of equations. In each, the equations involve only the first power of the variables. This chapter shows how to solve any such system. 1.1 Gauss' Method 1.1 Definition A linear equation in variables x1, x2, ... , xn has the form a1x1 + a2x2 + asxs + - . + anxn = d where the numbers a1, ... , an E R are the equation's coefficients and d E R is the constant. An n-tuple (81, 82,... , sn) E R" is a solution of, or satisfies, that equation if substituting the numbers s1, ..., sn for the variables gives a true statement: a1s1 + a2s2 + ... + ansn = d. A system of linear equations a1,1x1 + a1,2w2 + '+ ai,nwn 1 a2,1w1 + a2,2w2 + '+ a2,nwn 2 am,1x1 + am,2w2 + ' + am,nwn dm has the solution (81, 82, ... , sn) if that n-tuple is a solution of all of the equa- tions in the system. 1.2 Example The ordered pair (-1, 5) is a solution of this system. 3x1 + 2x2= 7 -x1+ x2=6 In contrast, (5, -1) is not a solution. Finding the set of all solutions is solving the system. No guesswork or good fortune is needed to solve a linear system. There is an algorithm that always works. The next example introduces that algorithm, called Gauss' method. It transforms the system, step by step, into one with a form that is easily solved.  Section . Solving Linear Systems 3 1.3 Example To solve this system 3x3 = 9 x1 + 5x2 - 2x3 = 2 3x1 + 2x2 = 3 we repeatedly transform it until it is in a form that is easy to solve. 1x1 + 2x2 =3 swap row 1 with row 3 3 xi + 5x2 - 2x3 2 3x3 = 9 x1 + 6x2 = 9 multiply row 1 by 3 x1 + 5x2 - 2x = 2 3x3 = 9 add -1 times row 1 to row 2 --+ 6w2 - 9 -2- 2w3 =-7 3x3 = 9 The third step is the only nontrivial one. We've mentally multiplied both sides of the first row by -1, mentally added that to the old second row, and written the result in as the new second row. Now we can find the value of each variable. The bottom equation shows that x3 = 3. Substituting 3 for x3 in the middle equation shows that x2 = 1. Substituting those two into the top equation gives that x1 = 3 and so the system has a unique solution: the solution set is { (3, 1, 3) }. Most of this subsection and the next one consists of examples of solving linear systems by Gauss' method. We will use it throughout this book. It is fast and easy. But, before we get to those examples, we will first show that this method is also safe in that it never loses solutions or picks up extraneous solutions. 1.4 Theorem (Gauss' 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 those three operations has a restriction. Multiplying a row by 0 is not allowed because obviously that can change the solution set of the system. 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. Finally, swap- ping a row with itself is disallowed to make some results in the fourth chapter easier to state and remember (and besides, self-swapping doesn't accomplish anything).  4 Chapter One. Linear Systems PROOF. We will cover the equation swap operation here and save the other two cases for Exercise 29. Consider this swap of row i with row j. a1,1x1 + a1,2X2 + '' ,nn a, d1 a1,1x1 + a1,2X2 + '' ,nn ai d1 ai,1x1 + ai,2x2 + ai . di aj~lxl + aj,2X2 + ajn..=d aj,lxl + aj,2x2 + ajn..=d ai,1x1 + aj,2X2 + ain..=d am,1x1 + am,222 + ' am,nxn dm am,1x1 + am,222 + ' am,nxn dm The n-tuple (81, ... , sn) satisfies the system before the swap if and only if substituting the values, the s's, for the variables, the x's, gives true statements: a1,1s1+a1,2s2+-..+ai nsn = di and ... ai,1s1+ai,2s2+. -.+ai,ns = di and ... aj,1s1 + aj,2s2 + ... + aj nsn = dj and ... am,1s1 + am,282 + ... + am,nsn = dm. In a requirement consisting of statements and-ed together we can rearrange the order of the statements, so that this requirement is met if and only if a1,1s1+ a1,2s2 + ... + a1,nsn = di and ... aj,1s1 + aj,2s2 + ... + aj nsn = dj and ... ai,1s1 + ai,282 + ... + ai,n s = di and ... am,1s1 + am,2s2 + ... + am,n sn = dm. This is exactly the requirement that (s1, ... , sn) solves the system after the row swap. QED 1.5 Definition The three operations from Theorem 1.4 are the elementary reduction operations, or row operations, or Gaussian operations. They are swapping, multiplying by a scalar or rescaling, and pivoting. When writing out the calculations, we will abbreviate 'row i' by 'pi'. For instance, we will denote a pivot operation by kpi + pj, with the row that is changed written second. We will also, to save writing, often list pivot steps together when they use the same pi. 1.6 Example A typical use of Gauss' method is to solve this system. x+ y =0 2x- y+3z=3 x-2y- z=3 The first transformation of the system involves using the first row to eliminate the x in the second row and the x in the third. To get rid of the second row's 2x, we multiply the entire first row by -2, add that to the second row, and write the result in as the new second row. To get rid of the third row's x, we multiply the first row by -1, add that to the third row, and write the result in as the new third row. x+ y =0 -3y+3z=3 -P+ -3y- z=3  Section . Solving Linear Systems (Note that the two p1 steps -2p1 + p2 and -P1 + p3 are written as one opera- tion.) In this second system, the last two equations involve only two unknowns. To finish we transform the second system into a third system, where the last equation involves only one unknown. This transformation uses the second row to eliminate y from the third row. x+ y =0 pP3 -3y+ 3z=3 -4z=0 Now we are set up for the solution. The third row shows that z = 0. Substitute that back into the second row to get y = -1, and then substitute back into the first row to get x = 1. 1.7 Example For the Physics problem from the start of this chapter, Gauss' method gives this. 40h + 15c =100 5/4p1+p2 40h + 15c = 100 -50h + 25c = 50 (175/4)c = 175 So c = 4, and back-substitution gives that h = 1. (The Chemistry problem is solved later.) 1.8 Example The reduction x+ y+ z=9 -2p+P2 x+ y+ z= 9 2x+4y-3z=1 > 2y-5z=-17 3x +6y - 5z=0 -3p1+P3 3y -8z= -27 x+ y+ z= 9 (3/22+p3 2y - 5z = -17 -(1/2)z = -(3/2) shows that z = 3, y = -1, and x = 7. As these examples illustrate, Gauss' method uses the elementary reduction operations to set up back-substitution. 1.9 Definition In each row, the first variable with a nonzero coefficient is the row's leading variable. A system is in echelon form if each leading variable is to the right of the leading variable in the row above it (except for the leading variable in the first row). 1.10 Example The only operation needed in the examples above is pivoting. Here is a linear system that requires the operation of swapping equations. After the first pivot x- y =0 x-y =0 2x-2y+ z+2w=4 -2p1+p2 z+2w=4 y + w=0 y + w=0 2z+ w=5 2z+ w=5  6 Chapter One. Linear Systems the second equation has no leading y. To get one, we look lower down in the system for a row that has a leading y and swap it in. x - y = 0 P2p J + w=0 z+2w=4 2z+ w=5 (Had there been more than one row below the second with a leading y then we could have swapped in any one.) The rest of Gauss' method goes as before. x-y = 0 -2p3+p4 y + W= 0 z+ 2w= 4 -3w = -3 Back-substitution gives w = 1, z = 2 , y = -1, and x= -1. Strictly speaking, the operation of rescaling rows is not needed to solve linear systems. We have included it because we will use it later in this chapter as part of a variation on Gauss' method, the Gauss-Jordan method. All of the systems seen so far have the same number of equations as un- knowns. All of them have a solution, and for all of them there is only one solution. We finish this subsection by seeing for contrast some other things that can happen. 1.11 Example Linear systems need not have the same number of equations as unknowns. This system x+3y= 1 2x+ y=-3 2x +2y =-2 has more equations than variables. Gauss' method helps us understand this system also, since this x+ 3y= 1 p2 -5y =- 5 -2p1+p3 4 4 shows that one of the equations is redundant. Echelon form - (4/5)P2±P3x + 3y = 1 (4/52+ps -5y = -5 0 = 0 gives y = 1 and x= -2. The '0 = 0' is derived from the redundancy. That example's system has more equations than variables. Gauss' method is also useful on systems with more variables than equations. Many examples are in the next subsection.  Section I. Solving Linear Systems 7 Another way that linear systems can differ from the examples shown earlier is that some linear systems do not have a unique solution. This can happen in two ways. The first is that it can fail to have any solution at all. 1.12 Example Contrast the system in the last example with this one. x+3y= 1 x+ 3y= 1 2x+ y=-3 - p2 -5y =-5 2x+2y = 0 2p+p3 -4y=-2 Here the system is inconsistent: no pair of numbers satisfies all of the equations simultaneously. Echelon form makes this inconsistency obvious. X + 3y =1 -(4/5)p2+p3 5y = 5 0 = 2 The solution set is empty. 1.13 Example The prior system has more equations than unknowns, but that is not what causes the inconsistency-Example 1.11 has more equations than unknowns and yet is consistent. Nor is having more equations than unknowns necessary for inconsistency, as is illustrated by this inconsistent system with the same number of equations as unknowns. x+2y=8 -2p1+p2 x+2y= 8 2x+4y=8 0=-8 The other way that a linear system can fail to have a unique solution is to have many solutions. 1.14 Example In this system x+ y=4 2x+2y=8 any pair of numbers satisfying the first equation automatically satisfies the sec- ond. The solution set {(x, y) I x + y = 4} is infinite; some of its members are (0, 4), (-1, 5), and (2.5, 1.5). The result of applying Gauss' method here contrasts with the prior example because we do not get a contradictory equa- tion. -2p1±p2 x + y=4 0 = 0 Don't be fooled by the '0 = 0' equation in that example. It is not the signal that a system has many solutions.  8 Chapter One. Linear Systems 1.15 Example The absence of a '0 = 0' does not keep a system from having many different solutions. This system is in echelon form x+y+z~0 y+z~0 has no '0 = 0', and yet has infinitely many solutions. (For instance, each of these is a solution: (0, 1, -1), (0, 1/2, -1/2), (0, 0, 0), and (0, -7, 7r). There are infinitely many solutions because any triple whose first component is 0 and whose second component is the negative of the third is a solution.) Nor does the presence of a '0 = 0' mean that the system must have many solutions. Example 1.11 shows that. So does this system, which does not have many solutions in fact it has none despite that when it is brought to echelon form it has a '0 = 0' row. 2x -2z=6 2x -2z=6 y+ z=1 -p1+P3 y+ z=1 2x+ y- z=7 y+ z=1 3y+3z=0 3y+3z=0 2x -2z= 6 -P2+P3 y+ z = 1 -3p2+p4 0= 0 0 =-3 We will finish this subsection with a summary of what we've seen so far about Gauss' method. Gauss' method uses the three row operations to set a system up for back substitution. If any step shows a contradictory equation then we can stop with the conclusion that the system has no solutions. If we reach echelon form without a contradictory equation, and each variable is a leading variable in its row, then the system has a unique solution and we find it by back substitution. Finally, if we reach echelon form without a contradictory equation, and there is not a unique solution (at least one variable is not a leading variable) then the system has many solutions. The next subsection deals with the third case-we will see how to describe the solution set of a system with many solutions. Exercises / 1.16 Use Gauss' method to find the unique solution for each system. x -z=0 ()2x+3y= 13 x z (a)2x+3 - (b) 3x+y =1 -x+y+z=4 / 1.17 Use Gauss' method to solve each system or conclude 'many solutions' or 'no solutions'.  Section I. Solving Linear Systems 9 (a) 2x+2y=5 (b) -x+y=1 (c) x-3y+ z= 1 x-4y=0 x+y=2 x+ y+2z=14 (d) -x- y=1 (e) 4y+z=20 (f) 2x + z+w= 5 -3x-3y=2 2x-2y+z= 0 y -w=-1 x +z =5 3x -z-w = 0 x+ y-z=10 4x+y+2z+w= 9 / 1.18 There are methods for solving linear systems other than Gauss' method. One often taught in high school is to solve one of the equations for a variable, then substitute the resulting expression into other equations. That step is repeated until there is an equation with only one variable. From that, the first number in the solution is derived, and then back-substitution can be done. This method takes longer than Gauss' 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.12. (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? / 1.19 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.20 This system is not linear, in some sense, 2sin a - cos/#+ 3 tany= 3 4 sin a + 2 cos /3 - 2 tan g= 10 6 sin a - 3 cos/#+ tany= 9 and yet we can nonetheless apply Gauss' method. Do so. Does the system have a solution? / 1.21 What conditions must the constants, the b's, satisfy so that each of these systems has a solution? Hint. Apply Gauss' method and see what happens to the right side. [Anton] (a) x- 3y = b1 (b) xi1+ 2x2 + 3x3 = b1 3x+ y = b2 2xi + 5x2 + 3x3 = b2 x+7y=b3 Xi +8x3=b3 2x + 4y=b4 1.22 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.23 Must any Chemistry problem like the one that starts this subsection -a bal- ance the reaction problem-have infinitely many solutions? / 1.24 Find the coefficients a, b, and c so that the graph of f(x) = ax2 +bx+c passes through the points (1, 2), (-1, 6), and (2, 3).  10 Chapter One. Linear Systems 1.25 Gauss' method works by combining the equations in a system to make new equations. (a) Can the equation 3x - 2y = 5 be derived, by a sequence of Gaussian reduction steps, from the equations in this system? x+y1 4x - y 6 (b) Can the equation 5x-3y = 2 be derived, by a sequence of Gaussian reduction steps, from the equations in this system? 2x + 2y= 5 3x+ y=4 (c) Can the equation 6x - 9y + 5z = -2 be derived, by a sequence of Gaussian reduction steps, from the equations in the system? 2x+ y-z=4 6x - 3y + z =5 1.26 Prove that, where a, b, ... , e are real numbers and a f 0, if ax + by= c has the same solution set as ax + dy= e then they are the same equation. What if a = 0? / 1.27 Show that if ad - bc 0 then ax + by= j cx + dy= k has a unique solution. / 1.28 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. 1.29 Finish the proof of Theorem 1.4. 1.30 Is there a two-unknowns linear system whose solution set is all of R2? / 1.31 Are any of the operations used in Gauss' method redundant? That is, can any of the operations be synthesized from the others? 1.32 Prove that each operation of Gauss' method is reversible. That is, show that if two systems are related by a row operation Si - S2 then there is a row operation to go back S2 - Si. ? 1.33 A box holding pennies, nickels and dimes contains thirteen coins with a total value of 83 cents. How many coins of each type are in the box? [Anton] ? 1.34 Four positive integers are given. Select any three of the integers, find their arithmetic average, and add this result to the fourth integer. Thus the numbers 29, 23, 21, and 17 are obtained. One of the original integers is:  Section I. Solving Linear Systems 11 (a) 19 (b) 21 (c) 23 (d) 29 (e) 17 [Con. Prob. 1955] ? / 1.35 Laugh at this: AHAHA + TEHE = TEHAW. It resulted from substituting a code letter for each digit of a simple example in addition, and it is required to identify the letters and prove the solution unique. [Am. Math. Mon., Jan. 1935] ? 1.36 The Wohascum County Board of Commissioners, which has 20 members, re- cently had to elect a President. There were three candidates (A, B, and C); on each ballot the three candidates were to be listed in order of preference, with no abstentions. It was found that 11 members, a majority, preferred A over B (thus the other 9 preferred B over A). Similarly, it was found that 12 members preferred C over A. Given these results, it was suggested that B should withdraw, to enable a runoff election between A and C. However, B protested, and it was then found that 14 members preferred B over C! The Board has not yet recovered from the re- sulting confusion. Given that every possible order of A, B, C appeared on at least one ballot, how many members voted for B as their first choice? [WN ohascumi no. 2] ? 1.37 "This system of n linear equations with n unknowns," said the Great Math- ematician, "has a curious property." "Good heavens!" said the Poor Nut, "What is it?" "Note," said the Great Mathematician, "that the constants are in arithmetic progression." "It's all so clear when you explain it!" said the Poor Nut. "Do you mean like 6x + 9y = 12 and 15x + 18y = 21?" "Quite so," said the Great Mathematician, pulling out his bassoon. "Indeed, the system has a unique solution. Can you find it?" "Good heavens!" cried the Poor Nut, "I am baffled." Are you? [Ai. Math. Mon., Jan. 1963] 1.2 Describing the Solution Set 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 2x + z= 3 X - y - z = 1 -- p -y - (3/2)z = -1/2 3x - y = 4 -(3/2)p1+p3 -y - (3/2)z = -1/2 2x + z= 3 P23 -y - (3/2)z = -1/2 0 = 0 not all of the variables are leading variables. The Gauss' method theorem showed that a triple satisfies the first system if and only if it satisfies the third. Thus, the solution set {(x, y, z) |2x + z =3andz- y - z =1and 3x -y =4}  12 Chapter One. Linear Systems can also be described as {(x, y, z) 2x + z = 3 and -y - 3z/2 = -1/2}. How- ever, this second description is not much of an improvement. It has two equa- tions instead of three, but it still involves some hard-to-understand interaction among the variables. To get a description that is free of any such interaction, we take the vari- able that does not lead any equation, z, and use it 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, the solution set can be de- scribed as {(x, y, z) = ((3/2) - (1/2)z, (1/2) - (3/2)z, z) z E R}. For instance, (1/2, -5/2, 2) is a solution because taking z = 2 gives a first component of 1/2 and a second component of -5/2. The advantage of this description over the ones above is that the only variable appearing, z, is unrestricted it can be any real number. 2.2 Definition The non-leading variables in an echelon-form linear system are free variables. In the echelon form system derived in the above example, x and y are leading variables and z is free. 2.3 Example A linear system can end with more than one variable free. This row reduction x+ y+ z- w= 1 x+ y+ z- w= 1 y- z+ w=-1 -3p+p3 y- z+ w=-1 3x +6z-6w= 6 -3y+3z-3w= 3 -y+ z- w= 1 -y+ z- w= 1 x+y+z-w= 1 3P2+P3 y-z+w=-1 P2+P4 0 = 0 0= 0 ends with x and y leading, and with both z and w free. To get the description that we prefer we will start at the bottom. We first express y in terms of the free variables z and w with y = -1 + z - w. Next, moving up to the top equation, substituting for y in the first equation x + (-1 + z - w) + z - w = 1 and solving for x yields x = 2 - 2z + 2w. Thus, the solution set is {2-2z+2w,-1+z-w, z, w) z,w EIR}. We prefer this description because the only variables that appear, z and w, are unrestricted. This makes the job of deciding which four-tuples are system solutions into an easy one. For instance, taking z = 1 and w = 2 gives the solution (4, -2, 1, 2). In contrast, (3, -2, 1, 2) is not a solution, since the first component of any solution must be 2 minus twice the third component plus twice the fourth.  Section I. Solving Linear Systems 13 2.4 Example After this reduction 2x-2y =0 2x-2y =0 z + 3w = 2 -(3/2)pl +p3 z + 3w = 2 3x - 3y = 0 -(1/2)p1+p4 0 = 0 x- y+2z+6w=4 2z+6w=4 2x -2y =0 -2p2+p4 z + 3w= 2 0=0 0=0 x and z lead, y and w are free. The solution set is {(y, y, 2 - 3w, w) y, w E 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. We refer to a variable used to describe a family of solutions as a parameter and we say that the set above is parametrized with y and w. (The terms 'parameter' and 'free variable' do not mean the same thing. Above, y and w are free because in the echelon form system they do not lead any row. They are parameters because they are used in the solution set description. We could have instead parametrized with y and z by rewriting the second equation as w = 2/3 - (1/3)z. In that case, the free variables are still y and w, but the parameters are y and z. Notice that we could not have parametrized with x and y, so there is sometimes a restriction on the choice of parameters. The terms 'parameter' and 'free' are related because, as we shall show later in this chapter, the solution set of a system can always be parametrized with the free variables. Consequently, we shall parametrize all of our descriptions in this way.) 2.5 Example This is another system with infinitely many solutions. x+2y =1 x+ 2y =1 2x +z =2 2pp2 -4y+z =0 3x+2y+z-w=4 3p1+P3 -4y+z-w=1 x+ 2y =1 P2P3 -4y+z =0 -w=1 The leading variables are x, y, and w. The variable z is free. (Notice here that, although there are infinitely many solutions, the value of one of the variables is fixed -w = -1.) Write w in terms of z with w = -1 + Oz. Then y = (1/4)z. To express x in terms of z, substitute for y into the first equation to get x 1 - (1/2)z. The solution set is {(1 - (1/2)z, (1/4)z, z, -1) z E R}. We finish this subsection by developing the notation for linear systems and their solution sets that we shall use in the rest of this book. 2.6 Definition An mxn matrix is a rectangular array of numbers with m rows and n columns. Each number in the matrix is an entry,  14 Chapter One. Linear Systems Matrices are usually named by upper case roman letters, e.g. A. Each entry is denoted by the corresponding lower-case letter, e.g. asj is the number in row i and column j of the array. For instance, 1 2.2 5 A 3 4 -7 has two rows and three columns, and so is a 2 x 3 matrix. (Read that "two- by-three"; the number of rows is always stated first.) The entry in the second row and first column is a2,1 = 3. Note that the order of the subscripts matters: a1,2 / a2,1 since a1,2 = 2.2. (The parentheses around the array are a typo- graphic device so that when two matrices are side by side we can tell where one ends and the other starts.) Matrices occur throughout this book. We shall use Mmxm to denote the collection of n x m matrices. 2.7 Example We can abbreviate this linear system x1 + 2x2 = 4 X2 -x3=0 X1 +2x3--4 with this matrix. 1 2 0 4 0 1 -1 0 1 0 2 4 The vertical bar just reminds a reader of the difference between the coefficients on the systems's left hand side and the constants on the right. When a bar is used to divide a matrix into parts, we call it an augmented matrix. In this notation, Gauss' method goes this way. 1 2 0 4 1 2 0 4 1 2 0 4 0 1 -1 0 p 3' 0 1 -1 0 2P2 3 0 1 -1 0 1 0 2 4 0 -2 2 0 0 0 0 0 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) I z e R}. One advantage of the new notation is that the clerical load of Gauss' method-the copying of variables, the writing of +'s and ='s, etc. is lighter. We will also use the array notation to clarify the descriptions of solution sets. A description like {(2 - 2z + 2w, -1 + z - w, z, w) I z, w e R} from Ex- ample 2.3 is hard to read. We will rewrite it to group all the constants together, all the coefficients of z together, and all the coefficients of w together. We will write them vertically, in one-column wide matrices. 2 -2 2 -1 1 - 1 " ~E { 0 + 1 -z+ 0 - wE }  Section . Solving Linear Systems 15 For instance, the top line says that x = 2 - 2z + 2w. The next section gives a geometric interpretation that will help us picture the solution sets when they are written in this way. 2.8 Definition A vector (or column vector) is a matrix with a single column. A matrix with a single row is a row vector. The entries of a vector are its components. 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 arrow: a, b, ... or a, #, ... (boldface is also common: a or a). For instance, this is a column vector with a third component of 7. 1 v= 3 (7 2.9 Definition The linear equation a1x1 + a2x2 + - + anxn = d with unknowns x1, ... , xn is satisfied by s1 sn if a1s1 + a2 82 + - + 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, such as the z and w. We need to define these operations. 2.10 Definition The vector sum of a and v is this. i± (u> l (u;±+vl) Un n +Un +n In general, two matrices with the same number of rows and the same number of columns add in this way, entry-by-entry. 2.11 Definition The scalar multiplication of the real number r and the vector v is this. U1 Tvi (n (T;n) In general, any matrix is multiplied by a real number in this entry-by-entry way.  16 Chapter One. Linear Systems Scalar multiplication can be written in either order: r -"6vor 6-" r, or without the '-' symbol: rV. (Do not refer to scalar multiplication as 'scalar product' because that name is used for a different operation.) 2.12 Example 2 3 2+3 5 3 + -1 = 3-1 = 2 1 4 1+4 (5 1 7 4 1 28 -3 -21 Notice that the definitions of vector addition and scalar multiplication agree where they overlap, for instance, v +'= 2V'. With the notation defined, we can now solve systems in the way that we will use throughout this book. 2.13 Example This system 2x+y - w = y + w =u x -z+2w =4 =4 =0 reduces in this way. 2 1 0 0 1 0 1 0 -1 -1 1 2 0 4 1 4 0 0 2 (1/2)pp3 0 0 2 (1/2~p3 0 0 1 0 1 0 -1/2 -1 -1 0 4 1 1 4 5/2 0 -2 -1 0 4 1 1 4 3 1/2 0 1 1 0 0 0 -1 The solution set is {(w + (1/2)u, 4 - w - write that in vector form. u, 3w + (1/2)u, w, u) I w, u E R}. We x 0 y 4 { z = 0 w 0 \u \0/ + K 1 \ 1/2 -1 -1 3 w+ 1/2 1 0 0 /1 u I wuER} Note again how well vector notation sets off the coefficients of each parameter. For instance, the third row of the vector form shows plainly that if u is held fixed then z increases three times as fast as w. That format also shows plainly that there are infinitely many solutions. For example, we can fix u as 0, let w range over the real numbers, and consider the first component x. We get infinitely many first components and hence infinitely many solutions.  Section I. Solving Linear Systems 17 Another thing shown plainly is that setting both w and u to zero gives that this y 4 z = 0 w 0 is a particular solution of the linear system. 2.14 Example In the same way, this system x- y+ z=1 3x + z=3 5x - 2y +3z=5 reduces 1 -1 1 1 1 -1 1 1 1 -1 1 3 0 1 3 i+P2 0 3 -2 0 0 3 -2 0 5 -2 3 5 5p1+p3 0 3 -2 0 0 0 0 0 to a one-parameter solution set. 1 -1/3 {(0)+( 2/3 z |z ER} 0 J 1 Before the exercises, we pause to point out some things that we have yet to do. The first two subsections have been on the mechanics of Gauss' method. Except for one result, Theorem 1.4-without which developing the method doesn't make sense since it says that the method gives the right answers-we have not stopped to consider any of the interesting questions that arise. For example, can we always describe solution sets as above, with a particular solution vector added to an unrestricted linear combination of some other vec- tors? The solution sets we described with unrestricted parameters were easily seen to have infinitely many solutions so an answer to this question could tell us something about the size of solution sets. An answer to that question could also help us picture the solution sets, in R2, or in R3, etc. Many questions arise from the observation that Gauss' method can be done in more than one way (for instance, when swapping rows, we may have a choice of which row to swap with). Theorem 1.4 says that we must get the same solution set no matter how we proceed, but if we do Gauss' method in two different ways must we get the same number of free variables both times, so that any two solution set descriptions have the same number of parameters? Must those be the same variables (e.g., is it impossible to solve a problem one way and get y and w free or solve it another way and get y and z free)?  18 Chapter One. Linear Systems In the rest of this chapter we answer these questions. The answer to each is 'yes'. The first question is answered in the last subsection of this section. In the second section we give a geometric description of solution sets. In the final section of this chapter we tackle the last set of questions. Consequently, by the end of the first chapter we will not only have a solid grounding in the practice of Gauss' method, we will also have a solid grounding in the theory. We will be sure of what can and cannot happen in a reduction. Exercises / 2.15 Find the indicated entry of the matrix, if it is defined. A (a) a2,1 (b) ai,2 (c) a2,2 (d) a3,1 / 2.16 Give the size of each matrix. (a) 215 (b) -1 1 (c) 5(105 / 2.17 Do the indicated vector operation, if it is defined. (a) + (b) 5 (c) -l (d) 71+ 9 (e) 2+ 2 (f) 6 1- 4(o + 21 / 2.18 Solve each system using matrix notation. Express the solution using vec- tors. (a) 3x+6y =18 (b) x+y= 1 (c) X1 + x3 = 4 x+2y= 6 x-y=-1 x1 -x2+2x3= 5 4x1 - x2 + 5x3 =17 (d) 2a+b-c=2 (e) x+2y-z =3 (f) x + z+ w= 4 2a +c=3 2x+ y +w=4 2x+y -w=2 a-b =0 x- y+z+w=1 3x+y+z =7 / 2.19 Solve each system using matrix notation. Give each solution set in vector notation. (a) 2x+y-z=1 (b) x - z =1 (c) x- y+ z =0 4x-y =3 y+2z-w=3 y +w=0 x+2y+3z-w=7 3x- 2y+3z+w=0 -y -w=0 (d) a+2b+3c+d-e=1 3a- b+ c+d+e=3 / 2.20 The vector is in the set. What value of the parameters produces that vec- tor? (a) 55),{ 11)k k cR} -1 -2 3 (b) 2 { 1 + 4 jIjE}  Section I. Solving Linear Systems 19 0 1 2 (c) (-4) {() m+ 0 n I m, n E R} 2 (0) 1) 2.21 Decide if the vector is in the set. (a) (f {Q26)k kcEIR} (b) ,5{(5> jER} (c) } 3 + -1rrER} 1 2 -3 (d) (0j{ 0 j + -1 k j, k E R} (1) 1) 1 2.22 Parametrize the solution set of this one-equation system. Xi+2+---+X =0 / 2.23 (a) Apply Gauss' method to the left-hand side to solve x+2y - w=a 2x +z =b x+ y +2w=c for x, y, z, and w, in terms of the constants a, b, and c. (b) Use your answer from the prior part to solve this. x+2y -w = 3 2x +z = 1 x+ y +2w=-2 / 2.24 Why is the comma needed in the notation 'a2,j' for matrix entries? / 2.25 Give the 4 x 4 matrix whose i, j-th entry is (a) i + j; (b) -lto the i + j power. 2.26 For any matrix A, the transpose of A, written Atrans, is the matrix whose columns are the rows of A. Find the transpose of each of these. 1 2 3 2 -3 5 10 (a) 4 5 6 (b) 1 1 (c) 10 5 (d) 1 (0 / 2.27 (a) Describe all functions f(x) = ax2 + bx + c such that f(1) = 2 and f(-1) = 6. (b) Describe all functions f(x) = ax2 + bx + c such that f (1) = 2. 2.28 Show that any set of five points from the plane R2 lie on a common conic section, that is, they all satisfy some equation of the form ax2 + by2 + cxy + dx + ey + f = 0 where some of a, ... , f are nonzero. 2.29 Make up a four equations/four unknowns system having (a) a one-parameter solution set; (b) a two-parameter solution set; (c) a three-parameter solution set. ? 2.30 (a) Solve the system of equations. ax+ y=a2 x+ay= 1 For what values of a does the system fail to have solutions, and for what values of a are there infinitely many solutions?  20 Chapter One. Linear Systems (b) Answer the above question for the system. ax+ y=a3 x+ay= 1 [USSR Olympiad no. 174] ? 2.31 In air a gold-surfaced sphere weighs 7588 grams. It is known that it may contain one or more of the metals aluminum, copper, silver, or lead. When weighed successively under standard conditions in water, benzene, alcohol, and glycerine its respective weights are 6588, 6688, 6778, and 6328 grams. How much, if any, of the forenamed metals does it contain if the specific gravities of the designated substances are taken to be as follows? Aluminum 2.7 Alcohol 0.81 Copper 8.9 Benzene 0.90 Gold 19.3 Glycerine 1.26 Lead 11.3 Water 1.00 Silver 10.8 [Math. Mag., Sept. 1952] 1.3 General = Particular + Homogeneous The prior subsection has many descriptions of solution sets. They all fit a pattern. They have a vector that is a particular solution of the system added to an unrestricted combination of some other vectors. The solution set from Example 2.13 illustrates. /0\ /1 \ 1/2\ 4 (-1) -1) { 0 +w 3 +u 1/21 w,u E R} 0 1 0 \0/ \0 / \1/ particular unrestricted solution combination The combination is unrestricted in that w and u can be any real numbers there is no condition like "such that 2w -u = 0" that would restrict which pairs w,u can be used to form combinations. That example shows an infinite solution set conforming to the pattern. We can think of the other two kinds of solution sets as also fitting the same pat- tern. A one-element solution set fits in that it has a particular solution, and the unrestricted combination part is a trivial sum (that is, instead of being a combination of two vectors, as above, or a combination of one vector, it is a combination of no vectors). A zero-element solution set fits the pattern since there is no particular solution, and so the set of sums of that form is empty. We will show that the examples from the prior subsection are representative, in that the description pattern discussed above holds for every solution set.  Section . Solving Linear Systems 21 3.1 Theorem For any linear system there are vectors Q1, ..., ja such that the solution set can be described as {p+ ci1 + - - - + CAk/3 c1, ... , ck E R} where p is any particular solution, and where the system has k free variables. This description has two parts, the particular solution p and also the un- restricted linear combination of the #3's. We shall prove the theorem in two corresponding parts, with two lemmas. We will focus first on the unrestricted combination part. To do that, we consider systems that have the vector of zeroes as one of the particular solutions, so that p + c101 + ---+ ckk can be shortened to c101 + -+ ck3k . 3.2 Definition A linear equation is homogeneous if it has a constant of zero, that is, if it can be put in the form a1w1 + a2x2 + - - - + anon = 0. (These are 'homogeneous' because all of the terms involve the same power of their variable the first power including a 'Oxo' that we can imagine is on the right side.) 3.3 Example With any linear system like 3x + 4y= 3 2x - y = 1 we associate a system of homogeneous equations by setting the right side to zeros. 3x + 4y= 0 2x- y=0 Our interest in the homogeneous system associated with a linear system can be understood by comparing the reduction of the system 3x + 4y = 3 -(2/3)p1+p2 3x + 4 =3 2x - y = 1 -(11/3)y = -1 with the reduction of the associated homogeneous system. 3x + 4y = 0 -(2/3)p1+p2 3x + 4y = 0 2x- y = 0 -(11/3)y = 0 Obviously the two reductions go in the same way. We can study how linear sys- tems are reduced by instead studying how the associated homogeneous systems are reduced. Studying the associated homogeneous system has a great advantage over studying the original system. Nonhomogeneous systems can be inconsistent. But a homogeneous system must be consistent since there is always at least one solution, the vector of zeros.  22 Chapter One. Linear Systems 3.4 Definition A column or row vector of all zeros is a zero vector, denoted 0. There are many different zero vectors, e.g., the one-tall zero vector, the two-tall zero vector, etc. Nonetheless, people often refer to "the" zero vector, expecting that the size of the one being discussed will be clear from the context. 3.5 Example Some homogeneous systems have the zero vector as their only solution. 3x+2y+z=0 3x+2y+ z=0 3x+2y+ z=0 6x+4y =0 -2z =0 P23 y+ z=0 y+z=0 y+ z=0 -2z=0 3.6 Example Some homogeneous systems have many solutions. One example is the Chemistry problem from the first page of this book. 7x -7z =0 7x -7z =0 8x+ y-5z-2w=0 -(8/7)p1+p2 y+3z-2w=0 y-3z =0 y-3z =0 3y-6z- w=0 3y-6z- w=0 7x - 7z =0 -P2+P3 y+ 3z-2w=0 -3p2+p4 -6z + 2w = 0 -15z + 5w= 0 7x - 7z =0 -(5/2)p3+p4 y + 3z - 2w =0 -6z + 2w =0 0=0 The solution set: 1/3 {( 13 w wTR} 1 has many vectors besides the zero vector (if we interpret w as a number of molecules then solutions make sense only when w is a nonnegative multiple of 3). We now have the terminology to prove the two parts of Theorem 3.1. The first lemma deals with unrestricted combinations. 3.7 Lemma For any homogeneous linear system there exist vectors Q1, ..., #3 such that the solution set of the system is {c101+ - + CA 3 Ci,..., ck E R} where k is the number of free variables in an echelon form version of the system.  Section I. Solving Linear Systems 23 Before the proof, we will recall the back substitution calculations that were done in the prior subsection. Imagine that we have brought a system to this echelon form. x+ 2y-z+ 2w=0 -3y+z =0 -w=0 We next perform back-substitution to express each variable in terms of the free variable z. Working from the bottom up, we get first that w is 0 - z, next that y is (1/3) - z, and then substituting those two into the top equation x + 2((1/3)z) - z + 2(0) = 0 gives x = (1/3) - z. So, back substitution gives a parametrization of the solution set by starting at the bottom equation and using the free variables as the parameters to work row-by-row to the top. The proof below follows this pattern. Comment: That is, this proof just does a verification of the bookkeeping in back substitution to show that we haven't overlooked any obscure cases where this procedure fails, say, by leading to a division by zero. So this argument, while quite detailed, doesn't give us any new insights. Nevertheless, we have written it out for two reasons. The first reason is that we need the result the computational procedure that we employ must be verified to work as promised. The second reason is that the row-by-row nature of back substitution leads to a proof that uses the technique of mathematical induction.* This is an important, and non-obvious, proof technique that we shall use a number of times in this book. Doing an induction argument here gives us a chance to see one in a setting where the proof material is easy to follow, and so the technique can be studied. Readers who are unfamiliar with induction arguments should be sure to master this one and the ones later in this chapter before going on to the second chapter. PROOF. First use Gauss' method to reduce the homogeneous system to echelon form. We will show that each leading variable can be expressed in terms of free variables. That will finish the argument because then we can use those free variables as the parameters. That is, the 3's are the vectors of coefficients of the free variables (as in Example 3.6, where the solution is x = (1/3)w, y = w, z =(1/3)w, and w= w). We will proceed by mathematical induction, which has two steps. The base step of the argument will be to focus on the bottom-most non-'0 = 0' equation and write its leading variable in terms of the free variables. The inductive step of the argument will be to argue that if we can express the leading variables from the bottom t rows in terms of free variables, then we can express the leading variable of the next row up the t + 1-th row up from the bottom-in terms of free variables. With those two steps, the theorem will be proved because by the base step it is true for the bottom equation, and by the inductive step the fact that it is true for the bottom equation shows that it is true for the next one up, and then another application of the inductive step implies it is true for third equation up, etc. * More information on mathematical induction is in the appendix.  24 Chapter One. Linear Systems For the base step, consider the bottom-most non-'O= 0' equation (the case where all the equations are '0 = 0' is trivial). We call that the m-th row: am,fmx zm + am,fm+1xm+1 + ... + am,nxm= 0 where am,fm # 0. (The notation here has '' stand for 'leading', so am,Em means "the coefficient, from the row m of the variable leading row m".) Either there are variables in this equation other than the leading one zfm or else there are not. If there are other variables z.m+1, etc., then they must be free variables because this is the bottom non-'0 = 0' row. Move them to the right and divide by am, m fm =(-am,m+i/am,m)x±i + ... + (-am,n/am,Qxm to express this leading variable in terms of free variables. If there are no free variables in this equation then xzm = 0 (see the "tricky point" noted following this proof). For the inductive step, we assume that for the m-th equation, and for the (m - 1)-th equation, ..., and for the (m - t)-th equation, we can express the leading variable in terms of free variables (where 0 <;t < m). To prove that the same is true for the next equation up, the (m - (t + 1))-th equation, we take each variable that leads in a lower-down equation .,-..-. . , xzm-, and substitute its expression in terms of free variables. The result has the form am-(t+1),xm-mzxm-( + sums of multiples of free variables = 0 where am-(t+1),fm-m (t+) 0. We move the free variables to the right-hand side and divide by am-(t+1),m-(t±1), to end with xm-(t+) expressed in terms of free variables. Because we have shown both the base step and the inductive step, by the principle of mathematical induction the proposition is true. QED We say that the set {c131 + -_- - + ck3k c1, ... ,C ER} is generated by or spanned by the set of vectors {#1,...,/3k}. There is a tricky point to this definition. If a homogeneous system has a unique solution, the zero vector, then we say the solution set is generated by the empty set of vectors. This fits with the pattern of the other solution sets: in the proof above the solution set is derived by taking the c's to be the free variables and if there is a unique solution then there are no free variables. This proof incidentally shows, as discussed after Example 2.4, that solution sets can always be parametrized using the free variables. The next lemma finishes the proof of Theorem 3.1 by considering the par- ticular solution part of the solution set's description. 3.8 Lemma For a linear system, where p5is any particular solution, the solution set equals this set. {]5+ h ht satisfies the associated homogeneous system}  Section I. Solving Linear Systems 25 PROOF. We will show mutual set inclusion, that any solution to the system is in the above set and that anything in the set is a solution to the system.* For set inclusion the first way, that if a vector solves the system then it is in the set described above, assume that s solves the system. Then s - p solves the associated homogeneous system since for each equation index i, ai,1(s1 - p1) +-.- + ai,n(s - p) = (ai,1s1 + -..-+ ainsn) - (ai,1p1 + ... + aj,npn) = di - di =0 where pj and sj are the j-th components of p and s. We can write s - ] as h, where h solves the associated homogeneous system, to express s in the required p5+ h form. For set inclusion the other way, take a vector of the form p7+ h, where]p solves the system and h solves the associated homogeneous system, and note that it solves the given system: for any equation index i, aj,1(p1 + h1) + ... + ai,n(pn + hn)=- (ajipi + ... + ai,npm) + (ai,1hi + ... + ainhn) =di + 0 = di where h3 is the j-th component of h. QED The two lemmas above together establish Theorem 3.1. We remember that theorem with the slogan "General = Particular + Homogeneous". 3.9 Example This system illustrates Theorem 3.1. x+2y- z=1 2x+4y =2 y - 3z=0 Gauss' method x+2y- z=1 x+2y- z=1 -2ilhP2 2z=0 2P3 y -3z=0 y-3z=0 2z=0 shows that the general solution is a singleton set. 1 { 0 } M0s  26 Chapter One. Linear Systems That single vector is, of course, a particular solution. The associated homoge- neous system reduces via the same row operations x+2y- z=0 x+2y- z=O 2x+-4y =0 p2 p 3 y - 3z=O y-3z=0 2z=0 to also give a singleton set. 0 { 0 } \0 As the theorem states, and as discussed at the start of this subsection, in this single-solution case the general solution results from taking the particular solu- tion and adding to it the unique solution of the associated homogeneous system. 3.10 Example Also discussed there is that the case where the general solution set is empty fits the 'General = Particular+Homogeneous' pattern. This system illustrates. Gauss' method x + z+ w=-1 x + z+w=-1 2x-y + w= 3 -24P3 -y-2z-w= 5 x+y+3z+2w= 1 p1±3 y+2z+w= 2 shows that it has no solutions. The associated homogeneous system, of course, has a solution. x + z+ w=0 x + z+w=0 2x-y + w=O 2p1±p2 p2j,3 -y-2z-w=O x+y+3z+2w=0 p1±p30=0 In fact, the solution set of the homogeneous system is infinite. -1 -1 2z w1e} { 1 + 0 mzw } 0 1 However, because no particular solution of the original system exists, the general solution set is empty there are no vectors of the form p'+ h because there are no 7's. 3.11 Corollary Solution sets of linear systems are either empty, have one element, or have infinitely many elements. PROOF. We've seen examples of all three happening so we need only prove that those are the only possibilities. First, notice a homogeneous system with at least one non-6 solution v has infinitely many solutions because the set of multiples si is infinite-if s 1 then s65 - 6=(s - 1)7 is easily seen to be non-O, and so s6#6  Section . Solving Linear Systems 27 Now, apply Lemma 3.8 to conclude that a solution set {p + h h solves the associated homogeneous system} is either empty (if there is no particular solution p), or has one element (if there is a p and the homogeneous system has the unique solution 0), or is infinite (if there is a p and the homogeneous system has a non-0 solution, and thus by the prior paragraph has infinitely many solutions). QED This table summarizes the factors affecting the size of a general solution. number of solutions of the associated homogeneous system one infinitely many unique infinitely many solution solution solutions exists? no no no solutions solutions The factor on the top of the table is the simpler one. When we perform Gauss' method on a linear system, ignoring the constants on the right side and so paying attention only to the coefficients on the left-hand side, we either end with every variable leading some row or else we find that some variable does not lead a row, that is, that some variable is free. (Of course, "ignoring the constants on the right" is formalized by considering the associated homogeneous system. We are simply putting aside for the moment the possibility of a contradictory equation.) A nice insight into the factor on the top of this table at work comes from con- sidering the case of a system having the same number of equations as variables. This system will have a solution, and the solution will be unique, if and only if it reduces to an echelon form system where every variable leads its row, which will happen if and only if the associated homogeneous system has a unique solution. Thus, the question of uniqueness of solution is especially interesting when the system has the same number of equations as variables. 3.12 Definition A square matrix is nonsingular if it is the matrix of coeffi- cients of a homogeneous system with a unique solution. It is singular otherwise, that is, if it is the matrix of coefficients of a homogeneous system with infinitely many solutions. 3.13 Example The systems from Example 3.3, Example 3.5, and Example 3.9 each have an associated homogeneous system with a unique solution. Thus these matrices are nonsingular. 3 4 3 2 1 1 2 -1 2 -1 6 -4 0 2 4 0 2 1 0 1 1 0 1 -3  28 Chapter One. Linear Systems The Chemistry problem from Example 3.6 is a homogeneous system with more than one solution so its matrix is singular. 7 0 -7 0 8 1 -5 -2 0 1 -3 0 0 3 -6 -1 3.14 Example The first of these matrices is nonsingular while the second is singular 1 2 1 2 3 4 3 6 because the first of these homogeneous systems has a unique solution while the second has infinitely many solutions. x+2y=0 x+2y=0 3x+4y=0 3x+6y=0 We have made the distinction in the definition because a system (with the same number of equations as variables) behaves in one of two ways, depending on whether its matrix of coefficients is nonsingular or singular. A system where the matrix of coefficients is nonsingular has a unique solution for any constants on the right side: for instance, Gauss' method shows that this system x + 2y= a 3x + 4y= b has the unique solution x = b - 2a and y = (3a - b)/2. On the other hand, a system where the matrix of coefficients is singular never has a unique solution it has either no solutions or else has infinitely many, as with these. x+2y=1 x+2y=1 3x+6y=2 3x+6y=3 Thus, 'singular' can be thought of as connoting "troublesome", or at least "not ideal". The above table has two factors. We have already considered the factor along the top: we can tell which column a given linear system goes in solely by considering the system's left-hand side-the constants on the right-hand side play no role in this factor. The table's other factor, determining whether a particular solution exists, is tougher. Consider these two 3x+2y=5 3x+2y=5 3x+2y=5 3x+2y=4 with the same left sides but different right sides. Obviously, the first has a solution while the second does not, so here the constants on the right side  Section I. Solving Linear Systems 29 decide if the system has a solution. We could conjecture that the left side of a linear system determines the number of solutions while the right side determines if solutions exist, but that guess is not correct. Compare these two systems 3x+2y=5 3x+2y=5 4x+2y=4 3x+2y=4 with the same right sides but different left sides. The first has a solution but the second does not. Thus the constants on the right side of a system don't decide alone whether a solution exists; rather, it depends on some interaction between the left and right sides. For some intuition about that interaction, consider this system with one of the coefficients left as the parameter c. x+2y+3z=1 x+ y+ z=1 cx+3y+4z=0 If c = 2 this system has no solution because the left-hand side has the third row as a sum of the first two, while the right-hand does not. If c / 2 this system has a unique solution (try it with c = 1). For a system to have a solution, if one row of the matrix of coefficients on the left is a linear combination of other rows, then on the right the constant from that row must be the same combination of constants from the same rows. More intuition about the interaction comes from studying linear combina- tions. That will be our focus in the second chapter, after we finish the study of Gauss' method itself in the rest of this chapter. Exercises / 3.15 Solve each system. Express the solution set using vectors. Identify the par- ticular solution and the solution set of the homogeneous system. (a) 3x+6y =18 (b) x+y= 1 (c) X1 + x3 = 4 x+2y= 6 x-y=-1 x1 -x2+2x3= 5 4x - x2 + 5x3 =17 (d) 2a+b-c=2 (e) x+2y-z =3 (f) x + z+ w= 4 2a +c=3 2x+ y +w=4 2x+y -w=2 a-b =0 x- y+z+w=1 3x+y+z =7 3.16 Solve each system, giving the solution set in vector notation. Identify the particular solution and the solution of the homogeneous system. (a) 2x+y-z=1 (b) x - z =1 (c) x- y+ z =0 4x-y =3 y+2z-w=3 y +w=0 x+2y+3z-w=7 3x- 2y+3z+w=0 -y -w=0 (d) a+2b+3c+d-e=1 3a- b+ c+d+e=3 / 3.17 For the system 2x- y -w= 3 y'+ z+2w = 2 x- 2y -z = -1  30 Chapter One. Linear Systems which of these can be used as the particular solution part of some general solu- tion? 0 2 -1 (a) (3 (b)(D (c) G4 0 0 -1 / 3.18 Lemma 3.8 says that any particular solution may be used for p. Find, if possible, a general solution to this system X- y 2x +3y - z +w=4 =0 y + z+w=4 that uses the given vector as its particular solution. 0 -5 2 (a) (b)K; (c)<) 3 41 O10 1 3.19 One of these is nonsingular while the other is singular. Which is which? (a) ( -12) (b) 312 / 3.20 Singular or nonsingular? ()1 2 (b 1 2 (c l 2 1 (ae (a) 1 3 (b) -3 -6 (c) 1 3 1 1 2 1 2 2 1 (d) 1 1 3 (e) 1 0 5 3 4 7 -1 1 4 / 3.21 Is the given vector in the set generated by the given set? (a) {1 } -1 2 1 (b) 0 1 0 } 1 (0) 1 (c) 3 {Q 0 (} 2 3 d)0 { 1 0} (d) ,0 00 (1) 1) 2 ful!) 3.22 Prove that any linear system with a nonsingular matrix of coefficients has a solution, and that the solution is unique. 3.23 To tell the whole truth, there is another tricky point to the proof of Lemma 3.7. What happens if there are no non-'0 0=O' equations? (There aren't any more tricky points after this one.) / 3.24 Prove that if s and i satisfy a homogeneous system then so do these vec- tors. (a) s+t (b) 3s (c) ks+ mifor k,,m cR What's wrong with: "These three show that if a homogeneous system has one solution then it has many solutions any multiple of a solution is another solution,  Section I. Solving Linear Systems 31 and any sum of solutions is a solution also so there are no homogeneous systems with exactly one solution."? 3.25 Prove that if a system with only rational coefficients and constants has a solution then it has at least one all-rational solution. Must it have infinitely many?  32 Chapter One. Linear Systems II Linear Geometry of n-Space For readers who have seen the elements of vectors before, in calculus or physics, this section is an optional review. However, later work will refer to this material so it is not optional if it is not a review. In the first section, we had to do a bit of work to show that there are only three types of solution sets-singleton, empty, and infinite. But in the special case of systems with two equations and two unknowns this is easy to see. Draw each two-unknowns equation as a line in the plane and then the two lines could have a unique intersection, be parallel, or be the same line. Unique solution No solutions Infinitely many solutions 3x+2y= 7 3x+2y=7 3x+2y= 7 x- y=-1 3x+2y=4 6x+4y=14 These pictures don't prove the results from the prior section, which apply to any number of linear equations and any number of unknowns, but nonetheless they do help us to understand those results. This section develops the ideas that we need to express our results from the prior section, and from some future sections, geometrically. In particular, while the two-dimensional case is familiar, to extend to systems with more than two unknowns we shall need some higher- dimensional geometry. 11.1 Vectors in Space "Higher-dimensional geometry" sounds exotic. It is exotic-interesting and eye-opening. But it isn't distant or unreachable. We begin by defining one-dimensional space to be the set R1. To see that definition is reasonable, draw a one-dimensional space and make the usual correspondence with R: pick a point to label 0 and another to label 1. 0 1 Now, with a scale and a direction, finding the point corresponding to, say +2.17, is easy-start at 0 and head in the direction of 1 (i.e., the positive direction), but don't stop there, go 2.17 times as far.  Section II. Linear Geometry of n-Space 33 The basic idea here, combining magnitude with direction, is the key to ex- tending to higher dimensions. An object comprised of a magnitude and a direction is a vector (we will use the same word as in the previous section because we shall show below how to describe such an object with a column vector). We can draw a vector as having some length, and pointing somewhere. There is a subtlety here-these vectors are equal, even though they start in different places, because they have equal lengths and equal directions. Again: those vectors are not just alike, they are equal. How can things that are in different places be equal? Think of a vector as representing a displacement ('vector' is Latin for "carrier" or "traveler"). These squares undergo the same displacement, despite that those displacements start in different places. Sometimes, to emphasize this property vectors have of not being anchored, they are referred to as free vectors. Thus, these free vectors are equal as each is a displacement of one over and two up. //- More generally, vectors in the plane are the same if and only if they have the same change in first components and the same change in second components: the vector extending from (ai, a2) to (b1, b2) equals the vector from (c1, c2) to (d1, d2) if and only if bi - ai = di - ci and b2 - a2 = d2 - c2. An expression like 'the vector that, were it to start at (ai, a2), would extend to (b1, b2)' is awkward. We instead describe such a vector as b1 - a1 b2 - a2 so that, for instance, the 'one over and two up' arrows shown above picture this vector. (l'\  34 Chapter One. Linear Systems We often draw the arrow as starting at the origin, and we then say it is in the canonical position (or natural position). When the vector (1 - a1 b2- a2 is in its canonical position then it extends to the endpoint (b1 - a1, b2 - a2). We typically just refer to "the point rather than "the endpoint of the canonical position of" that vector. Thus, we will call both of these sets R2. {(x1,x2) |Ix1,x2 E R} { (1)X1, X2 eR} In the prior section we defined vectors and vector operations with an alge- braic motivation; r(vi (roi (vi + (wi) -(vi + wi r-V2 + v2 rv2 v2 w2 v2 + w2 we can now interpret those operations geometrically. For instance, if v repre- sents a displacement then 3v represents a displacement in the same direction but three times as far, and -16 represents a displacement of the same distance as v but in the opposite direction. 3v And, where v and w represent displacements, v + w represents those displace- ments combined. The long arrow is the combined displacement in this sense: if, in one minute, a ship's motion gives it the displacement relative to the earth of v and a passen- ger's motion gives a displacement relative to the ship's deck of w, then v + w is the displacement of the passenger relative to the earth. Another way to understand the vector sum is with the parallelogram rule. Draw the parallelogram formed by the vectors v1, 2 and then the sum v1 + v2 extends along the diagonal to the far corner.  Section II. Linear Geometry of n-Space 35 The above drawings show how vectors and vector operations behave in R2. We can extend to R3, or to even higher-dimensional spaces where we have no pictures, with the obvious generalization: the free vector that, if it starts at (a1,. . . , an), ends at (bi,. .. , bn), is represented by this column b1 - a1 bn - an (vectors are equal if they have the same representation), we aren't too careful to distinguish between a point and the vector whose canonical representation ends at that point, R" =-{L ' I 1, . .., Un ER} Un and addition and scalar multiplication are component-wise. Having considered points, we now turn to the lines. In R2, the line through (1, 2) and (3, 1) is comprised of (the endpoints of) the vectors in this set { +t-2 t ER} {2 -1 } That description expresses this picture. 1__2 The vector associated with the parameter t has its whole body in the line-it is a direction vector for the line. Note that points on the line to the left of x = 1 are described using negative values of t. In R3, the line through (1, 2, 1) and (2, 3, 2) is the set of (endpoints of) vectors of this form {2 +t ( - R} 7/  36 Chapter One. Linear Systems and lines in even higher-dimensional spaces work in the same way. If a line uses one parameter, so that there is freedom to move back and forth in one dimension, then a plane must involve two. For example, the plane through the points (1, 0, 5), (2, 1, -3), and (-2, 4, 0.5) consists of (endpoints of) the vectors in 1 1 -3 {0) +t (1) +s ( 2 4 t,s ER} \5J -8J -4.5 (the column vectors associated with the parameters 1 2 1 -3 -2 1 1 = 1 - 0 4 = 4 - 0 \-8) -3 5 -4.5 0.5 5 are two vectors whose whole bodies lie in the plane). As with the line, note that some points in this plane are described with negative t's or negative s's or both. A description of planes that is often encountered in algebra and calculus uses a single equation as the condition that describes the relationship among the first, second, and third coordinates of points in a plane. P={ y 2x+y+z=4} The translation from such a description to the vector description that we favor in this book is to think of the condition as a one-equation linear system and parametrize x = (1/2)(4 - y - z). 2 0.5 -05) P = { + 1 y + 0 z y, -R Generalizing from lines and planes, we define a k-dimensional linear sur- face (or k-flat) in R" to be {P+ t161 + t262 + - - - + tkik I t1,. . . ,tk E R} where v1, ... , Vk E R'. For example, in R4, 2 1 7r 0 EI t 3 + t 0 | }  Section II. Linear Geometry of n-Space 37 is a line, 0 1 2 0 1 0 0+t 0 + s t,sER} 0 -1 0 is a plane, and 3 0 1 2 1 +r 0 + 0 +t0 stEII { -2 +r 0 +s 1 t 1 , ,t } 0.5 -1 0 0 is a three-dimensional linear surface. Again, the intuition is that a line per- mits motion in one direction, a plane permits motion in combinations of two directions, etc. A linear surface description can be misleading about the dimension-this L y+ t 0 + s 0 t, s E II} -2 1 (-2) is a degenerate plane because it is actually a line. 1 1 L={( +r () rER} {-1 0} -2 -1 We shall see in the Linear Independence section of Chapter Two what relation- ships among vectors causes the linear surface they generate to be degenerate. We finish this subsection by restating our conclusions from the first section in geometric terms. First, the solution set of a linear system with n unknowns is a linear surface in R'. Specifically, it is a k-dimensional linear surface, where k is the number of free variables in an echelon form version of the system. Second, the solution set of a homogeneous linear system is a linear surface passing through the origin. Finally, we can view the general solution set of any linear system as being the solution set of its associated homogeneous system offset from the origin by a vector, namely by any particular solution. Exercises / 1.1 Find the canonical name for each vector. (a) the vector from (2, 1) to (4, 2) in R2 (b) the vector from (3, 3) to (2, 5) in R2 (c) the vector from (1, 0, 6) to (5, 0, 3) in R3 (d) the vector from (6, 8, 8) to (6, 8, 8) in R3 / 1.2 Decide if the two vectors are equal. (a) the vector from (5, 3) to (6, 2) and the vector from (1, -2) to (1, 1)  38 Chapter One. Linear Systems (b) the vector from (2, 1, 1) to (3, 0, 4) and the vector from (5, 1, 4) to (6, 0, 7) / 1.3 Does (1, 0, 2, 1) lie on the line through (-2, 1, 1, 0) and (5, 10, -1,4)? / 1.4 (a) Describe the plane through (1, 1, 5, -1), (2, 2, 2, 0), and (3, 1, 0, 4). (b) Is the origin in that plane? 1.5 Describe the plane that contains this point and line. 2 -1 1 0 { 0 )+ 1t tER} 3 -4 2 / 1.6 Intersect these planes. 1 0± { 1 + 3) k +(O m k,m E IR} / 1.7 Intersect each pair, if possible. 1 0 1!) 0 (a) {(1) +t(1) tER}, {( + s 1 s E R} 2 1 0 0 (b) { (0) + t (1) t E R}, {s (1) + w 4 s, w E IR} (1) -1) 2) 1) 1.8 When a plane does not pass through the origin, performing operations on vec- tors whose bodies lie in it is more complicated than when the plane passes through the origin. Consider the picture in this subsection of the plane 2 -0.5 -0.5 { 0 + 1 y+ 0 zy,zER} 0 0 1 and the three vectors it shows, with endpoints (2,0,0), (1.5, 1, 0), and (1.5, 0, 1). (a) Redraw the picture, including the vector in the plane that is twice as long as the one with endpoint (1.5, 1, 0). The endpoint of your vector is not (3, 2, 0); what is it? (b) Redraw the picture, including the parallelogram in the plane that shows the sum of the vectors ending at (1.5, 0, 1) and (1.5, 1, 0). The endpoint of the sum, on the diagonal, is not (3, 1, 1); what is it? 1.9 Show that the line segments (ai, a2) (bi, b2) and (ci, c2)(di, d2) have the same lengths and slopes if b1 - ai = di - cl and b2 - a2 = d2 - c2. Is that only if? 1.10 How should R° be defined? ? / 1.11 A person traveling eastward at a rate of 3 miles per hour finds that the wind appears to blow directly from the north. On doubling his speed it appears to come from the north east. What was the wind's velocity? [Math. Mag., Jan. 1957] 1.12 Euclid describes a plane as "a surface which lies evenly with the straight lines on itself". Commentators (e.g., Heron) have interpreted this to mean "(A plane surface is) such that, if a straight line pass through two points on it, the line coincides wholly with it at every spot, all ways". (Translations from [Heath], pp. 171-172.) Do planes, as described in this section, have that property? Does this description adequately define planes?  Section I. Linear Geometry of n-Space 39 11.2 Length and Angle Measures We've translated the first section's results about solution sets into geometric terms for insight into how those sets look. But we must watch out not to be mislead by our own terms; labeling subsets of R' of the forms {P-+ tv t e ER} and {p + tv + sa| t, s E R} as "lines" and "planes" doesn't make them act like the lines and planes of our prior experience. Rather, we must ensure that the names suit the sets. While we can't prove that the sets satisfy our intuition we can't prove anything about intuition in this subsection we'll observe that a result familiar from R2 and R', when generalized to arbitrary Rk, supports the idea that a line is straight and a plane is flat. Specifically, we'll see how to do Euclidean geometry in a "plane" by giving a definition of the angle between two R" vectors in the plane that they generate. 2.1 Definition The length of a vector v E R" is this. ||6| = vi +.--.+V2 2.2 Remark This is a natural generalization of the Pythagorean Theorem. A classic discussion is in [Polya]. We can use that definition to derive a formula for the angle between two vectors. For a model of what to do, consider two vectors in 1R3. Put them in canonical position and, in the plane that they determine, consider the triangle formed by u, v, and u - v. Apply the Law of Cosines, | - i2 2 +2| ||2 is the angle between the vectors. Expand both sides 2 | | |||| || cos O, where 0 (u1 - v1)2 + (u2 - v2)2 + (u3 - V3)2 ( + + ) (V + V + V3) - 2||| cos O and simplify. uivi + u2V2 + u3V3 0 = arccos( )  40 Chapter One. Linear Systems In higher dimensions no picture suffices but we can make the same argument analytically. First, the form of the numerator is clear it comes from the middle terms of the squares (u1 - v1)2, (u2 - v2)2, etc. 2.3 Definition The dot product (or inner product, or scalar product) of two n-component real vectors is the linear combination of their components. U -v 1 = u1v + u22 + + unVn Note that the dot product of two vectors is a real number, not a vector, and that the dot product of a vector from R" with a vector from R' is defined only when n equals m. Note also this relationship between dot product and length: dotting a vector with itself gives its length squared u - u = U1U1 + + unun = ||2. 2.4 Remark The wording in that definition allows one or both of the two to be a row vector instead of a column vector. Some books require that the first vector be a row vector and that the second vector be a column vector. We shall not be that strict. Still reasoning with letters, but guided by the pictures, we use the next theorem to argue that the triangle formed by u, U, and u - U in R" lies in the planar subset of R" generated by a and v. 2.5 Theorem (Triangle Inequality) For any u, v E IR", ||u + U || < ||U || + ||U || with equality if and only if one of the vectors is a nonnegative scalar multiple of the other one. This inequality is the source of the familiar saying, "The shortest distance between two points is in a straight line." o finish start e PROOF. (We'll use some algebraic properties of dot product that we have not yet checked, for instance that u- (d+ b) = u d+ u-b and that - " U= U-. See Exercise 17.) The desired inequality holds if and only if its square holds. ||U + 2 - ( | |+ |6 )2 ( u+ U )"-( u+ U) I ||U||2 + 2 l 2|| |||U|+ ||U||I2 u-u+ -U~+ ~u +U - 2-+2||U|| + -U2 2 - < 2|| ||U ||  Section II. Linear Geometry of n-Space 41 That, in turn, holds if and only if the relationship obtained by multiplying both sides by the nonnegative numbers | and | 2 ( ||6 || )"-( ||u || ) <- 2 ||u ||2 1 12 and rewriting 0 < || l|2 1 2 -2 (| | ) (Il )+ || |2 1 2 is true. But factoring 0 <- (I|| || - | Il6|| )-( || ||6 l - || ||G ) shows that this certainly is true since it only says that the square of the length of the vector | - ||6|| is not negative. As for equality, it holds when, and only when, ||| - |6| is 0. The check that ||U||6= ||6|| if and only if one vector is a nonnegative real scalar multiple of the other is easy. QED This result supports the intuition that even in higher-dimensional spaces, lines are straight and planes are flat. For any two points in a linear surface, the line segment connecting them is contained in that surface (this is easily checked from the definition). But if the surface has a bend then that would allow for a shortcut (shown here grayed, while the segment from P to Q that is contained in the surface is solid). P Because the Triangle Inequality says that in any R", the shortest cut between two endpoints is simply the line segment connecting them, linear surfaces have no such bends. Back to the definition of angle measure. The heart of the Triangle Inequal- ity's proof is the 'u - 6 < ||-||||6||' line. At first glance, a reader might wonder if some pairs of vectors satisfy the inequality in this way: while u - 6 is a large number, with absolute value bigger than the right-hand side, it is a negative large number. The next result says that no such pair of vectors exists. 2.6 Corollary (Cauchy-Schwartz Inequality) For any u, v E IR", |G -6 < || I||| | with equality if and only if one vector is a scalar multiple of the other. PROOF. The Triangle Inequality's proof shows that u "-6 < |||||||| so if u "-6 is positive or zero then we are done. If u - 6 is negative then this holds. |G -6| = -( G -6) = (-u ) -6 < || - Ul||||6|| = ||uI||||6|| The equality condition is Exercise 18. QED  42 Chapter One. Linear Systems The Cauchy-Schwartz inequality assures us that the next definition makes sense because the fraction has absolute value less than or equal to one. 2.7 Definition The angle between two nonzero vectors u, v E- R" is 6 = arccos( ) (the angle between the zero vector and any other vector is defined to be a right angle). Thus vectors from R" are orthogonal if and only if their dot product is zero. 2.8 Example These vectors are orthogonal. / 1 1) 0 The arrows are shown away from canonical position but nevertheless the vectors are orthogonal. 2.9 Example The R3 angle formula given at the special case of the definition. Between these two start of this subsection is a (0 (A) the angle is ( (1)(0) + (1)(3) + (0)(2) ) arccos( )2 #12 +12 +02 /02 + 32 +22 3 arccos( ) v/2/13 approximately 0.94 radians. Notice that these vectors are not orthogonal. Al- though the yz-plane may appear to be perpendicular to the xy-plane, in fact the two planes are that way only in the weak sense that there are vectors in each orthogonal to all vectors in the other. Not every vector in each is orthogonal to all vectors in the other. Exercises / 2.10 Find the length of each vector.  Section II. Linear Geometry of n-Space 43 4 01 (a) 3 (b) 2 (c) (1) (d) 0 (e) 1 2 1) 0 0 / 2.11 Find the angle between each two, if it is defined. 1 1 1 0 1(! /( 2.12 During maneuvers preceding the Battle of Jutland, the British battle cruiser Lion moved as follows (in nautical miles): 1.2 miles north, 6.1 miles 38 degrees east of south, 4.0 miles at 89 degrees east of north, and 6.5 miles at 31 degrees east of north. Find the distance between starting and ending positions. [Ohanian] 2.13 Find k so that these two vectors are perpendicular. (k) (4D 2.14 Describe the set of vectors in R3 orthogonal to this one. 1 3 -1 / 2.15 (a) Find the angle between the diagonal of the unit square in R2 and one of the axes. (b) Find the angle between the diagonal of the unit cube in R3 and one of the axes. (c) Find the angle between the diagonal of the unit cube in R" and one of the axes. (d) What is the limit, as n goes to oc, of the angle between the diagonal of the unit cube in R" and one of the axes? 2.16 Is any vector perpendicular to itself? / 2.17 Describe the algebraic properties of dot product. (a) Is it right-distributive over addition: (u + v) -" w= u - w + 6v-" ? (b) Is is left-distributive (over addition)? (c) Does it commute? (d) Associate? (e) How does it interact with scalar multiplication? As always, any assertion must be backed by either a proof or an example. 2.18 Verify the equality condition in Corollary 2.6, the Cauchy-Schwartz Inequal- ity. (a) Show that if u is a negative scalar multiple of v then u - and v - are less than or equal to zero. (b) Show that | - | v=|||| if and only if one vector is a scalar multiple of the other. 2.19 Suppose thatuv -= u - w and u#0. Must v= w? / 2.20 Does any vector have length zero except a zero vector? (If "yes", produce an example. If "no", prove it.) / 2.21 Find the midpoint of the line segment connecting (Xi, y1) with (X2, y2) in R2. Generalize to R. 2.22 Show that if 7 v 0 then 6/||| has length one. What if v= 0? 2.23 Show that if r ;> 0 then r67 is r times as long as 67. What if r < 0?  44 Chapter One. Linear Systems / 2.24 A vector v E R" of length one is a unit vector. Show that the dot product of two unit vectors has absolute value less than or equal to one. Can 'less than' happen? Can 'equal to'? 2.25 Prove that ||u+v|2 + ||-|2 = 2||+||2 + 2||2 2.26 Show that ify- f=0 for every g then Y =0. 2.27 Is |1 + --- + || < ||1|| + - - - + || n||? If it is true then it would generalize the Triangle Inequality. 2.28 What is the ratio between the sides in the Cauchy-Schwartz inequality? 2.29 Why is the zero vector defined to be perpendicular to every vector? 2.30 Describe the angle between two vectors in R1. 2.31 Give a simple necessary and sufficient condition to determine whether the angle between two vectors is acute, right, or obtuse. / 2.32 Generalize to R" the converse of the Pythagorean Theorem, that if u and v are perpendicular then ||u+v||2 2 +||| |2 2.33 Show that || =| if and only if u + and u - are perpendicular. Give an example in R2 2.34 Show that if a vector is perpendicular to each of two others then it is perpen- dicular to each vector in the plane they generate. (Remark. They could generate a degenerate plane-a line or a point but the statement remains true.) 2.35 Prove that, where u, E R" are nonzero vectors, the vector iut bisects the angle between them. Illustrate in R2. 2.36 Verify that the definition of angle is dimensionally correct: (1) if k > 0 then the cosine of the angle between ki and v equals the cosine of the angle between i and v, and (2) if k < 0 then the cosine of the angle between kit and v is the negative of the cosine of the angle between it and v. v/ 2.37 Show that the inner product operation is linear: for it, v, E R and k, m E IR, u" (kv+ mi) = k(it -) + m(it - ). / 2.38 The geometric mean of two positive reals x, y is xy. It is analogous to the arithmetic mean (x + y)/2. Use the Cauchy-Schwartz inequality to show that the geometric mean of any x, y c R is less than or equal to the arithmetic mean. ? 2.39 A ship is sailing with speed and direction v1; the wind blows apparently (judging by the vane on the mast) in the direction of a vector a; on changing the direction and speed of the ship from v1 to v2 the apparent wind is in the direction of a vector b. Find the vector velocity of the wind. [Am. Math. Mon., Feb. 1933] 2.40 Verify the Cauchy-Schwartz inequality by first proving Lagrange's identity: 2 aab( a) b - (ajbj - ajbk)2 1 0 3 1 4 1 0 3 1 2 5 0 0 0 -2 4 1 0 -1/2 0 -9/2 (1/2pi (4/3)p+p2 -3p2±P 1/31 '0 1 1/ 0 3 (1/3)p2 -3+P1 0 0 0 1 -2 -(1/2)p3 Starting with the middle matrix, the echelon form version, back substitution produces -2x4 = 4 so that x4 = -2, then another back substitution gives 3x2 + x3 + 4(-2) = 1 implying that x2 = 3 - (1/3)x3, and then the final back substitution gives 2x1 + 6(3 - (1/3)x3) + x3 + 2(-2) = 5 implying that x1 = -(9/2) + (1/2)x3. Thus the solution set is this. X1 -9/2 1/2 x2 = 3 -1/3 X I s= { <) K1 + X3 x 3ER} X4 -2 0 Now, considering the final matrix, the reduced echelon form version, note that adjusting the parametrization by moving the x3 terms to the other side does indeed give the description of this infinite solution set. Part of the reason that this works is straightforward. While a set can have many parametrizations that describe it, e.g., both of these also describe the above set S (take t to be x3/6 and s to be x3 - 1) -9/2 3 -4 1/2 3 -2t)+ K tEII} { 8/3J + -1/3)s { 0 + 6 tItE } { 1 + 1 ssE -2 0 -2 0 nonetheless we have in this book stuck to a convention of parametrizing using the unmodified free variables (that is, x3 - x3 instead of x3 = 6t). We can easily see that a reduced echelon form version of a system is equivalent to a parametrization in terms of unmodified free variables. For instance, x1 =4- 2x3 1 0 2 4 <-->0 1 1 3 x2=3-k3 0 0 0 0 (to move from left to right we also need to know how many equations are in the system). So, the convention of parametrizing with the free variables by solving each equation for its leading variable and then eliminating that leading variable from every other equation is exactly equivalent to the reduced echelon form conditions that each leading entry must be a one and must be the only nonzero entry in its column.  Section III. Reduced Echelon Form 49 Not as straightforward is the other part of the reason that the reduced echelon form version allows us to read off the parametrization that we would have gotten had we stopped at echelon form and then done back substitution. The prior paragraph shows that reduced echelon form corresponds to some parametrization, but why the same parametrization? A solution set can be parametrized in many ways, and Gauss' method or the Gauss-Jordan method can be done in many ways, so a first guess might be that we could derive many different reduced echelon form versions of the same starting system and many different parametrizations. But we never do. Experience shows that starting with the same system and proceeding with row operations in many different ways always yields the same reduced echelon form and the same parametrization (using the unmodified free variables). In the rest of this section we will show that the reduced echelon form version of a matrix is unique. It follows that the parametrization of a linear system in terms of its unmodified free variables is unique because two different ones would give two different reduced echelon forms. We shall use this result, and the ones that lead up to it, in the rest of the book but perhaps a restatement in a way that makes it seem more immediately useful may be encouraging. Imagine that we solve a linear system, parametrize, and check in the back of the book for the answer. But the parametrization there appears different. Have we made a mistake, or could these be different-looking descriptions of the same set, as with the three descriptions above of S? The prior paragraph notes that we will show here that different-looking parametrizations (using the unmodified free variables) describe genuinely different sets. Here is an informal argument that the reduced echelon form version of a matrix is unique. Consider again the example that started this section of a matrix that reduces to three different echelon form matrices. The first matrix of the three is the natural echelon form version. The second matrix is the same as the first except that a row has been halved. The third matrix, too, is just a cosmetic variant of the first. The definition of reduced echelon form outlaws this kind of fooling around. In reduced echelon form, halving a row is not possible because that would change the row's leading entry away from one, and neither is combining rows possible, because then a leading entry would no longer be alone in its column. This informal justification is not a proof; we have argued that no two different reduced echelon form matrices are related by a single row operation step, but we have not ruled out the possibility that multiple steps might do. Before we go to that proof, we finish this subsection by rephrasing our work in a terminology that will be enlightening. Many different matrices yield the same reduced echelon form matrix. The three echelon form matrices from the start of this section, and the matrix they were derived from, all give this reduced echelon form matrix. 1 0 0 1  50 Chapter One. Linear Systems this relationship. 1.4 Lemma Elementary row operations are reversible. PROOF. For any matrix A, the effect of swapping rows is reversed by swapping them back, multiplying a row by a nonzero k is undone by multiplying by 1/k, and adding a multiple of row i to row j (with i f j) is undone by subtracting the same multiple of row i from row j. A per p)' A A ) (1 ' A Akp pip A (The i f j conditions is needed. See Exercise 13.) QED This lemma suggests that 'reduces to' is misleading where A - B, we shouldn't think of B as "after" A or "simpler than" A. Instead we should think of them as interreducible or interrelated. Below is a picture of the idea. The matrices from the start of this section and their reduced echelon form version are shown in a cluster. They are all interreducible; these relationships are shown also. 2 0 ) 0 - 1 ( 0 1 J( I\0 -1 2 222) 1 0 0 -1 (0 1 We say that matrices that reduce to each other are 'equivalent with respect to the relationship of row reducibility'. The next result verifies this statement using the definition of an equivalence.* 1.5 Lemma Between matrices, 'reduces to' is an equivalence relation. PROOF. We must check the conditions (i) reflexivity, that any matrix reduces to itself, (ii) symmetry, that if A reduces to B then B reduces to A, and (iii) tran- sitivity, that if A reduces to B and B reduces to C then A reduces to C. Reflexivity is easy; any matrix reduces to itself in zero row operations. That the relationship is symmetric is Lemma 1.4 if A reduces to B by some row operations then also B reduces to A by reversing those operations. For transitivity, suppose that A reduces to B and that B reduces to C. Linking the reduction steps from A ..-- B with those from B - - -*- C gives a reduction from A to C. QED 1.6 Definition Two matrices that are interreducible by the elementary row operations are row equivalent. * More information on equivalence relations is in the appendix.  Section III. Reduced Echelon Form 51 The diagram below shows the collection of all matrices as a box. Inside that box, each matrix lies in some class. Matrices are in the same class if and only if they are interreducible. The classes are disjoint no matrix is in two distinct classes. The collection of matrices has been partitioned into row equivalence classes. * o A One of the classes in this partition is the cluster of matrices shown above, expanded to include all of the nonsingular 2 x 2 matrices. The next subsection proves that the reduced echelon form of a matrix is unique; that every matrix reduces to one and only one reduced echelon form matrix. Rephrased in terms of the row-equivalence relationship, we shall prove that every matrix is row equivalent to one and only one reduced echelon form matrix. In terms of the partition what we shall prove is: every equivalence class contains one and only one reduced echelon form matrix. So each reduced echelon form matrix serves as a representative of its class. After that proof we shall, as mentioned in the introduction to this section, have a way to decide if one matrix can be derived from another by row reduction. We just apply the Gauss-Jordan procedure to both and see whether or not they come to the same reduced echelon form. Exercises / 1.7 Use Gauss-Jordan reduction to solve each system. (a) x+y=2 (b) x -z=4 (c) 3x-2y= 1 x-y=0 2x+2y =1 6x+ y=1/2 (d) 2x- y =-1 x+3y- z= 5 y+2z= 5 / 1.8 Find the reduced echelon form of each matrix. 2 1 1 3 1 1 0 3 1 2 (a) 1 3 (b) 2 0 4 (c) 1 4 2 1 5 -1 -3 -3 3 4 8 1 2 0 1 3 2 (d) 0 0 5 6 1 5 1 5 / 1.9 Find each solution set by using Gauss-Jordan reduction, then reading off the parametrization. (a) 2x+y-z=1 (b) x - z =1 (c) x- y+ z =0 4x-y =3 y+2z-w=3 y +w=0 x+2y+3z-w=7 3x- 2y+3z+w=0 -y -w=0 (d) a+2b+3c+d-e=1 3a- b+ c+d+e=3 * More information on partitions and class representatives is in the appendix.  52 Chapter One. Linear Systems 1.10 Give two distinct echelon form versions of this matrix. 2 1 1 3 6 4 1 2 1 5 1 5 / 1.11 List the reduced echelon forms possible for each size. (a) 2x2 (b) 2x3 (c) 3x2 (d) 3x3 / 1.12 What results from applying Gauss-Jordan reduction to a nonsingular matrix? 1.13 The proof of Lemma 1.4 contains a reference to the i # j condition on the row pivoting operation. (a) The definition of row operations has an i # j condition on the swap operation pi < p3. Show that in A Pe PZ A this condition is not needed. (b) Write down a 2x2 matrix with nonzero entries, and show that the -1 p1 +pi operation is not reversed by 1 - pi + pi. (c) Expand the proof of that lemma to make explicit exactly where the i # j condition on pivoting is used. 111.2 Row Equivalence We will close this section and this chapter by proving that every matrix is row equivalent to one and only one reduced echelon form matrix. The ideas that appear here will reappear, and be further developed, in the next chapter. The underlying theme here is that one way to understand a mathematical situation is by being able to classify the cases that can happen. We have met this theme several times already. We have classified solution sets of linear systems into the no-elements, one-element, and infinitely-many elements cases. We have also classified linear systems with the same number of equations as unknowns into the nonsingular and singular cases. We adopted these classifications because they give us a way to understand the situations that we were investigating. Here, where we are investigating row equivalence, we know that the set of all matrices breaks into the row equivalence classes. When we finish the proof here, we will have a way to understand each of those classes its matrices can be thought of as derived by row operations from the unique reduced echelon form matrix in that class. To understand how row operations act to transform one matrix into another, we consider the effect that they have on the parts of a matrix. The crucial observation is that row operations combine the rows linearly. 2.1 Definition A linear combination of x1,..., xm is an expression of the form c1x1 + c2x2 + - - - + cmxm where the c's are scalars. (We have already used the phrase 'linear combination' in this book. The mean- ing is unchanged, but the next result's statement makes a more formal definition in order.)  Section III. Reduced Echelon Form 53 2.2 Lemma (Linear Combination Lemma) A linear combination of linear combinations is a linear combination. PROOF. Given the linear combinations c1,1x1 + - - - + ci,nx through Cm,1x1 + - + Cm,nX, consider a combination of those d1(c1,1x1 + ... + ci,nxz) + ... + dm(Cm,1x1 + ... + Cm,nX) where the d's are scalars along with the c's. Distributing those d's and regroup- ing gives (dici,i + ... + dmCm,1)x1 + ... + (dici,n + ... + dmcm,n)xm which is a linear combination of the x's. QED In this subsection we will use the convention that, where a matrix is named with an upper case roman letter, the matching lower-case greek letter names the rows. ... am ''' /.\.''3m ' '. 2.3 Corollary Where one matrix reduces to another, each row of the second is a linear combination of the rows of the first. The proof below uses induction on the number of row operations used to reduce one matrix to the other. Before we proceed, here is an outline of the ar- gument (readers unfamiliar with induction may want to compare this argument with the one used in the 'General= Particular + Homogeneous' proof).* First, for the base step of the argument, we will verify that the proposition is true when reduction can be done in zero row operations. Second, for the inductive step, we will argue that if being able to reduce the first matrix to the second in some number t > 0 of operations implies that each row of the second is a linear combination of the rows of the first, then being able to reduce the first to the second in t + 1 operations implies the same thing. Together, this base step and induction step prove this result because by the base step the proposition is true in the zero operations case, and by the inductive step the fact that it is true in the zero operations case implies that it is true in the one operation case, and the inductive step applied again gives that it is therefore true in the two operations case, etc. PROOF. We proceed by induction on the minimum number of row operations that take a first matrix A to a second one B. * More information on mathematical induction is in the appendix.  54 Chapter One. Linear Systems In the base step, that zero reduction operations suffice, the two matrices are equal and each row of B is obviously a combination of A's rows: 32= 0O 1+--+1 - i+---+0 - m. For the inductive step, assume the inductive hypothesis: with t > 0, if a matrix can be derived from A in t or fewer operations then its rows are linear combinations of the A's rows. Consider a B that takes t +1 operations. Because there are more than zero operations, there must be a next-to-last matrix G so that A - ... -> G -> B. This G is only t operations away from A and so the inductive hypothesis applies to it, that is, each row of G is a linear combination of the rows of A. If the last operation, the one from G to B, is a row swap then the rows of B are just the rows of G reordered and thus each row of B is also a linear combination of the rows of A. The other two possibilities for this last operation, that it multiplies a row by a scalar and that it adds a multiple of one row to another, both result in the rows of B being linear combinations of the rows of G. But therefore, by the Linear Combination Lemma, each row of B is a linear combination of the rows of A. With that, we have both the base step and the inductive step, and so the proposition follows. QED 2.4 Example In the reduction 0 2) pI-+p2 1 1 (1/2)p2 1 1) -p2-pl (1 0 1 1 0 2 0 1 0 1 call the matrices A, D, G, and B. The methods of the proof show that there are three sets of linear relationships. 61 = 0 Zai+1 - 2 '71 = 0 - ai+1- a2 1= (-1/2)a1+1.- 2 62 = 1 - ai +0- a2 '72 = (1/2)a1 +0 - a2 /32 = (1/2)a1+0 - a2 The prior result gives us the insight that Gauss' method works by taking linear combinations of the rows. But to what end; why do we go to echelon form as a particularly simple, or basic, version of a linear system? The answer, of course, is that echelon form is suitable for back substitution, because we have isolated the variables. For instance, in this matrix 2 3 7 8 0 0 0 0 1 5 1 1 0 0 0 3 3 0 0 0 0 0 2 1 x1 has been removed from X5's equation. That is, Gauss' method has made X5's row independent of x1's row. Independence of a collection of row vectors, or of any kind of vectors, will be precisely defined and explored in the next chapter. But a first take on it is that we can show that, say, the third row above is not comprised of the other  Section III. Reduced Echelon Form 55 rows, that p3 # c1p1 + c2p2 + c4p4. For, suppose that there are scalars ci, c2, and c4 such that this relationship holds. (0 0 0 3 3 0) = c1i(2 3 7 8 0 0) + c2 (0 0 1 5 1 1) +c4(0 0 0 0 2 1) The first row's leading entry is in the first column and narrowing our considera- tion of the above relationship to consideration only of the entries from the first column 0 = 2c1+0c2 +0c4 gives that c1 = 0. The second row's leading entry is in the third column and the equation of entries in that column 0 = 7c1 + 1c2 + 0c4, along with the knowledge that c1 = 0, gives that c2 = 0. Now, to finish, the third row's leading entry is in the fourth column and the equation of entries in that column 3 = 8c1 + 5c2 + Oc4, along with c1 = 0 and c2 = 0, gives an impossibility. The following result shows that this effect always holds. It shows that what Gauss' linear elimination method eliminates is linear relationships among the rows. 2.5 Lemma In an echelon form matrix, no nonzero row is a linear combination of the other rows. PROOF. Let R be in echelon form. Suppose, to obtain a contradiction, that some nonzero row is a linear combination of the others. pi = cipi + ... +ci-1pi-1 +Ci+1pi+1 + ... + Cmpm We will first use induction to show that the coefficients ci, ..., c2_1 associated with rows above p2 are all zero. The contradiction will come from consideration of p2 and the rows below it. The base step of the induction argument is to show that the first coefficient c1 is zero. Let the first row's leading entry be in column number L1 and consider the equation of entries in that column. pi,f1 = ci p1,C1 + ... + Ci-1pi-l,C1 + ci+1pi+1,C1 + ... + Cmpm,C1 The matrix is in echelon form so the entries p2,e1, ..., pm,ei, including pi,Ci, are all zero. 0 = cipe1 +...+ci-i 0+ci+1-0+.---+Cm-0 Because the entry pi1 is nonzero as it leads its row, the coefficient c1 must be zero. The inductive step is to show that for each row index k between 1 and i -2, if the coefficient ci and the coefficients c2, ..., ck are all zero then Ck+1 is also zero. That argument, and the contradiction that finishes this proof, is saved for Exercise 21. QED  56 Chapter One. Linear Systems We can now prove that each matrix is row equivalent to one and only one reduced echelon form matrix. We will find it convenient to break the first half of the argument off as a preliminary lemma. For one thing, it holds for any echelon form whatever, not just reduced echelon form. 2.6 Lemma If two echelon form matrices are row equivalent then the leading entries in their first rows lie in the same column. The same is true of all the nonzero rows-the leading entries in their second rows lie in the same column, etc. For the proof we rephrase the result in more technical terms. Define the form of an m x n matrix to be the sequence (K1, £2,... , £m) where £i is the column number of the leading entry in row i and £i = oc if there is no leading entry in that row. The lemma says that if two echelon form matrices are row equivalent then their forms are equal sequences. PROOF. Let B and D be echelon form matrices that are row equivalent. Because they are row equivalent they must be the same size, say m x n. Let the column number of the leading entry in row i of B be £i and let the column number of the leading entry in row j of D be k3. We will show that £1 = k1, that £2 = k2, etc., by induction. This induction argument relies on the fact that the matrices are row equiv- alent, because the Linear Combination Lemma and its corollary therefore give that each row of B is a linear combination of the rows of D and vice versa: A = si,161 + si,262 + ... + si,mom and oj = tj,113 + tj,2/32 + ... + tj,m/3m where the s's and t's are scalars. The base step of the induction is to verify the lemma for the first rows of the matrices, that is, to verify that L1 = k1. If either row is a zero row then the entire matrix is a zero matrix since it is in echelon form, and therefore both matrices are zero matrices (by Corollary 2.3), and so both L1 and k1 are oc. For the case where neither 13 nor 61 is a zero row, consider the i= 1 instance of the linear relationship above. 31 = s1,161 + s1,262 + ... + s1,mom (0 -.-.- b1, 1 -.-. ) = si,1 (0 -.-.- di,k1 -.-.- ) +s1,2(0 0 ... ) +s1,m(0 --. 0 ... ) First, note that £1 < k1 is impossible: in the columns of D to the left of column k1 the entries are all zeroes (as dlk1 leads the first row) and so if L1 < k1 then the equation of entries from column L1 would be b1,31 = si,1 - 0 + - - - + si,m -.0, but bi,e1 isn't zero since it leads its row and so this is an impossibility. Next, a symmetric argument shows that k1 < £1 also is impossible. Thus the L1 = k1 base case holds.  Section II. Reduced Echelon Form 57 The inductive step is to show that if t1 = k1, and t2 = k2, ..., and r = k, then also Er+1 = kr+1 (for r in the interval 1.. m - 1). This argument is saved for Exercise 22. QED That lemma answers two of the questions that we have posed: (i) any two echelon form versions of a matrix have the same free variables, and consequently, and (ii) any two echelon form versions have the same number of free variables. There is no linear system and no combination of row operations such that, say, we could solve the system one way and get y and z free but solve it another way and get y and w free, or solve it one way and get two free variables while solving it another way yields three. We finish now by specializing to the case of reduced echelon form matrices. 2.7 Theorem Each matrix is row equivalent to a unique reduced echelon form matrix. PROOF. Clearly any matrix is row equivalent to at least one reduced echelon form matrix, via Gauss-Jordan reduction. For the other half, that any matrix is equivalent to at most one reduced echelon form matrix, we will show that if a matrix Gauss-Jordan reduces to each of two others then those two are equal. Suppose that a matrix is row equivalent to two reduced echelon form ma- trices B and D, which are therefore row equivalent to each other. The Linear Combination Lemma and its corollary allow us to write the rows of one, say B, as a linear combination of the rows of the other #i = ci,161 + - - - + ci,m6m. The preliminary result, Lemma 2.6, says that in the two matrices, the same collection of rows are nonzero. Thus, if #1 through #, are the nonzero rows of B then the nonzero rows of D are 61 through or. Zero rows don't contribute to the sum so we can rewrite the relationship to include just the nonzero rows. #=ci,161+--+cir H(*) The preliminary result also says that for each row j between 1 and r, the leading entries of the j-th row of B and D appear in the same column, denoted Ej. Rewriting the above relationship to focus on the entries in the Ej-th column ( - 6- i b , --- ) = ci,1 ( -.-. di e, -.-. ) + ci,2 ( -.-. d2,e, -.-. ) + ci~r ( ... drej ... ) gives this set of equations for i = 1 up to i = r. b1,-j = c1,1d1 ,f + ... + cij djfj + ... + ci,rdr,fj -je cjid1 ,~ + ... + cjjjf + ... + cj rdr,e, brfj =cr 1d1 fj + ... + cr,j dj,fI + ... + cr rdrKI  58 Chapter One. Linear Systems Since D is in reduced echelon form, all of the d's in column £i are zero except for djfj, which is 1. Thus each equation above simplifies to b2,f = cii, djfj = cij -1. But B is also in reduced echelon form and so all of the b's in column £j are zero except for byfj, which is 1. Therefore, each cij is zero, except that ci,1 = 1, andc2,2=1, ..., and c,,, = 1. We have shown that the only nonzero coefficient in the linear combination labelled (*) is cyj, which is 1. Therefore /3 =6o. Because this holds for all nonzero rows, B = D. QED We end with a recap. In Gauss' method we start with a matrix and then derive a sequence of other matrices. We defined two matrices to be related if one can be derived from the other. That relation is an equivalence relation, called row equivalence, and so partitions the set of all matrices into row equivalence classes. (There are infinitely many matrices in the pictured class, but we've only got room to show two.) We have proved there is one and only one reduced echelon form matrix in each row equivalence class. So the reduced echelon form is a canonical form* for row equivalence: the reduced echelon form matrices are representatives of the classes. 1 * * 1 1) * We can answer questions about the classes by translating them into questions about the representatives. 2.8 Example We can decide if matrices are interreducible by seeing if Gauss- Jordan reduction produces the same reduced echelon form result. Thus, these are not row equivalent 1 -3 1 -3 -2 6 -2 5 * More information on canonical representatives is in the appendix.  Section III. Reduced Echelon Form 59 because their reduced echelon forms are not equal. 1 -3 1 0 0 0 0 1 2.9 Example Any nonsingular 3 x 3 matrix Gauss-Jordan reduces to this. 1 0 0 0 1 0 0 0 1 2.10 Example We can describe the classes by listing all possible reduced echelon form matrices. Any 2x2 matrix lies in one of these: the class of matrices row equivalent to this, 0 0 0 0 the infinitely many classes of matrices row equivalent to one of this type 1 a 0 0 where a E R (including a = 0), the class of matrices row equivalent to this, 0 1 0 0 and the class of matrices row equivalent to this 1 0 0 1 (this is the class of nonsingular 2 x 2 matrices). Exercises / 2.11 Decide if the matrices are row equivalent. 1 2 0 1 1 0 2 (a) 4 8' 1 2 (b) 3 -1 1 5 -1 5 (1 (0 2 0 2 0 2 10 4 2 1 -1 1 0 2 fl 1 1 0 3 -1 (c) 1 1 0; ' 0 2 10 (d) -1 2 2' 2 2 5 (e l 1 1 0 1 2 () 0 0 3' 1 -1 1 2.12 Describe the matrices in each of the classes represented in Example 2.10. 2.13 Describe all matrices in the row equivalence class of these.  60 Chapter One. Linear Systems () 1 0 (b 1 2 (c 1 1 ()0 0 (b 2 4 (c 1 3 2.14 How many row equivalence classes are there? 2.15 Can row equivalence classes contain different-sized matrices? 2.16 How big are the row equivalence classes? (a) Show that the class of any zero matrix is finite. (b) Do any other classes contain only finitely many members? / 2.17 Give two reduced echelon form matrices that have their leading entries in the same columns, but that are not row equivalent. / 2.18 Show that any two n x n nonsingular matrices are row equivalent. Are any two singular matrices row equivalent? / 2.19 Describe all of the row equivalence classes containing these. (a) 2 x 2 matrices (b) 2 x 3 matrices (c) 3 x 2 matrices (d) 3 x 3 matrices 2.20 (a) Show that a vector 3o is a linear combination of members of the set {1,1.. . , ,n} if and only if there is a linear relationship 0 = co3o + - - - + cn/3n where co is not zero. (Hint. Watch out for the 3o = 0 case.) (b) Use that to simplify the proof of Lemma 2.5. / 2.21 Finish the proof of Lemma 2.5. (a) First illustrate the inductive step by showing that c2 = 0. (b) Do the full inductive step: where 1 < n < i - 1, assume that ck = 0 for 1 < k A:=array( [[1,-1,-1,0,0,0,0], [0,0,1,0,-1,1,0] , [0,0,0,1,1,0,-1], [0,5,0,10,0,0,0], [0,0,2,0,4,0,0], [0,5,-1,0,0,10,0]] ); (putting the rows on separate lines is not necessary, but is done for clarity). The vector of constants is entered similarly. > u:=array( [0,0,0,0,10,10,0] ); Then the system is solved, like magic. > linsolve(A,u); 7 2 5 2 5 7 [ -, -, -, -, -, 0, - ] 3 3 3 3 3 3 Systems with infinitely many solutions are solved in the same way-the com- puter simply returns a parametrization. Exercises Answers for this Topic use Maple as the computer algebra system. In particular, all of these were tested on Maple V running under MS-DOS NT version 4.0. (On all of them, the preliminary command to load the linear algebra package along with Maple's responses to the Enter key, have been omitted.) Other systems have similar commands.  Topic: Computer Algebra Systems 63 1 Use the computer to solve the two problems that opened this chapter. (a) This is the Statics problem. 40h + 15c = 100 25c = 50 + 50h (b) This is the Chemistry problem. 7h =7j 8h+li= 5j+2k Ii = 3j 3i =6j + 1k 2 Use the computer to solve these systems from the first subsection, or conclude 'many solutions' or 'no solutions'. (a) 2x+2y=5 (b) -x+y=1 (c) x-3y+ z= 1 x-4y=0 x+y=2 x+ y+2z=14 (d) -x- y=1 (e) 4y+z=20 (f) 2x + z+w= 5 -3x-3y=2 2x-2y+z= 0 y -w=-1 x +z =5 3x -z-w = 0 x+ y-z=10 4x+y+2z+w= 9 3 Use the computer to solve these systems from the second subsection. (a) 3x+6y =18 (b) x + y = 1 (c) X1 + x3 = 4 x+2y= 6 x-y=-1 x1-x2+2x3= 5 4x - x2 + 5x3 =17 (d) 2a+b-c=2 (e) x+2y-z =3 (f) x + z+ w= 4 2a +c=3 2x+ y +w=4 2x+y -w=2 a-b =0 x- y+z+w=1 3x+y+z =7 4 What does the computer give for the solution of the general 2 x 2 system? ax + cy= p bx + dy= q  64 Chapter One. Linear Systems Topic: Input-Output Analysis An economy is an immensely complicated network of interdependences. Changes in one part can ripple out to affect other parts. Economists have struggled to be able to describe, and to make predictions about, such a complicated object. Mathematical models using systems of linear equations have emerged as a key tool. One is Input-Output Analysis, pioneered by W. Leontief, who won the 1973 Nobel Prize in Economics. Consider an economy with many parts, two of which are the steel industry and the auto industry. As they work to meet the demand for their product from other parts of the economy, that is, from users external to the steel and auto sectors, these two interact tightly. For instance, should the external demand for autos go up, that would lead to an increase in the auto industry's usage of steel. Or, should the external demand for steel fall, then it would lead to a fall in steel's purchase of autos. The type of Input-Output model we will consider takes in the external demands and then predicts how the two interact to meet those demands. We start with a listing of production and consumption statistics. (These numbers, giving dollar values in millions, are excerpted from [Leontief 1965], describing the 1958 U.S. economy. Today's statistics would be quite different, both because of inflation and because of technical changes in the industries.) used by used by used by steel auto others total value of 5 395 2 664 25 448 steel value of 48 9 030 30 346 auto For instance, the dollar value of steel used by the auto industry in this year is 2,664 million. Note that industries may consume some of their own output. We can fill in the blanks for the external demand. This year's value of the steel used by others this year is 17, 389 and this year's value of the auto used by others is 21, 268. With that, we have a complete description of the external demands and of how auto and steel interact, this year, to meet them. Now, imagine that the external demand for steel has recently been going up by 200 per year and so we estimate that next year it will be 17, 589. Imagine also that for similar reasons we estimate that next year's external demand for autos will be down 25 to 21, 243. We wish to predict next year's total outputs. That prediction isn't as simple as adding 200 to this year's steel total and subtracting 25 from this year's auto total. For one thing, a rise in steel will cause that industry to have an increased demand for autos, which will mitigate, to some extent, the loss in external demand for autos. On the other hand, the drop in external demand for autos will cause the auto industry to use less steel, and so lessen somewhat the upswing in steel's business. In short, these two industries form a system, and we need to predict the totals at which the system as a whole will settle.  Topic: Input-Output Analysis 65 For that prediction, let s be next years total production of steel and let a be next year's total output of autos. We form these equations. next year's production of steel = next year's use of steel by steel + next year's use of steel by auto + next year's use of steel by others next year's production of autos = next year's use of autos by steel + next year's use of autos by auto + next year's use of autos by others On the left side of those equations go the unknowns s and a. At the ends of the right sides go our external demand estimates for next year 17, 589 and 21, 243. For the remaining four terms, we look to the table of this year's information about how the industries interact. For instance, for next year's use of steel by steel, we note that this year the steel industry used 5395 units of steel input to produce 25, 448 units of steel output. So next year, when the steel industry will produce s units out, we expect that doing so will take s - (5395)/(25 448) units of steel input -this is simply the assumption that input is proportional to output. (We are assuming that the ratio of input to output remains constant over time; in practice, models may try to take account of trends of change in the ratios.) Next year's use of steel by the auto industry is similar. This year, the auto industry uses 2664 units of steel input to produce 30346 units of auto output. So next year, when the auto industry's total output is a, we expect it to consume a - (2664)/(30346) units of steel. Filling in the other equation in the same way, we get this system of linear equation. 5 395 2 664 - s + 6 a + 17 589 = s 25 448 30 346 48 9030 + a + 21243= a 25 448 30346 Gauss' method on this system. (20 053/25 448)s - (2 664/30 346)a = 17 589 -(48/25 448)s + (21 316/30 346)a = 21 243 gives s = 25 698 and a = 30 311. Looking back, recall that above we described why the prediction of next year's totals isn't as simple as adding 200 to last year's steel total and subtract- ing 25 from last year's auto total. In fact, comparing these totals for next year to the ones given at the start for the current year shows that, despite the drop in external demand, the total production of the auto industry is predicted to rise. The increase in internal demand for autos caused by steel's sharp rise in business more than makes up for the loss in external demand for autos. One of the advantages of having a mathematical model is that we can ask "What if ... ?" questions. For instance, we can ask "What if the estimates for  66 Chapter One. Linear Systems next year's external demands are somewhat off?" To try to understand how much the model's predictions change in reaction to changes in our estimates, we can try revising our estimate of next year's external steel demand from 17, 589 down to 17,489, while keeping the assumption of next year's external demand for autos fixed at 21, 243. The resulting system (20 053/25 448)s - (2 664/30 346)a = 17 489 -(48/25 448) s + (21 316/30 346)a = 21 243 when solved gives s = 25571 and a = 30 311. This kind of exploration of the model is sensitivity analysis. We are seeing how sensitive the predictions of our model are to the accuracy of the assumptions. Obviously, we can consider larger models that detail the interactions among more sectors of an economy. These models are typically solved on a computer, using the techniques of matrix algebra that we will develop in Chapter Three. Some examples are given in the exercises. Obviously also, a single model does not suit every case; expert judgment is needed to see if the assumptions un- derlying the model are reasonable for a particular case. With those caveats, however, this model has proven in practice to be a useful and accurate tool for economic analysis. For further reading, try [Leontief 1951] and [Leontief 1965]. Exercises Hint: these systems are easiest to solve on a computer. 1 With the steel-auto system given above, estimate next year's total productions in these cases. (a) Next year's external demands are: up 200 from this year for steel, and un- changed for autos. (b) Next year's external demands are: up 100 for steel, and up 200 for autos. (c) Next year's external demands are: up 200 for steel, and up 200 for autos. 2 In the steel-auto system, the ratio for the use of steel by the auto industry is 2664/30 346, about 0.0878. Imagine that a new process for making autos reduces this ratio to .0500. (a) How will the predictions for next year's total productions change compared to the first example discussed above (i.e., taking next year's external demands to be 17, 589 for steel and 21, 243 for autos)? (b) Predict next year's totals if, in addition, the external demand for autos rises to be 21, 500 because the new cars are cheaper. 3 This table gives the numbers for the auto-steel system from a different year, 1947 (see [Leontief 1951]). The units here are billions of 1947 dollars. used by used by used by steel auto others total valuetof 6.90 1.28 18.69 steel value of 0 4.40 14.27 autos (a) Solve for total output if next year's external demands are: steel's demand up 10% and auto's demand up 15%. (b) How do the ratios compare to those given above in the discussion for the 1958 economy?  Topic: Input-Output Analysis 67 (c) Solve the 1947 equations with the 1958 external demands (note the difference in units; a 1947 dollar buys about what $1.30 in 1958 dollars buys). How far off are the predictions for total output? 4 Predict next year's total productions of each of the three sectors of the hypothet- ical economy shown below used by used by used by used by farm rail shipping others total value of 25 50 100 800 farm value of 25 50 50 300 rail value of 15 10 0 500 shipping if next year's external demands are as stated. (a) 625 for farm, 200 for rail, 475 for shipping (b) 650 for farm, 150 for rail, 450 for shipping 5 This table gives the interrelationships among three segments of an economy (see [Clark & Coupe]). used by used by used by used by total food wholesale retail others value of food 0 2 318 4 679 11869 value of wholesale 393 1 089 22 459 122 242 value of retail 3 53 75 116 041 We will do an Input-Output analysis on this system. (a) Fill in the numbers for this year's external demands. (b) Set up the linear system, leaving next year's external demands blank. (c) Solve the system where next year's external demands are calculated by tak- ing this year's external demands and inflating them 10%. Do all three sectors increase their total business by 10%? Do they all even increase at the same rate? (d) Solve the system where next year's external demands are calculated by taking this year's external demands and reducing them 7%. (The study from which these numbers are taken concluded that because of the closing of a local military facility, overall personal income in the area would fall 7%, so this might be a first guess at what would actually happen.)  68 Chapter One. Linear Systems Topic: Accuracy of Computations Gauss' method lends itself nicely to computerization. The code below illustrates. It operates on an nxn matrix a, pivoting with the first row, then with the second row, etc. for (pivotrow=1;pivotrow<=n-1;pivotrow++){ for (rowbelow=pivotrow+1;row_below<=n;rowbelow++){ multiplier=a[rowbelow,pivotrow]/a[pivotrow,pivotrow]; for(col=pivot_row;col<=n; col++){ a[rowbelow,col] -=multiplier*a[pivotrow,col]; } } } (This code is in the C language. Here is a brief translation. The loop con- struct for(pivotrow=1;pivotrow<=n-1;pivotrow++){.. . } sets pivot-row to 1 and then iterates while pivot-row is less than or equal to n - 1, each time through incrementing pivot-row by one with the '++' operation. The other non-obvious construct is that the '-=' in the innermost loop amounts to the a [rowbelow, col]= -multiplier * a [pivotrow, col] + a [row-below, col] operation.) While this code provides a quick take on how Gauss' method can be mech- anized, it is not ready to use. It is naive in many ways. The most glar- ing way is that it assumes that a nonzero number is always found in the pivotrow, pivot-row position for use as the pivot entry. To make it practi- cal, one way in which this code needs to be reworked is to cover the case where finding a zero in that location leads to a row swap, or to the conclusion that the matrix is singular. Adding some if ... statements to cover those cases is not hard, but we will instead consider some more subtle ways in which the code is naive. There are pitfalls arising from the computer's reliance on finite-precision floating point arithmetic. For example, we have seen above that we must handle as a separate case a system that is singular. But systems that are nearly singular also require care. Consider this one. x + 2y= 3 1.000 000 O1x + 2y = 3.000 000 01 By eye we get the solution x = 1 and y = 1. But a computer has more trouble. A computer that represents real numbers to eight significant places (as is common, usually called single precision) will represent the second equation internally as 1.000 000 Ox + 2y = 3.000 000 0, losing the digits in the ninth place. Instead of reporting the correct solution, this computer will report something that is not even close-this computer thinks that the system is singular because the two equations are represented internally as equal. For some intuition about how the computer could come up with something that far off, we can graph the system.  Topic: Accuracy of Computations 69 1, 1) At the scale of this graph, the two lines cannot be resolved apart. This system is nearly singular in the sense that the two lines are nearly the same line. Near- singularity gives this system the property that a small change in the system can cause a large change in its solution; for instance, changing the 3.000 000 01 to 3.000 000 03 changes the intersection point from (1, 1) to (3, 0). This system changes radically depending on a ninth digit, which explains why the eight- place computer has trouble. A problem that is very sensitive to inaccuracy or uncertainties in the input values is ill-conditioned. The above example gives one way in which a system can be difficult to solve on a computer. It has the advantage that the picture of nearly-equal lines gives a memorable insight into one way that numerical difficulties can arise. Unfortunately this insight isn't very useful when we wish to solve some large system. We cannot, typically, hope to understand the geometry of an arbitrary large system. In addition, there are ways that a computer's results may be unreliable other than that the angle between some of the linear surfaces is quite small. For an example, consider the system below, from [Hamming]. 0.001x + y 1 - =0(*) The second equation gives x = y, so x = y = 1/1.001 and thus both variables have values that are just less than 1. A computer using two digits represents the system internally in this way (we will do this example in two-digit floating point arithmetic, but a similar one with eight digits is easy to invent). (1.0 x 10-2)x + (1.0 x 100)y = 1.0 x 100 (1.0 x 100)x - (1.0 x 100)y = 0.0 x 100 The computer's row reduction step -1000p1 + P2 produces a second equation -1001y = -999, which the computer rounds to two places as (-1.0 x 103)y -1.0 x 103. Then the computer decides from the second equation that y = 1 and from the first equation that x = 0. This y value is fairly good, but the x is quite bad. Thus, another cause of unreliable output is a mixture of floating point arithmetic and a reliance on pivots that are small. An experienced programmer may respond that we should go to double pre- cision where sixteen significant digits are retained. This will indeed solve many problems. However, there are some difficulties with it as a general approach. For one thing, double precision takes longer than single precision (on a '486  70 Chapter One. Linear Systems chip, multiplication takes eleven ticks in single precision but fourteen in dou- ble precision [Programmer's Ref.]) and has twice the memory requirements. So attempting to do all calculations in double precision is just not practical. And besides, the above systems can obviously be tweaked to give the same trouble in the seventeenth digit, so double precision won't fix all problems. What we need is a strategy to minimize the numerical trouble arising from solving systems on a computer, and some guidance as to how far the reported solutions can be trusted. Mathematicians have made a careful study of how to get the most reliable results. A basic improvement on the naive code above is to not simply take the entry in the pivot_row, pivot_row position for the pivot, but rather to look at all of the entries in the pivot-row column below the pivot-row row, and take the one that is most likely to give reliable results (e.g., take one that is not too small). This strategy is partial pivoting. For example, to solve the troublesome system (*) above, we start by looking at both equations for a best first pivot, and taking the 1 in the second equation as more likely to give good results. Then, the pivot step of -.001,o2 + p1 gives a first equation of 1.001y = 1, which the computer will represent as (1.0 x 100)y = 1.0 x 100, leading to the conclusion that y = 1 and, after back-substitution, x= 1, both of which are close to right. The code from above can be adapted to this purpose. for (pivotrow=1;pivotrow<=n-1;pivotrow++){ /* find the largest pivot in this column (in row max) */ max=pivot-row; for(rowbelow=pivotrow+1;pivot_row<=n;rowbelow++){ if (abs(a[rowbelow,pivotrow]) > abs (a[max,rowbelow])) max=rowbelow; } /* swap rows to move that pivot entry up */ for (col=pivot_row; col<=n; col++) { temp=a[pivot_rowcol]; a [pivotrow, col] =a [max, col]; a [max, col] =temp; } /* proceed as before */ for (rowbelow=pivotrow+1;row_below<=n;rowbelow++){ multiplier=a[rowbelow,pivotrow]/a[pivotrow,pivotrow]; for(col=pivotrow; col<=n; col++){ a [rowbelow, col] -=multiplier*a [pivotrow, col]; } } } A full analysis of the best way to implement Gauss' method is outside the scope of the book (see [Wilkinson 1965]), but the method recommended by most experts is a variation on the code above that first finds the best pivot among the candidates, and then scales it to a number that is less likely to give trouble. T his is scaled partial pivoting.  Topic: Accuracy of Computations 71 In addition to returning a result that is likely to be reliable, most well-done code will return a number, called the conditioning number that describes the factor by which uncertainties in the input numbers could be magnified to become inaccuracies in the results returned (see [Rice]). The lesson of this discussion is that just because Gauss' method always works in theory, and just because computer code correctly implements that method, and just because the answer appears on green-bar paper, doesn't mean that the answer is reliable. In practice, always use a package where experts have worked hard to counter what can go wrong. Exercises 1 Using two decimal places, add 253 and 2/3. 2 This intersect-the-lines problem contrasts with the example discussed above. x + 2y =3 1,1) 3x-2y=1 Illustrate that in this system some small change in the numbers will produce only a small change in the solution by changing the constant in the bottom equation to 1.008 and solving. Compare it to the solution of the unchanged system. 3 Solve this system by hand ([Rice]). 0.000 3x + 1.556y= 1.569 0.345 4x - 2.346y = 1.018 (a) Solve it accurately, by hand. (b) Solve it by rounding at each step to four significant digits. 4 Rounding inside the computer often has an effect on the result. Assume that your machine has eight significant digits. (a) Show that the machine will compute (2/3) + ((2/3) - (1/3)) as unequal to ((2/3) + (2/3)) - (1/3). Thus, computer arithmetic is not associative. (b) Compare the computer's version of (1/3)x + y = 0 and (2/3)x + 2y = 0. Is twice the first equation the same as the second? 5 Ill-conditioning is not only dependent on the matrix of coefficients. This example [Hamming] shows that it can arise from an interaction between the left and right sides of the system. Let c be a small real. 3x+ 2y+ z= 6 2x + 2Ey + 2Ez =2+ 4E x+2cy- cz= 1+c (a) Solve the system by hand. Notice that the c's divide out only because there is an exact cancelation of the integer parts on the right side as well as on the left. (b) Solve the system by hand, rounding to two decimal places, and with = 0.001.  72 Chapter One. Linear Systems Topic: Analyzing Networks The diagram below shows some of a car's electrical network. The battery is on the left, drawn as stacked line segments. The wires are drawn as lines, shown straight and with sharp right angles for neatness. Each light is a circle enclosing a loop. Light Dome K Brake Switch Light Actuated Offo Switch L Door Dimmer K Actuated __12V Lo Hi Switch L R L R L R L R L R Brake Parking Rear Headlights Lights Lights Lights The designer of such a network needs to answer questions like: How much electricity flows when both the hi-beam headlights and the brake lights are on? Below, we will use linear systems to analyze simpler versions of electrical networks. For the analysis we need two facts about electricity and two facts about electrical networks. The first fact about electricity is that a battery is like a pump: it provides a force impelling the electricity to flow through the circuits connecting the bat- tery's ends, if there are any such circuits. We say that the battery provides a potential to flow. Of course, this network accomplishes its function when, as the electricity flows through a circuit, it goes through a light. For instance, when the driver steps on the brake then the switch makes contact and a cir- cuit is formed on the left side of the diagram, and the electrical current flowing through that circuit will make the brake lights go on, warning drivers behind. The second electrical fact is that in some kinds of network components the amount of flow is proportional to the force provided by the battery. That is, for each such component there is a number, it's resistance, such that the potential is equal to the flow times the resistance. The units of measurement are: potential is described in volts, the rate of flow is in amperes, and resistance to the flow is in ohms. These units are defined so that volts = amperes - ohms. Components with this property, that the voltage-amperage response curve is a line through the origin, are called resistors. (Light bulbs such as the ones shown above are not this kind of component, because their ohmage changes as they heat up.) For example, if a resistor measures 2 ohms then wiring it to a 12 volt battery results in a flow of 6 amperes. Conversely, if we have flow of electrical current of 2 amperes through it then there must be a 4 volt potential  Topic: Analyzing Networks 73 difference between it's ends. This is the voltage drop across the resistor. One way to think of a electrical circuits like the one above is that the battery provides a voltage rise while the other components are voltage drops. The two facts that we need about networks are Kirchhoff's Laws. Current Law. For any point in a network, the flow in equals the flow out. Voltage Law. Around any circuit the total drop equals the total rise. In the above network there is only one voltage rise, at the battery, but some networks have more than one. For a start we can consider the network below. It has a battery that provides the potential to flow and three resistors (resistors are drawn as zig-zags). When components are wired one after another, as here, they are said to be in series. 2 ohm resistance --20 volt 5 ohm --potential resistance 3 ohm resistance By Kirchhoff's Voltage Law, because the voltage rise is 20 volts, the total voltage drop must also be 20 volts. Since the resistance from start to finish is 10 ohms (the resistance of the wires is negligible), we get that the current is (20/10) 2 amperes. Now, by Kirchhoff's Current Law, there are 2 amperes through each resistor. (And therefore the voltage drops are: 4 volts across the 2 oh m resistor, 10 volts across the 5 ohm resistor, and 6 volts across the 3 ohm resistor.) The prior network is so simple that we didn't use a linear system, but the next network is more complicated. In this one, the resistors are in parallel. This network is more like the car lighting diagram shown earlier. - 20volt 12 ohm 8 ohm We begin by labeling the branches, shown below. Let the current through the left branch of the parallel portion be i1 and that through the right branch be i2, and also let the current through the battery be io. (We are following Kirchoff's Current Law; for instance, all points in the right branch have the same current, which we call i2. Note that we don't need to know the actual direction of flow if current flows in the direction opposite to our arrow then we will simply get a negative number in the solution.)  74 Chapter One. Linear Systems To il K Z2 The Current Law, applied to the point in the upper right where the flow io meets i1 and i2, gives that io = i1 + i2. Applied to the lower right it gives i1 + i2 = io. In the circuit that loops out of the top of the battery, down the left branch of the parallel portion, and back into the bottom of the battery, the voltage rise is 20 while the voltage drop is i1 - 12, so the Voltage Law gives that 12i1 = 20. Similarly, the circuit from the battery to the right branch and back to the battery gives that 8i2 = 20. And, in the circuit that simply loops around in the left and right branches of the parallel portion (arbitrarily taken clockwise), there is a voltage rise of 0 and a voltage drop of 8i2 - 12i1 so the Voltage Law gives that 8i2 - 12i1 = 0. io- i1- i2= 0 -io+ ii+ i2= 0 12i1 = 20 8i2 = 20 -12ii+8i2= 0 The solution is io = 25/6, i1 = 5/3, and i2 = 5/2, all in amperes. (Incidentally, this illustrates that redundant equations do indeed arise in practice.) Kirchhoff's laws can be used to establish the electrical properties of networks of great complexity. The next diagram shows five resistors, wired in a series- parallel way. 5 ohm 2 ohm 50 ohm -10 volt '/N 10 ohm 4 ohm This network is a Wheatstone bridge (see Exercise 4). To analyze it, we can place the arrows in this way. T 0 is3\ / 4  Topic: Analyzing Networks 75 Kirchoff's Current Law, applied to the top node, the left node, the right node, and the bottom node gives these. 1o = 1 + 12 i1 =3 + i5 i2 + is = i4 i3 + i4 -o Kirchhoff's Voltage Law, applied to the inside loop (the io to i1 to i3 to i0 loop), the outside loop, and the upper loop not involving the battery, gives these. 5i1 + 10i3 =10 2i2+ 4i4 = 10 5i1 + 50i5 - 2i2 = 0 Those suffice to determine the solution io = 7/3, i1 = 2/3, i2 = 5/3, i3= 2/3, i4=5/3, and i =0. Networks of other kinds, not just electrical ones, can also be analyzed in this way. For instance, networks of streets are given in the exercises. Exercises Many of the systems for these problems are mostly easily solved on a computer. 1 Calculate the amperages in each part of each network. (a) This is a simple network. 3 ohm 9 volt 2 ohm 2 ohm (b) Compare this one with the parallel case discussed above. \NW 3 ohm 9 volt 2 ohm 2 ohm 2 ohm (c) This is a reasonably complicated network.  76 Chapter One. Linear Systems 2 In the first network that we analyzed, with the three resistors in series, we just added to get that they acted together like a single resistor of 10 ohms. We can do a similar thing for parallel circuits. In the second circuit analyzed, 20volt 12 ohm 8 ohm the electric current through the battery is 25/6 amperes. Thus, the parallel portion is equivalent to a single resistor of 20/(25/6) = 4.8 ohms. (a) What is the equivalent resistance if we change the 12 ohm resistor to 5 ohms? (b) What is the equivalent resistance if the two are each 8 ohms? (c) Find the formula for the equivalent resistance if the two resistors in parallel are ri ohms and r2 ohms. 3 For the car dashboard example that opens this Topic, solve for these amperages (assume that all resistances are 2 ohms). (a) If the driver is stepping on the brakes, so the brake lights are on, and no other circuit is closed. (b) If the hi-beam headlights and the brake lights are on. 4 Show that, in this Wheatstone Bridge, r1 r3 0r4 r2/rl equals r4/r3 if and only if the current flowing through rg is zero. (The way that this device is used in practice is that an unknown resistance at r4 is compared to the other three ri, r2, and r3. At rg is placed a meter that shows the current. The three resistances ri, r2, and r3 are varied typically they each have a calibrated knob-until the current in the middle reads 0, and then the above equation gives the value of r4.) There are networks other than electrical ones, and we can ask how well Kirchoff's laws apply to them. The remaining questions consider an extension to networks of streets. 5 Consider this traffic circle. North Avenue Main Street Boulevard  Topic: Analyzing Networks 77 This is the traffic volume, in units of cars per five minutes. North Pier Main into 100 150 25 out of 75 150 50 We can set up equations to model how the traffic flows. (a) Adapt Kirchoff's Current Law to this circumstance. Is it a reasonable mod- elling assumption? (b) Label the three between-road arcs in the circle with a variable. Using the (adapted) Current Law, for each of the three in-out intersections state an equa- tion describing the traffic flow at that node. (c) Solve that system. (d) Interpret your solution. (e) Restate the Voltage Law for this circumstance. How reasonable is it? 6 This is a network of streets. Shelburne St Willow Jay Ln west east Winooski Ave The hourly flow of cars into this network's entrances, and out of its exits can be observed. east Winooski west Winooski Willow Jay Shelburne into 80 50 65 - 40 out of 30 5 70 55 75 (Note that to reach Jay a car must enter the network via some other road first, which is why there is no 'into Jay' entry in the table. Note also that over a long period of time, the total in must approximately equal the total out, which is why both rows add to 235 cars.) Once inside the network, the traffic may flow in differ- ent ways, perhaps filling Willow and leaving Jay mostly empty, or perhaps flowing in some other way. Kirchhoff's Laws give the limits on that freedom. (a) Determine the restrictions on the flow inside this network of streets by setting up a variable for each block, establishing the equations, and solving them. Notice that some streets are one-way only. (Hint: this will not yield a unique solution, since traffic can flow through this network in various ways; you should get at least one free variable.) (b) Suppose that some construction is proposed for Winooski Avenue East be- tween Willow and Jay, so traffic on that block will be reduced. What is the least amount of traffic flow that can be allowed on that block without disrupting the hourly flow into and out of the network?   e~at"?7a Vector Spaces The first chapter began by introducing Gauss' method and finished with a fair understanding, keyed on the Linear Combination Lemma, of how it finds the solution set of a linear system. Gauss' method systematically takes linear com- binations of the rows. With that insight, we now move to a general study of linear combinations. We need a setting for this study. At times in the first chapter, we've com- bined vectors from R2, at other times vectors from R3, and at other times vectors from even higher-dimensional spaces. Thus, our first impulse might be to work in R", leaving n unspecified. This would have the advantage that any of the results would hold for R2 and for R3 and for many other spaces, simultaneously. But, if having the results apply to many spaces at once is advantageous then sticking only to R"'s is overly restrictive. We'd like the results to also apply to combinations of row vectors, as in the final section of the first chapter. We've even seen some spaces that are not just a collection of all of the same-sized column vectors or row vectors. For instance, we've seen a solution set of a homogeneous system that is a plane, inside of R3. This solution set is a closed system in the sense that a linear combination of these solutions is also a solution. But it is not just a collection of all of the three-tall column vectors; only some of them are in this solution set. We want the results about linear combinations to apply anywhere that linear combinations are sensible. We shall call any such set a vector space. Our results, instead of being phrased as "Whenever we have a collection in which we can sensibly take linear combinations ...", will be stated as "In any vector space Such a statement describes at once what happens in many spaces. The step up in abstraction from studying a single space at a time to studying a class of spaces can be hard to make. To understand its advantages, consider this analogy. Imagine that the government made laws one person at a time: "Leslie Jones can't jay walk." That would be a bad idea; statements have the virtue of economy when they apply to many cases at once. Or, suppose that they ruled, "Kim Ke must stop when passing the scene of an accident." Contrast that with, "Any doctor must stop when passing the scene of an accident." More general statements, in some ways, are clearer. 79  80 Chapter Two. Vector Spaces I Definition of Vector Space We shall study structures with two operations, an addition and a scalar multi- plication, that are subject to some simple conditions. We will reflect more on the conditions later, but on first reading notice how reasonable they are. For instance, surely any operation that can be called an addition (e.g., column vec- tor addition, row vector addition, or real number addition) will satisfy all the conditions in (1) below. 1.1 Definition and Examples 1.1 Definition A vector space (over R) consists of a set V along with two operations '+' and '-' subject to these conditions. Where v, z E V, (1) their vector sum v+w is an element of V. If u, v, w E V then (2) v+ w = w + v and (3) (v+ w) + u = v+ (w+ u). (4) There is a zero vector 0 E V such that v+ 0= v for all v E V. (5) Each & E V has an additive inverse z E V such that z +6= 0. If r, s are scalars, members of R, and v, w E V then (6) each scalar multiple r - is in V. If r, s E R and 6, w E V then (7) (r + s) - = r - + s -, and (8) r- (&+ w) = r - 6+ r - w, and (9) (rs) - v= r - (s - v), and (10) 1 - v= v. 1.2 Remark Because it involves two kinds of addition and two kinds of mul- tiplication, that definition may seem confused. For instance, in condition (7) '(r + s) - v = r - &+ s - &', the first '+' is the real number addition operator while the '+' to the right of the equals sign represents vector addition in the structure V. These expressions aren't ambiguous because, e.g., r and s are real numbers so 'r + s' can only mean real number addition. The best way to go through the examples below is to check all ten conditions in the definition. That check is written out at length in the first example. Use it as a model for the others. Especially important are the first condition '&+ z is in V' and the sixth condition 'r - v is in V'. These are the closure conditions. They specify that the addition and scalar multiplication operations are always sensible they are defined for every pair of vectors, and every scalar and vector, and the result of the operation is a member of the set (see Example 1.4). 1.3 Example The set R2 is a vector space if the operations '+' and '-' have their usual meaning. x1) _+ (1) _ (X1 + Y1) r - X1) _ (rx1) x2) Y2 x2 + Y2) x2) rx2) We shall check all of the conditions.  Section I. Definition of Vector Space 81 There are five conditions in item (1). For (1), closure of addition, note that for any v1, v2, w1, w2 E R the result of the sum (vi w1 + () _(v1+wi v2 w2 v2 +w2 is a column array with two real entries, and so is in R2. For (2), that addition of vectors commutes, take all entries to be real numbers and compute (vi + w1 _(v1 + wi _(wi + v1\ _wi+ vi v2 w2 v2 +w2 w2 +v2 w2 v2 (the second equality follows from the fact that the components of the vectors are real numbers, and the addition of real numbers is commutative). Condition (3), associativity of vector addition, is similar. v1 wi u1 (((1Vii)+ 1 v2) w2 + (2) ((v2 + w2)+u2) _ v1+ (w1 +91)) (v2 + W2) + U2)/ (vii 91 v2 w2 u2 For the fourth condition we must produce a zero element the vector of zeroes is it. (V1)+(O) (V1) v2 0 V2 For (5), to produce an additive inverse, note that for any v1, v2 E R we have -v2 v2 -0 so the first vector is the desired additive inverse of the second. The checks for the five conditions having to do with scalar multiplication are just as routine. For (6), closure under scalar multiplication, where r, v1, v2 EIR, (vi (rv) is a column array with two real entries, and so is in R2. Next, this checks (7). v1 (r + s) v1 roi+_sv1 (vi) +s(v1 ( s) v2 (rT+ s)v2 rv2 + sv2 v2 V2) For (8), that scalar multiplication distributes from the left over vector addition, we have this. v1 w1 /r v11+\wi /roi?+1rw1\ v1 w  82 Chapter Two. Vector Spaces The ninth vi .i (rs)v1 r(sv1) r( V1 (r)-v2 (rs)v2) r(sv2) v2 and tenth conditions are also straightforward. 1.- 1_ li_ v V2 1 v2 (V2 In a similar way, each R" is a vector space with the usual operations of vector addition and scalar multiplication. (In R1, we usually do not write the members as column vectors, i.e., we usually do not write '(7r)'. Instead we just write '7'.) 1.4 Example This subset of R3 that is a plane through the origin P ={fy Ix+y+z=o} is a vector space if '+' and '-' are interpreted in this way. x1 (X2\ (x1 + x2 x r (y1) + (y2) Y1+ y2) y = ry \z \z2 \z1 +z2 z rz The addition and scalar multiplication operations here are just the ones of R3, reused on its subset P. We say that P inherits these operations from R3. This example of an addition in P 1 -1 0 1 + 0 = 1 -2 1 (-1 illustrates that P is closed under addition. We've added two vectors from P that is, with the property that the sum of their three entries is zero-and the result is a vector also in P. Of course, this example of closure is not a proof of closure. To prove that P is closed under addition, take two elements of P (21 (2 z1 z2 (membership in P means that x1 + y1 + z1 = 0 and x2 + Y2 + z2 = 0), and observe that their sum (X1 + X2 yi + y2 z1 + z2/  Section . Definition of Vector Space 83 is also in P since its entries add (x1 + x2) + (y1 + y2) + (z1 + z2) = (x1 + Y1 + zi) + (x2 + Y2 + z2) to 0. To show that P is closed under scalar multiplication, start with a vector from P x Y z (so that x + y + z = 0) and then for r E R observe that the scalar multiple x rx r -Y = ry z rz satisfies that rx + ry + rz = r(x + y + z) = 0. Thus the two closure conditions are satisfied. Verification of the other conditions in the definition of a vector space are just as straightforward. 1.5 Example Example 1.3 shows that the set of all two-tall vectors with real entries is a vector space. Example 1.4 gives a subset of an R" that is also a vector space. In contrast with those two, consider the set of two-tall columns with entries that are integers (under the obvious operations). This is a subset of a vector space, but it is not itself a vector space. The reason is that this set is not closed under scalar multiplication, that is, it does not satisfy condition (6). Here is a column with integer entries, and a scalar, such that the outcome of the operation 0.5 - (1 5 is not a member of the set, since its entries are not all integers. 1.6 Example The singleton set 0 { 0 0 is a vector space under the operations 0 0 0 0 0 0 0 0 (0 0 0 + 0 0 r- 0 0 0 0 0 0 0 that it inherits from IR4. A vector space must have at least one element, its zero vector. Thus a one-element vector space is the smallest one possible. 1.7 Definition A one-element vector space is a trivial space.  84 Chapter Two. Vector Spaces Warning! The examples so far involve sets of column vectors with the usual operations. But vector spaces need not be collections of column vectors, or even of row vectors. Below are some other types of vector spaces. The term 'vector space' does not mean 'collection of columns of reals'. It means something more like 'collection in which any linear combination is sensible'. 1.8 Example Consider P3 - {ao + a1x + a2x2 + a3x3 I ao, ... , a3 E R}, the set of polynomials of degree three or less (in this book, we'll take constant polynomials, including the zero polynomial, to be of degree zero). It is a vector space under the operations (ao + alx + a2x2 + a3x3) + (bo 1+ bx + b2x2 + b3x3) (ao + bo) + (ai + b1)x + (a2 + b2)x2 + (a3 + b3)x3 and r1- (ao + a1x + a2x2 + a3x3) _ (rao) + (rai)x + (ra2)x2 + (ra3)x3 (the verification is easy). This vector space is worthy of attention because these are the polynomial operations familiar from high school algebra. For instance, 3 .(1 - 2x + 3x2 - 4x3) - 2 .(2 - 3x + x2 - (1/2)x3) =_-1 + 7x2 - 11x3. Although this space is not a subset of any R", there is a sense in which we can think of P3 as "the same" as R4. If we identify these two spaces's elements in this way ao ao + a1x + a2x2 + a3x3 corresponds to a1 a2 a3 then the operations also correspond. Here is an example of corresponding ad- ditions. 1 - 2x + 0x2 + 1x3 + 2 + 3x + 7x2 - 4x3 corresponds to 02+ 3 - 1 3+ 1x + 7x2 - 3x3 1 -4 -3 Things we are thinking of as "the same" add to "the same" sum. Chapter Three makes precise this idea of vector space correspondence. For now we shall just leave it as an intuition. 1.9 Example The set M2x2 of 2 x 2 matrices with real number entries is a vector space under the natural entry-by-entry operations. a b) w x)(a+w b+x a b)(ra rb c die y z c+y d+z c d rc rd  Section I. Definition of Vector Space 85 1.10 Example The set {f f: N - R} of all real-valued functions of one natural number variable is a vector space under the operations (f1 + f2) (n) = f1(n) + f2(n) (r - f) (n) = r"f (n) so that if, for example, fi(n) = n2 + 2 sin(n) and f2(n) =_- sin(n) + 0.5 then (f1+2f2)(rn)=r2-+1. We can view this space as a generalization of Example 1.3-instead of 2-tall vectors, these functions are like infinitely-tall vectors. n f(n) n2+1 0 1(2 1 2 2 5 corresponds to 5 3 10 Addition and scalar multiplication are component-wise, as in Example 1.3. (We can formalize "infinitely-tall" by saying that it means an infinite sequence, or that it means a function from N to R.) 1.11 Example The set of polynomials with real coefficients {ao + a1x +- + axz neNandao,...,an ER} makes a vector space when given the natural '+' (ao + aix+ ... + anx") + (bo + bix + ... + bnxn) (ao + bo) + (a1 + bi )x + -.-. + (an + bn)z" and '-'. r - (ao + a1x + ... anx") = (rao) + (ra1)x + ... (ram)x" This space differs from the space 'P3 of Example 1.8. This space contains not just degree three polynomials, but degree thirty polynomials and degree three hun- dred polynomials, too. Each individual polynomial of course is of a finite degree, but the set has no single bound on the degree of all of its members. This example, like the prior one, can be thought of in terms of infinite-tuples. For instance, we can think of 1 + 3x +5x2 as corresponding to (1, 3, 5, 0, 0, ...). However, don't confuse this space with the one from Example 1.10. Each mem- ber of this set has a bounded degree, so under our correspondence there are no elements from this space matching (1, 2,5, 10, ...). The vectors in this space correspond to infinite-tuples that end in zeroes. 1.12 Example The set {f f: R - R} of all real-valued functions of one real variable is a vector space under these. (f1 + f2) (x) = fi (x) + f2(x) (r - f) (x) = r ft(x)  86 Chapter Two. Vector Spaces 1.13 Example The set F =f{a cosO8+b sinO8 I a, b E R} of real-valued functions of the real variable 8 is a vector space under the operations (a1 cos 0 + b1 sin 0) + (a2 cos 0 + b2 sin0) = (a1 + a2) cos 0 + (b1 + b2) sin 0 and r - (a cos 0 + b sin0) = (ra) cosO8 + (rb) sinO inherited from the space in the prior example. (We can think of F as "the same" as R2 in that a cos 0 + b sin 0 corresponds to the vector with components a and b.) 1.14 Example The set d2f is a vector space under the, by now natural, interpretation. (f+g)(x)= f(x)+g(x) (r.f)(x)=_rf(x) In particular, notice that closure is a consequence: d2(f + g) d2f d2g dx2 +(f+g) (d2 +f)+(d2 +g) and d2(rf) d2f dx2 + (rf)= r(d + f) of basic Calculus. This turns out to equal the space from the prior example functions satisfying this differential equation have the form a cos 0 + b sin 0 but this description suggests an extension to solutions sets of other differential equations. 1.15 Example The set of solutions of a homogeneous linear system in rn vari- ables is a vector space under the operations inherited from R'. For closure under addition, if on wn both satisfy the condition that their entries add to 0 then v + w also satisfies that condition: c1(v1 + wi)"+-+ c (vn + wn) = (civ1 + - - - + cnvn) + (cw1 + - - - + cnwn) = 0. The checks of the other conditions are just as routine. As we've done in those equations, we often omit the multiplication symbol'-'. We can distinguish the multiplication in 'civi' from that in 'r' since if both multiplicands are real numbers then real-real multiplication must be meant, while if one is a vector then scalar-vector multiplication must be meant. The prior example has brought us full circle since it is one of our motivating examples.  Section I. Definition of Vector Space 87 1.16 Remark Now, with some feel for the kinds of structures that satisfy the definition of a vector space, we can reflect on that definition. For example, why specify in the definition the condition that 1 - 6v= v but not a condition that 0" - =0? One answer is that this is just a definition-it gives the rules of the game from here on, and if you don't like it, put the book down and walk away. Another answer is perhaps more satisfying. People in this area have worked hard to develop the right balance of power and generality. This definition has been shaped so that it contains the conditions needed to prove all of the interest- ing and important properties of spaces of linear combinations. As we proceed, we shall derive all of the properties natural to collections of linear combinations from the conditions given in the definition. The next result is an example. We do not need to include these properties in the definition of vector space because they follow from the properties already listed there. 1.17 Lemma In any vector space V, for any _v E V and r E R, we have (1) 0 - =, and (2) (-1 . 6) + = 0, and (3) r-0 0. PROOF. For (1), note that v = (1 + 0) "- = + (0- v). Add to both sides the additive inverse of v, the vector w such that w + = V- 0. w+v=w0+v+0"-v 6=0+0-v The second item is easy: (-1 - v) + v = (-1 + 1) - v = 0 - 0v= 6 shows that we can write '-v ' for the additive inverse of v without worrying about possible confusion with (-1) - V. For (3), this r-0= r-(0.) =(r.-0)- =6will do. QED We finish with a recap. Our study in Chapter One of Gaussian reduction led us to consider collec- tions of linear combinations. So in this chapter we have defined a vector space to be a structure in which we can form such combinations, expressions of the form c1 -61+-" --+ c. - (subject to simple conditions on the addition and scalar multiplication operations). In a phrase: vector spaces are the right context in which to study linearity. Finally, a comment. From the fact that it forms a whole chapter, and espe- cially because that chapter is the first one, a reader could come to think that the study of linear systems is our purpose. The truth is, we will not so much use vector spaces in the study of linear systems as we will instead have linear systems start us on the study of vector spaces. The wide variety of examples from this subsection shows that the study of vector spaces is interesting and im- portant in its own right, aside from how it helps us understand linear systems. Linear systems won't go away. But from now on our primary objects of study will be vector spaces.  88 Chapter Two. Vector Spaces Exercises 1.18 Name the zero vector for each of these vector spaces. (a) The space of degree three polynomials under the natural operations (b) The space of 2 x 4 matrices (c) The space {f : [0...1]- R f is continuous} (d) The space of real-valued functions of one natural number variable / 1.19 Find the additive inverse, in the vector space, of the vector. (a) In P3, the vector -3 - 2x + x2 (b) In the space 2x 2, 1 -1 0 3 ) (c) In {aex + be-' a, b E R}, the space of functions of the real variable x under the natural operations, the vector 3ex - 2e-x. / 1.20 Show that each of these is a vector space. (a) The set of linear polynomials Pi= {ao + aix ao, ai E R} under the usual polynomial addition and scalar multiplication operations. (b) The set of 2x 2 matrices with real entries under the usual matrix operations. (c) The set of three-component row vectors with their usual operations. (d) The set L = { ER4i x+y-z+w=0} z w under the operations inherited from R4. / 1.21 Show that each of these is not a vector space. (Hint. Start by listing two members of each set.) (a) Under the operations inherited from R3, this set {() y RE3 X y+z=1} (b) Under the operations inherited from R3, this set { y E R3 I2+2 + z2=1} z (c) Under the usual matrix operations, a 1 { I a, b, c E RI} b c (d) Under the usual polynomial operations, {ao + aix+ a2x2 ao, ai, a2 E R+} where R+ is the set of reals greater than zero (e) Under the inherited operations, { E(x) R2 x+3y=4 and 2x-y=3 and 6x+4y =10} 1.22 Define addition and scalar multiplication operations to make the complex numbers a vector space over R  Section I. Definition of Vector Space 89 / 1.23 Is the set of rational numbers a vector space over R under the usual addition and scalar multiplication operations? 1.24 Show that the set of linear combinations of the variables x, y, z is a vector space under the natural addition and scalar multiplication operations. 1.25 Prove that this is not a vector space: the set of two-tall column vectors with real entries subject to these operations. 1 z2 _Xi - X2 r-(x>(rx y1 y2 yi - y2 yry 1.26 Prove or disprove that R3 is a vector space under these operations. z1 x2 0 x rz (a) (y1) + (y2) () and r y = ry zi z2 0 z rz z1 x2 0 x 0 (b) (y1)+y2>(0) and r y = 0 zi z2 0 z (0 / 1.27 For each, decide if it is a vector space; the intended operations are the natural ones. (a) The diagonal 2 x 2 matrices { a 0 abR (0 b abE} (b) This set of 2 x 2 matrices { x x z , y E IR} (c) This set {Y ER x+y+w=1} \w (d) The set of functions {f: R - R df/dx + 2f O=0} (e) The set of functions {ff : R - R df/dx + 2f = 1} / 1.28 Prove or disprove that this is a vector space: the real-valued functions f of one real variable such that f(7) = 0. / 1.29 Show that the set R+ of positive reals is a vector space when 'x + y' is inter- preted to mean the product of x and y (so that 2 + 3 is 6), and 'r -"x' is interpreted as the r-th power of x. 1.30 Is {(x, y) x, y EIR} a vector space under these operations? (a) (xi, y) + (x2, y2) = (xi+ x2, y1 + y2) and r - (x, y) = (rx, y) (b) (xi, y1) + (x2, y2) = (xi+ x2, y1 + y2) and r - (x, y) = (rx, 0) 1.31 Prove or disprove that this is a vector space: the set of polynomials of degree greater than or equal to two, along with the zero polynomial. 1.32 At this point "the same" is only an intuition, but nonetheless for each vector space identify the k for which the space is "the same" as R'. (a) The 2 x 3 matrices under the usual operations (b) The n x m matrices (under their usual operations) (c) This set of 2 x 2 matrices a 0) anbh l  90 Chapter Two. Vector Spaces (d) This set of 2 x 2 matrices {(a 0)a+b+c=0} b c / 1.33 Using - to represent vector addition and for scalar multiplication, restate the definition of vector space. / 1.34 Prove these. (a) Any vector is the additive inverse of the additive inverse of itself. (b) Vector addition left-cancels: if v, S, i E V then v+ s = v+ i implies that s = t. 1.35 The definition of vector spaces does not explicitly say that 0+v= =v (it instead says that v7 + = 6). Show that it must nonetheless hold in any vector space. / 1.36 Prove or disprove that this is a vector space: the set of all matrices, under the usual operations. 1.37 In a vector space every element has an additive inverse. Can some elements have two or more? 1.38 (a) Prove that every point, line, or plane thru the origin in R3 is a vector space under the inherited operations. (b) What if it doesn't contain the origin? / 1.39 Using the idea of a vector space we can easily reprove that the solution set of a homogeneous linear system has either one element or infinitely many elements. Assume that v E V is not 0. (a) Prove that r - v= 0 if and only if r = 0. (b) Prove that r1i- v= r2 -'v if and only if r1i= r2. (c) Prove that any nontrivial vector space is infinite. (d) Use the fact that a nonempty solution set of a homogeneous linear system is a vector space to draw the conclusion. 1.40 Is this a vector space under the natural operations: the real-valued functions of one real variable that are differentiable? 1.41 A vector space over the complex numbers C has the same definition as a vector space over the reals except that scalars are drawn from C instead of from R. Show that each of these is a vector space over the complex numbers. (Recall how complex numbers add and multiply: (ao + aii) + (bo + b1i) = (ao + bo) + (ai + bi)i and (ao + aii)(bo + bii) = (aobo - albi) + (aob1 + aibo)i.) (a) The set of degree two polynomials with complex coefficients (b) This set { b0 a,bECanda+bO+Oi} 1.42 Name a property shared by all of the RE's but not listed as a requirement for a vector space. / 1.43 (a) Prove that a sum of four vectors 1.V.... , 4E V can be associated in any way without changing the result. ((v1 +212) +213) +24 = (21+ (212 +23)) +214 = v1 + ((v2 + v3) + v4) = 211 + (v2 + (v3 + v4)) This allows us to simply write '61 + 'U2 + V3 + V4' without ambiguity.  Section I. Definition of Vector Space 91 (b) Prove that any two ways of associating a sum of any number of vectors give the same sum. (Hint. Use induction on the number of vectors.) 1.44 For any vector space, a subset that is itself a vector space under the inherited operations (e.g., a plane through the origin inside of R3) is a subspace. (a) Show that {ao + aix + a2x2 ao + ai + a2 = 0} is a subspace of the vector space of degree two polynomials. (b) Show that this is a subspace of the 2 x 2 matrices. {(a ) a+b=0} (c) Show that a nonempty subset S of a real vector space is a subspace if and only if it is closed under linear combinations of pairs of vectors: whenever Ci, C2 E R and s1, 82 E S then the combination c161 + c2v2 is in S. 1.2 Subspaces and Spanning Sets One of the examples that led us to introduce the idea of a vector space was the solution set of a homogeneous system. For instance, we've seen in Example 1.4 such a space that is a planar subset of R3. There, the vector space R3 contains inside it another vector space, the plane. 2.1 Definition For any vector space, a subspace is a subset that is itself a vector space, under the inherited operations. 2.2 Example The plane from the prior subsection, x P={ Y |x+y+z=0} is a subspace of R3. As specified in the definition, the operations are the ones that are inherited from the larger space, that is, vectors add in P as they add in R3 x1 x2 x1 + x2 y1 + Y2 = Y1+Y2 Z1 &Z2 \ZI + z2 and scalar multiplication is also the same as it is in R3. To show that P is a subspace, we need only note that it is a subset and then verify that it is a space. Checking that P satisfies the conditions in the definition of a vector space is routine. For instance, for closure under addition, just note that if the summands satisfy that x1 + y1 + zl = 0 and x2 + Y2 + z2 = 0 then the sum satisfies that (x1 + x2) + (Y1 + Y2) + (z1 + z2) = (x1 + Y1 + zi) + (x2 + Y2 + z2) = 0.  92 Chapter Two. Vector Spaces 2.3 Example The x-axis in R2 is a subspace where the addition and scalar multiplication operations are the inherited ones. (Xi) +(X2) (X1+X2) x( ) (r) 0 0) 0 0 0 As above, to verify that this is a subspace, we simply note that it is a subset and then check that it satisfies the conditions in definition of a vector space. For instance, the two closure conditions are satisfied: (1) adding two vectors with a second component of zero results in a vector with a second component of zero, and (2) multiplying a scalar times a vector with a second component of zero results in a vector with a second component of zero. 2.4 Example Another subspace of R2 is { ()} its trivial subspace. Any vector space has a trivial subspace {O}. At the opposite extreme, any vector space has itself for a subspace. These two are the improper subspaces. Other subspaces are proper. 2.5 Example The condition in the definition requiring that the addition and scalar multiplication operations must be the ones inherited from the larger space is important. Consider the subset {1} of the vector space R1. Under the opera- tions 1+1 = 1 and r -1 = 1 that set is a vector space, specifically, a trivial space. But it is not a subspace of R1 because those aren't the inherited operations, since of course R1 has 1 + 1 = 2. 2.6 Example All kinds of vector spaces, not just R"'s, have subspaces. The vector space of cubic polynomials {a + bx + cx2 + dx3 I a, b, c, d E R} has a sub- space comprised of all linear polynomials {m + nxI m, n E R}. 2.7 Example Another example of a subspace not taken from an R" is one from the examples following the definition of a vector space. The space of all real-valued functions of one real variable f : R -> R has a subspace of functions satisfying the restriction (d2 f/dx2) + f = 0. 2.8 Example Being vector spaces themselves, subspaces must satisfy the clo- sure conditions. The set R+ is not a subspace of the vector space R1 because with the inherited operations it is not closed under scalar multiplication: if = 1 then -1 - R+. The next result says that Example 2.8 is prototypical. The only way that a subset can fail to be a subspace (if it is nonempty and the inherited operations are used) is if it isn't closed.  Section I. Definition of Vector Space 93 2.9 Lemma For a nonempty subset S of a vector space, under the inherited operations, the following are equivalent statements.* (1) S is a subspace of that vector space (2) S is closed under linear combinations of pairs of vectors: for any vectors s1, S2 E S and scalars r1, r2 the vector r1s1 + r2s2 is in S (3) S is closed under linear combinations of any number of vectors: for any vectors i, .. ., sn e S and scalars r1,. .. , rn the vector ri 1si + "+ rsn is in S. Briefly, the way that a subset gets to be a subspace is by being closed under linear combinations. PROOF. 'The following are equivalent' means that each pair of statements are equivalent. (1)<- (2) (2) < - (3) (3)<- (1) We will show this equivalence by establishing that (1) - (3) - (2) - (1). This strategy is suggested by noticing that (1) - (3) and (3) - (2) are easy and so we need only argue the single implication (2) - (1). For that argument, assume that S is a nonempty subset of a vector space V and that S is closed under combinations of pairs of vectors. We will show that S is a vector space by checking the conditions. The first item in the vector space definition has five conditions. First, for closure under addition, if s1, s2 E S then s1 + s2 E S, as si + s2 = 1 ' s1 + 1. 's2. Second, for any s1, s2 E S, because addition is inherited from V, the sum s1 +s2 in S equals the sum s1 +s2 in V, and that equals the sum s2 + Si in V (because V is a vector space, its addition is commutative), and that in turn equals the sum s2 + S1 in S. The argument for the third condition is similar to that for the second. For the fourth, consider the zero vector of V and note that closure of S under linear combinations of pairs of vectors gives that (where s is any member of the nonempty set S) 0 - s+ 0 - s= 0 is in S; showing that 0 acts under the inherited operations as the additive identity of S is easy. The fifth condition is satisfied because for any s E S, closure under linear combinations shows that the vector 0 - 0+ (-1) - s is in S; showing that it is the additive inverse of s under the inherited operations is routine. The checks for item (2) are similar and are saved for Exercise 32. QED We usually show that a subset is a subspace with (2) - (1). 2.10 Remark At the start of this chapter we introduced vector spaces as collections in which linear combinations are "sensible". The above result speaks to this. The vector space definition has ten conditions but eight of them-the con- ditions not about closure-simply ensure that referring to the operations as an 'addition' and a 'scalar multiplication' is sensible. The proof above checks that these eight are inherited from the surrounding vector space provided that the * More information on equivalence of statements is in the appendix.  94 Chapter Two. Vector Spaces nonempty set S satisfies Theorem 2.9's statement (2) (e.g., commutativity of addition in S follows right from commutativity of addition in V). So, in this context, this meaning of "sensible" is automatically satisfied. In assuring us that this first meaning of the word is met, the result draws our attention to the second meaning of "sensible". It has to do with the two remaining conditions, the closure conditions. Above, the two separate closure conditions inherent in statement (1) are combined in statement (2) into the single condition of closure under all linear combinations of two vectors, which is then extended in statement (3) to closure under combinations of any number of vectors. The latter two statements say that we can always make sense of an expression like r1si + r2s2, without restrictions on the r's-such expressions are "sensible" in that the vector described is defined and is in the set S. This second meaning suggests that a good way to think of a vector space is as a collection of unrestricted linear combinations. The next two examples take some spaces and describe them in this way. That is, in these examples we parametrize, just as we did in Chapter One to describe the solution set of a homogeneous linear system. 2.11 Example This subset of R3 S={ y x-2y+z=0} is a subspace under the usual addition and scalar multiplication operations of column vectors (the check that it is nonempty and closed under linear combi- nations of two vectors is just like the one in Example 2.2). To parametrize, we can take x - 2y + z = 0 to be a one-equation linear system and expressing the leading variable in terms of the free variables x = 2y - z. (2y-z\ 2 -1 S = { y y, z ER} = {y 1 + z 0 y, z ER} z 0 1 Now the subspace is described as the collection of unrestricted linear combi- nations of those two vectors. Of course, in either description, this is a plane through the origin. 2.12 Example This is a subspace of the 2 x 2 matrices L={ )a+b+c=0} (checking that it is nonempty and closed under linear combinations is easy). To parametrize, express the condition as a = -b - c. -_b -c 0 -1 0 -1 0 L ={ b c ) b,c eR} = {b 1 0 +c 0 1 b,c eTR} As above, we've described the subspace as a collection of unrestricted linear combinations (by coincidence, also of two elements).  Section . Definition of Vector Space 95 Parametrization is an easy technique, but it is important. We shall use it often. 2.13 Definition The span (or linear closure) of a nonempty subset S of a vector space is the set of all linear combinations of vectors from S. [S] = {cis1 + - - - + csss c1, ... , cn E R and si, ... ., sn E S} The span of the empty subset of a vector space is the trivial subspace. No notation for the span is completely standard. The square brackets used here are common, but so are 'span(S)' and 'sp(S)'. 2.14 Remark In Chapter One, after we showed that the solution set of a ho- mogeneous linear system can be written as {c101 + - - - + CAkk c1, ... , ck E R} we described that as the set 'generated' by the #3's. We now have the technical term; we call that the 'span' of the set {1, ...,# }. Recall also the discussion of the "tricky point" in that proof. The span of the empty set is defined to be the set {0} because we follow the convention that a linear combination of no vectors sums to 0. Besides, defining the empty set's span to be the trivial subspace is a convienence in that it keeps results like the next one from having annoying exceptional cases. 2.15 Lemma In a vector space, the span of any subset is a subspace. PROOF. Call the subset S. If S is empty then by definition its span is the trivial subspace. If S is not empty then by Lemma 2.9 we need only check that the span [S] is closed under linear combinations. For a pair of vectors from that span, v = cis+ +cnss and = cn+sn+1+- -+Cmsm, a linear combination P - (cis1 + -.- + cnin) + r - (cn+1sn+1 + -.- + cmsm) pcisi + + pcnsn + +Cn+-sn+l - + rcmsm (p, r scalars) is a linear combination of elements of S and so is in [S] (possibly some of the s's forming v equal some of the se's from w, but it does not matter). QED The converse of the lemma holds: any subspace is the span of some set, because a subspace is obviously the span of the set of its members. Thus a subset of a vector space is a subspace if and only if it is a span. This fits the intuition that a good way to think of a vector space is as a collection in which linear combinations are sensible. Taken together, Lemma 2.9 and Lemma 2.15 show that the span of a subset S of a vector space is the smallest subspace containing all the members of S. 2.16 Example In any vector space V, for any vector v, the set {r - v r E R} is a subspace of V. For instance, for any vector v E R3, the line through the origin containing that vector, {k6| k E R} is a subspace of R3. This is true even when v is the zero vector, in which case the subspace is the degenerate line, the trivial subspace.  96 Chapter Two. Vector Spaces 2.17 Example The span of this set is all of R2. 1 1 To check this we must show that any member of R2 is a linear combination of these two vectors. So we ask: for which vectors (with real components x and y) are there scalars ci and c2 such that this holds? 1 +c2 Cl (1)+ C2 (J1 (z Gauss' method C1 + C2 =X-P1±P2 C1 + C2 = X c1-c2=y -2c2=-x+y with back substitution gives c2 = (x - y)/2 and c1 = (x + y)/2. These two equations show that for any x and y that we start with, there are appropriate coefficients ci and c2 making the above vector equation true. For instance, for x = 1 and y = 2 the coefficients c2 = -1/2 and c1 = 3/2 will do. That is, any vector in R2 can be written as a linear combination of the two given vectors. Since spans are subspaces, and we know that a good way to understand a subspace is to parametrize its description, we can try to understand a set's span in that way. 2.18 Example Consider, in P2, the span of the set {3x - x2, 2x}. By the definition of span, it is the set of unrestricted linear combinations of the two {c1(3x -x2) + c2(2x) I c1, c2 E R}. Clearly polynomials in this span must have a constant term of zero. Is that necessary condition also sufficient? We are asking: for which members a2x2 + a1x + ao of P2 are there c1 and c2 such that a2x2 + a1x + ao = c1(3x - x2) + c2(2x)? Since polynomials are equal if and only if their coefficients are equal, we are looking for conditions on a2, a1, and ao satisfying these. -C1 --a2 3c1 + 2c2 = a1 0= ao Gauss' method gives that c1 = -a2, c2 =(3/2)a2 + (1/2)a1, and 0 = ao. Thus the only condition on polynomials in the span is the condition that we knew of as long as ao = 0, we can give appropriate coefficients ci and c2 to describe the polynomial ao + a1x + a2x2 as in the span. For instance, for the polynomial 0 - 4x + 3x2, the coefficients c1 = -3 and c2 = 5/2 will do. So the span of the given set is {aix + a2x2I a1, a2 E R}. This shows, incidentally, that the set {x, x2} also spans this subspace. A space can have more than one spanning set. Two other sets spanning this sub- space are {x, 2, - + 22} and {x, + 9, +2x2,... }. (Naturally, we usually prefer to work with spanning sets that have only a few members.)  Section I. Definition of Vector Space 97 2.19 Example These are the subspaces of R3 that we now know of, the trivial subspace, the lines through the origin, the planes through the origin, and the whole space (of course, the picture shows only a few of the infinitely many subspaces). In the next section we will prove that R3 has no other type of subspaces, so in fact this picture shows them all. The subsets are described as spans of sets, using a minimal number of members, and are shown connected to their supersets. Note that these subspaces fall naturally into levels -planes on one level, lines on another, etc.-according to how many vectors are in a minimal-sized spanning set. So far in this chapter we have seen that to study the properties of linear combinations, the right setting is a collection that is closed under these com- binations. In the first subsection we introduced such collections, vector spaces, and we saw a great variety of examples. In this subsection we saw still more spaces, ones that happen to be subspaces of others. In all of the variety we've seen a commonality. Example 2.19 above brings it out: vector spaces and sub- spaces are best understood as a span, and especially as a span of a small number of vectors. The next section studies spanning sets that are minimal. Exercises /' 2.20 Which of these subsets of the vector space of 2 x 2 matrices are subspaces under the inherited operations? For each one that is a subspace, parametrize its description. For each that is not, give a condition that fails. (a) {a, b ER} (b){(g+ a+ b=0} (c) { + a {+ b +5} (d) {(g ) a +b 0,c E}  98 Chapter Two. Vector Spaces / 2.21 Is this a subspace of P2: {ao + aix + a2x2 ao + 2ai + a2 = 4}? If it is then parametrize its description. / 2.22 Decide if the vector lies in the span of the set, inside of the space. (a) , 0, J, in R3 (b) x - x3, {x2, 2x + x2, x + x3}, in P3 (C 0 1,{ 1 0, 2 0 } .M X ()4 2' 1 1' 2 3 ' Mx 2.23 Which of these are members of the span [{cos2 x, sin2 x}] in the vector space of real-valued functions of one real variable? (a) f (x) = 1 (b) f (x) = 3 + x2 (c) f (x) = sin x (d) f (x) = cos(2x) / 2.24 Which of these sets spans R3? That is, which of these sets has the property that any three-tall vector can be expressed as a suitable linear combination of the set's elements? 1 0 0 2 1 0 1 3 (a) {0, 2 , 0 } (b) { 0 1 0 } (c) { 1 , 0 } 0 0 3 1 0 1 0 0 1 3 -1 2 2 3 5 6 (d) { 0 ,1),(0),(1} (e) { 1, 0) 1(o)} 1 0 0 5 (1 1 2 2 / 2.25 Parametrize each subspace's description. Then express each subspace as a span. (a) The subset { (a b c) a - c O=0} of the three-wide row vectors (b) This subset of M2x2 { &$) a+d=0} (c) This subset of M2x2 {(a s) 2a-c-d=0anda+3b=0} (d) The subset {a + bx + cx3 a - 2b + c = O}of P3 (e) The subset of P2 of quadratic polynomials p such that p(7) = 0 / 2.26 Find a set to span the given subspace of the given space. (Hint. Parametrize each.) (a) the xz-plane in R3 (b){(Y) 3x+2y+z = 0} inR3 (c) {(Y 2x+y+w = 0Dand y+2z = 0} inLR4 (d) {ao + aix + a2x2 + a3x3 ao + ai= 0 and a2 - a3= 0} in P3 (e) The set P4 in the space P4 (f) M2x2 in M2x2 2.27 Is R a subspace of Rk3?  Section I. Definition of Vector Space 99 / 2.28 Decide if each is a subspace of the vector space of real-valued functions of one real variable. (a) The even functions {f : R - IR f(-x) = f(x) for all x}. For example, two members of this set are fi(x) =x2 and f2(x) = cos(x). (b) The odd functions {f : R -IR f(-x)= -f(x) for all x}. Two members are f3(x) x= 3 and f4(x) = sin(x). 2.29 Example 2.16 says that for any vector v that is an element of a vector space V, the set {r - 6 r E- R} is a subspace of V. (This is of course, simply the span of the singleton set {v}.) Must any such subspace be a proper subspace, or can it be improper? 2.30 An example following the definition of a vector space shows that the solution set of a homogeneous linear system is a vector space. In the terminology of this subsection, it is a subspace of R" where the system has n variables. What about a non-homogeneous linear system; do its solutions form a subspace (under the inherited operations)? 2.31 Example 2.19 shows that R3 has infinitely many subspaces. Does every non- trivial space have infinitely many subspaces? 2.32 Finish the proof of Lemma 2.9. 2.33 Show that each vector space has only one trivial subspace. / 2.34 Show that for any subset S of a vector space, the span of the span equals the span [[S]] = [S]. (Hint. Members of [S] are linear combinations of members of S. Members of [[S]] are linear combinations of linear combinations of members of S.) 2.35 All of the subspaces that we've seen use zero in their description in some way. For example, the subspace in Example 2.3 consists of all the vectors from R2 with a second component of zero. In contrast, the collection of vectors from R2 with a second component of one does not form a subspace (it is not closed under scalar multiplication). Another example is Example 2.2, where the condition on the vectors is that the three components add to zero. If the condition were that the three components add to one then it would not be a subspace (again, it would fail to be closed). This exercise shows that a reliance on zero is not strictly necessary. Consider the set { y zx+ y+ z = 1} z under these operations. (1 (x2(x1i+x2-1 (x rx-r+1 (y1 + y2) = y1 +y2 r y = ry z1 z2 z1+Zz2 z rz (a) Show that it is not a subspace of R3. (Hint. See Example 2.5). (b) Show that it is a vector space. Note that by the prior item, Lemma 2.9 can not apply. (c) Show that any subspace of R3 must pass through the origin, and so any subspace of R3 must involve zero in its description. Does the converse hold? Does any subset of R3 that contains the origin become a subspace when given the inherited operations? 2.36 We can give a justification for the convention that the sum of zero-many vectors equals the zero vector. Consider this sum of three vectors 61i + i72 +  100 Chapter Two. Vector Spaces V3. (a) What is the difference between this sum of three vectors and the sum of the first two of these three? (b) What is the difference between the prior sum and the sum of just the first one vector? (c) What should be the difference between the prior sum of one vector and the sum of no vectors? (d) So what should be the definition of the sum of no vectors? 2.37 Is a space determined by its subspaces? That is, if two vector spaces have the same subspaces, must the two be equal? 2.38 (a) Give a set that is closed under scalar multiplication but not addition. (b) Give a set closed under addition but not scalar multiplication. (c) Give a set closed under neither. 2.39 Show that the span of a set of vectors does not depend on the order in which the vectors are listed in that set. 2.40 Which trivial subspace is the span of the empty set? Is it 0 { 0 } R3, or {0+0x}CPi, 0 or some other subspace? 2.41 Show that if a vector is in the span of a set then adding that vector to the set won't make the span any bigger. Is that also 'only if'? / 2.42 Subspaces are subsets and so we naturally consider how 'is a subspace of' interacts with the usual set operations. (a) If A, B are subspaces of a vector space, must A n B be a subspace? Always? Sometimes? Never? (b) Must A U B be a subspace? (c) If A is a subspace, must its complement be a subspace? (Hint. Try some test subspaces from Example 2.19.) / 2.43 Does the span of a set depend on the enclosing space? That is, if W is a subspace of V and S is a subset of W (and so also a subset of V), might the span of S in W differ from the span of S in V? 2.44 Is the relation 'is a subspace of' transitive? That is, if V is a subspace of W and W is a subspace of X, must V be a subspace of X? / 2.45 Because 'span of' is an operation on sets we naturally consider how it interacts with the usual set operations. (a) If S C T are subsets of a vector space, is [S] C [T]? Always? Sometimes? Never? (b) If S, T are subsets of a vector space, is [S U T] [S] U [T]? (c) If S, T are subsets of a vector space, is [S n T] [S] n [T]? (d) Is the span of the complement equal to the complement of the span? 2.46 Reprove Lemma 2.15 without doing the empty set separately. 2.47 Find a structure that is closed under linear combinations, and yet is not a vector space. (Remark. This is a bit of a trick question.)  Section II. Linear Independence 101 II Linear Independence The prior section shows that a vector space can be understood as an unrestricted linear combination of some of its elements-that is, as a span. For example, the space of linear polynomials {a + bxI a, b E R} is spanned by the set {1, }. The prior section also showed that a space can have many sets that span it. The space of linear polynomials is also spanned by {1, 2x} and {1, x, 2x}. At the end of that section we described some spanning sets as 'minimal', but we never precisely defined that word. We could take 'minimal' to mean one of two things. We could mean that a spanning set is minimal if it contains the smallest number of members of any set with the same span. With this meaning {1, x, 2x} is not minimal because it has one member more than the other two. Or we could mean that a spanning set is minimal when it has no elements that can be removed without changing the span. Under this meaning {1, x, 2x} is not minimal because removing the 2x and getting {1, } leaves the span unchanged. The first sense of minimality appears to be a global requirement, in that to check if a spanning set is minimal we seemingly must look at all the spanning sets of a subspace and find one with the least number of elements. The second sense of minimality is local in that we need to look only at the set under discussion and consider the span with and without various elements. For instance, using the second sense, we could compare the span of {1, x, 2x} with the span of {1, } and note that the 2x is a "repeat" in that its removal doesn't shrink the span. In this section we will use the second sense of 'minimal spanning set' because of this technical convenience. However, the most important result of this book is that the two senses coincide; we will prove that in the section after this one. 11.1 Definition and Examples We first characterize when a vector can be removed from a set without changing the span of that set. 1.1 Lemma Where S is a subset of a vector space V, [S] = [S U {v}] if and only if E [S] for any E V. PROOF. The left to right implication is easy. If [S] [S U {v}] then, since v E [S U {v}], the equality of the two sets gives that E [5]. For the right to left implication assume that v E [S] to show that [S] = [S U {v}] by mutual inclusion. The inclusion [S] C [S U {v}] is obvious. For the other inclusion [5] D [S U{ }], write an element of [S U{v}] as doW+dis1+ --++dmsm and substitute 's expansion as a linear combination of members of the same set do (coFo +.-.-.- + Cktk) + diS1 +".. + dm sm. This is a linear combination of linear combinations and so distributing do results in a linear combination of vectors from S. Hence each member of [S U {67}] is also a member of [5]. QED  102 Chapter Two. Vector Spaces 1.2 Example In 1R3, where 1 0 2 61 = 0 62 = 1 63 = 1 the spans [{1, 62}] and [{61, 62, v3}] are equal since v3 is in the span [{61, 62}]. The lemma says that if we have a spanning set then we can remove a v to get a new set S with the same span if and only if v is a linear combination of vectors from S. Thus, under the second sense described above, a spanning set is minimal if and only if it contains no vectors that are linear combinations of the others in that set. We have a term for this important property. 1.3 Definition A subset of a vector space is linearly independent if none of its elements is a linear combination of the others. Otherwise it is linearly dependent. Here is an important observation: although this way of writing one vector as a combination of the others so = Cis1 + c2s2 + - + cns, visually sets so off from the other vectors, algebraically there is nothing special in that equation about so. For any si with a coefficient ci that is nonzero, we can rewrite the relationship to set off si. Si = (1/ci)so + (-c1/ci)s1 + ... + (-c,/ci)s When we don't want to single out any vector by writing it alone on one side of the equation we will instead say that so, si, ... , s are in a linear relationship and write the relationship with all of the vectors on the same side. The next result rephrases the linear independence definition in this style. It gives what is usually the easiest way to compute whether a finite set is dependent or independent. 1.4 Lemma A subset S of a vector space is linearly independent if and only if for any distinct si, ... , s E S the only linear relationship among those vectors cis1 +.-. -+, cs, =0 ci, .. . , cE R is the trivial one: c1 = 0, ... c, = 0. PROOF. This is a direct consequence of the observation above. If the set S is linearly independent then no vector si can be written as a linear combination of the other vectors from S so there is no linear relationship where some of the s's have nonzero coefficients. If S is not linearly independent then some si is a linear combination si = cis+- -+ci- 1s-1+ci+lsi+l+ +c ss of other vectors from S, and subtracting si from both sides of that equation gives a linear relationship involving a nonzero coefficient, namely the -1 in front of Si. QED  Section II. Linear Independence 103 1.5 Example In the vector space of two-wide row vectors, the two-element set { (40 15) , (-50 25) } is linearly independent. To check this, set c1 - (40 15) + c2.- (-50 25) = (0 0) and solving the resulting system 40c1 - 50c2 = 0 -(15/40)p1+p2 40c1 - 50c2 = 0 15c1 + 25c2 = 0 (175/4)c2 = 0 shows that both c1 and c2 are zero. So the only linear relationship between the two given row vectors is the trivial relationship. In the same vector space, {(40 15) , (20 7.5) } is linearly dependent since we can satisfy c1(40 15) + c2 - (20 7.5) = (0 0) with c1 =1 and c2 -2. 1.6 Remark Recall the Statics example that began this book. We first set the unknown-mass objects at 40 cm and 15 cm and got a balance, and then we set the objects at -50 cm and 25 cm and got a balance. With those two pieces of information we could compute values of the unknown masses. Had we instead first set the unknown-mass objects at 40 cm and 15 cm, and then at 20 cm and 7.5 cm, we would not have been able to compute the values of the unknown masses (try it). Intuitively, the problem is that the (20 7.5) information is a "repeat" of the (40 15) information-that is, (20 7.5) is in the span of the set { (40 15) }-and so we would be trying to solve a two-unknowns problem with what is essentially one piece of information. 1.7 Example The set {1 + x,1 - } is linearly independent in P2, the space of quadratic polynomials with real coefficients, because 0+Ox+0x2=c1(1+x)+c2(1-x) = (c1+c2)+(c1 -c2)x+0x2 gives c1 +c2 =0 -p1+p2 c1+ c2 =0 c1 -c2=0 2c2=0 since polynomials are equal only if their coefficients are equal. Thus, the only linear relationship between these two members of P2 is the trivial one. 1.8 Example In R3, where 3 2 4 v1 = (4)V2 = (9) 3 = 18 5 \2J 4 the set S = {v1, v2, v3} is linearly dependent because this is a relationship 0 -1 +2 V2 -1 V3 - 0 where not all of the scalars are zero (the fact that some of the scalars are zero doesn't matter).  104 Chapter Two. Vector Spaces 1.9 Remark That example illustrates why, although Definition 1.3 is a clearer statement of what independence is, Lemma 1.4 is more useful for computations. Working straight from the definition, someone trying to compute whether S is linearly independent would start by setting v1 = c262 + c33 and concluding that there are no such c2 and c3. But knowing that the first vector is not dependent on the other two is not enough. This person would have to go on to try v2 = c161 + c33 to find the dependence ci = 0, c3 = 1/2. Lemma 1.4 gets the same conclusion with only one computation. 1.10 Example The empty subset of a vector space is linearly independent. There is no nontrivial linear relationship among its members as it has no mem- bers. 1.11 Example In any vector space, any subset containing the zero vector is linearly dependent. For example, in the space P2 of quadratic polynomials, consider the subset {1 + x, x + x2, 0}. One way to see that this subset is linearly dependent is to use Lemma 1.4: we have 0 "Ji + 0 -62 +1 -0 = 0, and this is a nontrivial relationship as not all of the coefficients are zero. Another way to see that this subset is linearly dependent is to go straight to Definition 1.3: we can express the third member of the subset as a linear combination of the first two, namely, c11 + c262 = 0 is satisfied by taking c1 = 0 and c2 = 0 (in contrast to the lemma, the definition allows all of the coefficients to be zero). (There is still another way to see that this subset is dependent that is subtler. The zero vector is equal to the trivial sum, that is, it is the sum of no vectors. So in a set containing the zero vector, there is an element that can be written as a combination of a collection of other vectors from the set, specifically, the zero vector can be written as a combination of the empty collection.) The above examples, especially Example 1.5, underline the discussion that begins this section. The next result says that given a finite set, we can produce a linearly independent subset by discarding what Remark 1.6 calls "repeats". 1.12 Theorem In a vector space, any finite subset has a linearly independent subset with the same span. PROOF. If the set S = {s1, ... , s} is linearly independent then S itself satisfies the statement, so assume that it is linearly dependent. By the definition of dependence, there is a vector si that is a linear combina- tion of the others. Call that vector V-1. Discard it define the set S1 = S-{v1}. By Lemma 1.1, the span does not shrink [S1] = [S]. Now, if S1 is linearly independent then we are finished. Otherwise iterate the prior paragraph: take a vector -2 that is a linear combination of other members of S1 and discard it to derive S2 = S1 - {+2} such that [S2] = [SI]. Repeat this until a linearly independent set Sj appears; one must appear eventually because S is finite and the empty set is linearly independent. (Formally, this argument uses induction on n, the number of elements in the starting set. Exercise 37 asks for the details.) QED  Section II. Linear Independence 105 1.13 Example This set spans R3. 1 0 1 0 3 S ={ 0 ,2 ,2, -1 ,3 } 0 0 0 1 0 Looking for a linear relationship 1 0 1 0 3 0 Ci 0 +C2 2 +C3 2 +C4 -1 +C5 3 = 0 0 0 0 1 0 (0 gives a three equations/five unknowns linear system whose solution set can be parametrized in this way. /c1\ -1\ /-3\ C2 -1 -3/2 {C3 --C3 1 + C(0 C3,C5 E RI} C4 0 0 \cs/ \0 / \1/ So S is linearly dependent. Setting c3 = 0 and c5 = 1 shows that the fifth vector is a linear combination of the first two. Thus, Lemma 1.1 says that discarding the fifth vector 1 0 1 0 S1={0 ,2 ,2, -1 } \0/ 0o/ 0o/ 1 leaves the span unchanged [Si] =_[5]. Now, the third vector of Si is a linear combination of the first two and we get 1 0 0 S2={0, 2 , -1 } with the same span as S1, and therefore the same span as S, but with one difference. The set S2 is linearly independent (this is easily checked), and so discarding any of its elements will shrink the span. Theorem 1.12 describes producing a linearly independent set by shrinking, that is, by taking subsets. We finish this subsection by considering how linear independence and dependence, which are properties of sets, interact with the subset relation between sets. 1.14 Lemma Any subset of a linearly independent set is also linearly inde- pendent. Any superset of a linearly dependent set is also linearly dependent. PROOF. This is clear. QED  106 Chapter Two. Vector Spaces Restated, independence is preserved by subset and dependence is preserved by superset. Those are two of the four possible cases of interaction that we can consider. The third case, whether linear dependence is preserved by the subset operation, is covered by Example 1.13, which gives a linearly dependent set S with a subset Si that is linearly dependent and another subset S2 that is linearly independent. That leaves one case, whether linear independence is preserved by superset. The next example shows what can happen. 1.15 Example In each of these three paragraphs the subset S is linearly independent. For the set 1 S={ 0 } \0 the span [S] is the x axis. Here are two supersets of S, one linearly dependent and the other linearly independent. 1 -3 1 0 dependent: { 0) (0 } independent: { ( (1) } 0 0 0 0 Checking the dependence or independence of these sets is easy. For 1 0 S={ 0 , 1 } 0 0 the span [S] is the xy plane. These are two supersets. 1 0 3 1 0 0 dependent: { (0 , 1 -2 } independent: { 0) ( 10 } 0 0 0 0 0/ 1/ If 1 0 0 S={ 0 ), 1, 0 } 0 0 1 then [S] = R3. A linearly dependent superset is 1 0 0 2 dependent: { 0 , ) , 0 , -1 } \0/ 0/ 1/ 3 but there are no linearly independent supersets of S. The reason is that for any vector that we would add to make a superset, the linear dependence equation x 1 0 0 y = c1 0 + c2 (1)+ c3 0 z 0 0 (1  Section II. Linear Independence 107 So, in general, a linearly independent set may have a superset that is depen- dent. And, in general, a linearly independent set may have a superset that is independent. We can characterize when the superset is one and when it is the other. 1.16 Lemma Where S is a linearly independent subset of a vector space V, S U {v} is linearly dependent if and only if E [5] for any v E V with v g S. PROOF. One implication is clear: if v e [S] then = cisi + c2s2 + - - - + cnsn where each s e S and c2 ETR, and so 0 = ciSi + c2s2 +"--+ cin +(-1)7is a nontrivial linear relationship among elements of S U {7}. The other implication requires the assumption that S is linearly independent. With S U {v} linearly dependent, there is a nontrivial linear relationship coS + cisi + c2s2 +... -+ cs 0= and independence of S then implies that co # 0, or else that would be a nontrivial relationship among members of S. Now rewriting this equation as = -(ci/co)si - - - - - (ca/co)s shows that E [5]. QED (Compare this result with Lemma 1.1. Both say, roughly, that v is a "repeat" if it is in the span of S. However, note the additional hypothesis here of linear independence.) 1.17 Corollary A subset S {si,..., sn} of a vector space is linearly depen- dent if and only if some s is a linear combination of the vectors si, ..., si listed before it. PROOF. Consider So {}, Si {si}, S2 {s1, s2}, etc. Some index i > 1 is the first one with Si-i U {s} linearly dependent, and there s E [Si1. QED Lemma 1.16 can be restated in terms of independence instead of dependence: if S is linearly independent and v g S then the set S U {v} is also linearly independent if and only if 6 g [5]. Applying Lemma I. I, we conclude that if S is linearly independent and v g S then S U {v} is also linearly independent if and only if [S U {v}] # [S]. Briefly, when passing from S to a superset Si, to preserve linear independence we must expand the span [Si] D [5]. Example 1.15 shows that some linearly independent sets are maximal-have as many elements as possible-in that they have no supersets that are linearly independent. By the prior paragraph, a linearly independent sets is maximal if and only if it spans the entire space, because then no vector exists that is not already in the span. This table summarizes the interaction between the properties of indepen- dence and dependence and the relations of subset and superset. SicS SiS S independent Si must be independent Si may be either S dependent Si may be either Si must be dependent  108 Chapter Two. Vector Spaces In developing this table we've uncovered an intimate relationship between linear independence and span. Complementing the fact that a spanning set is minimal if and only if it is linearly independent, a linearly independent set is maximal if and only if it spans the space. In summary, we have introduced the definition of linear independence to formalize the idea of the minimality of a spanning set. We have developed some properties of this idea. The most important is Lemma 1.16, which tells us that a linearly independent set is maximal when it spans the space. Exercises / 1.18 Decide whether each subset of R3 is linearly dependent or linearly indepen- dent. 1 2 4 (a) { -3, -4 } 5(a {4 14 1 2 3 (b) {-7,+7, 7 } 7 7 7 0 1 (c) {07, 0 } 9 2 3 12 (d) { 9 , 0 , 5 , 12 } 0 1 -4 (-1) / 1.19 Which of these subsets of P3 are linearly dependent and which are indepen- dent? (a) {3 -xo+ 92, 5- 6x+ 3x2,1+ lo- 5x2 (b) {-z2, 1+ 4X2 (c) {2 +xz+ 72, 3-xz+ 2x2, 4 - 32 (d) {8+ 3x + 32, z+ 2x2,2 +2x +2x2, 8- 2x + 5x2 / 1.20 Prove that each set {f, g} is linearly independent in the vector space of all functions from R+ to R. (a) f(x)=xandg(x)=1/x (b) f (x) = cos(x) and g(x) = sin(x) (c) f (x) = ex and g(x) = ln(x) / 1.21 Which of these subsets of the space of real-valued functions of one real vari- able is linearly dependent and which is linearly independent? (Note that we have abbreviated some constant functions; e.g., in the first item, the '2' stands for the constant function f(x) = 2.) (a) {2, 4 sin2(x), cos2(x)} (b) {1, sin(x), sin(2x)} (c) {x, cos(x)} (d) {(1 +X)2, x2 + 2x, 3} (e) {cos(2x), sin2(x), cos2(x)} (f) {0,x,x2} 1.22 Does the equation sin2(x)/cos2(x) = tan2(x) show that this set of functions {sin2(x), cos2(x), tan2(x) } is a linearly dependent subset of the set of all real-valued functions with domain the interval (-r/2..7r/2) of real numbers between -7r/2 and -r/2)? 1.23 Why does Lemma 1.4 say "distinct"? / 1.24 Show that the nonzero rows of an echelon form matrix form a linearly inde- pendent set.  Section II. Linear Independence 109 / 1.25 (a) Show that if the set {u, ,, } is linearly independent set then so is the set {d,ul+v, u+vJ+w}. (b) What is the relationship between the linear independence or dependence of the set {u,6, tv } and the independence or dependence of {u - vv- w, - u}? 1.26 Example 1.10 shows that the empty set is linearly independent. (a) When is a one-element set linearly independent? (b) How about a set with two elements? 1.27 In any vector space V, the empty set is linearly independent. What about all of V? 1.28 Show that if { , Y, } is linearly independent then so are all of its proper subsets: {Y, }, {Y, z}, {', z}, {2},{#}, {z}, and {}. Is that 'only if' also? 1.29 (a) Show that this 1 -1 S={ 1 , 2 } 0 0 is a linearly independent subset of R3. (b) Show that 3 2 0 is in the span of S by finding Cl and c2 giving a linear relationship. 1 -1 3 Cl 1 + c2 2 = 2 0 0 (0 Show that the pair cl, c2 is unique. (c) Assume that S is a subset of a vector space and that v is in [S], so that v is a linear combination of vectors from S. Prove that if S is linearly independent then a linear combination of vectors from S adding to v is unique (that is, unique up to reordering and adding or taking away terms of the form 0 - 9). Thus S as a spanning set is minimal in this strong sense: each vector in [S] is "hit" a minimum number of times only once. (d) Prove that it can happen when S is not linearly independent that distinct linear combinations sum to the same vector. 1.30 Prove that a polynomial gives rise to the zero function if and only if it is the zero polynomial. (Comment. This question is not a Linear Algebra matter, but we often use the result. A polynomial gives rise to a function in the obvious way: x i-+ cnxz + - + ciX + co.) 1.31 Return to Section 1.2 and redefine point, line, plane, and other linear surfaces to avoid degenerate cases. 1.32 (a) Show that any set of four vectors in R2 is linearly dependent. (b) Is this true for any set of five? Any set of three? (c) What is the most number of elements that a linearly independent subset of R2 can have? / 1.33 Is there a set of four vectors in R3, any three of which form a linearly inde- pendent set? 1.34 Must every linearly dependent set have a subset that is dependent and a subset that is independent?  110 Chapter Two. Vector Spaces 1.35 In R4, what is the biggest linearly independent set you can find? The smallest? The biggest linearly dependent set? The smallest? ('Biggest' and 'smallest' mean that there are no supersets or subsets with the same property.) / 1.36 Linear independence and linear dependence are properties of sets. We can thus naturally ask how those properties act with respect to the familiar elementary set relations and operations. In this body of this subsection we have covered the subset and superset relations. We can also consider the operations of intersection, complementation, and union. (a) How does linear independence relate to intersection: can an intersection of linearly independent sets be independent? Must it be? (b) How does linear independence relate to complementation? (c) Show that the union of two linearly independent sets need not be linearly independent. (d) Characterize when the union of two linearly independent sets is linearly in- dependent, in terms of the intersection of the span of each. / 1.37 For Theorem 1.12, (a) fill in the induction for the proof; (b) give an alternate proof that starts with the empty set and builds a sequence of linearly independent subsets of the given finite set until one appears with the same span as the given set. 1.38 With a little calculation we can get formulas to determine whether or not a set of vectors is linearly independent. (a) Show that this subset of R2 { (a)( } is linearly independent if and only if ad - bc 0. (b) Show that this subset of R3 a b ce { (d, (e f } is linearly independent if aei + bfg + cdh - hf a - idb - gec 0. (c) When is this subset of R3 a b { d , e } g h linearly independent? (d) This is an opinion question: for a set of four vectors from R4, must there be a formula involving the sixteen entries that determines independence of the set? (You needn't produce such a formula, just decide if one exists.) / 1.39 (a) Prove that a set of two perpendicular nonzero vectors from R" is linearly independent when n> 1. (b) What if n = 1? n = 0? (c) Generalize to more than two vectors. 1.40 Consider the set of functions from the open interval (-1..1) to R. (a) Show that this set is a vector space under the usual operations. (b) Recall the formula for the sum of an infinite geometric series: 1 +x+x2 +-. - 1/(1-x) for all x E (-1..1). Why does this not express a dependence inside of the set {g(x) =-1/(1 - 1), fo(x) =-1, fi(1) =x, f2() =x2,.. .} (in the vector space that we are considering)? (Hint. Review the definition of linear combination.)  Section II. Linear Independence 111 (c) Show that the set in the prior item is linearly independent. This shows that some vector spaces exist with linearly independent subsets that are infinite. 1.41 Show that, where S is a subspace of V, if a subset T of S is linearly indepen- dent in S then T is also linearly independent in V. Is that 'only if'?  112 Chapter Two. Vector Spaces III Basis and Dimension The prior section ends with the statement that a spanning set is minimal when it is linearly independent and a linearly independent set is maximal when it spans the space. So the notions of minimal spanning set and maximal independent set coincide. In this section we will name this idea and study its properties. 111.1 Basis 1.1 Definition A basis for a vector space is a sequence of vectors that form a set that is linearly independent and that spans the space. We denote a basis with angle brackets (1, 02, ...) to signify that this collec- tion is a sequence* the order of the elements is significant. (The requirement that a basis be ordered will be needed, for instance, in Definition 1.13.) 1.2 Example This is a basis for Rk2. It is linearly independent (22 (1\ (0\ 2c1 + 1c2 = 0 ci 4 +c21 0 4c1 + 102 ci c2=0 and it spans R2. 2c1 + 1c2 = x c2 2x-yandcl (y-x)/2 4c1 + 1c2 = y 1.3 Example This basis for R2 differs from the prior one because the vectors are in a different order. The verification that it is a basis is just as in the prior example. 1.4 Example The space R2 has many bases. Another one is this. KG) , (2)> The verification is easy. * More information on sequences is in the appendix.  Section II. Basis and Dimension 113 1.5 Definition For any R", 1\ 0\ 0\ 0 1 0 0/ 0 1/ is the standard (or natural) basis. We denote these vectors by l, ... , en. (Calculus books refer to R2's standard basis vectors 1 and f instead of e1 and £2, and they refer to R's standard basis vectors i, , and k instead of e1, £2, and e3.) Note that the symbol 'e1' means something different in a discussion of R3 than it means in a discussion of 1R2. 1.6 Example Consider the space {a - cos 0 + b - sin O a, b E R} of functions of the real variable 0. This is a natural basis. (1 - cos 0 + 0 - sin 0, 0 - cos 0 + 1 - sin 0) = (cos 0, sin 0) Another, more generic, basis is (cos 0 - sin 0, 2 cos 0 + 3 sin 0). Verfication that these two are bases is Exercise 22. 1.7 Example A natural basis for the vector space of cubic polynomials P3 is , x, x2, x3). Two other bases for this space are (x3, 3x2, 6x, 6) and (1, 1+x, 1+ x + x2, 1 + x + x2 + x:3). Checking that these are linearly independent and span the space is easy. 1.8 Example The trivial space {0} has only one basis, the empty one (). 1.9 Example The space of finite-degree polynomials has a basis with infinitely many elements 1, x, x2,...). 1.10 Example We have seen bases before. In the first chapter we described the solution set of homogeneous systems such as this one x+y -w=0 z+w=0 by parametrizing. -1 1 { 1 Y+ 0 y+ w y,w E R} 0 1 That is, we described the vector space of solutions as the span of a two-element set. We can easily check that this two-vector set is also linearly independent. Thus the solution set is a subspace of R4 with a two-element basis.  114 Chapter Two. Vector Spaces 1.11 Example Parameterization helps find bases for other vector spaces, not just for solution sets of homogeneous systems. To find a basis for this subspace Of M2x2 {a ) a+b-2c=0} we rewrite the condition as a = -b + 2c. { -bc2c 0) b,ccER}={b 01 0±+c 1 ) b,c E R} Thus, this is a natural candidate for a basis. -1 1 2 0 0 0 '1 0 The above work shows that it spans the space. To show that it is linearly independent is routine. Consider again Example 1.2. It involves two verifications. In the first, to check that the set is linearly independent we looked at linear combinations of the set's members that total to the zero vector c1l1+c202 = (). The resulting calculation shows that such a combination is unique, that c1 must be 0 and c2 must be 0. The second verification, that the set spans the space, looks at linear combi- nations that total to any member of the space c101+c232 = (s). In Example 1.2 we noted only that the resulting calculation shows that such a combination ex- ists, that for each x, y there is a ci, c2. However, in fact the calculation also shows that the combination is unique: ci must be (y - x)/2 and c2 must be 2x - y. That is, the first calculation is a special case of the second. The next result says that this holds in general for a spanning set: the combination totaling to the zero vector is unique if and only if the combination totaling to any vector is unique. 1.12 Theorem In any vector space, a subset is a basis if and only if each vector in the space can be expressed as a linear combination of elements of the subset in a unique way. We consider combinations to be the same if they differ only in the order of summands or in the addition or deletion of terms of the form '0 - #'. PROOF. By definition, a sequence is a basis if and only if its vectors form both a spanning set and a linearly independent set. A subset is a spanning set if and only if each vector in the space is a linear combination of elements of that subset in at least one way. Thus, to finish we need only show that a subset is linearly independent if and only if every vector in the space is a linear combination of elements from the subset in at most one way. Consider two expressions of a vector as a linear  Section III. Basis and Dimension 115 combination of the members of the basis. We can rearrange the two sums, and if necessary add some 0#i terms, so that the two sums combine the same #3's in the same order: 6= c101 + c202 + - + cn,/ and 6= d1#1l + d202 + .. + dn,. Now c101 + c202 + ---+ cnn = d11 + d202 + ---+ dnn holds if and only if (C1 - di),d1 + -. - + (cn - dn)On = 0 holds, and so asserting that each coefficient in the lower equation is zero is the same thing as asserting that ci = di for each i. QED 1.13 Definition In a vector space with basis B the representation of v with respect to B is the column vector of the coefficients used to express v as a linear combination of the basis vectors: Cl cnj RepB (v) where B = (01, . .. , ,,) and V = ci/31 + c202 + + c1 43. The c's are the coordinates of V with respect to B. We will later do representations in contexts that involve more than one basis. To help with the bookkeeping, we shall often attach a subscript B to the column vector. 1.14 Example In P3, with respect to the basis B representation of x + x2 is (1, 2x, 2x2, 2x3), the 0 RepB (x + x2 1/2 = 1/2 0 (note that the coordinates are scalars, not vectors). With respect to a different basis D= (1 + x, 1 - x, x + x2, x + x3), the representation 0 RepD (+2) __ 0D is different.  116 Chapter Two. Vector Spaces 1.15 Remark This use of column notation and the term 'coordinates' has both a down side and an up side. The down side is that representations look like vectors from RE, which can be confusing when the vector space we are working with is RE, especially since we sometimes omit the subscript base. We must then infer the intent from the context. For example, the phrase 'in R2, where =(2)' refers to the plane vector that, when in canonical position, ends at (3, 2). To find the coordinates of that vector with respect to the basis we solve Ci() + c22( 2 ) to get that c1 = 3 and c2 = 1/2. Then we have this. RepB() Here, although we've ommited the subscript B from the column, the fact that the right side is a representation is clear from the context. The up side of the notation and the term 'coordinates' is that they generalize the use that we are familiar with: in R" and with respect to the standard basis En, the vector starting at the origin and ending at (vi,..., vn) has this representation. Reps,( ' 01) Our main use of representations will come in the third chapter. The defi- nition appears here because the fact that every vector is a linear combination of basis vectors in a unique way is a crucial property of bases, and also to help make two points. First, we fix an order for the elements of a basis so that coordinates can be stated in that order. Second, for calculation of coordinates, among other things, we shall restrict our attention to spaces with bases having only finitely many elements. We will see that in the next subsection. Exercises v/ 1.16 Decide if each is a basis for R3. (a) (2 ) > (b) ( 2,( ) > (c) ( -) (d) ( 2 , 1 , 3  Section III. Basis and Dimension 117 / 1.17 Represent the vector with respect to the basis. {1 fl 1 (b) x2+x3, D=(1,1+x,1+x+x2,1+x+x2+x3) CP3 0 (c) 0'E4 R4 1 1.18 Find a basis for P2, the space of all quadratic polynomials. Must any such basis contain a polynomial of each degree: degree zero, degree one, and degree two? 1.19 Find a basis for the solution set of this system. xi-4x2+3x3- x4=0 2x1 - 8X2 + 6X3 - 2X4=0 / 1.20 Find a basis for M2x2, the space of 2 x 2 matrices. / 1.21 Find a basis for each. (a) The subspace {a2x2 + aix + ao a2 - 2ai1= ao} of P2 (b) The space of three-wide row vectors whose first and second components add to zero (c) This subspace of the 2 x 2 matrices {(g ) c-2b=0} 1.22 Check Example 1.6. / 1.23 Find the span of each set and then find a basis for that span. (a) {1 + x, 1 + 2x} in P2 (b) {2 - 2x, 3 + 4x2} in P2 / 1.24 Find a basis for each of these subspaces of the space P3 of cubic polynomi- als. (a) The subspace of cubic polynomials p(x) such that p(7) = 0 (b) The subspace of polynomials p(x) such that p(7) = 0 and p(5) = 0 (c) The subspace of polynomials p(x) such that p(7) = 0, p(5) = 0, and p(3) = 0 (d) The space of polynomials p(x) such that p(7) = 0, p(5) = 0, p(3) = 0, and p(l) = 0 1.25 We've seen that it is possible for a basis to remain a basis when it is reordered. Must it remain a basis? 1.26 Can a basis contain a zero vector? / 1.27 Let ( 11,32,j,3) be a basis for a vector space. (a) Show that (c1,31, c2/32, c3/33) is a basis when ci, c2, c3 f 0. What happens when at least one c2 is 0? (b) Prove that ( 1, 2, c3) is a basis where i= =13 +/3 . 1.28 Find one vector v that will make each into a basis for the space. 11 0 (a) ( ),1) in R2 (b) ( 1 (1) ,1))in R3 (c) (x, 1 + x2, ) in P2 / 1.29 Where (/1,... , /3) is a basis, show that in this equation C/11 + ... + ck N = ck+13k+1 +--.- + Cn/3n each of the c2's is zero. Generalize. 1.30 A basis contains some of the vectors from a vector space; can it contain them all?  118 Chapter Two. Vector Spaces 1.31 Theorem 1.12 shows that, with respect to a basis, every linear combination is unique. If a subset is not a basis, can linear combinations be not unique? If so, must they be? / 1.32 A square matrix is symmetric if for all indices i and j, entry i, j equals entry ,in. (a) Find a basis for the vector space of symmetric 2 x 2 matrices. (b) Find a basis for the space of symmetric 3 x 3 matrices. (c) Find a basis for the space of symmetric ri x ri matrices. / 1.33 We can show that every basis for R3 contains the same number of vec- tors. (a) Show that no linearly independent subset of R3 contains more than three vectors. (b) Show that no spanning subset of R3 contains fewer than three vectors. Hint: recall how to calculate the span of a set and show that this method cannot yield all of R3 when it is applied to fewer than three vectors. 1.34 One of the exercises in the Subspaces subsection shows that the set { y zx+ y+ z = 1} z is a vector space under these operations. X1 x2 zi+x2 -1 (xrx-r+1 y1 + y2 Z = y1 + y2 r y = ry zi z2 zi + z2 z rz Find a basis. 111.2 Dimension In the prior subsection we defined the basis of a vector space, and we saw that a space can have many different bases. For example, following the definition of a basis, we saw three different bases for R2. So we cannot talk about "the" basis for a vector space. True, some vector spaces have bases that strike us as more natural than others, for instance, R2's basis E2 or R3's basis E3 or P2's basis (1, x, x2). But, for example in the space {a2x2 + a1x + ao1 2a2 - ao = ai}, no particular basis leaps out at us as the most natural one. We cannot, in general, associate with a space any single basis that best describes that space. We can, however, find something about the bases that is uniquely associated with the space. This subsection shows that any two bases for a space have the same number of elements. So, with each space we can associate a number, the number of vectors in any of its bases. This brings us back to when we considered the two things that could be meant by the term 'minimal spanning set'. At that point we defined 'minimal' as linearly independent, but we noted that another reasonable interpretation of the term is that a spanning set is 'minimal' when it has the fewest number of elements of any set with the same span. At the end of this subsection, after we  Section III. Basis and Dimension 119 have shown that all bases have the same number of elements, then we will have shown that the two senses of 'minimal' are equivalent. Before we start, we first limit our attention to spaces where at least one basis has only finitely many members. 2.1 Definition A vector space is finite-dimensional if it has a basis with only finitely many vectors. (One reason for sticking to finite-dimensional spaces is so that the representation of a vector with respect to a basis is a finitely-tall vector, and so can be easily written.) From now on we study only finite-dimensional vector spaces. We shall take the term 'vector space' to mean 'finite-dimensional vector space'. Other spaces are interesting and important, but they lie outside of our scope. To prove the main theorem we shall use a technical result. 2.2 Lemma (Exchange Lemma) Assume that B = (K1, ... , Qn) is a basis for a vector space, and that for the vector v the relationship 6= ci1i + c2/2 + - + cn3n has ci f 0. Then exchanging #i for 6 yields another basis for the space. PROOF. Call the outcome of the exchange B= (d1, , A-1, 6, Oi+1, - n). We first show that B is linearly independent. Any relationship d131 + - - - + div + - + dn3n = 0 among the members of B, after substitution for v, d1N1 +- - + di -(c1N1 + - - + cA~+-- + cn~n) +- - + dn~n = M * gives a linear relationship among the members of B. The basis B is linearly independent, so the coefficient dici of #i is zero. Because ci is assumed to be nonzero, di = 0. Using this in equation (*) above gives that all of the other d's are also zero. Therefore B is linearly independent. We finish by showing that B has the same span as B. Half of this argument, that [B] C [B], is easy; any member d1/31 + - - - + div+ - - - + dn~/n of [B] can be written dij1i + - - - + di - (ciji + - - - + cn#2) + - - - + dnjan, which is a linear combination of linear combinations of members of B, and hence is in [B]. For the [B] C [B] half of the argument, recall that when 6= ci31 +. - - + cnj3 with ci f 0, then the equation can be rearranged to Oi = (-c1/ci)1+ - - + (1/ci)V+ - - - + (-cn/ci)0n. Now, consider any member d13j + - - - + dij/i + - - - + dn/jn of [B], substitute for Oi its expression as a linear combination of the members of B, and recognize (as in the first half of this argument) that the result is a linear combination of linear combinations, of members of B, and hence is in [B]. QED 2.3 Theorem In any finite-dimensional vector space, all of the bases have the same number of elements. PROOF. Fix a vector space with at least one finite basis. Choose, from among all of this space's bases, one B = (1i, ... , #n) of minimal size. We will show  120 Chapter Two. Vector Spaces that any other basis D = (61, 62, ...) also has the same number of members, n. Because B has minimal size, D has no fewer than n vectors. We will argue that it cannot have more than n vectors. The basis B spans the space and 61 is in the space, so 61 is a nontrivial linear combination of elements of B. By the Exchange Lemma, 61 can be swapped for a vector from B, resulting in a basis B1, where one element is 6 and all of the n - 1 other elements are #3's. The prior paragraph forms the basis step for an induction argument. The inductive step starts with a basis Bk (for 1 < k < n) containing k members of D and n - k members of B. We know that D has at least n members so there is a ok+1- Represent it as a linear combination of elements of Bk. The key point: in that representation, at least one of the nonzero scalars must be associated with a #i or else that representation would be a nontrivial linear relationship among elements of the linearly independent set D. Exchange ok+1 for #i to get a new basis Bk+1 with one 6 more and one # fewer than the previous basis Bk. Repeat the inductive step until no /3's remain, so that B, contains $1, ... , in Now, D cannot have more than these n vectors because any on+1 that remains would be in the span of Bn (since it is a basis) and hence would be a linear com- bination of the other 8's, contradicting that D is linearly independent. QED 2.4 Definition The dimension of a vector space is the number of vectors in any of its bases. 2.5 Example Any basis for R" has n vectors since the standard basis En has n vectors. Thus, this definition generalizes the most familiar use of term, that R" is n-dimensional. 2.6 Example The space Pn of polynomials of degree at most n has dimension n+1. We can show this by exhibiting any basis -(, x, ... , x") comes to mind and counting its members. 2.7 Example A trivial space is zero-dimensional since its basis is empty. Again, although we sometimes say 'finite-dimensional' as a reminder, in the rest of this book all vector spaces are assumed to be finite-dimensional. An instance of this is that in the next result the word 'space' should be taken to mean 'finite-dimensional vector space'. 2.8 Corollary No linearly independent set can have a size greater than the dimension of the enclosing space. PROOF. Inspection of the above proof shows that it never uses that D spans the space, only that D is linearly independent. QED 2.9 Example Recall the subspace diagram from the prior section showing the subspaces of R'. Each subspace shown is described with a minimal spanning set, for which we now have the term 'basis'. The whole space has a basis with three members, the plane subspaces have bases with two members, the line  Section III. Basis and Dimension 121 subspaces have bases with one member, and the trivial subspace has a basis with zero members. When we saw that diagram we could not show that these are the only subspaces that this space has. We can show it now. The prior corollary proves that the only subspaces of R3 are either three-, two-, one-, or zero-dimensional. Therefore, the diagram indicates all of the subspaces. There are no subspaces somehow, say, between lines and planes. 2.10 Corollary Any linearly independent set can be expanded to make a basis. PROOF. If a linearly independent set is not already a basis then it must not span the space. Adding to it a vector that is not in the span preserves linear independence. Keep adding, until the resulting set does span the space, which the prior corollary shows will happen after only a finite number of steps. QED 2.11 Corollary Any spanning set can be shrunk to a basis. PROOF. Call the spanning set S. If S is empty then it is already a basis (the space must be a trivial space). If S = {O} then it can be shrunk to the empty basis, thereby making it linearly independent, without changing its span. Otherwise, S contains a vector s1 with si 0 and we can form a basis B1 = (1). If [B1] =_[S] then we are done. If not then there is a s2 E [S] such that s2 g [B1]. Let B2 = (K1, s2); if [B2] = [S] then we are done. We can repeat this process until the spans are equal, which must happen in at most finitely many steps. QED 2.12 Corollary In an n-dimensional space, a set of n vectors is linearly inde- pendent if and only if it spans the space. PROOF. First we will show that a subset with n vectors is linearly independent if and only if it is a basis. 'If' is trivially true bases are linearly independent. 'Only if' holds because a linearly independent set can be expanded to a basis, but a basis has n elements, so this expansion is actually the set that we began with. To finish, we will show that any subset with n vectors spans the space if and only if it is a basis. Again, 'if' is trivial. 'Only if' holds because any spanning set can be shrunk to a basis, but a basis has n elements and so this shrunken set is just the one we started with. QED The main result of this subsection, that all of the bases in a finite-dimensional vector space have the same number of elements, is the single most important result in this book because, as Example 2.9 shows, it describes what vector spaces and subspaces there can be. We will see more in the next chapter. 2.13 Remark The case of infinite-dimensional vector spaces is somewhat con- troversial. The statement 'any infinite-dimensional vector space has a basis' is known to be equivalent to a statement called the Axiom of Choice (see [Blass 1984]). Mathematicians differ philosophically on whether to accept or reject this statement as an axiom on which to base mathematics (although, the  122 Chapter Two. Vector Spaces great majority seem to accept it). Consequently the question about infinite- dimensional vector spaces is still somewhat up in the air. (A discussion of the Axiom of Choice can be found in the Frequently Asked Questions list for the Usenet group sci.math. Another accessible reference is [Rucker].) Exercises Assume that all spaces are finite-dimensional unless otherwise stated. / 2.14 Find a basis for, and the dimension of, P2. 2.15 Find a basis for, and the dimension of, the solution set of this system. xi-4x2+3x3- x4=0 2xi-8x2+6x3-2x4=0 / 2.16 Find a basis for, and the dimension of, M2x2, the vector space of 2x2 matrices. 2.17 Find the dimension of the vector space of matrices a b c d subject to each condition. (a) a, b, c, d ER (b) a-b+2c= 0 and d ER (c) a+b+c= 0, a+b-c= 0, and d ER / 2.18 Find the dimension of each. (a) The space of cubic polynomials p(x) such that p(7) = 0 (b) The space of cubic polynomials p(x) such that p(7) = 0 and p(5) = 0 (c) The space of cubic polynomials p(x) such that p(7) = 0, p(5) = 0, and p(3) 0 (d) The space of cubic polynomials p(x) such that p(7) = 0, p(5) = 0, p(3) = 0, and p(1) =0 2.19 What is the dimension of the span of the set {cos2 0, sin2 0, cos 20, sin 20}? This span is a subspace of the space of all real-valued functions of one real variable. 2.20 Find the dimension of C47, the vector space of 47-tuples of complex numbers. 2.21 What is the dimension of the vector space M3x5 of 3 x 5 matrices? / 2.22 Show that this is a basis for R4. 1 1 1 1 0 1 1 1 0 0 0 1 (The results of this subsection can be used to simplify this job.) 2.23 Refer to Example 2.9. (a) Sketch a similar subspace diagram for P2. (b) Sketch one for M2x2. / 2.24 Where S is a set, the functions f: S - R form a vector space under the natural operations: the sum f + g is the function given by f + g (s) = f(s) + g(s) and the scalar product is given by r - f (s) = r -"f(s). What is the dimension of the space resulting for each domain?  Section III. Basis and Dimension 123 (a) S =f{1} (b) S = {1, 2} (c) S = {1, ..., n} 2.25 (See Exercise 24.) Prove that this is an infinite-dimensional space: the set of all functions f : R - R under the natural operations. 2.26 (See Exercise 24.) What is the dimension of the vector space of functions f : S - R, under the natural operations, where the domain S is the empty set? 2.27 Show that any set of four vectors in R2 is linearly dependent. 2.28 Show that (ai, a2, c3) C R3 is a basis if and only if there is no plane through the origin containing all three vectors. 2.29 (a) Prove that any subspace of a finite dimensional space has a basis. (b) Prove that any subspace of a finite dimensional space is finite dimensional. 2.30 Where is the finiteness of B used in Theorem 2.3? / 2.31 Prove that if U and W are both three-dimensional subspaces of R5 then UnW is non-trivial. Generalize. 2.32 A basis for a space consists of elements of that space. So we are naturally led to how the property 'is a basis' interacts with operations C and n and U. (Of course, a basis is actually a sequence in that it is ordered, but there is a natural extension of these operations.) (a) Consider first how bases might be related by C. Assume that U, W are subspaces of some vector space and that U C W. Can there exist bases BU for U and Bw for W such that BU C Bw? Must such bases exist? For any basis BU for U, must there be a basis Bw for W such that BU C Bw? For any basis Bw for W, must there be a basis Bu for U such that Bu C Bw? For any bases BU, Bw for U and W, must BU be a subset of Bw? (b) Is the n of bases a basis? For what space? (c) Is the U of bases a basis? For what space? (d) What about the complement operation? (Hint. Test any conjectures against some subspaces of R3.) / 2.33 Consider how 'dimension' interacts with 'subset'. Assume U and W are both subspaces of some vector space, and that U C W. (a) Prove that dim(U) < dim(W). (b) Prove that equality of dimension holds if and only if U = W. (c) Show that the prior item does not hold if they are infinite-dimensional. ? 2.34 For any vector v in R" and any permutation a of the numbers 1, 2, ... , n (that is, a is a rearrangement of those numbers into a new order), define a() to be the vector whose components are va(i), va(2), ..., and va(n) (where a(1) is the first number in the rearrangement, etc.). Now fix v and let V be the span of {a() a permutes 1, ..., n}. What are the possibilities for the dimension of V? [ohascumn no. 47] 111.3 Vector Spaces and Linear Systems We will now reconsider linear systems and Gauss' method, aided by the tools and terms of this chapter. We will make three points. For the first point, recall the first chapter's Linear Combination Lemma and its corollary: if two matrices are related by row operations A -- - - -> B then  124 Chapter Two. Vector Spaces each row of B is a linear combination of the rows of A. That is, Gauss' method works by taking linear combinations of rows. Therefore, the right setting in which to study row operations in general, and Gauss' method in particular, is the following vector space. 3.1 Definition The row space of a matrix is the span of the set of its rows. The row rank is the dimension of the row space, the number of linearly independent rows. 3.2 Example If A(2 3 A =4 6 then Rowspace(A) is this subspace of the space of two-component row vectors. {ci - (2 3) + c2 - (4 6) ci, c2 E R} The linear dependence of the second on the first is obvious and so we can simplify this description to {c - (2 3) c E R}. 3.3 Lemma If the matrices A and B are related by a row operation A pe B or A) B or AkpJ B (for i f j and k # 0) then their row spaces are equal. Hence, row-equivalent matrices have the same row space, and hence also, the same row rank. PROOF. By the Linear Combination Lemma's corollary, each row of B is in the row space of A. Further, Rowspace(B) C Rowspace(A) because a member of the set Rowspace(B) is a linear combination of the rows of B, which means it is a combination of a combination of the rows of A, and hence, by the Linear Combination Lemma, is also a member of Rowspace(A). For the other containment, recall that row operations are reversible: A - B if and only if B - A. With that, Rowspace(A) C Rowspace(B) also follows from the prior paragraph, and so the two sets are equal. QED Thus, row operations leave the row space unchanged. But of course, Gauss' method performs the row operations systematically, with a specific goal in mind, echelon form. 3.4 Lemma The nonzero rows of an echelon form matrix make up a linearly independent set. PROOF. A result in the first chapter, Lemma 111.2.5, states that in an echelon form matrix, no nonzero row is a linear combination of the other rows. This is a restatement of that result into new terminology. QED Thus, in the language of this chapter, Gaussian reduction works by elim- inating linear dependences among rows, leaving the span unchanged, until no nontrivial linear relationships remain (among the nonzero rows). That is, Gauss' method produces a basis for the row space.  Section III. Basis and Dimension 125 3.5 Example From any matrix, we can produce a basis for the row space by performing Gauss' method and taking the nonzero rows of the resulting echelon form matrix. For instance, 1 3 1 1 3 1 1 4 1 P+2 6P+3 0 1 0 2 0 5 -2p1+P3 0 0 3 produces the basis ((1 3 1) , (0 1 0) , (0 0 3)) for the row space. This is a basis for the row space of both the starting and ending matrices, since the two row spaces are equal. Using this technique, we can also find bases for spans not directly involving row vectors. 3.6 Definition The column space of a matrix is the span of the set of its columns. The column rank is the dimension of the column space, the number of linearly independent columns. Our interest in column spaces stems from our study of linear systems. An example is that this system c1 + 3c2 + 7c3 = di 2c1 + 3c2 + 8c3 = d2 c2 + 2c3 = d3 4c1 + 4c3 = d4 has a solution if and only if the vector of d's is a linear combination of the other column vectors, 1 3 (7) di Cl 2 +C3 8 d2 ci0 + c2y+s2) ds 4 0 4 d4 meaning that the vector of d's is in the column space of the matrix of coefficients. 3.7 Example Given this matrix, 1 3 7 2 3 8 0 1 2 4 0 4 to get a basis for the column space, temporarily turn the columns into rows and reduce. 1 2 0 4 1 2 0 4 -)3p1+P2 -2P2+P31) 3 3 1 0 0 -3 1 -12 7 8 2 4 -p+30 0 0 0  126 Chapter Two. Vector Spaces Now turn the rows back to columns. 1 0 2 -3 ( 0 ' 1 4 -12 The result is a basis for the column space of the given matrix. 3.8 Definition The transpose of a matrix is the result of interchanging the rows and columns of that matrix. That is, column j of the matrix A is row j of Atrans, and vice versa. So the instructions for the prior example are "transpose, reduce, and transpose back". We can even, at the price of tolerating the as-yet-vague idea of vector spaces being "the same", use Gauss' method to find bases for spans in other types of vector spaces. 3.9 Example To get a basis for the span of {x2 + x4, 2x2 + 3x4, -x2 - 3x4} in the space P4, think of these three polynomials as "the same" as the row vectors (0 0 1 0 1), (0 0 2 0 3), and (0 0 -1 0 -3), apply Gauss' method 0 0 1 0 1 00 1 0 1 2 0 3 ) 2p1+P2 2P2+P3 10 00 1 0 2 0 3 0 0 0 0 1 0 0 -1 0 -3 P1 +\0 0 0 0 0 and translate back to get the basis (x2 + x4, x4). (As mentioned earlier, we will make the phrase "the same" precise at the start of the next chapter.) Thus, our first point in this subsection is that the tools of this chapter give us a more conceptual understanding of Gaussian reduction. For the second point of this subsection, consider the effect on the column space of this row reduction. 1 2 -2p1+p2 1 2 2 4 0 0 The column space of the left-hand matrix contains vectors with a second compo- nent that is nonzero. But the column space of the right-hand matrix is different because it contains only vectors whose second component is zero. It is this knowledge that row operations can change the column space that makes next result surprising. 3.10 Lemma Row operations do not change the column rank. PROOF. Restated, if A reduces to B then the column rank of B equals the column rank of A.  Section IIL Basis and Dimension 127 We will be done if we can show that row operations do not affect linear relationships among columns because the column rank is just the size of the largest set of unrelated columns. That is, we will show that a relationship exists among columns (such as that the fifth column is twice the second plus the fourth) if and only if that relationship exists after the row operation. But this is exactly the first theorem of this book: in a relationship among columns, a1,1 (a,n 0 a2,1 a2,n 0 Cl . + - C . -- aml am,n O row operations leave unchanged the set of solutions (CI, .. ., cn). QED Another way, besides the prior result, to state that Gauss' method has some- thing to say about the column space as well as about the row space is to consider again Gauss-Jordan reduction. Recall that it ends with the reduced echelon form of a matrix, as here. 1 3 1 6 1 3 0 2 2 6 3 16 0 01 4 1 3 1 6 0 0 0 0 Consider the row space and the column space of this result. Our first point made above says that a basis for the row space is easy to get: simply collect together all of the rows with leading entries. However, because this is a reduced echelon form matrix, a basis for the column space is just as easy: take the columns containing the leading entries, that is, (p1, £2). (Linear independence is obvious. The other columns are in the span of this set, since they all have a third component of zero.) Thus, for a reduced echelon form matrix, bases for the row and column spaces can be found in essentially the same way by taking the parts of the matrix, the rows or columns, containing the leading entries. 3.11 Theorem The row rank and column rank of a matrix are equal. PROOF. First bring the matrix to reduced echelon form. At that point, the row rank equals the number of leading entries since each equals the number of nonzero rows. Also at that point, the number of leading entries equals the column rank because the set of columns containing leading entries consists of some of the ei's from a standard basis, and that set is linearly independent and spans the set of columns. Hence, in the reduced echelon form matrix, the row rank equals the column rank, because each equals the number of leading entries. But Lemma 3.3 and Lemma 3.10 show that the row rank and column rank are not changed by using row operations to get to reduced echelon form. Thus the row rank and the column rank of the original matrix are also equal. QED 3.12 Definition The rank of a matrix is its row rank or column rank.  128 Chapter Two. Vector Spaces So our second point in this subsection is that the column space and row space of a matrix have the same dimension. Our third and final point is that the concepts that we've seen arising naturally in the study of vector spaces are exactly the ones that we have studied with linear systems. 3.13 Theorem For linear systems with n unknowns and with matrix of co- efficients A, the statements (1) the rank of A is r (2) the space of solutions of the associated homogeneous system has dimen- sion n - r are equivalent. So if the system has at least one particular solution then for the set of solutions, the number of parameters equals n - r, the number of variables minus the rank of the matrix of coefficients. PROOF. The rank of A is r if and only if Gaussian reduction on A ends with r nonzero rows. That's true if and only if echelon form matrices row equivalent to A have r-many leading variables. That in turn holds if and only if there are n - r free variables. QED 3.14 Remark [Munkres] Sometimes that result is mistakenly remembered to say that the general solution of an n unknown system of m equations uses n - m parameters. The number of equations is not the relevant figure, rather, what matters is the number of independent equations (the number of equations in a maximal independent set). Where there are r independent equations, the general solution involves n - r parameters. 3.15 Corollary Where the matrix A is n x n, the statements (1) the rank of A is n (2) A is nonsingular (3) the rows of A form a linearly independent set (4) the columns of A form a linearly independent set (5) any linear system whose matrix of coefficients is A has one and only one solution are equivalent. PROOF. Clearly (1) < (2) < (3) < (4). The last, (4) < (5), holds because a set of n column vectors is linearly independent if and only if it is a basis for R", but the system a1,1 a1,n d1 a2,1 a2,n d2 cl +---+Cn . - am,1/ am,n/ dm/ has a unique solution for all choices of di, ... , d 1 - R if and only if the vectors of a's form a basis. QED  Section III. Basis and Dimension 129 Exercises 3.16 Transpose each. (a) 3 (b) 13 (c) 678 (d) 0 (e) (-1 -2) / 3.17 Decide if the vector is in the row space of the matrix. 2 1 0 1 3 (a) 3 1 (1 0) (b) -1 0 1 , (1 1 1) -1 2 7 / 3.18 Decide if the vector is in the column space. 71 1 11 3 1 1 (a) G1 3D (b) 2 0 4 (0 31 -3 -3 0 / 3.19 Find a basis for the row space of this matrix. 2 0 3 4 10 1 1 -1 3 1 0 2 1 0 -4 -1 / 3.20 Find the rank of each matrix. 2 1 3 1 -1 2 1 3 2 (a) 1 -1 2 (b) 3 -3 6 (c) 5 1 1 1 0 3 -2 2 -4 6 4 3 0 0 0 (d) 0 0 0 0 0 0 / 3.21 Find a basis for the span of each set. (a) {(1 3),(-1 3) ,(1 4) , (2 1) } Mix2 e) 23 1 (b) { 2, , -3 }GCR3 (c){1+x,1-x2,3+2x-x2}C'P3 S 0 1M 1 0 3 -1 0 2x3 3.22 Which matrices have rank zero? Rank one? / 3.23 Given a, b, c E R, what choice of d will cause this matrix to have the rank of one? a b c d 3.24 Find the column rank of this matrix. 1 3 -1 5 0 4 2 0 1 0 4 1 3.25 Show that a linear system with at least one solution has at most one solution if and only if the matrix of coefficients has rank equal to the number of its columns. / 3.26 If a matrix is 5 x 9, which set must be dependent, its set of rows or its set of columns?  130 Chapter Two. Vector Spaces 3.27 Give an example to show that, despite that they have the same dimension, the row space and column space of a matrix need not be equal. Are they ever equal? 3.28 Show that the set {(1, -1, 2, -3), (1, 1,2,0), (3, -1, 6, -6)} does not have the same span as {(1, 0, 1, 0), (0, 2,0, 3)}. What, by the way, is the vector space? / 3.29 Show that this set of column vectors di 3x+2y+4z=di d2 there arex, y, and z such that x - z = d2 d3 2x+2y+5z=d3 is a subspace of R3. Find a basis. 3.30 Show that the transpose operation is linear: (rA + sB) trans =rAtrans + sBtrans for r, s E ER and A, B E Mmxn, / 3.31 In this subsection we have shown that Gaussian reduction finds a basis for the row space. (a) Show that this basis is not unique-different reductions may yield different bases. (b) Produce matrices with equal row spaces but unequal numbers of rows. (c) Prove that two matrices have equal row spaces if and only if after Gauss- Jordan reduction they have the same nonzero rows. 3.32 Why is there not a problem with Remark 3.14 in the case that r is bigger than n? 3.33 Show that the row rank of an m x n matrix is at most m. Is there a better bound? / 3.34 Show that the rank of a matrix equals the rank of its transpose. 3.35 True or false: the column space of a matrix equals the row space of its trans- pose. / 3.36 We have seen that a row operation may change the column space. Must it? 3.37 Prove that a linear system has a solution if and only if that system's matrix of coefficients has the same rank as its augmented matrix. 3.38 An m x n matrix has full row rank if its row rank is m, and it has full column rank if its column rank is n. (a) Show that a matrix can have both full row rank and full column rank only if it is square. (b) Prove that the linear system with matrix of coefficients A has a solution for any di, ... , da's on the right side if and only if A has full row rank. (c) Prove that a homogeneous system has a unique solution if and only if its matrix of coefficients A has full column rank. (d) Prove that the statement "if a system with matrix of coefficients A has any solution then it has a unique solution" holds if and only if A has full column rank. 3.39 How would the conclusion of Lemma 3.3 change if Gauss' method is changed to allow multiplying a row by zero? / 3.40 What is the relationship between rank(A) and rank(-A)? Between rank(A) and rank(kA)? What, if any, is the relationship between rank(A), rank(B), and rank(A + B)?  Section III. Basis and Dimension 131 111.4 Combining Subspaces This subsection is optional. It is required only for the last sections of Chapter Three and Chapter Five and for occasional exercises, and can be passed over without loss of continuity. This chapter opened with the definition of a vector space, and the mid- dle consisted of a first analysis of the idea. This subsection closes the chapter by finishing the analysis, in the sense that 'analysis' means "method of de- termining the ... essential features of something by separating it into parts" [Macmillan Dictionary]. A common way to understand things is to see how they can be built from component parts. For instance, we think of R3 as put together, in some way, from the x-axis, the y-axis, and z-axis. In this subsection we will make this precise; we will describe how to decompose a vector space into a combination of some of its subspaces. In developing this idea of subspace combination, we will keep the R3 example in mind as a benchmark model. Subspaces are subsets and sets combine via union. But taking the combi- nation operation for subspaces to be the simple union operation isn't what we want. For one thing, the union of the x-axis, the y-axis, and z-axis is not all of R3, so the benchmark model would be left out. Besides, union is all wrong for this reason: a union of subspaces need not be a subspace (it need not be closed; for instance, this R3 vector 1 0 0 1 0 + 1 + 0 = 1 0 (0) 1 1 is in none of the three axes and hence is not in the union). In addition to the members of the subspaces, we must at least also include all of the linear combinations. 4.1 Definition Where W1,... , Wk are subspaces of a vector space, their sum is the span of their union Wl +W2 + - - - +Wk = [W1 U W2 U ... Wk]. (The notation, writing the '+' between sets in addition to using it between vectors, fits with the practice of using this symbol for any natural accumulation operation.) 4.2 Example The R3 model fits with this operation. Any vector w-i E- R3 can be written as a linear combination c161 + c262 + c3s3 where 61 is a member of the x-axis, etc., in this way wi w1 0 0 w2 =1- 0 +1- w2 +1- 0 ms 0 0 w3 and so R3 = x-axis + y-axis + z-axis.  132 Chapter Two. Vector Spaces 4.3 Example A sum of subspaces can be less than the entire space. Inside of P4, let L be the subspace of linear polynomials {a + bxI a, b E R} and let C be the subspace of purely-cubic polynomials {cx3 c E R}. Then L + C is not all of P4. Instead, it is the subspace L + C = {a + bx + cx3 I a, b, c E R}. 4.4 Example A space can be described as a combination of subspaces in more than one way. Besides the decomposition R3 = x-axis + y-axis + z-axis, we can also write R3 = xy-plane + yz-plane. To check this, note that any w E R3 can be written as a linear combination of a member of the xy-plane and a member of the yz-plane; here are two such combinations. /w1 w1 0 w1 w1 0 (w2)=1- (w2)+1- 0 (w2)=1- w2/2) +1- w2/2 \w3 0 \W3/ W3/ 0 W3 The above definition gives one way in which a space can be thought of as a combination of some of its parts. However, the prior example shows that there is at least one interesting property of our benchmark model that is not captured by the definition of the sum of subspaces. In the familiar decomposition of R3, we often speak of a vector's 'x part' or 'y part' or 'z part'. That is, in this model, each vector has a unique decomposition into parts that come from the parts making up the whole space. But in the decomposition used in Example 4.4, we cannot refer to the "xy part" of a vector these three sums 1 1 0 1 0 1 0 all describe the vector as comprised of something from the first plane plus some- thing from the second plane, but the "xy part" is different in each. That is, when we consider how R3 is put together from the three axes "in some way", we might mean "in such a way that every vector has at least one decomposition", and that leads to the definition above. But if we take it to mean "in such a way that every vector has one and only one decomposition" then we need another condition on combinations. To see what this condition is, recall that vectors are uniquely represented in terms of a basis. We can use this to break a space into a sum of subspaces such that any vector in the space breaks uniquely into a sum of members of those subspaces. 4.5 Example The benchmark is R3 with its standard basis E3 --(Ki, e2, e3). The subspace with the basis B1 = (K1) is the x-axis. The subspace with the basis B2 = (e2) is the y-axis. The subspace with the basis B3 --(e3) is the z-axis. The fact that any member of R3 is expressible as a sum of vectors from these subspaces y =(0 + () +  Section II. Basis and Dimension 133 is a reflection of the fact that Es3 spans the space this equation x 1 0 0 Y = ci 0 + c2 1 + c3 0 has a solution for any x, y, z E R. And, the fact that each such expression is unique reflects that fact that Es3 is linearly independent any equation like the one above has a unique solution. 4.6 Example We don't have to take the basis vectors one at a time, the same idea works if we conglomerate them into larger sequences. Consider again the space R3 and the vectors from the standard basis Es3. The subspace with the basis B1 = (K1, es) is the xz-plane. The subspace with the basis B2 = (2) is the y-axis. As in the prior example, the fact that any member of the space is a sum of members of the two subspaces in one and only one way x x 0 Y = 0 + Y z (z) (0) is a reflection of the fact that these vectors form a basis this system x 1 0 0 Y = (c1 0 + c3 0 ) + c2 1 (z (0 1 (0 has one and only one solution for any x, y, z E R. These examples illustrate a natural way to decompose a space into a sum of subspaces in such a way that each vector decomposes uniquely into a sum of vectors from the parts. The next result says that this way is the only way. 4.7 Definition The concatenation of the sequences B1 = (K1,1, . . . , Bk -- k,1,.. .,3knk) is their adjoinment. B1 B2 -.-. Bk -- (01, 1, . .. , 01,ni , 21, -.- , Ok,n, ) 4.8 Lemma Let V be a vector space that is the sum of some of its subspaces V = W1 + - - - + Wk. Let B1, ..., Bk be any bases for these subspaces. Then the following are equivalent. (1) For every v E V, the expression v = w1 + - + wk (with wi E Wi) is unique. (2) The concatenation B1 - Bk is a basis for V. (3) The nonzero members of {1i, ... , wk} (with wi E Wi) form a linearly independent set among nonzero vectors from different Wi's, every linear relationship is trivial.  134 Chapter Two. Vector Spaces PROOF. We will show that (1) - (2), that (2) - (3), and finally that (3) - (1). For these arguments, observe that we can pass from a combination of t's to a combination of 13's d11+---+dkfk = d1(c1,111,1 + ... + ci,n1f1,n1) + ... + dk (ck,1/k,1 + ... + Ckmk/3k,mk ) = dici,1- 31,1 + ... + dkck,n-h ,nh k (*) and vice versa. For (1) - (2), assume that all decompositions are unique. We will show that B1 ... Bk spans the space and is linearly independent. It spans the space because the assumption that V = W1 + - - - + Wk means that every v can be expressed as v= 1 + - - - + wk, which translates by equation (*) to an expression of v as a linear combination of the 13's from the concatenation. For linear independence, consider this linear relationship. 0= c1,1/31,1 + ... + Ck,nk/k,nk Regroup as in (*) (that is, take d1, ..., dk to be 1 and move from bottom to top) to get the decomposition 0 = 1 + - - - + Wk. Because of the assumption that decompositions are unique, and because the zero vector obviously has the decomposition 0= 0+. --+0, we now have that each w2 is the zero vector. This means that c2,1+i,1 +.-.-- + ci,n 0i,n2 = . Thus, since each B, is a basis, we have the desired conclusion that all of the c's are zero. For (2) - (3), assume that B1^- - - Bk is a basis for the space. Consider a linear relationship among nonzero vectors from different Wi's, in order to show that it is trivial. (The relationship is written in this way because we are considering a combination of nonzero vectors from only some of the Wi's; for instance, there might not be a w1 in this combination.) As in (*), 0 = . . .+d2(c,1/2,1+. - -+ci,n2 . i,n)+ - .- - +d2c ,12 ,1+- .-+dic2,n, -#i,n +- - - and the linear independence of B1 -"-"- Bk gives that each coefficient d2cij is zero. Now, w2 is a nonzero vector, so at least one of the c2, 's is not zero, and thus d2 is zero. This holds for each d2, and therefore the linear relationship is trivial. Finally, for (3) - (1), assume that, among nonzero vectors from different W2 's, any linear relationship is trivial. Consider two decompositions of a vector v = w1 + - - - + wk and = u1 + - - - + uk in order to show that the two are the same. We have which violates the assumption unless each w2 - ui is the zero vector. Hence, decompositions are unique. QED  Section III. Basis and Dimension 135 4.9 Definition A collection of subspaces {W1, ..., Wk} is independent if no nonzero vector from any Wi is a linear combination of vectors from the other subspaces W1, . .. , Wi_1, Wi+1, - - , Wk. 4.10 Definition A vector space V is the direct sum (or internal direct sum) of its subspaces W1, ... , Wk if V = W1 + W2 + - - - + Wk and the collection {W1,... , Wk} is independent. We write V = W1 + W2 + ... + Wk. 4.11 Example The benchmark model fits: R3 = x-axis ± y-axis ± z-axis. 4.12 Example The space of 2 x 2 matrices is this direct sum. {a 0)1adR+ 0 ')b GR 0 0 eR { 0d a,dER}±{ 0 0 )c 0 cER} It is the direct sum of subspaces in many other ways as well; direct sum decom- positions are not unique. 4.13 Corollary The dimension of a direct sum is the sum of the dimensions of its summands. PROOF. In Lemma 4.8, the number of basis vectors in the concatenation equals the sum of the number of vectors in the subbases that make up the concatena- tion. QED The special case of two subspaces is worth mentioning separately. 4.14 Definition When a vector space is the direct sum of two of its subspaces, then they are said to be complements. 4.15 Lemma A vector space V is the direct sum of two of its subspaces W1 and W2 if and only if it is the sum of the two V = W1+W2 and their intersection is trivial W1 n W2 = {0}. PROOF. Suppose first that V = W1 + W2. By definition, V is the sum of the two. To show that the two have a trivial intersection, let v be a vector from W1 n W2 and consider the equation v = v. On the left side of that equation is a member of W1, and on the right side is a linear combination of members (actually, of only one member) of W2. But the independence of the spaces then implies that 6= 0, as desired. For the other direction, suppose that V is the sum of two spaces with a trivial intersection. To show that V is a direct sum of the two, we need only show that the spaces are independent no nonzero member of the first is expressible as a linear combination of members of the second, and vice versa. This is true because any relationship w1 = c12 ,1 + - + dkZ2,k (with di E W1 and 02,j E W2 for all j) shows that the vector on the left is also in W2, since the right side is a combination of members of W2. The intersection of these two spaces is trivial, so w1 = 0. The same argument works for any i2. QED  136 Chapter Two. Vector Spaces 4.16 Example In the space R2, the x-axis and the y-axis are complements, that is, R2 = x-axis e y-axis. A space can have more than one pair of complementary subspaces; another pair here are the subspaces consisting of the lines y = x and y= 2x. 4.17 Example In the space F = {a cos 0 + b sin 08| a, b E R}, the subspaces W1= {acos 0 a E R} and W2 = {b sin 08| b E R} are complements. In addition to the fact that a space like F can have more than one pair of complementary subspaces, inside of the space a single subspace like W1 can have more than one complement another complement of W1 is W3 ={b sin 0 + b cos 0 Ib e R}. 4.18 Example In R3, the xy-plane and the yz-planes are not complements, which is the point of the discussion following Example 4.4. One complement of the xy-plane is the z-axis. A complement of the yz-plane is the line through (1, 1, 1). 4.19 Example Following Lemma 4.15, here is a natural question: is the simple sum V= W1 + - - - + Wk also a direct sum if and only if the intersection of the subspaces is trivial? The answer is that if there are more than two subspaces then having a trivial intersection is not enough to guarantee unique decompo- sition (i.e., is not enough to ensure that the spaces are independent). In R3, let W1 be the x-axis, let W2 be the y-axis, and let W3 be this. q W3={ q q,r E R} (r The check that R3 = W1 + W2 + W3 is easy. The intersection W1 n W2 n W3 is trivial, but decompositions aren't unique. x 0 0 x x - y 0 y y = 0 + y-x + x = 0 + 0 + y z) (0)+( ) +Q Y + ( z (This example also shows that this requirement is also not enough: that all pairwise intersections of the subspaces be trivial. See Exercise 30.) In this subsection we have seen two ways to regard a space as built up from component parts. Both are useful; in particular, in this book the direct sum definition is needed to do the Jordan Form construction in the fifth chapter. Exercises / 4.20 Decide if R2 is the direct sum of each W1 and W2. (a) W1={() XcR},W2={(x xc} (b) Wl={() sER},W2={(j) sCER} (c) W1 =L2, W2 ={U}  Section III. Basis and Dimension 137 (d) W1=W2={ tER} (e) W1={ 0+ 0 x cER}, W2 ={ 01+ y E R} / 4.21 Show that R3 is the direct sum of the xy-plane with each of these. (a) the z-axis (b) the line z { z z cI} 4.22 Is P2 the direct sum of {a + bx2 a, b E R} and {cx c EIR}? / 4.23 In P, the even polynomials are the members of this set E= {p E P p(-x) = p(x) for all x} and the odd polynomials are the members of this set. 0 ={p E P p(-x) =-p(x) for all x} Show that these are complementary subspaces. 4.24 Which of these subspaces of R3 Wi: the x-axis, W2: the y-axis, W3: the z-axis, W4: the plane x + y + z = 0, W5: the yz-plane can be combined to (a) sum to R3? (b) direct sum to R3? / 4.25 Show thatP-,=_{ao ao cR} e ...e{axnz an E R}. 4.26 What is Wi + W2 if Wi C W2? 4.27 Does Example 4.5 generalize? That is, is this true or false: if a vector space V has a basis (3,. .. , .3) then it is the direct sum of the spans of the one-dimensional subspaces V = [{/31}] e ... e [{,3n}]? 4.28 Can R4 be decomposed as a direct sum in two different ways? Can R1? 4.29 This exercise makes the notation of writing '+' between sets more natural. Prove that, where W1, . . . , Wk are subspaces of a vector space, W1 + -.- +W k --{21 +2+---+-|k | W1E W1,..., wkE Wk}, and so the sum of subspaces is the subspace of all sums. 4.30 (Refer to Example 4.19. This exercise shows that the requirement that pari- wise intersections be trivial is genuinely stronger than the requirement only that the intersection of all of the subspaces be trivial.) Give a vector space and three subspaces W1, W2, and W3 such that the space is the sum of the subspaces, the intersection of all three subspaces W1 n W2 n W3 is trivial, but the pairwise inter- sections W1 n W2, W1 n W3, and W2 n W3 are nontrivial. / 4.31 Prove that if V = W1 E ... e Wk then W n W3 is trivial whenever i + j. This shows that the first half of the proof of Lemma 4.15 extends to the case of more than two subspaces. (Example 4.19 shows that this implication does not reverse; the other half does not extend.) 4.32 Recall that no linearly independent set contains the zero vector. Can an independent set of subspaces contain the trivial subspace? / 4.33 Does every subspace have a complement? / 4.34 Let W1, W2 be subspaces of a vector space. (a) Assume that the set Si spans W1, and that the set S2 spans W2. Can Si US2 span W1 + W2? Must it?  138 Chapter Two. Vector Spaces (b) Assume that Si is a linearly independent subset of W1 and that S2 is a linearly independent subset of W2. Can Si US2 be a linearly independent subset of W1 + W2? Must it? 4.35 When a vector space is decomposed as a direct sum, the dimensions of the subspaces add to the dimension of the space. The situation with a space that is given as the sum of its subspaces is not as simple. This exercise considers the two-subspace special case. (a) For these subspaces of M2x2 find W1 n W2, dim(Wi n W2), W1 + W2, and dim(Wi + W2). Wl 0 0 de W = 0 b be~ W1 ={(o~ c, d E } W2 ={(o b, ccER} c d c 0 (b) Suppose that U and W are subspaces of a vector space. Suppose that the sequence ($1, ... , /3) is a basis for U n W. Finally, suppose that the prior sequence has been expanded to give a sequence (jl1,... , tj, 31,... , /3) that is a basis for U, and a sequence ($1,..., /3,cG1,... , w) that is a basis for W. Prove that this sequence is a basis for for the sum U + W. (c) Conclude that dim(U + W) = dim(U) + dim(W) - dim(U n W). (d) Let W1 and W2 be eight-dimensional subspaces of a ten-dimensional space. List all values possible for dim(W1 n W2). 4.36 Let V = W1 e ... e WW and for each index i suppose that Si is a linearly independent subset of W2. Prove that the union of the Si's is linearly independent. 4.37 A matrix is symmetric if for each pair of indices i and j, the i, j entry equals the j, i entry. A matrix is antisymmetric if each i, j entry is the negative of the j, i entry. (a) Give a symmetric 2 x 2 matrix and an antisymmetric 2 x 2 matrix. (Remark. For the second one, be careful about the entries on the diagional.) (b) What is the relationship between a square symmetric matrix and its trans- pose? Between a square antisymmetric matrix and its transpose? (c) Show that Mnxn is the direct sum of the space of symmetric matrices and the space of antisymmetric matrices. 4.38 Let W1, W2, W3 be subspaces of a vector space. Prove that (Wi nW2) + (Wi n W3) C W1 n (W2 + W3). Does the inclusion reverse? 4.39 The example of the x-axis and the y-axis in R2 shows that W1 e W2 = V does not imply that W1 U W2 = V. Can W1 e W2 = V and W1 U W2 = V happen? / 4.40 Consider Corollary 4.13. Does it work both ways-that is, supposing that V = W1+ - -- + Wk , is V= W1ie ... e Wk if and only if dim(V) = dim(Wi) + . . .-+ dim(W)? 4.41 We know that if V = W1 e W2 then there is a basis for V that splits into a basis for Wi and a basis for W2. Can we make the stronger statement that every basis for V splits into a basis for W1 and a basis for W2? 4.42 We can ask about the algebra of the '+' operation. (a) Is it commutative; is W1 + W2 = W2 + W1? (b) Is it associative; is (W1 + W2) + W3 = W1 + (W2 + W3)? (c) Let W be a subspace of some vector space. Show that W + W = W. (d) Must there be an identity element, a subspace I such that I + W = W + I = W for all subspaces W?  Section III. Basis and Dimension 139 (e) Does left-cancelation hold: if W1 + W2 = Wi + W3 then W2 = W3? Right cancelation? 4.43 Consider the algebraic properties of the direct sum operation. (a) Does direct sum commute: does V = W1 e W2 imply that V = W2 e W1? (b) Prove that direct sum is associative: (W1 e W2) e W3 = W1 e (W2 e W3). (c) Show that R3 is the direct sum of the three axes (the relevance here is that by the previous item, we needn't specify which two of the threee axes are combined first). (d) Does the direct sum operation left-cancel: does W1 e W2 = W1 e W3 imply W2 = W3? Does it right-cancel? (e) There is an identity element with respect to this operation. Find it. (f) Do some, or all, subspaces have inverses with respect to this operation: is there a subspace W of some vector space such that there is a subspace U with the property that U e W equals the identity element from the prior item?  140 Chapter Two. Vector Spaces Topic: Fields Linear combinations involving only fractions or only integers are much easier for computations than combinations involving real numbers, because computing with irrational numbers is awkward. Could other number systems, like the rationals or the integers, work in the place of R in the definition of a vector space? Yes and no. If we take "work" to mean that the results of this chapter remain true then an analysis of which properties of the reals we have used in this chapter gives the following list of conditions an algebraic system needs in order to "work" in the place of R. Definition. A field is a set 7 with two operations '+' and '-' such that (1) for any a, b E F the result of a + b is in ' and e a+b=b+a " if cE Fthen a+(b+c)= (a+b)+c (2) for any a, b E F the result of a - b is in ' and e a-b=b-a e if c E F then a -(b- c)= (a b) c (3) if a, b,cE then a -(b+c)=a -b+a-c (4) there is an element 0 E F such that " if a E F then a +0 =a " for each a E F there is an element -a E F such that (-a) + a = 0 (5) there is an element 1 E F such that " if a E F then a 1 =a " for each element a # 0 of 7 there is an element a-1 E F such that a-1 a=1. The number system consisting of the set of real numbers along with the usual addition and multiplication operation is a field, naturally. Another field is the set of rational numbers with its usual addition and multiplication operations. An example of an algebraic structure that is not a field is the integer number system it fails the final condition. Some examples are surprising. The set {0, 1} under these operations: + 0 1 0 0 1 1 1 0 is a field (see Exercise 4). 0 1 0 0 0 1 0 1  Topic: Fields 141 We could develop Linear Algebra as the theory of vector spaces with scalars from an arbitrary field, instead of sticking to taking the scalars only from R. In that case, almost all of the statements in this book would carry over by replacing 'R' with ',F', and thus by taking coefficients, vector entries, and matrix entries to be elements of F ("almost" because statements involving distances or angles are exceptions). Here are some examples; each applies to a vector space V over a field F. * For any v E V and a E F, (i) 0. - = , and (ii) -1 - v+ =, and (iii) a - 0 = 6. * The span (the set of linear combinations) of a subset of V is a subspace of V. * Any subset of a linearly independent set is also linearly independent. * In a finite-dimensional vector space, any two bases have the same number of elements. (Even statements that don't explicitly mention F use field properties in their proof.) We won't develop vector spaces in this more general setting because the additional abstraction can be a distraction. The ideas we want to bring out already appear when we stick to the reals. The only exception is in Chapter Five. In that chapter we must factor polynomials, so we will switch to considering vector spaces over the field of complex numbers. We will discuss this more, including a brief review of complex arithmetic, when we get there. Exercises 1 Show that the real numbers form a field. 2 Prove that these are fields. (a) The rational numbers Q (b) The complex numbers C 3 Give an example that shows that the integer number system is not a field. 4 Consider the set {0, 1} subject to the operations given above. Show that it is a field. 5 Give suitable operations to make the set {0, 1, 2} a field.  142 Chapter Two. Vector Spaces Topic: Crystals Everyone has noticed that table salt comes in little cubes. Remarkably, the explanation for the cubical external shape is the simplest one: the internal shape, the way the atoms lie, is also cubical. The internal structure is pictured below. Salt is sodium cloride, and the small spheres shown are sodium while the big ones are cloride. To simplify the view, it only shows the sodiums and clorides on the front, top, and right. The specks of salt that we see when we spread a little out on the table consist of many repetitions of this fundamental unit. That is, these cubes of atoms stack up to make the larger cubical structure that we see. A solid, such as table salt, with a regular internal structure is a crystal. We can restrict our attention to the front face. There, we have the square repeated many times. means 'is preferred to'). number with preference order that preference Democrat > Republican > Third 5 Democrat > Third > Republican 4 Republican > Democrat > Third 2 Republican > Third > Democrat 8 Third > Democrat > Republican 8 Third > Republican > Democrat 2 total 29 What is the preference of the group as a whole? Overall, the group prefers the Democrat to the Republican by five votes; seventeen voters ranked the Democrat above the Republican versus twelve the other way. And, overall, the group prefers the Republican to the Third's nomi- nee, fifteen to fourteen. But, strangely enough, the group also prefers the Third to the Democrat, eighteen to eleven. Democrat 7 voters 5 voters Third Republican 1 voter This is an example of a voting paradox, specifically, a majority cycle. Voting paradoxes are studied in part because of their implications for practi- cal politics. For instance, the instructor can manipulate the class into choosing the Democrat as the overall winner by first asking the class to choose between the Republican and the Third, and then asking the class to choose between the winner of that contest, the Republican, and the Democrat. By similar manipu- lations, any of the other two candidates can be made to come out as the winner. (In this Topic we will stick to three-candidate elections, but similar results apply to larger elections.) Voting paradoxes are also studied simply because they are mathematically interesting. One interesting aspect is that the group's overall majority cycle occurs despite that each single voters's preference list is rational-in a straight- line order. That is, the majority cycle seems to arise in the aggregate, without being present in the elements of that aggregate, the preference lists. Recently,  Topic: Voting Paradoxes 147 however, linear algebra has been used [Zwicker] to argue that a tendency toward cyclic preference is actually present in each voter's list, and that it surfaces when there is more adding of the tendency than cancelling. For this argument, abbreviating the choices as D, R, and T, we can describe how a voter with preference order D > R > T contributes to the above cycle. D -1 voter 1 voter T R 1 voter (The negative sign is here because the arrow describes T as preferred to D, but this voter likes them the other way.) The descriptions for the other preference lists are in the table on page 148. Now, to conduct the election we linearly combine these descriptions; for instance, the Political Science mock election D D D -1 1 -1 1 1 -1 5.-T + 4 T R + -.-+ 2 T R 1 -1 -1 yields the circular group preference shown earlier. Of course, taking linear combinations is linear algebra. The above cycle no- tation is suggestive but inconvienent, so we temporarily switch to using column vectors by starting at the D and taking the numbers from the cycle in coun- terclockwise order. Thus, the mock election and a single D > R > T vote are represented in this way. 7 -1 (T) and 1 5 1 We will decompose vote vectors into two parts, one cyclic and the other acyclic. For the first part, we say that a vector is purely cyclic if it is in this subspace of R3. k1 C = {j) kETR} ={k (1) k E R} For the second part, consider the subspace (see Exercise 6) of vectors that are perpendicular to all of the vectors in C. (c1\ c1 k C1={C2 ( )c2-(k ) 0 for all k ER} +c3((c3(( c1 -1 -1 {c2 I ci + C2 + C3 = 0} = {c2 1 + c3 0 c2 , c3 E II}  148 Chapter Two. Vector Spaces (Read that aloud as "C perp".) So we are led to this basis for R3. 1 -1 -1 ( 1 , 1 , 0 ) 1 0 \1 We can represent votes with respect to this basis, and thereby decompose them into a cyclic part and an acyclic part. (Note for readers who have covered the optional section in this chapter: that is, the space is the direct sum of C and C1.) For example, consider the D > R > T voter discussed above. The represen- tation in terms of the basis is easily found, C1 -c2-c3 -1c1- c2- c3=-1 p1±p2 (-1/2)p2+p3 Ci+ c2 1 -2-2 + C3 2 c1 + C3 1 p1±p3(3/2)c3= 1 so that c1= 1/3, c2= 2/3, and c3 = 2/3. Then -1 1 2 -1 2 -1 1/3\ -4/3 1 --3(1 +- 1 +-- 0 = 1/3 + 2/3 133 0 3 1 1/3 2/3 gives the desired decomposition into a cyclic part and and an acyclic part. -1 1 1/3 1/3 4/3 >2/3 T R T R + T 1 1/3 2/3 Thus, this D > R > T voter's rational preference list can indeed be seen to have a cyclic part. The T > R > D voter is opposite to the one just considered in that the '>' symbols are reversed. This voter's decomposition 1 D 1 -13 -1/43 -2/3 T R T R + T R -1 -1/3 -2/3 shows that these opposite preferences have decompositions that are opposite. We say that the first voter has positive spin since the cycle part is with the direction we have chosen for the arrows, while the second voter's spin is negative. The fact that that these opposite voters cancel each other is reflected in the fact that their vote vectors add to zero. This suggests an alternate way to tally an election. We could first cancel as many opposite preference lists as possible, and then determine the outcome by adding the remaining lists. The rows of the table below contain the three pairs of opposite preference lists. The columns group those pairs by spin. For instance, the first row contains the two voters just considered.  Topic: Voting Paradoxes 149 positive spin negative spin Democrat > Republican > Third Third > Republican > Democrat D D D D D D -1 1 /3 13 -4/ 2/31 -1/ 1/3 4/3 -/ T R T R + T R T R T R + T R 11/3 2/3 - -1/3 -2/3 Republican > Third > Democrat Democrat > Third > Republican D D D D D T R T R + T R T R T R T R 11/3 2/3 - -1/3 -2/3 Third > Democrat > Republican Republican > Democrat > Third D D D D Y>D D T R T R + T R T R T R + T R -11/3 -4/31 -1/3 4/3 If we conduct the election as just described then after the cancellation of as many opposite pairs of voters as possible, there will be left three sets of preference lists, one set from the first row, one set from the second row, and one set from the third row. We will finish by proving that a voting paradox can happen only if the spins of these three sets are in the same direction. That is, for a voting paradox to occur, the three remaining sets must all come from the left of the table or all come from the right (see Exercise 3). This shows that there is some connection between the majority cycle and the decomposition that we are using-a voting paradox can happen only when the tendencies toward cyclic preference reinforce each other. For the proof, assume that opposite preference orders have been cancelled, and we are left with one set of preference lists from each of the three rows. Consider the sum of these three (here, the numbers a, b, and c could be positive, negative, or zero). -~ D , bDW>D +b a D a b b c c -a+b+c a- b+ c T R + T R _ T RT R b -cc A voting paradox occurs when the three numbers on the right, a - b + c and a + b - c and -a + b + c, are all nonnegative or all nonpositive. On the left, at least two of the three numbers, a and b and c, are both nonnegative or both nonpositive. We can assume that they are a and b. That makes four cases: the cycle is nonnegative and a and b are nonnegative, the cycle is nonpositive and a and b are nonpositive, etc. We will do only the first case, since the second is similar and the other two are also easy. So assume that the cycle is nonnegative and that a and b are nonnegative. The conditions 0 < a - b+ c and 0 < -a + b+ c add to give that 0 < 2c, which implies that c is also nonnegative, as desired. That ends the proof. This result says only that having all three spin in the same direction is a necessary condition for a majority cycle. It is not sufficient; see Exercise 4.  150 Chapter Two. Vector Spaces Voting theory and associated topics are the subject of current research. There are many intriguing results, most notably the one produced by K. Arrow [Arrow], who won the Nobel Prize in part for this work, showing that no voting system is entirely fair (for a reasonable definition of "fair"). For more infor- mation, some good introductory articles are [Gardner, 1970], [Gardner, 1974], [Gardner, 1980], and [Neimi &Riker]. A quite readable recent book is [Taylor]. The long list of cases from recent American political history given in [Poundstone] show that manipulation of these paradoxes is routine in practice (and the author proposes a solution). This Topic is largely drawn from [Zwicker]. (Author's Note: I would like to thank Professor Zwicker for his kind and illuminating discussions.) Exercises 1 Here is a reasonable way in which a voter could have a cyclic preference. Suppose that this voter ranks each candidate on each of three criteria. (a) Draw up a table with the rows labelled 'Democrat', 'Republican', and 'Third', and the columns labelled 'character', 'experience', and 'policies'. Inside each column, rank some candidate as most preferred, rank another as in the middle, and rank the remaining one as least preferred. (b) In this ranking, is the Democrat preferred to the Republican in (at least) two out of three criteria, or vice versa? Is the Republican preferred to the Third? (c) Does the table that was just constructed have a cyclic preference order? If not, make one that does. So it is possible for a voter to have a cyclic preference among candidates. The paradox described above, however, is that even if each voter has a straight-line preference list, a cyclic preference can still arise for the entire group. 2 Compute the values in the table of decompositions. 3 Do the cancellations of opposite preference orders for the Political Science class's mock election. Are all the remaining preferences from the left three rows of the table or from the right? 4 The necessary condition that is proved above-a voting paradox can happen only if all three preference lists remaining after cancellation have the same spin-is not also sufficient. (a) Continuing the positive cycle case considered in the proof, use the two in- equalities 0 < a - b+ c and 0 < -a + b+ c to show that a - b and this scalar multiplication. 5- (1 2)=(5 10) 5.- ' 50 More generally stated, under the correspondence (ao a) (ao (ai both operations are preserved: (ao a)+(bo bi) = (ao +bo ai + bi) + and r - (ao a) =_(rao rai) - r -(ao_) (r ao + b0 al + b1) o i0 (all of the variables are real numbers). 1.2 Example Another two spaces we can think of as "the same" are P2, the space of quadratic polynomials, and R3. A natural correspondence is this. ao\ ao + alx + a2x2 (ai1 2a2) 1 (e.g., 1 + 2x + 3x2 2 ) 3 The structure is preserved: corresponding elements add in a corresponding way ao+ a1x + a2x2 + bo + b1x + b2x2 (ao + bo) + (a1 + bi)x + (a2 + b2)x2 ao bo (ao+ bo - a1 + 61 = +1 a2 b2 a2 + b2 and scalar multiplication corresponds also. ao\ r'- (ao + a1x + a2x2) = (rao) + (rai)x + (ra2)x2 - r -"ai (a2) rao =rai ra2  Section I. Isomorphisms 161 1.3 Definition An isomorphism between two vector spaces V and W is a map f: V -* W that (1) is a correspondence: f is one-to-one and onto;* (2) preserves structure: if U1, UJ2 E V then fC(U1 + v2)= f(I1) + fC(J2) and if V E V and r E R then f (rOU = r f (U) (we write V W, read "V is isomorphic to W", when such a map exists). ("Morphism" means map, so "isomorphism" means a map expressing sameness.) 1.4 Example The vector space G = {ci cos O + c2 sin O c1, c2 E R} of func- tions of 0 is isomorphic to the vector space R2 under this map. c1 cos O + c2 sin f cL C2 We will check this by going through the conditions in the definition. We will first verify condition (1), that the map is a correspondence between the sets underlying the spaces. To establish that f is one-to-one, we must prove that f(d) = f(b) only when a= b. If f (ai cos O + a2 sin 0) = f (b cos 6 + b2 sin 0) then, by the definition of f, a1 _ bi) a2) b2) from which we can conclude that a1 = bi and a2 = b2 because column vectors are equal only when they have equal components. We've proved that f(d) = f(b) implies that a= b, which shows that f is one-to-one. To check that f is onto we must check that any member of the codomain R2 is the image of some member of the domain G. But that's clear any x)E R2 is the image under f of x cos 0 + y sin O E G. Next we will verify condition (2), that f preserves structure. *More information on one-to-one and onto maps is in the appendix.  162 Chapter Three. Maps Between Spaces This computation shows that f preserves addition. f ((ai1cosO8+ a2 sinO8) + (b1 cos 0+ b2 sinO8)) = f ( (a1 + bi)cos0 + (a2 + b2)sin0) ( a1 + b1 a2 + b2) (ai + (bi a2) b2 f (a1 cos 0 + a2 sin 0) + f (b1 cos 0 + b2 sin 0) A similar computation shows that f preserves scalar multiplication. f(r (a1cos0+a2sin0))=f(raicos0+ra2sin0) _ rai r'a2) (ajj a2) = r.-f(a1cos0 + a2sin0) With that, conditions (1) and (2) are verified, so we know that f is an isomorphism and we can say that the spaces are isomorphic G R2. 1.5 Example Let V be the space {c1x + c2y + c3z I c1, c2, c3 E R} of linear combinations of three variables x, y, and z, under the natural addition and scalar multiplication operations. Then V is isomorphic to P2, the space of quadratic polynomials. To show this we will produce an isomorphism map. There is more than one possibility; for instance, here are four. fI C1 + c2x + c3x2 f2 C2 +c3x-c1x2 C1X+C2+C3z- - c2x - c3x2 f4 ci + (c1 + C2) X + (c1 + C3) 2 The first map is the more natural correspondence in that it just carries the coefficients over. However, below we shall verify that the second one is an iso- morphism, to underline that there are isomorphisms other than just the obvious one (showing that fi is an isomorphism is Exercise 12). To show that f2 is one-to-one, we will prove that if f2(c1x + c2y + c3z) f2(dix + d2y + d3z) then c1x + c2y + c3z - d1x + d2y + d3z. The assumption that f2(c1x+c2y+c3z) - f2(dix+d2y+d3z) gives, by the definition of f2, that c2+ c3x + c1x2-- d2 + d3x + d1x2. Equal polynomials have equal coefficients, so c2 = d2, c3 --d3, and c1 = d1. Thus f2(c1x + c2y +c3z) --f2(dizx+d2y+d3z) implies that c1x + c2y + c3z --diz - d2y -+ dsz and therefore f2 is one-to-one.  Section I. Isomorphisms 163 The map f2 is onto because any member a + bx+ cx2 of the codomain is the image of some member of the domain, namely it is the image of cx + ay + bz. For instance, 2 + 3x - 4x2 is f2(-4x + 2y + 3z). The computations for structure preservation are like those in the prior ex- ample. This map preserves addition f2((c1x + c2y + c3z) + (dix + d2y + d3z)) f2((c1 + di)x + (c2 + d2)y + (c3 + d3)z) (c2 + d2) + (c3 + d3)x + (ci + di)x2 (c2 + c3x + c1x2) + (d2 + d3x + dix2) f2(cix + c2y + c3z) + f2(dix + d2y + d3z) and scalar multiplication. f2(r- (cix + c2y + c3z)) --f2(rc1x+rc2y+rc3z) = rc2 + rc3x + rc1x2 = r (c2 + c3x + c1x2) =r f2(c1x+c2y+c3z) Thus f2 is an isomorphism and we write V ' P2. We are sometimes interested in an isomorphism of a space with itself, called an automorphism. An identity map is an automorphism. The next two examples show that there are others. 1.6 Example A dilation map d8: R2 - R2 that multiplies all vectors by a nonzero scalar s is an automorphism of R2. d1.5(c) d1.d(.) A rotation or turning map to: R2 - R2 that rotates all vectors through an angle 8 is an automorphism. t~r/6 L~/6(u) A third type of automorphism of R 2 is a map fl: R2 - R2 that flips or reflects all vectors over a line £ through the origin.  164 Chapter Three. Maps Between Spaces feI-u) See Exercise 29. 1.7 Example Consider the space P5 of polynomials of degree 5 or less and the map f that sends a polynomial p(x) to p(x - 1). For instance, under this map x2 - (x-1)2 = x2 -2x+1 and x3+2x - (x-1)3+2(x-1) = x3 -3x2+5x-3. This map is an automorphism of this space; the check is Exercise 21. This isomorphism of P5 with itself does more than just tell us that the space is "the same" as itself. It gives us some insight into the space's structure. For instance, below is shown a family of parabolas, graphs of members of P5. Each has a vertex at y = -1, and the left-most one has zeroes at -2.25 and -1.75, the next one has zeroes at -1.25 and -0.75, etc. P0 P1 Geometrically, the substitution of x - 1 for x in any function's argument shifts its graph to the right by one. Thus, f(po) = p1 and f's action is to shift all of the parabolas to the right by one. Notice that the picture before f is applied is the same as the picture after f is applied, because while each parabola moves to the right, another one comes in from the left to take its place. This also holds true for cubics, etc. So the automorphism f gives us the insight that P5 has a certain horizontal-homogeneity; this space looks the same near x 1 as near x = 0. As described in the preamble to this section, we will next produce some results supporting the contention that the definition of isomorphism above cap- tures our intuition of vector spaces being the same. Of course the definition itself is persuasive: a vector space consists of two components, a set and some structure, and the definition simply requires that the sets correspond and that the structures correspond also. Also persuasive are the examples above. In particular, Example I.1, which gives an isomorphism between the space of two-wide row vectors and the space of two-tall column vectors, dramatizes our intuition that isomorphic spaces are the same in all relevant respects. Sometimes people say, where V W, that "W is just V painted green" any differences are merely cosmetic. Further support for the definition, in case it is needed, is provided by the following results that, taken together, suggest that all the things of interest in a  Section I. Isomorphisms 165 vector space correspond under an isomorphism. Since we studied vector spaces to study linear combinations, "of interest" means "pertaining to linear combina- tions". Not of interest is the way that the vectors are presented typographically (or their color!). As an example, although the definition of isomorphism doesn't explicitly say that the zero vectors must correspond, it is a consequence of that definition. 1.8 Lemma An isomorphism maps a zero vector to a zero vector. PROOF. Where f: V - W is an isomorphism, fix any v E V. Then fy(Ov) f(0 - ) = 0 - f(v) = Ow. QED The definition of isomorphism requires that sums of two vectors correspond and that so do scalar multiples. We can extend that to say that all linear combinations correspond. 1.9 Lemma For any map f: V - W between vector spaces these statements are equivalent. (1) f preserves structure f (61 + V2) = f (61) + f(v2) and f (c1) = c f (v) (2) f preserves linear combinations of two vectors f(c161 + c262)= ci f(61) + c2f(62) (3) f preserves linear combinations of any finite number of vectors f (c161 + ... + cn7n) = ci f (v1) + ... + cnf (67) PROOF. Since the implications (3) - (2) and (2) - (1) are clear, we need only show that (1) - (3). Assume statement (1). We will prove statement (3) by induction on the number of summands n. The one-summand base case, that f(c61) = c f(v1), is covered by the as- sumption of statement (1). For the inductive step assume that statement (3) holds whenever there are k or fewer summands, that is, whenever n = 1, or n = 2, ..., or n = k. Consider the k + 1-summand case. The first half of (1) gives f (c161 + ... + CkVk --ck+1kv+1)-- f (c11 - + ... + ck k) + f (ck+1 k+1) by breaking the sum along the final '+'. Then the inductive hypothesis lets us break up the k-term sum. = f (c161) + ... + f (ck v) + f(ck+1 vk+1) Finally, the second half of statement (1) gives = c1 f (1) + ... + ck f (vk) + Ck+1 f (vk+1) when applied k + 1 times. QED  166 Chapter Three. Maps Between Spaces In addition to adding to the intuition that the definition of isomorphism does indeed preserve the things of interest in a vector space, that lemma's second item is an especially handy way of checking that a map preserves structure. We close with a summary. The material in this section augments the chapter on Vector Spaces. There, after giving the definition of a vector space, we infor- mally looked at what different things can happen. Here, we defined the relation ' ' between vector spaces and we have argued that it is the right way to split the collection of vector spaces into cases because it preserves the features of interest in a vector space-in particular, it preserves linear combinations. That is, we have now said precisely what we mean by 'the same', and by 'different', and so we have precisely classified the vector spaces. Exercises / 1.10 Verify, using Example 1.4 as a model, that the two correspondences given before the definition are isomorphisms. (a) Example 1.1 (b) Example 1.2 / 1.11 For the map f: Pi - R2 given by a +bx f a-b Find the image of each of these elements of the domain. (a) 3 - 2x (b) 2+ 2x (c) x Show that this map is an isomorphism. 1.12 Show that the natural map fi from Example 1.5 is an isomorphism. / 1.13 Decide whether each map is an isomorphism (if it is an isomorphism then prove it and if it isn't then state a condition that it fails to satisfy). (a) f :M2x2 - R given by a b )-db c d ) ad - bc (b) f : M2x2 - R4 given by a+b+c+d\ a b a+b+c c d a+b a / (c) f : M2x2 - P3 given by e(ab')vd c+(d+c)x+(b+a)x2+ax3 (d) f : M2x2 - P3 given by (a b)vc+ (d+c)x+ (b+a+ 1)x2 +ax3 114 Show that the map f: R R given by f(x) =x3 is one-to-one and onto. Is it an isomorphism? / 1.15 Refer to Example 1.1. Produce two more isomorphisms (of course, that they satisfy the conditions in the definition of isomorphism must be verified). 1.16 Refer to Example 1.2. Produce two more isomorphisms (and verify that they satisfy the conditions).  Section I. Isomorphisms 167 v' 1.17 Show that, although R2 is not itself a subspace of R3, it is isomorphic to the xy-plane subspace of R3. 1.18 Find two isomorphisms between R16 and M4x4. v/ 1.19 For what k is Mmxn isomorphic to R'? 1.20 For what k is Pk isomorphic to R? 1.21 Prove that the map in Example 1.7, from P5 to P5 given by p(x) H p(x - 1), is a vector space isomorphism. 1.22 Why, in Lemma 1.8, must there be a v E V? That is, why must V be nonempty? 1.23 Are any two trivial spaces isomorphic? 1.24 In the proof of Lemma 1.9, what about the zero-summands case (that is, if n is zero)? 1.25 Show that any isomorphism f : Po R1 has the form a - ka for some nonzero real number k. / 1.26 These prove that isomorphism is an equivalence relation. (a) Show that the identity map id: V - V is an isomorphism. Thus, any vector space is isomorphic to itself. (b) Show that if f : V - W is an isomorphism then so is its inverse f- : W - V. Thus, if V is isomorphic to W then also W is isomorphic to V. (c) Show that a composition of isomorphisms is an isomorphism: if f : V - W is an isomorphism and g: W - U is an isomorphism then so also is g o f : V - U. Thus, if V is isomorphic to W and W is isomorphic to U, then also V is isomor- phic to U. 1.27 Suppose that f : V - W preserves structure. Show that f is one-to-one if and only if the unique member of V mapped by f to Ow is Ov. 1.28 Suppose that f : V - W is an isomorphism. Prove that the set {v1, ... , Ba} C V is linearly dependent if and only if the set of images {f(v1), ..., f(ij)} C W is linearly dependent. / 1.29 Show that each type of map from Example 1.6 is an automorphism. (a) Dilation ds by a nonzero scalar s. (b) Rotation to through an angle 0. (c) Reflection fe over a line through the origin. Hint. For the second and third items, polar coordinates are useful. 1.30 Produce an automorphism of P2 other than the identity map, and other than a shift map p(x) v-* p(x - k). 1.31 (a) Show that a function f : R R is an automorphism if and only if it has the form x v-l kx for some k f 0. (b) Let f be an automorphism of R such that f(3) = 7. Find f(-2). (c) Show that a function f: R2 - R2 is an automorphism if and only if it has the form ) ax +by y cx+dy for some a, b, c, d E R with ad - bc 0. Hint. Exercises in prior subsections have shown that ()is not a multiple of (a) if and only if ad - bc 0.  168 Chapter Three. Maps Between Spaces (d) Let f be an automorphism of R2 with f(1) 2 and f(Qi)=(0). Find f( 0). -1 1.32 Refer to Lemma 1.8 and Lemma 1.9. Find two more things preserved by isomorphism. 1.33 We show that isomorphisms can be tailored to fit in that, sometimes, given vectors in the domain and in the range we can produce an isomorphism associating those vectors. (a) Let B = (31,/32,q33) be a basis for P2 so that any p E P2 has a unique representation as p= c1i31 + c2/32 + c3/33, which we denote in this way. (C1 cRep (p) = c2 C3 Show that the RepB(-) operation is a function from P2 to R3 (this entails showing that with every domain vector v E P2 there is an associated image vector in R3, and further, that with every domain vector v E P2 there is at most one associated image vector). (b) Show that this RepB(-) function is one-to-one and onto. (c) Show that it preserves structure. (d) Produce an isomorphism from P2 to R3 that fits these specifications. 1 0 x+x2 (0) and 1- - 1 0(0) 1.34 Prove that a space is n-dimensional if and only if it is isomorphic to R. Hint. Fix a basis B for the space and consider the map sending a vector over to its representation with respect to B. 1.35 (Requires the subsection on Combining Subspaces, which is optional.) Let U and W be vector spaces. Define a new vector space, consisting of the set U x W = {(u, ) I E U and W E W} along with these operations. (u1,1 + (u2, W2) = (di + u2, wi + w2) and r-(u, w) =(rd, rw) This is a vector space, the external direct sum of U and W. (a) Check that it is a vector space. (b) Find a basis for, and the dimension of, the external direct sum P2 x R2 (c) What is the relationship among dim(U), dim(W), and dim(U x W)? (d) Suppose that U and W are subspaces of a vector space V such that V U e W (in this case we say that V is the internal direct sum of U and W). Show that the map f: U x W - V given by (i~t) u -w is an isomorphism. Thus if the internal direct sum is defined then the internal and external direct sums are isomorphic.  Section I. Isomorphisms 169 1.2 Dimension Characterizes Isomorphism In the prior subsection, after stating the definition of an isomorphism, we gave some results supporting the intuition that such a map describes spaces as "the same". Here we will formalize this intuition. While two spaces that are isomorphic are not equal, we think of them as almost equal as equivalent. In this subsection we shall show that the relationship 'is isomorphic to' is an equivalence relation.* 2.1 Theorem Isomorphism is an equivalence relation between vector spaces. PROOF. We must prove that this relation has the three properties of being sym- metric, reflexive, and transitive. For each of the three we will use item (2) of Lemma 1.9 and show that the map preserves structure by showing that it preserves linear combinations of two members of the domain. To check reflexivity, that any space is isomorphic to itself, consider the iden- tity map. It is clearly one-to-one and onto. The calculation showing that it preserves linear combinations is easy. id(ci - 61 + c2 - 22) = c161 + c262 = c1 - id(y1) + c2 - id(62) To check symmetry, that if V is isomorphic to W via some map f: V -* W then there is an isomorphism going the other way, consider the inverse map f-1: W -* V. As stated in the appendix, such an inverse function exists and it is also a correspondence. Thus we have reduced the symmetry issue to checking that, because f preserves linear combinations, so also does f-1. Assume that i1 = f(v1) and w2 = f(v2), i.e., that f-1(w1) = 61 and f-1(-2) = v2. f -1(c1 - 01+ c2 - w2) = f1( c1 - f(1) + c2 -f (62) = f-1( f(c161 + c262)) = c161 + c262 = c1 - f -1(w1) + C2 - f 1(w2) Finally, we must check transitivity, that if V is isomorphic to W via some map f and if W is isomorphic to U via some map g then also V is isomorphic to U. Consider the composition g o f: V -* U. The appendix notes that the composition of two correspondences is a correspondence, so we need only check that the composition preserves linear combinations. go f (c1 - 61 + C2 -212) =g(f(c1 - 1 + C2 -v2)) = g (C c1 f (61) + C2 - f (v2) ) = Cl g(f (-1)) + C2 g(f (v2)) = c1 (g o f) (-1) + c2 - (g o f) (V2) Thus g o f : V -* U is an isomorphism. QED * More information on equivalence relations is in the appendix.  170 Chapter Three. Maps Between Spaces As a consequence of that result, we know that the universe of vector spaces is partitioned into classes: every space is in one and only one isomorphism class. All finite dimensional V vector spaces: 0 W 2.2 Theorem Vector spaces are isomorphic if and only if they have the same dimension. This follows from the next two lemmas. 2.3 Lemma If spaces are isomorphic then they have the same dimension. PROOF. We shall show that an isomorphism of two spaces gives a correspondence between their bases. That is, where f: V -* W is an isomorphism and a basis for the domain V is B = (#1, ... , #,,), then the image set D = (f (#1), ... , f (#.)) is a basis for the codomain W. (The other half of the correspondence that for any basis of W the inverse image is a basis for V follows on recalling that if f is an isomorphism then f- is also an isomorphism, and applying the prior sentence to f-1.) To see that D spans W, fix any w E W, note that f is onto and so there is a v E V with w = f (v), and expand v as a combination of basis vectors. G = f () = f(v1o1 +.-. -+ V"0") = v1-f (01) +.-. -+ V.- f (in) For linear independence of D, if Ow = cif(#1) + .. . +c fK(#) = f(c11 + . . .+c ) then, since f is one-to-one and so the only vector sent to Ow is Ov, we have that Ov = c1o1 + - - - + c,/3,, implying that all of the c's are zero. QED 2.4 Lemma If spaces have the same dimension then they are isomorphic. PROOF. To show that any two spaces of dimension n are isomorphic, we can simply show that any one is isomorphic to R". Then we will have shown that they are isomorphic to each other, by the transitivity of isomorphism (which was established in Theorem 2.1). Let V be n-dimensional. Fix a basis B = (1, ... , 3.) for the domain V. Consider the representation of the members of that domain with respect to the basis as a function from V to R" V1 - ~ - Rep, V=1vi#1+--+vnn 1- ' on,  Section I. Isomorphisms 171 (it is well-defined* since every v has one and only one such representation see Remark 2.5 below). This function is one-to-one because if RepB(u11 + -.-. + un n) = RepB(v131 + --. + vn7%n) then Un on and so u1 = vi, ..., un = v, and therefore the original arguments u1Vi1i+ + unfn and v1/31 + - - - + vn/n are equal. This function is onto; any n-tall vector wn is the image of some v E V, namely w = RepB(w113 + - - - + wn/3). Finally, this function preserves structure. RepB(r - u+ s -) =RepB( (rui + sv1)13 + -(run +son)) rui + sv1 Tun + svn un on = r -RepB() + s - RepB() Thus the RePB function is an isomorphism and thus any n-dimensional space is isomorphic to the n-dimensional space R". Consequently, any two spaces with the same dimension are isomorphic. QED 2.5 Remark The parenthetical comment in that proof about the role played by the 'one and only one representation' result requires some explanation. We need to show that (for a fixed B) each vector in the domain is associated by RePB with one and only one vector in the codomain. A contrasting example, where an association doesn't have this property, is illuminating. Consider this subset of P2, which is not a basis. A = {1+Ox + 0x2,0 + lx + 0x2,0 + Ox + 1x2, 1+ lx + 2x2} * More information on well-definedness is in the appendix.  172 Chapter Three. Maps Between Spaces Call those four polynomials C1, ..., a4. If, mimicing above proof, we try to write the members of P2 as 5= ci1 + c2a2 + c353 + c4a4, and associate p7with the four-tall vector with components c1, ..., c4 then there is a problem. For, consider (x) = 1 + x +x2. The set A spans the space P2, so there is at least one four-tall vector associated with p. But A is not linearly independent and so vectors do not have unique decompositions. In this case, both (x) l 1 + 1a2 + 1a3 + 04 and p(x) =OC1 +002 - 1x3 + 1a4 and so there is more than one four-tall vector associated with . 1 0 (U and 1 -1 0 1 That is, with input p7this association does not have a well-defined (i.e., single) output value. Any map whose definition appears possibly ambiguous must be checked to see that it is well-defined. For RePB in the above proof that check is Exercise 18. That ends the proof of Theorem 2.2. We say that the isomorphism classes are characterized by dimension because we can describe each class simply by giving the number that is the dimension of all of the spaces in that class. This subsection's results give us a collection of representatives of the isomor- phism classes. * 2.6 Corollary A finite-dimensional vector space is isomorphic to one and only one of the R1 . The proofs above pack many ideas into a small space. Through the rest of this chapter we'll consider these ideas again, and fill them out. For a taste of this, we will expand here on the proof of Lemma 2.4. 2.7 Example The space M2x2 of 2x2 matrices is isomorphic to R4. With this basis for the domain { 1 0 (0 1) 0 0 (0 0) B 0 0' 0 0) 1 0' 01) the isomorphism given in the lemma, the representation map fi= RePB, simply carries the entries over. a b ( b c d) c d More information on equivalence class representatives is in the appendix.  Section I. Isomorphisms 173 One way to think of the map fi is: fix the basis B for the domain and the basis E4 for the codomain, and associate #13 with e1, and /32 with e2, etc. Then extend this association to all of the members of two spaces. (a b f1 b =a _a/1 + b#32 + C#33 + d/34 asi + be2 + ces + d4 ( c d c d We say that the map has been extended linearly from the bases to the spaces. We can do the same thing with different bases, for instance, taking this basis for the domain. _ 2 0 (0 2 0 0 (0 0 A 0 0' 0 0' 2 0' 0 2 Associating corresponding members of A and E4 and extending linearly (?b =)(a/2)51 + (b/2)T2 + (c/2)3s + (d/2)a4 a/2 2 (a/2)21 + (b/2)e2 + (c/2)e3 + (d/2)e4 -- d/2 gives rise to an isomorphism that is different than fi. The prior map arose by changing the basis for the domain. We can also change the basis for the codomain. Starting with 1 0 0 0 B and0 1 0 0 B ad D= (0 ' 0 ' 0 ' 1 0 0 1 0 associating 131 with 61, etc., and then linearly extending that correspondence to all of the two spaces c d( =a#1+ b#2 + C3+ d# 3 a6l+bb2l+c63+ d64 d gives still another isomorphism. So there is a connection between the maps between spaces and bases for those spaces. Later sections will explore that connection. We will close this section with a summary. Recall that in the first chapter we defined two matrices as row equivalent if they can be derived from each other by elementary row operations (this was  174 Chapter Three. Maps Between Spaces the meaning of same-ness that was of interest there). We showed that is an equivalence relation and so the collection of matrices is partitioned into classes, where all the matrices that are row equivalent fall together into a single class. Then, for insight into which matrices are in each class, we gave representatives for the classes, the reduced echelon form matrices. In this section, except that the appropriate notion of same-ness here is vector space isomorphism, we have followed much the same outline. First we defined isomorphism, saw some examples, and established some properties. Then we showed that it is an equivalence relation, and now we have a set of class repre- sentatives, the real vector spaces R1, R2, etc. *Rio * R3 All finite dimensional One representative vector spaces: * I2 .per class * I1 As before, the list of representatives helps us to understand the partition. It is simply a classification of spaces by dimension. In the second chapter, with the definition of vector spaces, we seemed to have opened up our studies to many examples of new structures besides the familiar R's. We now know that isn't the case. Any finite-dimensional vector space is actually "the same" as a real space. We are thus considering exactly the structures that we need to consider. The rest of the chapter fills out the work in this section. In particular, in the next section we will consider maps that preserve structure, but are not necessarily correspondences. Exercises / 2.8 Decide if the spaces are isomorphic. (a) R2, R4 (b) P5, R5 (c) M2x3, R6 (d) P5, M2x3 (e) M2xk, Ck / 2.9 Consider the isomorphism RepB(-): Pi - R2 where B - (1, 1 + x). Find the image of each of these elements of the domain. (a) 3 - 2x; (b) 2 + 2x; (c) x v/ 2.10 Show that if m n then Rm Rn. / 2.11 Is Mmxn Mnxm? / 2.12 Are any two planes through the origin in R3 isomorphic? 2.13 Find a set of equivalence class representatives other than the set of Rn's. 2.14 True or false: between any n-dimensional space and R" there is exactly one isomorphism. 2.15 Can a vector space be isomorphic to one of its (proper) subspaces? / 2.16 This subsection shows that for any isomorphism, the inverse map is also an iso- morphism. This subsection also shows that for a fixed basis B of an n-dimensional vector space V, the map RepB : V - R" is an isomorphism. Find the inverse of this map. ' 2.17 Prove these facts about matrices. (a) The row space of a matrix is isomorphic to the column space of its transpose.  Section I. Isomorphisms 175 (b) The row space of a matrix is isomorphic to its column space. 2.18 Show that the function from Theorem 2.2 is well-defined. 2.19 Is the proof of Theorem 2.2 valid when n = 0? 2.20 For each, decide if it is a set of isomorphism class representatives. (a) {Ck k E N} (b) {Pk k E {-1,0,1, .. .}} (c) {Mmxn m, n E N} 2.21 Let f be a correspondence between vector spaces V and W (that is, a map that is one-to-one and onto). Show that the spaces V and W are isomorphic via f if and only if there are bases B C V and D C W such that corresponding vectors have the same coordinates: RepB(v) = RepD'(f ()). 2.22 Consider the isomorphism RepB: P3 - R4. (a) Vectors in a real space are orthogonal if and only if their dot product is zero. Give a definition of orthogonality for polynomials. (b) The derivative of a member of P3 is in P3. Give a definition of the derivative of a vector in R4. / 2.23 Does every correspondence between bases, when extended to the spaces, give an isomorphism? 2.24 (Requires the subsection on Combining Subspaces, which is optional.) Suppose that V = Vi e V2 and that V is isomorphic to the space U under the map f. Show that U= f(V1) e f(U2). 2.25 Show that this is not a well-defined function from the rational numbers to the integers: with each fraction, associate the value of its numerator.  176 Chapter Three. Maps Between Spaces II Homomorphisms The definition of isomorphism has two conditions. In this section we will con- sider the second one, that the map must preserve the algebraic structure of the space. We will focus on this condition by studying maps that are required only to preserve structure; that is, maps that are not required to be correspondences. Experience shows that this kind of map is tremendously useful in the study of vector spaces. For one thing, as we shall see in the second subsection below, while isomorphisms describe how spaces are the same, these maps describe how spaces can be thought of as alike. 11.1 Definition 1.1 Definition A function between vector spaces h: V -* W that preserves the operations of addition if 61, v2 E V then h(6I + v2) = h(61) + h(62) and scalar multiplication if 6 E V and r E R then h(r. = r-h(s) is a homomorphism or linear map. 1.2 Example The projection map 7: R3 -* R2 z is a homomorphism. It preserves addition 7r(x (1 + x2 1( y1+ Y2 ) z1 + Z2 (1 + x2 Y1 + Y2 (Wi 7(Y1 I) \zi (2 + 7T( Y2 ) (z2 and scalar multiplication. 7(r' Y1 ) z1 (rxi' 7 ( y, YrY i (I T.' 7( Y1 ) z1 This map is not an isomorphism since it is not one-to-one. For instance, both 0 and e3 in R3 are mapped to the zero vector in Rk2.  Section II. Homomorphisms 177 1.3 Example Of course, the domain and codomain might be other than spaces of column vectors. Both of these are homomorphisms; the verifications are straightforward. (1) f : P2 - P3 given by a0 + a1x + a2x2 - aox + (a1/2)2 + (a2/3)x3 (2) f2: M2x2 -TR given by a a + d c d 1.4 Example Between any two spaces there is a zero homomorphism, mapping every vector in the domain to the zero vector in the codomain. 1.5 Example These two suggest why we use the term 'linear map'. (1) The map g:R3 - R given by (it) y 3x + 2y - 4.5z z is linear (i.e., is a homomorphism). In contrast, the map y: R3 - R given by y A 3x +2y -4.5z+ 1 z is not; for instance, 0 1 0 1 g( 0 + 0 )=4 while y( 0 )+g( 0 =5 0 0 0 0 (to show that a map is not linear we need only produce one example of a linear combination that is not preserved). (2) The first of these two maps t1, t2: R3 - R2 is linear while the second is not. X t1 5x - 2y x 2 5x - 2y y(x ( ) and y A x z(Z) Finding an example that the second fails to preserve structure is easy. What distinguishes the homomorphisms is that the coordinate functions are linear combinations of the arguments. See also Exercise 23.  178 Chapter Three. Maps Between Spaces Obviously, any isomorphism is a homomorphism an isomorphism is a ho- momorphism that is also a correspondence. So, one way to think of the 'ho- momorphism' idea is that it is a generalization of 'isomorphism', motivated by the observation that many of the properties of isomorphisms have only to do with the map's structure preservation property and not to do with it being a correspondence. As examples, these two results from the prior section do not use one-to-one-ness or onto-ness in their proof, and therefore apply to any homomorphism. 1.6 Lemma A homomorphism sends a zero vector to a zero vector. 1.7 Lemma Each of these is a necessary and sufficient condition for f : V - W to be a homomorphism. (1) f (c1 - 61 + c2 - v2) = c1 f (61) + c2 -f (v2) for any ci, c2 E R and 61, v2 E V (2) f (c1 - 61+.- -+ c,. - ) = c1-f (v1) + - -+ c,-f (6m) for any ci, .. . , cE R and v61, . .. , V, E V Part (1) is often used to check that a function is linear. 1.8 Example The map f: R2 -* R4 given by x/2 yf x+y 3y satisfies (1) of the prior result r1(x1/2) +r2(x2/2) x1/2 x2/2 0 101 101 r1(x1 + y1) + r2(x2 + y2) x + Y1 + r x2 + Y2 r1(3y1) + r2(3y2) 3y1 3Y2 and so it is a homomorphism. However, some of the results that we have seen for isomorphisms fail to hold for homomorphisms in general. Consider the theorem that an isomorphism be- tween spaces gives a correspondence between their bases. Homomorphisms do not give any such correspondence; Example 1.2 shows that there is no such cor- respondence, and another example is the zero map between any two nontrivial spaces. Instead, for homomorphisms a weaker but still very useful result holds. 1.9 Theorem A homomorphism is determined by its action on a basis. That is, if (#1,... , #,,,) is a basis of a vector space V and w1, ... , w, are (perhaps not distinct) elements of a vector space W then there exists a homomorphism from V to W sending 01 to Z1, ..., and 0,,, to w,, and that homomorphism is unique.  Section I. Homomorphisms 179 PROOF. We will define the map by associating 01 with Z1, etc., and then ex- tending linearly to all of the domain. That is, where v = c101 + - + cn3n, the map h: V -* W is given by h(i) = c1z1 + + cnwn. This is well-defined because, with respect to the basis, the representation of each domain vector 6 is unique. This map is a homomorphism since it preserves linear combinations; where vi = c101 + ---+ Cn~n and v2 = d1#1 + ---+ dn~n, we have this. h(r161 + r2612) = h((rici + r2di)31 + - + (rica + r2dn)3n) (rici + r2di)z1 +- + (rica + r2dn)n = rih(61) + r2h(62) And, this map is unique since if h: V -* W is another homomorphism such that h(#i) = wi for each i then h and h agree on all of the vectors in the domain. h(i) = h(ciji + ---+ cn#n) c1h(01) + ... + Cnh(On) =C101 + -.- + Cnwn =h(6) Thus, h and h are the same map. QED 1.10 Example This result says that we can construct a homomorphism by fixing a basis for the domain and specifying where the map sends those basis vectors. For instance, if we specify a map h: R2 -- R2 that acts on the standard basis E2 in this way h(()) 0 1) and h( )- 4 then the action of h on any other member of the domain is also specified. For instance, the value of h on this argument h( -2) =h(3 -' - 2 -0)= 3-h( 1)- 2"-h( 0)= 55 is a direct consequence of the value of h on the basis vectors. Later in this chapter we shall develop a scheme, using matrices, that is convienent for computations like this one. Just as the isomorphisms of a space with itself are useful and interesting, so too are the homomorphisms of a space with itself. 1.11 Definition A linear map from a space into itself t: V -* V is a linear transformation.  180 Chapter Three. Maps Between Spaces 1.12 Remark In this book we use 'linear transformation' only in the case where the codomain equals the domain, but it is widely used in other texts as a general synonym for 'homomorphism'. 1.13 Example The map on R2 that projects all vectors down to the x-axis y) ± (;0) is a linear transformation. 1.14 Example The derivative map d/dx: P - 7P ao~aix++a~x~hd/dx 23 +~~~ ao + alx + -.-. + anz" dim 1 + 2a2x + 3a3x2 + -.-. + rianz"-1 is a linear transformation, as this result from calculus notes: d(cif + c2g)/dx= c1 (df/dx) + c2 (dg/dx). 1.15 Example The matrix transpose map a b a c c d) b d) is a linear transformation of M2x2. Note that this transformation is one-to-one and onto, and so in fact it is an automorphism. We finish this subsection about maps by recalling that we can linearly com- bine maps. For instance, for these maps from R2 to itself x f 2xxand (z g 0 y 3x -2y y 5x the linear combination 5f - 2g is also a map from R2 to itself. x 5f-2g lx yf"5x -10yf 1.16 Lemma For vector spaces V and W, the set of linear functions from V to W is itself a vector space, a subspace of the space of all functions from V to W. It is denoted $(V, W). PROOF. This set is non-empty because it contains the zero homomorphism. So to show that it is a subspace we need only check that it is closed under linear combinations. Let f, g: V - W be linear. Then their sum is linear (f + g)(c161 + c2262) = c1f (21) + c2fQ(22) + cig(21) + c2g(v2) = c1(f +g)(21) + c2(f + g)(2) and any scalar multiple is also linear. (r - f)(c11 + c2262) = r(cif (21) + c2f (22)) = c1(r' -f)(21) + c2(r'- f)(V2) Hence ,C(V, W) is a subspace. Q ED  Section II. Homomorphisms 181 We started this section by isolating the structure preservation property of isomorphisms. That is, we defined homomorphisms as a generalization of iso- morphisms. Some of the properties that we studied for isomorphisms carried over unchanged, while others were adapted to this more general setting. It would be a mistake, though, to view this new notion of homomorphism as derived from, or somehow secondary to, that of isomorphism. In the rest of this chapter we shall work mostly with homomorphisms, partly because any state- ment made about homomorphisms is automatically true about isomorphisms, but more because, while the isomorphism concept is perhaps more natural, ex- perience shows that the homomorphism concept is actually more fruitful and more central to further progress. Exercises / 1.17 Decide if each h: R3 - R2 is linear. z z z )) 0 z) (a) h(y)V (b)h( (c) h( (b) h((a b ad-bc (c) h((a b) 2a + 3b+c-d (d) h((a y)a2+b2 / 1.19 Show that these two maps are homomorphisms. (a) d/dx: P3 - P2 given by ao + aix + a2x2 + a3x3 maps to ai + 2a2x + 3a3x2 (b) f : P2 - P3 given by bo + bix + b2x2 maps to box + (b1/2)x2 + (b2/3)x3 Are these maps inverse to each other? 1.20 Is (perpendicular) projection from R3 to the xz-plane a homomorphism? Pro- jection to the yz-plane? To the x-axis? The y-axis? The z-axis? Projection to the origin? 1.21 Show that, while the maps from Example 1.3 preserve linear operations, they are not isomorphisms. 1.22 Is an identity map a linear transformation? / 1.23 Stating that a function is 'linear' is different than stating that its graph is a line. (a) The function fi: R - R given by fi(x) = 2x - 1 has a graph that is a line. Show that it is not a linear function. (b) The function f2: R2 - R given by x x + 2y does not have a graph that is a line. Show that it is a linear function.  182 Chapter Three. Maps Between Spaces / 1.24 Part of the definition of a linear function is that it respects addition. Does a linear function respect subtraction? 1.25 Assume that h is a linear transformation of V and that (1,... 3,,) is a basis of V. Prove each statement. (a) If h(/32) = for each basis vector then h is the zero map. (b) If h(32) =13i for each basis vector then h is the identity map. (c) If there is a scalar r such that h(32) = r /32 for each basis vector then h() = r - v for all vectors in V. / 1.26 Consider the vector space R+ where vector addition and scalar multiplication are not the ones inherited from R but rather are these: a + b is the product of a and b, and r - a is the r-th power of a. (This was shown to be a vector space in an earlier exercise.) Verify that the natural logarithm map In: R+ - R is a homomorphism between these two spaces. Is it an isomorphism? / 1.27 Consider this transformation of R2. x x/2 y' y/3 Find the image under this map of this ellipse. { x( I (x2/4) + (y2/9)=1} / 1.28 Imagine a rope wound around the earth's equator so that it fits snugly (sup- pose that the earth is a sphere). How much extra rope must be added to raise the circle to a constant six feet off the ground? / 1.29 Verify that this map h: R3 - R zx\ zx\ 3 y a y- -1 =3x-y-z z z -1 is linear. Generalize. 1.30 Show that every homomorphism from R1 to R1 acts via multiplication by a scalar. Conclude that every nontrivial linear transformation of R1 is an isomor- phism. Is that true for transformations of R2? R'? 1.31 (a) Show that for any scalars ai,i, . . . , am,n this map h: R" - Rm is a ho- momorphism. (Xi (1(1X1 + ... + al,nxn Xn am-,,,11 + ... + am,nxn (b) Show that for each i, the i-th derivative operator d2/dx2 is a linear trans- formation of Ps. Conclude that for any scalars ck, . . . , co this map is a linear transformation of that space. dk d - 1 d f dx f +ck_1dxk1f+-c1 f+cof 1.32 Lemma 116 shows that a sum of linear functions is linear and that a scalar multiple of a linear function is linear. Show also that a composition of linear functions is linear. / 1.33 Where f : V -- W is linear, suppose that f(v1) ... , f(v,) =w,, for some vectors W'1, ..., w-i-, from W. (a) If the set of d 's is independent, must the set of 6's also be independent?  Section II. Homomorphisms 183 (b) If the set of V's is independent, must the set of W 's also be independent? (c) If the set of d's spans W, must the set of V's span V? (d) If the set of 6's spans V, must the set of d's span W? 1.34 Generalize Example 1.15 by proving that the matrix transpose map is linear. What is the domain and codomain? 1.35 (a) Where u,6v E R", the line segment connecting them is defined to be the set £ = {t - u+ (1 - t) - vI t E [0..1]}. Show that the image, under a homo- morphism h, of the segment between u and v is the segment between h(i) and h(). (b) A subset of R" is convex if, for any two points in that set, the line segment joining them lies entirely in that set. (The inside of a sphere is convex while the skin of a sphere is not.) Prove that linear maps from R" to Rm preserve the property of set convexity. / 1.36 Let h: R" - Rm be a homomorphism. (a) Show that the image under h of a line in R" is a (possibly degenerate) line in RT. (b) What happens to a k-dimensional linear surface? 1.37 Prove that the restriction of a homomorphism to a subspace of its domain is another homomorphism. 1.38 Assume that h: V - W is linear. (a) Show that the rangespace of this map {h() V' E V} is a subspace of the codomain W. (b) Show that the nullspace of this map {v E V h() = Uw} is a subspace of the domain V. (c) Show that if U is a subspace of the domain V then its image {h()I) U E U} is a subspace of the codomain W. This generalizes the first item. (d) Generalize the second item. 1.39 Consider the set of isomorphisms from a vector space to itself. Is this a subspace of the space E(V, V) of homomorphisms from the space to itself? 1.40 Does Theorem 1.9 need that (/31, ... , ,3n) is a basis? That is, can we still get a well-defined and unique homomorphism if we drop either the condition that the set of 13's be linearly independent, or the condition that it span the domain? 1.41 Let V be a vector space and assume that the maps fi, f2: V R are lin- ear. (a) Define a map F: V - R2 whose component functions are the given linear ones. (fi(6)) f2 (v) Show that F is linear. (b) Does the converse hold-is any linear map from V to R2 made up of two linear component maps to R1? (c) Generalize. 11.2 Rangespace and Nullspace Isomorphisms and homomorphisms both preserve structure. The difference is  184 Chapter Three. Maps Between Spaces that homomorphisms needn't be onto and needn't be one-to-one. This means that homomorphisms are a more general kind of map, subject to fewer restric- tions than isomorphisms. We will examine what can happen with homomor- phisms that is prevented by the extra restrictions satisfied by isomorphisms. We first consider the effect of dropping the onto requirement, of not requir- ing as part of the definition that a homomorphism be onto its codomain. For instance, the injection map t: R2 - R3 x () 1-4 ( ) is not an isomorphism because it is not onto. Of course, being a function, a homomorphism is onto some set, namely its range; the map t is onto the xy- plane subset of 1R3. 2.1 Lemma Under a homomorphism, the image of any subspace of the domain is a subspace of the codomain. In particular, the image of the entire space, the range of the homomorphism, is a subspace of the codomain. PROOF. Let h: V -* W be linear and let S be a subspace of the domain V. The image h(S) is a subset of the codomain W. It is nonempty because S is nonempty and thus to show that h(S) is a subspace of W we need only show that it is closed under linear combinations of two vectors. If h(s1) and h(s2) are members of h(S) then c1-h(s1)+c2 h(s2) = h(c1-s1)+h(c2 -2) = h(c1-s1+c2-s2) is also a member of h(S) because it is the image of c1 -s +c2 - 2 from S. QED 2.2 Definition The rangespace of a homomorphism h: V -* W is _(h) = {h(v) v E V} sometimes denoted h(V). The dimension of the rangespace is the map's rank. (We shall soon see the connection between the rank of a map and the rank of a matrix.) 2.3 Example Recall that the derivative map d/dx: P3 -* P3 given by ao + a1x + a2x2 + a 3 1-* ai + 2a2x + 3a3x2 is linear. The rangespace 4(d/dx) is the set of quadratic polynomials {r + sx + tx2 r, s, t E R}. Thus, the rank of this map is three. 2.4 Example With this homomorphism h: M2x2 -* P3 (a b)-* (a+b+2d)+Ox+cx2 +cx an image vector in the range can have any constant term, must have an x coefficient of zero, and must have the same coefficient of x2 as of x3. That is, the rangespace is 4(h) ={r + Ox + sx2 + sx3 r, s E R} and so the rank is two.  Section II. Homomorphisms 185 The prior result shows that, in passing from the definition of isomorphism to the more general definition of homomorphism, omitting the 'onto' requirement doesn't make an essential difference. Any homomorphism is onto its rangespace. However, omitting the 'one-to-one' condition does make a difference. A homomorphism may have many elements of the domain that map to one element of the codomain. Below is a "bean" sketch of a many-to-one map between sets.* It shows three elements of the codomain that are each the image of many members of the domain. Recall that for any function h: V - W, the set of elements of V that are mapped to w E W is the inverse image h-1(w) ={6 E V h(i) =w}. Above, the three sets of many elements on the left are inverse images. 2.5 Example Consider the projection r: R3 - R2 z which is a homomorphism that is many-to-one. In this instance, an inverse image set is a vertical line of vectors in the domain. R2 R3 2.6 Example This homomorphism h: R2 R1 (;) h>X+ is also many-to-one; for a fixed w E R1, the inverse image h-1(w) * More information on many-to-one maps is in the appendix.  186 Chapter Three. Maps Between Spaces is the set of plane vectors whose components add to w. The above examples have only to do with the fact that we are considering functions, specifically, many-to-one functions. They show the inverse images as sets of vectors that are related to the image vector w. But these are more than just arbitrary functions, they are homomorphisms; what do the two preservation conditions say about the relationships? In generalizing from isomorphisms to homomorphisms by dropping the one- to-one condition, we lose the property that we've stated intuitively as: the domain is "the same as" the range. That is, we lose that the domain corresponds perfectly to the range in a one-vector-by-one-vector way. What we shall keep, as the examples below illustrate, is that a homomorphism describes a way in which the domain is "like", or "analgous to", the range. 2.7 Example We think of R3 as being like R2, except that vectors have an extra component. That is, we think of the vector with components x, y, and z as like the vector with components x and y. In defining the projection map 7, we make precise which members of the domain we are thinking of as related to which members of the codomain. Understanding in what way the preservation conditions in the definition of homomorphism show that the domain elements are like the codomain elements is easiest if we draw R2 as the xy-plane inside of R3. (Of course, R2 is a set of two-tall vectors while the xy-plane is a set of three-tall vectors with a third component of zero, but there is an obvious correspondence.) Then, w(6) is the "shadow" of v in the plane and the preservation of addition property says that (XIz 2i + y1 y1 above 4 plus Y2 above X equals y1 + Y2 above Xi + Y2 zi l z2 y2 zi + z2 y1 + Y2 Briefly, the shadow of a sum w(61 + v2) equals the sum of the shadows w(61) + w(62). (Preservation of scalar multiplication has a similar interpretation.) Redrawing by separating the two spaces, moving the codomain R2 to the right, gives an uglier picture but one that is more faithful to the "bean" sketch. /~V w2 Swi ± w2  Section IL Homomorphisms 187 Again in this drawing, the vectors that map to T1 lie in the domain in a vertical line (only one such vector is shown, in gray). Call any such member of this inverse image a "1 vector". Similarly, there is a vertical line of "w2 vectors" and a vertical line of " 1 + t2 vectors". Now, 7 has the property that if wx(v1) = w1 and w(62) = t2 then w(&1 + &2) = w(J1) + w(62) = W1 + t2. This says that the vector classes add, in the sense that any z1 vector plus any t2 vector equals a w1 + t2 vector, (A similar statement holds about the classes under scalar multiplication.) Thus, although the two spaces R' and R2 are not isomorphic, 7 describes a way in which they are alike: vectors in R' add as do the associated vectors in R2 vectors add as their shadows add. 2.8 Example A homomorphism can be used to express an analogy between spaces that is more subtle than the prior one. For the map (X) h 3+Y from Example 2.6 fix two numbers wi, w2 in the range R. A &l that maps to w1 has components that add to wi, that is, the inverse image h-1(w1) is the set of vectors with endpoint on the diagonal line x + y = wi. Call these the "w1 vectors". Similarly, we have the "w2 vectors" and the "wi + t2 vectors". Then the addition preservation property says that v2 a "wi vector" plus a "w2 vector" equals a "wi + w2 vector". Restated, if a w1 vector is added to a w2 vector then the result is mapped by h to a ti + w2 vector. Briefly, the image of a sum is the sum of the images. Even more briefly, h(1 + v2) = h(v1) + h(&2). (The preservation of scalar multiplication condition has a similar restatement.) 2.9 Example The inverse images can be structures other than lines. For the linear map h: R3 -- R2 tx z the inverse image sets are planes x = 0, x = 1, etc., perpendicular to the x-axis.  188 Chapter Three. Maps Between Spaces We won't describe how every homomorphism that we will use is an analogy because the formal sense that we make of "alike in that ... " is 'a homomorphism exists such that ...'. Nonetheless, the idea that a homomorphism between two spaces expresses how the domain's vectors fall into classes that act like the the range's vectors is a good way to view homomorphisms. Another reason that we won't treat all of the homomorphisms that we see as above is that many vector spaces are hard to draw (e.g., a space of polynomials). However, there is nothing bad about gaining insights from those spaces that we are able to draw, especially when those insights extend to all vector spaces. We derive two such insights from the three examples 2.7, 2.8, and 2.9. First, in all three examples, the inverse images are lines or planes, that is, linear surfaces. In particular, the inverse image of the range's zero vector is a line or plane through the origin -a subspace of the domain. 2.10 Lemma For any homomorphism, the inverse image of a subspace of the range is a subspace of the domain. In particular, the inverse image of the trivial subspace of the range is a subspace of the domain. PROOF. Let h: V -* W be a homomorphism and let S be a subspace of the rangespace h. Consider h-1(S) = {v E V h(i) E S}, the inverse image of the set S. It is nonempty because it contains Ov, since h(OV) = Ow, which is an element S, as S is a subspace. To show that h-1(S) is closed under linear combinations, let v1 and -2 be elements, so that h(v1) and h(-2) are elements of S, and then c11 + c2v2 is also in the inverse image because h(c161 + c2v2) clh(v1) + c2h(62) is a member of the subspace S. QED 2.11 Definition The nullspace or kernel of a linear map h: V - W is the inverse image of Ow Y (h) = h-1(Ow) = {1 E V h(v) = Ow}. The dimension of the nullspace is the map's nullity. v .0w 2.12 Example The map from Example 2.3 has this nullspace 1(d/dx) = {ao + Ox + 0x2 + 0x3 ao E R}. 2.13 Example The map from Example 2.4 has this nullspace. /(h) = { -(a+ b)/2) a, b E R}  Section IL Homomorphisms 189 Now for the second insight from the above pictures. In Example 2.7, each of the vertical lines is squashed down to a single point 7, in passing from the domain to the range, takes all of these one-dimensional vertical lines and "zeroes them out", leaving the range one dimension smaller than the domain. Similarly, in Example 2.8, the two-dimensional domain is mapped to a one-dimensional range by breaking the domain into lines (here, they are diagonal lines), and compressing each of those lines to a single member of the range. Finally, in Example 2.9, the domain breaks into planes which get "zeroed out", and so the map starts with a three-dimensional domain but ends with a one-dimensional range this map "subtracts" two from the dimension. (Notice that, in this third example, the codomain is two-dimensional but the range of the map is only one-dimensional, and it is the dimension of the range that is of interest.) 2.14 Theorem A linear map's rank plus its nullity equals the dimension of its domain. PROOF. Let h: V -* W be linear and let BN (01, .. . , k) be a basis for the nullspace. Extend that to a basis BV = (1, ... , /3k+1, ... -0,) for the en- tire domain. We shall show that BR = (h(Ok+1), ... , h(jo)) is a basis for the rangespace. Then counting the size of these bases gives the result. To see that BR is linearly independent, consider the equation ck+lh(k+1) + - + ch(#,) = Ow. This gives that h(ck+10k+1 + - - - + cn~n) = Ow and so ck+1k+1 +' ' '+cn, is in the nullspace of h. As BN is a basis for this nullspace, there are scalars ci, ... , ck E R satisfying this relationship. C101 + - + Ck3k = ck+10k+1 + ' + cnjn But By is a basis for V so each scalar equals zero. Therefore BR is linearly independent. To show that BR spans the rangespace, consider h(i) E 4(h) and write & as a linear combination v = c11 + - - - + cn/t of members of BV. This gives hti) = h(c10Q1+- - +cn n) = clh(01 )+- - +ck h(0ka)+ck+1h( 0k+1 )+- - +c h(on ) and since 01, ... , k are in the nullspace, we have that h(i) = 0 + - - - + 0 + ck+l h(k+1) + ' ' ' + cn h(3n) . Thus, h(v) is a linear combination of members of BR, and so BR spans the space. QED 2.15 Example Where h: R3 -* R4 is x h 0 (Z) 0 the rangespace and nullspace are a b 0 M(h) ={b |a, b E R} and J'(h) _{ 0 z E R} 0 z  190 Chapter Three. Maps Between Spaces and so the rank of h is two while the nullity is one. 2.16 Example If t: R -* R is the linear transformation x v-* -4x, then the range is 4(t) = R1, and so the rank of t is one and the nullity is zero. 2.17 Corollary The rank of a linear map is less than or equal to the dimension of the domain. Equality holds if and only if the nullity of the map is zero. We know that an isomorphism exists between two spaces if and only if their dimensions are equal. Here we see that for a homomorphism to exist, the dimension of the range must be less than or equal to the dimension of the domain. For instance, there is no homomorphism from R2 onto R'. There are many homomorphisms from R2 into R3, but none is onto all of three-space. The rangespace of a linear map can be of dimension strictly less than the dimension of the domain (Example 2.3's derivative transformation on P3 has a domain of dimension four but a range of dimension three). Thus, under a homomorphism, linearly independent sets in the domain may map to linearly dependent sets in the range (for instance, the derivative sends {1, x, x2, w3} to {0, 1, 2x, 3x2}). That is, under a homomorphism, independence may be lost. In contrast, dependence stays. 2.18 Lemma Under a linear map, the image of a linearly dependent set is linearly dependent. PROOF. Suppose that c1&1 + - + c,, = Ov, with some ci nonzero. Then, because h(c11+ -- -+c -,,) = ch(1)+ - -+ch(-,) and because h(Oy) = Uw, we have that cih(1) + - - - + ch(v,) = Ow with some nonzero ci. QED When is independence not lost? One obvious sufficient condition is when the homomorphism is an isomorphism. This condition is also necessary; see Exercise 35. We will finish this subsection comparing homomorphisms with isomorphisms by observing that a one-to-one homomorphism is an isomorphism from its domain onto its range. 2.19 Definition A linear map that is one-to-one is nonsingular. (In the next section we will see the connection between this use of 'nonsingular' for maps and its familiar use for matrices.) 2.20 Example This nonsingular homomorphism t: R2 --+ R3 (; H (0) gives the obvious correspondence between RY and the xy-plane inside of TR3. The prior observation allows us to adapt some results about isomorphisms to this setting.  Section I. Homomorphisms 191 2.21 Theorem In an n-dimensional vector space V, these: (1) h is nonsingular, that is, one-to-one (2) h has a linear inverse (3) /(h) = {G0}, that is, nullity(h) = 0 (4) rank(h) = n (5) if (01, ... , jn) is a basis for V then (h(01), ... , h(0,,)) is a basis for M(h) are equivalent statements about a linear map h: V -* W. PROOF. We will first show that (1) < (2). We will then show that (1) - (3) -> (4) -> (5) -> (2). For (1) -> (2), suppose that the linear map h is one-to-one, and so has an inverse. The domain of that inverse is the range of h and so a linear combina- tion of two members of that domain has the form cih( J1) + c2h(-2). On that combination, the inverse h-1 gives this. h-1(c1h(1) + c2h(62)) = h-1(h(c161 + c262)) = h-1 o h (c111 + c262) = c11 + c262 = c1h-1 o h (v1) + c2h-1 o h (v2) = c1 - h-1(h(v1)) + c2 - h-1(h(V2)) Thus the inverse of a one-to-one linear map is automatically linear. But this also gives the (2) -> (1) implication, because the inverse itself must be one-to-one. Of the remaining implications, (1) -> (3) holds because any homomor- phism maps Gv to OW, but a one-to-one map sends at most one member of V to Ow. Next, (3) -> (4) is true since rank plus nullity equals the dimension of the domain. For (4) -> (5), to show that (h(01), ... , h(j3)) is a basis for the rangespace we need only show that it is a spanning set, because by assumption the range has dimension n. Consider h(i) E 4(h). Expressing v as a linear combination of basis elements produces h(21) = h(ci1 + c2/32 + + cnjn), which gives that h(6) = cih(31) + - - - + cnh(n), as desired. Finally, for the (5) -> (2) implication, assume that (01, ... , 0,) is a basis for V so that (h(01), ... , h(0,,)) is a basis for M(h). Then every w E M(h) a the unique representation w = c1h(#1)+ -.--+ c h( Qn). Define a map from 4(h) to V by w -* C101 + c22 + -+ Cn (uniqueness of the representation makes this well-defined). Checking that it is linear and that it is the inverse of h are easy. QED We've now seen that a linear map shows how the structure of the domain is like that of the range. Such a map can be thought to organize the domain space into inverse images of points in the range. In the special case that the map is  192 Chapter Three. Maps Between Spaces one-to-one, each inverse image is a single point and the map is an isomorphism between the domain and the range. Exercises / 2.22 Let h: P3 - P4 be given by p(x) - x- p(x). Which of these are in the nullspace? Which are in the rangespace? (a) x3 (b) 0 (c) 7 (d) 12x - 0.5x3 (e) 1+ 3x2 - x3 / 2.23 Find the nullspace, nullity, rangespace, and rank of each map. (a) h: R2 - P3 given by (a\2 b - a + ax + ax2 (b) h:.M2x2 - R given by a b a+d c d (c) h: M2x2 - P2 given by (a b 'a+b+c+dx2 (d) the zero map Z: R3 - R4 / 2.24 Find the nullity of each map. (a) h: R5- R8of rank five (b) h: P3 - P3 of rank one (c) h: R6 - R3, an onto map (d) h:M3x3 - M3x3, onto v 2.25 What is the nullspace of the differentiation transformation d/dx: P - P? What is the nullspace of the second derivative, as a transformation of P"? The k-th derivative? 2.26 Example 2.7 restates the first condition in the definition of homomorphism as 'the shadow of a sum is the sum of the shadows'. Restate the second condition in the same style. 2.27 For the homomorphism h: P3 - P3 given by h(ao + aix + a2x2 + a3x3) ao + (ao + ai)x + (a2 + a3)x3 find these. (a) _Y(h) (b) h-1(2 - x3) (c) h-1(1 + x2) / 2.28 For the map f: R2 - R given by f( ) = 2x + y sketch these inverse image sets: f-1(-3), f1(0), and f-1(1). / 2.29 Each of these transformations of P3 is nonsingular. Find the inverse function of each. (a) ao + aix+ a2x2 + a3x F-ao + aix+2a2x2 + 3a3x3 (b) ao + aix+ a2x2 + a3x 3-ao +a2x + ai2 + a3x3 (c) ao + aix+ a2x2 + a3x v-a1+a2x + a3x2 + aox3 (d) ao+alx+a2x2+a3x - ao+(ao+ai)x+(ao+al+a2)x2+(ao+al+a2+a3)x3 2.30 Describe the nullspace and rangespace of a transformation given by v- 2. 2.31 List all pairs (rank(h), nullity(h)) that are possible for linear maps from R5 to R3 2.32 Does the differentiation map d/dx: Pn -~ Pa have an inverse?  Section II. Homomorphisms 193 / 2.33 Find the nullity of the map h: 'P - -R given by x=1 ao + aix + --- + anz ao + aix + ... + anx dx. x=o 2.34 (a) Prove that a homomorphism is onto if and only if its rank equals the dimension of its codomain. (b) Conclude that a homomorphism between vector spaces with the same di- mension is one-to-one if and only if it is onto. 2.35 Show that a linear map is nonsingular if and only if it preserves linear inde- pendence. 2.36 Corollary 2.17 says that for there to be an onto homomorphism from a vector space V to a vector space W, it is necessary that the dimension of W be less than or equal to the dimension of V. Prove that this condition is also sufficient; use Theorem 1.9 to show that if the dimension of W is less than or equal to the dimension of V, then there is a homomorphism from V to W that is onto. 2.37 Let h: V -. R be a homomorphism, but not the zero homomorphism. Prove that if (131, ... , ,3n) is a basis for the nullspace and if v E V is not in the nullspace then (v, 1, . . . , ,3n) is a basis for the entire domain V. / 2.38 Recall that the nullspace is a subset of the domain and the rangespace is a subset of the codomain. Are they necessarily distinct? Is there a homomorphism that has a nontrivial intersection of its nullspace and its rangespace? 2.39 Prove that the image of a span equals the span of the images. That is, where h: V - W is linear, prove that if S is a subset of V then h([S]) equals [h(S)]. This generalizes Lemma 2.1 since it shows that if U is any subspace of V then its image {h()I) U E U} is a subspace of W, because the span of the set U is U. / 2.40 (a) Prove that for any linear map h: V - W and any w E W, the set h--1(w) has the form {v+n I E/(h)} for v E V with h() = (if h is not onto then this set may be empty). Such a set is a coset of Y(h) and is denoted v + Y(h). (b) Consider the map t: R2 - R2 given by (x (ax + by y cz +dy for some scalars a, b, c, and d. Prove that t is linear. (c) Conclude from the prior two items that for any linear system of the form ax + by= e cx + dy= f the solution set can be written (the vectors are members of R2) {pY+ Jh Ih satisfies the associated homogeneous system} where j is a particular solution of that linear system (if there is no particular solution then the above set is empty). (d) Show that this map h: R" - Rm is linear (xi ( ,aiixi + ... + al,nzn Kn Yamx11 + ... + am,nxn for any scalars ai,i, . . ., am,n. Extend the conclusion made in the prior item.  194 Chapter Three. Maps Between Spaces (e) Show that the k-th derivative map is a linear transformation of Ps for each k. Prove that this map is a linear transformation of that space dk dk-1 d f dxkf k-1dk-1 f±±c dXfcof for any scalars ck, ..., co. Draw a conclusion as above. 2.41 Prove that for any transformation t: V - V that is rank one, the map given by composing the operator with itself t o t: V - V satisfies t o t = r - t for some real number r. 2.42 Show that for any space V of dimension n, the dual space L(V, IRI)={h: V -IR his linear} is isomorphic to R. It is often denoted V*. Conclude that V* V. 2.43 Show that any linear map is the sum of maps of rank one. 2.44 Is 'is homomorphic to' an equivalence relation? (Hint: the difficulty is to decide on an appropriate meaning for the quoted phrase.) 2.45 Show that the rangespaces and nullspaces of powers of linear maps t: V - V form descending V D M(t) D (t2)D... and ascending {'} C YC(t) C Y_(t2) C chains. Also show that if k is such that /(t') -- (tk+1) then all following rangespaces are equal: M(tk) -- (tk+1) _ g(tk+2) .... Similarly, if /(tk) A/(tk+1) then A/(tk)_A/ttk+1) _ (tk+2) _  Section III. Computing Linear Maps 195 III Computing Linear Maps The prior section shows that a linear map is determined by its action on a basis. In fact, the equation h(i) = h(c1 - 1+.-..-+ ca - #) = c1 -h(31) + - -+ cn -h(#) shows that, if we know the value of the map on the vectors in a basis, then we can compute the value of the map on any vector v at all. We just need to find the c's to express v with respect to the basis. This section gives the scheme that computes, from the representation of a vector in the domain RepB (v), the representation of that vector's image in the codomain RepD(h()), using the representations of h(131), ..., h(/). 111.1 Representing Linear Maps with Matrices 1.1 Example Consider a map h with domain R2 and codomain R3 (fixing B = ((p) 14 1 0 1 and D = ( 0 , -2 ,0 0 0 1 as the bases for these spaces) that is determined by this action on the vectors in the domain's basis. 2 h 1 1 h 1 1 0 To compute the action of this map on any vector at all from the domain, we first express h(/31) and h(/32) with respect to the codomain's basis: 1 (1\ J°\ 1 1 =0 0 -- -2 +1 0 1 0 2 0 1 so RepD(h(/31)) ( 0 -/2 1 D and 1 1\ 2 =1 01 0 0/ 1 - 0 1\ -2 +0101 0 \1) so RepD(h(32)) 1 -1 0D  196 Chapter Three. Maps Between Spaces (these are easy to check). Then, as described in the preamble, for any member v of the domain, we can express the image h(i) in terms of the h(/3)'s. b =hc (")2+C2 (')) (y) =h(c1- +cC2-h wi -h(0)+c-(j)/ 1 1 0 1 1 01 =C1-(0 0 - - -2 +1 0 )+C2(1 0 -1 -2 +0 0 ) ( 0 011 (0c1+1c2 () = 0 he +D((--1c ) - (1c1 2) - 0 domais exbasisbycoumnetioswithcoonenewtc adrcix nottight 0 10C1+1C c2/BD C2 B 1 1 1 + Oc2 is the value h(i) of the map on that argument, represented with respect to the codomain's basis D by a column vector with components rc1 + 1C2, etc. The matrix on the left is the new thing. It consists of the coefficients from the vector on the right, 0 and 1 from the first row, -1/2 and -1 from the second row, and 1 and 0 from the third row. This notation simply breaks the parts from the right, the coefficients and the c's, out separately on the left, into a vector that represents the map's argument and a matrix that we will take to represent the map itself.  Section II. Computing Linear Maps 197 1.2 Definition Suppose that V and W are vector spaces of dimensions n and m with bases B and D, and that h: V -* W is a linear map. If h2,1 RepD(hN)) 1 hm,1/ D h2,1 RepB,D(h) hm,1 RepD(h(n)) hi,n h2,n hm n/ D then hi,2 h2,2 km,2 ... hi, J ... h2,n ... hm,n /B,D is the matrix representation of h with respect to B, D. Briefly, the vectors representing the h(o)'s are adjoined to make the matrix representing the map. RepB,D (h) RepD h(01)) Observe that the number of columns n of the matrix is the dimension of the domain of the map, and the number of rows m is the dimension of the codomain. 1.3 Example If h: R3 -* P1 is given by (ai a2J h j (2ai + a2) + (-a3)x then where 0 0 2 B= ( 0 ,2 0 ) and D: the action of h on B is given by (1+x,-1+x) 0 0 -x 1 and a simple calculation gives RepD(-x) _(1/2 024+ 2 h)2 (2 0 ) RepD(2) _) ( RepD (4) = 2 -2 n  198 Chapter Three. Maps Between Spaces showing that this is the matrix representing h with respect to the bases. RepB,D (h) -1/2 1/2 1 2 -1 -2 B,D We will use lower case letters for a map, upper case for the matrix, and lower case again for the entries of the matrix. Thus for the map h, the matrix representing it is H, with entries hij. 1.4 Theorem Assume that V and W are vector spaces of dimensions n and m with bases B and D, and that h: V -* W is a linear map. If h is represented by RepB,D (h) hil h2,1 hm, l hl,2 h2,2 hm,2 ... hi,, \ -.-. h2,n ... hm,n /B,D and V E V is represented by C2 RepB(6) K). cnt B then the representation of the image of v is this. RepD( h(v)) hi,ici + hi,2c2 + ... + hi,ncn \ h2,1c1 + h2,2c2 + ... + h2,ncn hm,1C1 + hm,2C2 + -+ hm,nCn D PROOF. Exercise 28. QED We will think of the matrix RepBD (h) and the vector RepB (v) as combining to make the vector RepD (h-()). 1.5 Definition The matrix-vector product of a mxn matrix and a nx1 vector is this. all a2,1 am, l al,2 a2,2 am,2 (aii a,2... al,n ( (a1,1c1 + a1,2c2 + - + a1,n cni a2,1c1 + a2,2c2 + - + a2,nCn ac", am 1c1 + am,2C2 + - i + am nCn The point of Definition 1.2 is to generalize Example 1.1, that is, the point of the definition is Theorem 1.4, that the matrix describes how to get from  Section III. Computing Linear Maps 199 the representation of a domain vector with respect to the domain's basis to the representation of its image in the codomain with respect to the codomain's basis. With Definition 1.5, we can restate this as: application of a linear map is represented by the matrix-vector product of the map's representative and the vector's representative. 1.6 Example With the matrix from Example 1.3 we can calculate where that map sends this vector. 4 v= 1 (0 This vector is represented, with respect to the domain basis B, by 0 RepB (v) = 1/2 and so this is the representation of the value h(i) with respect to the codomain basis D. RepD (hQ")) -1/2 1 2 (-1/2 -1 -2)BD (j2 2B (-1/2) - 0+1I- (1/2)+ 2 -2 (-1/2)-0-1-(1/2)-2-2)D (9/2 / To find h(i) itself, not its representation, take (9/2)(1 +x) - (9/2)(-1+x) = 9. 1.7 Example Let r: R3 - R2 be projection onto the xy-plane. To give a matrix representing this map, we first fix bases. I 1 -1 B=( 0 1 0 0 0 1 D - ( 1 . l For each vector in the domain's basis, we find its image under the map. (o)J H (j1) (1) y1\ Then we find the representation of each image with respect to the codomain's basis RepD ( (0) ) = (1) RepD( C J RePn( (these are easily checked). Finally, adjoining these representations gives the matrix representing 7 with respect to B, D. 1 0 RepBD(7) - -1 1 1 1 B  200 Chapter Three. Maps Between Spaces We can illustrate Theorem 1.4 by computing the matrix-vector product repre- senting the following statement about the projection map. 2J (2) Representing this vector from the domain with respect to the domain's basis 2 1 RepB(( 2 ) - 2 1 1B gives this matrix-vector product. (f)) 1 0 -1 1 _0 RepD(7 _1 1 BD(1 Expanding this representation into a linear combination of vectors from D 0 - + 2 1 _-2 checks that the map's action is indeed reflected in the operation of the matrix. (We will sometimes compress these three displayed equations into one 2 1 (0h (D2 2 =2 h 0 = 1 1) H 2 D 2 B in the course of a calculation.) We now have two ways to compute the effect of projection, the straight- forward formula that drops each three-tall vector's third component to make a two-tall vector, and the above formula that uses representations and matrix- vector multiplication. Compared to the first way, the second way might seem complicated. However, it has advantages. The next example shows that giving a formula for some maps is simplified by this new scheme. 1.8 Example To represent a rotation map to: R2 - R2 that turns all vectors in the plane counterclockwise through an angle 0 14 L6t/6(U)  Section III. Computing Linear Maps 201 we start by fixing bases. Using E2 both as a domain basis and as a codomain basis is natural, Now, we find the image under the map of each vector in the domain's basis. (1> to cos0 ( to( - sin 0 0) ksinO) 1)}k cosO) Then we represent these images with respect to the codomain's basis. Because this basis is E2, vectors are represented by themselves. Finally, adjoining the representations gives the matrix representing the map. (cosO -sin0> RepE2,2(to) sin8 cos 8 The advantage of this scheme is that just by knowing how to represent the image of the two basis vectors, we get a formula that tells us the image of any vector at all; here a vector rotated by 8 = r/6. 3(22 (\/2 -1/2) (3) 3.598 -2) 1/2 v-/2) -2) (-0.232) (Again, we are using the fact that, with respect to E2, vectors represent them- selves.) We have already seen the addition and scalar multiplication operations of matrices and the dot product operation of vectors. Matrix-vector multiplication is a new operation in the arithmetic of vectors and matrices. Nothing in Defi- nition 1.5 requires us to view it in terms of representations. We can get some insight into this operation by turning away from what is being represented, and instead focusing on how the entries combine. 1.9 Example In the definition the width of the matrix equals the height of the vector. Hence, the first product below is defined while the second is not. 1 0 0 1 _ 1 1 0 0 (1 4 3 1 20 6) 4 3 1 0 One reason that this product is not defined is purely formal: the definition requires that the sizes match, and these sizes don't match. Behind the formality, though, is a reason why we will leave it undefined the matrix represents a map with a three-dimensional domain while the vector represents a member of a two- dimensional space. A good way to view a matrix-vector product is as the dot products of the rows of the matrix with the column vector. a 1 - C2 ai,1 ai,2 -.-.- i,n =. i,1C1 + ai,2C2 + -.-.-+ ai,ncn  202 Chapter Three. Maps Between Spaces Looked at in this row-by-row way, this new operation generalizes dot product. Matrix-vector product can also be viewed column-by-column. h1,1 h1,2 ... 1,\ (c1\ h1,1c1 + h1,2c2 + ... + hi,nc\ h2,1 h2,2 ... h2,n C2 h2,1c1 + h2,2c2 + ... + h2,ncn hm,1 hm,2 ... hm,n / c hm,1C1 + hm,2C2 + ... + hm,nc/ /hi,1 \/hi,n\ h2,1 h2,n =c1 . ++-C - c1:. hm,} \hm,n/ 1.10 Example 1 0 -1 2 1 0 -1 1 2 0 3 1 2) 0) 1 3 (7) The result has the columns of the matrix weighted by the entries of the vector. This way of looking at it brings us back to the objective stated at the start of this section, to compute h(c1,31+- --+ cn/3n) as cih(31) +.- + c h(#+). We began this section by noting that the equality of these two enables us to compute the action of h on any argument knowing only h(31), ..., h(#n). We have developed this into a scheme to compute the action of the map by taking the matrix-vector product of the matrix representing the map and the vector representing the argument. In this way, any linear map is represented with respect to some bases by a matrix. In the next subsection, we will show the converse, that any matrix represents a linear map. Exercises / 1.11 Multiply the matrix 1 3 1 0 -1 2 1 1 0 by each vector (or state "not defined"). (0(a) (b) (c) 0 1.12 Perform, if possible, each matrix-vector multiplication. (a)3 -1/22 (b) - 1 0 (c) -21 3 / 1.13 Solve this matrix equation. 2 1 1 x (0 1 3 y = 4  Section III. Computing Linear Maps 203 / 1.14 For a homomorphism from P2 to P3 that sends 1- 1+x, xi- 1+2x, and x2 [-zx-3 where does 1 - 3x + 2x2 go? / 1.15 Assume that h: R2 - R3 is determined by this action. 1 2 0 0 (0)-11 Using the standard bases, find (a) the matrix representing this map; (b) a general formula for h(). / 1.16 Let d/dx: P3 - P3 be the derivative transformation. (a) Represent d/dx with respect to B, B where B = (1, x, x2, x3) (b) Represent d/dx with respect to B, D where D = (1, 2x, 3x2, 4x3. / 1.17 Represent each linear map with respect to each pair of bases. (a) d/dx: P - P with respect to B, B where B = (1,x, ... , zn), given by ao + aix + a2x2 + ... + anx -' ai + 2a2x + ... + nanx (b) f: Pn - Pn+1 with respect to Bn, Bn+1 where BZ = (1, x,... , x2), given by ao + aix + a2x2 + -..-+ anx -aoxz+ax2 + - - + an n+1 2 n+1 (c) f': Pn - R with respect to B,E1 where B = (1,x, ... , xn) and E1 = (1), given by ao+aix+a2x2 +...+anx-ao+ a1a+...+ 2 n+1 (d) eval3: Pn - R with respect to B, E1 where B = (1, x, ... , xz) and E1 = (1), given by ao +aix+a2x2 +...+anxn ao +ai.3+a2 .32 +...+an.3n (e) slide-1: Pn - Pn with respect to B, B where B = (1, x,..., xn), given by ao + aix + a2x2 + ... + anxn - ao + ai . (x + 1) + ... + an . (x + 1)n 1.18 Represent the identity map on any nontrivial space with respect to B, B, where B is any basis. 1.19 Represent, with respect to the natural basis, the transpose transformation on the space M2x2 of 2 x 2 matrices. 1.20 Assume that B= (3i, /32, /33, /34) is a basis for a vector space. Represent with respect to B, B the transformation that is determined by each. (a) /13 1 /32, /32 /33, /3 /34, /34 - 0 (b) 1 3 /32, 32 0, /3 /34, /34 -U (c) 1 - /32, /32 ' /3, /3 0, /34 v0 1.21 Example 1.8 shows how to represent the rotation transformation of the plane with respect to the standard basis. Express these other transformations also with respect to the standard basis. (a) the dilation map d8, which multiplies all vectors by the same scalar s (b) the reflection map fe, which reflects all all vectors across a line £ through the origin / 1.22 Consider a linear transformation of R2 determined by these two. 1 2 1 -1 1 0 0 0  204 Chapter Three. Maps Between Spaces (b) Where does the transformation send this vector? 0 5 (c) Represent this transformation with respect to these bases. B 1 1 D 2 (-1) -1 ' 1 2 ' 1 (d) Using B from the prior item, represent the transformation with respect to B, B. 1.23 Suppose that h: V - W is nonsingular so that by Theorem 2.21, for any basis B =(/1, ..../3 ,-) C V the image h(B) (h(/1),...,h(3)) is a basis for W. (a) Represent the map h with respect to B, h(B). (b) For a member v of the domain, where the representation of v has components Cl, ..., ca, represent the image vector h(i) with respect to the image basis h(B). 1.24 Give a formula for the product of a matrix and e, the column vector that is all zeroes except for a single one in the i-th position. / 1.25 For each vector space of functions of one real variable, represent the derivative transformation with respect to B, B. (a) {a cos x + b sinx a, b E R}, B = (cos x, sinx) (b) {aex + be2x a, b E R}, B = (ex, e2x) (c) {a+bx+cex+dxex a,b,c,d E R}, B = (1,x,)ex,xex) 1.26 Find the range of the linear transformation of R2 represented with respect to the standard bases by each matrix. (a) 0) (b) 3 2 (c) a matrix of the form (a 2b / 1.27 Can one matrix represent two different linear maps? That is, can RepB,D(h) RepB, (h)? 1.28 Prove Theorem 1.4. / 1.29 Example 1.8 shows how to represent rotation of all vectors in the plane through an angle 0 about the origin, with respect to the standard bases. (a) Rotation of all vectors in three-space through an angle 0 about the x-axis is a transformation of R3. Represent it with respect to the standard bases. Arrange the rotation so that to someone whose feet are at the origin and whose head is at (1, 0, 0), the movement appears clockwise. (b) Repeat the prior item, only rotate about the y-axis instead. (Put the person's head at e2.) (c) Repeat, about the z-axis. (d) Extend the prior item to R4. (Hint: 'rotate about the z-axis' can be restated as 'rotate parallel to the xy-plane'.) 1.30 (Schur's Triangularization Lemma) (a) Let U be a subspace of V and fix bases Bu C BV. What is the relationship between the representation of a vector from U with respect to Bu and the representation of that vector (viewed as a member of V) with respect to BV? (b) What about maps? (c) Fix a basis B = (#1, ... , /3n) for V and observe that the spans [0]={0} c [{#1}] c [{#1, 2}] c - - c [B] =V  Section IlL Computing Linear Maps 205 form a strictly increasing chain of subspaces. Show that for any linear map h: V -> W there is a chain Wo = {6} C W1 C - - - C Wm = W of subspaces of W such that h([{,31,.. .. 3}]) C Wi for each i. (d) Conclude that for every linear map h: V -> W there are bases B, D so the matrix representing h with respect to B, D is upper-triangular (that is, each entry hi,, with i > j is zero). (e) Is an upper-triangular representation unique? 111.2 Any Matrix Represents a Linear Map The prior subsection shows that the action of a linear map h is described by a matrix H, with respect to appropriate bases, in this way. K1 h1,v11 + ' h1,nfn V - ' + = h(v) .H Un) B .hm,iv1i + '' + hmrnn D In this subsection, we will show the converse, that each matrix represents a linear map. Recall that, in the definition of the matrix representation of a linear map, the number of columns of the matrix is the dimension of the map's domain and the number of rows of the matrix is the dimension of the map's codomain. Thus, for instance, a 2 x 3 matrix cannot represent a map from R5 to R4. The next result says that, beyond this restriction on the dimensions, there are no other limitations: the 2x3 matrix represents a map from any three-dimensional space to any two-dimensional space. 2.1 Theorem Any matrix represents a homomorphism between vector spaces of appropriate dimensions, with respect to any pair of bases. PROOF. For the matrix hi,1 hi,2 ... hi,n h2,1 h2,2 ... h2,n H=. hm,1 Hm,2 ... hm,n fix any n-dimensional domain space V and any m-dimensional codomain space W. Also fix bases B = (#1,...,#t) and D = (61,..., n) for those spaces. Define a function h: V - W by: where v in the domain is represented as e1 RepB (v)= ' Vn) 13  206 Chapter Three. Maps Between Spaces then its image h(6) is the member the codomain represented by hi,ivi + ... + hi,nv RepD(hiJ)) hm,1V1 + -..-+ hm,nVnID that is, h(6) = h(v131 +" - --+vanj3) is defined to be (hi,1v1 +" - --+ hi,onv) -1 + - - + (hm,1v1+"' -+ hm,nVn) -.6m. (This is well-defined by the uniqueness of the representation RepB ().) Observe that h has simply been defined to make it the map that is repre- sented with respect to B, D by the matrix H. So to finish, we need only check that h is linear. If v, e V are such that RepB(v) =and RepB ( ) oVn un) and c, d E R then the calculation h(c6+du)= +(hi,1(cv1i+dui)+d ++him,(Cn+du))- "1+ -.-. + (hm,1(cv1 + dui) + -.-. + hm,n(con + dun)) -6m = c - h(6) + d - h(u) provides this verification. QED 2.2 Example Which map the matrix represents depends on which bases are used. If H ( ) , B1 = D1 = () and B2 = D2 = ( , then h1: R2 - R2 represented by H with respect to B1, D1 maps C2 (C)B1 _ (OD1 O while h2: R2 - R2 represented by H with respect to B2, D2 is this map. C1 __ C2 C2 __ 0 C2 c1/ B2 O D2 \C2) These two are different. The first is projection onto the x axis, while the second is projection onto the y axis. So not only is any linear map described by a matrix but any matrix describes a linear map. This means that we can, when convenient, handle linear maps entirely as matrices, simply doing the computations, without have to worry that  Section III. Computing Linear Maps 207 a matrix of interest does not represent a linear map on some pair of spaces of interest. (In practice, when we are working with a matrix but no spaces or bases have been specified, we will often take the domain and codomain to be R" and R' and use the standard bases. In this case, because the representation is transparent the representation with respect to the standard basis of v is 6- the column space of the matrix equals the range of the map. Consequently, the column space of H is often denoted by M(H).) With the theorem, we have characterized linear maps as those maps that act in this matrix way. Each linear map is described by a matrix and each matrix describes a linear map. We finish this section by illustrating how a matrix can be used to tell things about its maps. 2.3 Theorem The rank of a matrix equals the rank of any map that it represents. PROOF. Suppose that the matrix H is m x n. Fix domain and codomain spaces V and W of dimension n and m, with bases B = (#1, .. . , #,) and D. Then H represents some linear map h between those spaces with respect to these bases whose rangespace {h(i) v E V} = {h(ci 1 + -+- - + c ,,) ci, . .. , c,, E R} {cih(1) + - - - + c1h(,) ci,... , c, E R} is the span [{h(ji), ... , h(j3,)}]. The rank of h is the dimension of this range- space. The rank of the matrix is its column rank (or its row rank; the two are equal). This is the dimension of the column space of the matrix, which is the span of the set of column vectors [{RepD(h(1)), ... , RepD n)- To see that the two spans have the same dimension, recall that a represen- tation with respect to a basis gives an isomorphism RepD : W --+ R'. Under this isomorphism, there is a linear relationship among members of the range- space if and only if the same relationship holds in the column space, e.g, 0 clh(#1)+. - -+ch(#3) if and only if 0 = c1RepD(h(1 )) +' '+cnRepD(h( n)). Hence, a subset of the rangespace is linearly independent if and only if the cor- responding subset of the column space is linearly independent. This means that the size of the largest linearly independent subset of the rangespace equals the size of the largest linearly independent subset of the column space, and so the two spaces have the same dimension. QED 2.4 Example Any map represented by 1 2 2 1 2 1 0 0 3 0 0 2 must, by definition, be from a three-dimensional domain to a four-dimensional codomain. In addition, because the rank of this matrix is two (we can spot this  208 Chapter Three. Maps Between Spaces by eye or get it with Gauss' method), any map represented by this matrix has a two-dimensional rangespace. 2.5 Corollary Let h be a linear map represented by a matrix H. Then h is onto if and only if the rank of H equals the number of its rows, and h is one-to-one if and only if the rank of H equals the number of its columns. PROOF. For the first half, the dimension of the rangespace of h is the rank of h, which equals the rank of H by the theorem. Since the dimension of the codomain of h is the number of rows in H, if the rank of H equals the number of rows, then the dimension of the rangespace equals the dimension of the codomain. But a subspace with the same dimension as its superspace must equal that superspace (a basis for the rangespace is a linearly independent subset of the codomain, whose size is equal to the dimension of the codomain, and so this set is a basis for the codomain). For the second half, a linear map is one-to-one if and only if it is an isomor- phism between its domain and its range, that is, if and only if its domain has the same dimension as its range. But the number of columns in h is the dimension of h's domain, and by the theorem the rank of H equals the dimension of h's range. QED The above results end any confusion caused by our use of the word 'rank' to mean apparently different things when applied to matrices and when applied to maps. We can also justify the dual use of 'nonsingular'. We've defined a matrix to be nonsingular if it is square and is the matrix of coefficients of a linear system with a unique solution, and we've defined a linear map to be nonsingular if it is one-to-one. 2.6 Corollary A square matrix represents nonsingular maps if and only if it is a nonsingular matrix. Thus, a matrix represents an isomorphism if and only if it is square and nonsingular. PROOF. Immediate from the prior result. QED 2.7 Example Any map from R2 to P1 represented with respect to any pair of bases by 1 2 0 3 is nonsingular because this matrix has rank two. 2.8 Example Any map g: V - W represented by 1 2 3 6 is not nonsingular because this matrix is not nonsingular.  Section III. Computing Linear Maps 209 We've now seen that the relationship between maps and matrices goes both ways: fixing bases, any linear map is represented by a matrix and any matrix describes a linear map. That is, by fixing spaces and bases we get a correspon- dence between maps and matrices. In the rest of this chapter we will explore this correspondence. For instance, we've defined for linear maps the operations of addition and scalar multiplication and we shall see what the corresponding matrix operations are. We shall also see the matrix operation that represent the map operation of composition. And, we shall see how to find the matrix that represents a map's inverse. Exercises / 2.9 Decide if the vector is in the column space of the matrix. 2 1 1 4 -8 0 1 - (a) 2 5' -3 (b) 2 -4' 1 (c) 1 1 -1 ,0 -1 -1 1 (0 / 2.10 Decide if each vector lies in the range of the map from R3 to R2 represented with respect to the standard bases by the matrix. (a l 1 3 1 (b) 2 0 3 1 ()0 1 4'(3 ) 4 0 6 '(1 / 2.11 Consider this matrix, representing a transformation of R2, and these bases for that space. - 1 B (0,1)D=( (a) To what vector in the codomain is the first member of B mapped? (b) The second member? (c) Where is a general vector from the domain (a vector with components x and y) mapped? That is, what transformation of R2 is represented with respect to B, D by this matrix? 2.12 What transformation of F = {a cosO0 + b sinOI a, b E R} is represented with respect to B =(cos 0 - sin 0, sin 0) and D =(cos 0 + sin 0, cos 0) by this matrix? 0 0 1 0 / 2.13 Decide if 1 + 2x is in the range of the map from R3 to P2 represented with respect to E3 and (1, 1 + x2, x) by this matrix. 1 3 0 0 1 0 1 0 1 2.14 Example 2.8 gives a matrix that is nonsingular, and is therefore associated with maps that are nonsingular. (a) Find the set of column vectors representing the members of the nullspace of any map represented by this matrix. (b) Find the nullity of any such map. (c) Find the set of column vectors representing the members of the rangespace of any map represented by this matrix. (d) Find the rank of any such map. (e) Check that rank plus nullity equals the dimension of the domain.  210 Chapter Three. Maps Between Spaces / 2.15 Because the rank of a matrix equals the rank of any map it represents, if one matrix represents two different maps H = RepB,D (h) = Rep B (h) (where h, h: V - W) then the dimension of the rangespace of h equals the dimension of the rangespace of h. Must these equal-dimensioned rangespaces actually be the same? / 2.16 Let V be an n-dimensional space with bases B and D. Consider a map that sends, for v E V, the column vector representing v with respect to B to the column vector representing v with respect to D. Show that is a linear transformation of R" . 2.17 Example 2.2 shows that changing the pair of bases can change the map that a matrix represents, even though the domain and codomain remain the same. Could the map ever not change? Is there a matrix H, vector spaces V and W, and associated pairs of bases B1, D1 and B2, D2 (with B1 f B2 or D1 D2 or both) such that the map represented by H with respect to B1, D1 equals the map represented by H with respect to B2, D2? / 2.18 A square matrix is a diagonal matrix if it is all zeroes except possibly for the entries on its upper-left to lower-right diagonal-its 1, 1 entry, its 2, 2 entry, etc. Show that a linear map is an isomorphism if there are bases such that, with respect to those bases, the map is represented by a diagonal matrix with no zeroes on the diagonal. 2.19 Describe geometrically the action on R2 of the map represented with respect to the standard bases E2,E2 by this matrix. 3 0 0 2 Do the same for these. 1 0 0 1 1 3 0 0 1 0 0 1 2.20 The fact that for any linear map the rank plus the nullity equals the dimension of the domain shows that a necessary condition for the existence of a homomor- phism between two spaces, onto the second space, is that there be no gain in dimension. That is, where h: V - W is onto, the dimension of W must be less than or equal to the dimension of V. (a) Show that this (strong) converse holds: no gain in dimension implies that there is a homomorphism and, further, any matrix with the correct size and correct rank represents such a map. (b) Are there bases for R3 such that this matrix 1 0 0 H 2 0 0 0 1 0 represents a map from R3 to R3 whose range is the xy plane subspace of R3? 2.21 Let V be an n-dimensional space and suppose that X E RE. Fix a basis B for V and consider the map h-: V - R given v - X RepB (v) by the dot product. (a) Show that this map is linear. (b) Show that for any linear map g: V - R there is an E R" such that g = h . (c) In the prior item we fixed the basis and varied the X to get all possible linear maps. Can we get all possible linear maps by fixing an z and varying the basis?  Section III. Computing Linear Maps 211 2.22 Let V, W, X be vector spaces with bases B, C, D. (a) Suppose that h: V - W is represented with respect to B, C by the matrix H. Give the matrix representing the scalar multiple rh (where r C R) with respect to B, C by expressing it in terms of H. (b) Suppose that h, g: V - W are represented with respect to B, C by H and G. Give the matrix representing h + g with respect to B, C by expressing it in terms of H and G. (c) Suppose that h: V - W is represented with respect to B, C by H and g: W - X is represented with respect to C, D by G. Give the matrix repre- senting g o h with respect to B, D by expressing it in terms of H and G.  212 Chapter Three. Maps Between Spaces IV Matrix Operations The prior section shows how matrices represent linear maps. A good strategy, on seeing a new idea, is to explore how it interacts with some already-established ideas. In the first subsection we will ask how the representation of the sum of two maps f + g is related to the representations of the two maps, and how the representation of a scalar product r - h of a map is related to the representation of that map. In later subsections we will see how to represent map composition and map inverse. IV.1 Sums and Scalar Products Recall that for two maps f and g with the same domain and codomain, the map sum f + g has this definition. v f ( ) + g(6) The easiest way to see how the representations of the maps combine to represent the map sum is with an example. 1.1 Example Suppose that f, g: R2 - R3 are represented with respect to the bases B and D by these matrices. 1 3 F =RepB,D(f)= 2 0 1 0 B G=RepB,D(g ( 0 -1 2 0 -2 4 BD Then, for any v e V represented with respect to B, computation of the repre- sentation of f (v) + g(i) 1 3 1 ( V2) 0 -1 2 0 lli + 3v2 -2 (1 = 2v1+Ov2 4 v2 1v1 +0v2 + Ov1 + Ov2 -1v1 - 2v2 2v1 +4v2 gives this representation of f + g (v). ((1+0)v1 +(3+0)v2\ (2 - 1)v1 + (0 - 2)v2 (1+2)vi +(0+4)v2/ (loi + 3v2 lvi - 2v2 3v1 + 4v2 Thus, the action of f + g is described by this matrix-vector product. 13 \ 1 -2J 3 4 BD lvi vi'~ = lvl v2/ B 3v1 + 3v2 - 2v2 + 4v2 D This matrix is the entry-by-entry sum of original matrices, e.g., the 1, 1 entry of RepB,D(f + g) is the sum of the 1, 1 entry of F and the 1, 1 entry of G.  Section IV. Matrix Operations 213 Representing a scalar multiple of a map works the same way. 1.2 Example If t is a transformation represented by RepB,D (t) ( ,)D so that v (i v2) D t&v) then the scalar multiple map 5t acts in this way. 6 = v1) 5v1 = 5 -t(v) v2) B 5v1 + 5v2) D Therefore, this is the matrix representing 5t. RepB,D (5t) = 5 5 1.3 Definition The sum of two same-sized matrices is their entry-by-entry sum. The scalar multiple of a matrix is the result of entry-by-entry scalar multiplication. 1.4 Remark These extend the vector addition and scalar multiplication oper- ations that we defined in the first chapter. 1.5 Theorem Let h, g: V -* W be linear maps represented with respect to bases B, D by the matrices H and G, and let r be a scalar. Then the map h + g: V -* W is represented with respect to B, D by H + G, and the map r - h: V -* W is represented with respect to B, D by rH. PROOF. Exercise 8; generalize the examples above. QED A notable special case of scalar multiplication is multiplication by zero. For any map 0 - h is the zero homomorphism and for any matrix 0 - H is the zero matrix. 1.6 Example The zero map from any three-dimensional space to any two- dimensional space is represented by the 2 x 3 zero matrix _0 0 0 Z0 0 0 no matter which domain and codomain bases are used. Exercises / 1.7 Perform the indicated operations, if defined. f5 -1 2 2 1 4 (a) 6 1 1+ 3 0 5 (b) 6 -21 31  214 Chapter Three. Maps Between Spaces 18 o2 1 o 2 1 ()0 3 0 3 ()41 2 + -1 4 3 -1 -2 1 (e) 3 2 + 2114 3 0 3 0 5 1.8 Prove Theorem 1.5. (a) Prove that matrix addition represents addition of linear maps. (b) Prove that matrix scalar multiplication represents scalar multiplication of linear maps. / 1.9 Prove each, where the operations are defined, where G, H, and J are matrices, where Z is the zero matrix, and where r and s are scalars. (a) Matrix addition is commutative G + H = H + G. (b) Matrix addition is associative G + (H + J) = (G + H) + J. (c) The zero matrix is an additive identity G + Z = G. (d) 0- G= Z (e) (r +s)G =rG+sG (f) Matrices have an additive inverse G + (-1) - G = Z. (g) r(G + H)=rG + rH (h) (rs)G = r(sG) 1.10 Fix domain and codomain spaces. In general, one matrix can represent many different maps with respect to different bases. However, prove that a zero matrix represents only a zero map. Are there other such matrices? / 1.11 Let V and W be vector spaces of dimensions n and m. Show that the space ,(V, W) of linear maps from V to W is isomorphic to Mmxn. / 1.12 Show that it follows from the prior questions that for any six transformations ti, . . , t6 : R2 R2 there are scalars cl, ... ,C c ER such that citi + - - - + cete is the zero map. (Hint: this is a bit of a misleading question.) 1.13 The trace of a square matrix is the sum of the entries on the main diagonal (the 1, 1 entry plus the 2, 2 entry, etc.; we will see the significance of the trace in Chapter Five). Show that trace(H + G) = trace(H) + trace(G). Is there a similar result for scalar multiplication? 1.14 Recall that the transpose of a matrix M is another matrix, whose i, j entry is the j, i entry of M. Verifiy these identities. (a) (G + H)trans = Gtrans + Htrans (b) (r . H)trans = r -.Htrans / 1.15 A square matrix is symmetric if each i, j entry equals the j, i entry, that is, if the matrix equals its transpose. (a) Prove that for any H, the matrix H + Htrans is symmetric. Does every symmetric matrix have this form? (b) Prove that the set of n x n symmetric matrices is a subspace of M9x9. / 1.16 (a) How does matrix rank interact with scalar multiplication can a scalar product of a rank n matrix have rank less than n? Greater? (b) How does matrix rank interact with matrix addition can a sum of rank n matrices have rank less than n? Greater?  Section IV. Matrix Operations 215 IV.2 Matrix Multiplication After representing addition and scalar multiplication of linear maps in the prior subsection, the natural next map operation to consider is composition. 2.1 Lemma A composition of linear maps is linear. PROOF. (This argument has appeared earlier, as part of the proof that isomor- phism is an equivalence relation between spaces.) Let h: V - W and g : W - U be linear. The calculation g oh (c1- 1 +c2 -"v2) = g( h(c1 -V1 + C2 -2) ) g (c1- h(61)+ c2- h(62) = c1 - g (h(61)) + C2 - g(h(62)) =c1- (g o h)(61) + C2- (g o h)(62) shows that g o h: V - U preserves linear combinations. QED To see how the representation of the composite arises out of the representa- tions of the two compositors, consider an example. 2.2 Example Let h: R4 - ->R2 and g: R2 - ->R3, fix bases B c R4, C cR2 D c R3, and let these be the representations. {4 6 8 2 1 1 H = RepB,C (h) = 5 7 9 3 G= RepC,D (g9 Bc 1 0 C,D To represent the composition g o h: R4 - R3 we fix a v, represent h of v, and then represent g of that. The representation of h(i) is the product of h's matrix and 's vector. V1 Rep i =4 6 8 2 v2 (4v1 + 6v2 + 8v3 + 2v4 RepC( h(6) ) 6= c (()) 5 7 9 3 v3 5v1 + 7v2 + 9v3 + 3v4 V4 B The representation of g(h(i)) is the product of g's matrix and h(i )'s vector. e1 1 (4v1 + 6v2 + 8v3 + 2v4 1 0/ 5v1 + 7v2 + 9v3 + 3v4 (1. (4v1 + 6v2 + 8v3 + 2v4) + 1.- (5v1 + 7v2 + 9v3 + 3v4) 0 - (4v1 + 6v2 + 8v3 + 2v4) + 1- (5v1 + 7v2 + 9v3 + 3v4) 1.- (4v1 + 6v2 + 8v3 + 2v4) + 0 - (5v1 + 7v2 + 9v3 + 3v4)ID Distributing and regrouping on the v's gives 7(1.4+1. 5)v1+ (1.6+1. 7)v2 + (1.8+1. 9)v3 + (1.2+1 3)V4 (0 +1 - + (0-41 + -7)v2 + (0.8+1. 9)v3 + (0-2 1 D-x)v4 (1 - 4+ 0- 5)v1+ 1 - 6 + 0- 7)v2 +(1.-8 +0.- 9)v3 + (1.-2 +0-3v  216 216 Chapter Three. Maps Between Spaces which we recognizing as the result of this matrix-vector product. 1 '4+1 .5 1 '6+1 .7 1 '8+1 .9 1 '2+13 3\ ( 1.4+0.5 1'6+0'7 1'8+0'9 1.2+0.3/ BD\V3,I Thus, the matrix representing goh has the rows of G combined with the columns of H. 2.3 Definition The matrix-multiplicative product of the m x r matrix G and the r x n matrix H is the m x n matrix P, where pi j =gi,i hi,j + gi,2h2,J + ... + gi,rhr,j that is, the i, j-th entry of the product is the dot product of the i-th row and the j-th column. ...2 h2j ... ~ / \ hrj }~ 2.4 Example The matrices from Example 2.2 combine in this way. 71.4+1.5 1 '6+1 .7 1 '8+1 .9 1 '2+13 93\ 13 175 04 150'6+1'7 0.8+1.9 0.2+13 = 5 2/9 1'4+05 1'+0'71'8+0'9 1'2+03 4 6 8 2 2.5 Example 2 0 ) 2'1+0'5 2'3+0. 7 (2 6 46 = 4'1+6'5 4'3+6 7j ( 34 54 8 57 8.1+2.5 8'3+2 7/ \18 38/ 2.6 Theorem A composition of linear maps is represented by the matrix product of the representatives. PROOF. (This argument parallels Example 2.2.) Let h : V --* W and g : W --* X be represented by H and C with respect to bases B C V, C C W, and D C X, of sizes n, r, and m. For any vJ E V, the k-th component of Repc( h(J) ) is hk~lvl + ..+ hknvn and so the i-th component of RePD ( g o h (v)) is this. go, . (hlivi + ... + hinvn) + g .(h2,ivi+ ... +h2,nvn) + ... +gi . (hr 1v1 + ... +hrnvn)  Section IV. Matrix Operations 217 Distribute and regroup on the v's. (g,ihi,i + gi,2h2,1 + - + gi,rhr,1) - vi + ... + (gi,1hi,n + gi,2h2,n + - + gi,rhr,n) -'on Finish by recognizing that the coefficient of each vj gi,1h1,j + gi,2h2,j + ... + gi,rhr,j matches the definition of the i, j entry of the product GH. QED The theorem is an example of a result that supports a definition. We can picture what the definition and theorem together say with this arrow diagram ('wrt' abbreviates 'with respect to'). Wwrt C h g H C V B goh Xwrt D Above the arrows, the maps show that the two ways of going from V to X, straight over via the composition or else by way of W, have the same effect vg 'g(h(v)) v - h() g(h()) (this is just the definition of composition). Below the arrows, the matrices indi- cate that the product does the same thing-multiplying GH into the column vector RepB (v) has the same effect as multiplying the column first by H and then multiplying the result by G. RepB,D(g o h)= GH = Repc,D(g) RepB,c(h) The definition of the matrix-matrix product operation does not restrict us to view it as a representation of a linear map composition. We can get insight into this operation by studying it as a mechanical procedure. The striking thing is the way that rows and columns combine. One aspect of that combination is that the sizes of the matrices involved is significant. Briefly, m x r times r x n equals m x n. 2.7 Example This product is not defined -1 2 0 0 0 0 10 1.1 0 2 because the number of columns on the left does not equal the number of rows on the right.  218 Chapter Three. Maps Between Spaces In terms of the underlying maps, the fact that the sizes must match up reflects the fact that matrix multiplication is defined only when a corresponding function composition dimension n space - dimension r space - dimension m space is possible. 2.8 Remark The order in which these things are written can be confusing. In the 'm x r times r x n equals m x n' equation, the number written first m is the dimension of g's codomain and is thus the number that appears last in the map dimension description above. The explanation is that while f is done first and then g is applied, that composition is written g o f, from the notation 'g(f(v))'. (Some people try to lessen confusion by reading 'g o f' aloud as "g following f".) That order then carries over to matrices: g o f is represented by GF. Another aspect of the way that rows and columns combine in the matrix product operation is that in the definition of the i, j entry Pi,j = ,O0j+ g, Q 3+ ..+ gh the boxed subscripts on the g's are column indicators while those on the h's indicate rows. That is, summation takes place over the columns of G but over the rows of H; left is treated differently than right, so GH may be unequal to HG. Matrix multiplication is not commutative. 2.9 Example Matrix multiplication hardly ever commutes. Test that by mul- tiplying randomly chosen matrices both ways. 1 2 (5 6 19 22 5 6 (1 2 23 34 3 4 7 8 43 50 7 8 3 4 31 46 2.10 Example Commutativity can fail more dramatically: 5 6 1 2 0 23 34 0 7 8) 3 4 0 31 46 0 while 1 2 0 (5 6 3 4 0 7 8 isn't even defined. 2.11 Remark The fact that matrix multiplication is not commutative may be puzzling at first sight, perhaps just because most algebraic operations in elementary mathematics are commutative. But on further reflection, it isn't so surprising. After all, matrix multiplication represents function composition, which is not commutative if f (x) = 2x and g(x) = x+1 then g o f (x) = 2x+1 while f o g(x) = 2(x + 1) = 2x + 2. True, this g is not linear and we might have hoped that linear functions commute, but this perspective shows that the failure of commutativity for matrix multiplication fits into a larger context.  Section IV. Matrix Operations 219 Except for the lack of commutativity, matrix multiplication is algebraically well-behaved. Below are some nice properties and more are in Exercise 23 and Exercise 24. 2.12 Theorem If F, G, and H are matrices, and the matrix products are defined, then the product is associative (FG)H = F(GH) and distributes over matrix addition F(G + H) = FG + FH and (G + H)F = GF + HF. PROOF. Associativity holds because matrix multiplication represents function composition, which is associative: the maps (f o g) o h and f o (g o h) are equal as both send V to f(g(h(V))). Distributivity is similar. For instance, the first one goes f o (g + h) (v) = f ((g + h)(V)) = f (g()+ h(6)) = f(g(6))+ f(h(6)) = f o g(v) + f o h(6) (the third equality uses the linearity of f). QED 2.13 Remark We could alternatively prove that result by slogging through the indices. For example, associativity goes: the i, j-th entry of (FG)H is (fi,1g1,1 + fi,2g2,1 + - - - + fi,rgr,1)hi,j + (fi,1g1,2 + fi,2g2,2 + - + fi,rgr,2)h2,J + (fi,1g1,s + fi,2g2,s + - + fi,rgr,s)hs,j (where F, G, and H are m x r, r x s, and s x n matrices), distribute fi,1g1,1h1,j + fi,2g2,1h1,j + - + fi,rgr,1hi,j + fi,1g1,2h2,j + fi,2g2,2h2,J + - + fi,rgr,2h2,j + fi,1g1,shs,j + fi,2g2,sh,j + ... + firgr,shs,j and regroup around the f's fi,1(gi,1h1,j + g1,2h2,J + - - + gi,,hj) + fi,2(g2,1h1,j + g2,2h2,J + - + g2,shs,j) + fi,r (gr,1hij + gr,2h2,j + ... + gr,shs,j) to get the i, j entry of F(GH). Contrast these two ways of verifying associativity, the one in the proof and the one just above. The argument just above is hard to understand in the sense that, while the calculations are easy to check, the arithmetic seems unconnected to any idea (it also essentially repeats the proof of Theorem 2.6 and so is ineffi- cient). The argument in the proof is shorter, clearer, and says why this property "really" holds. This illustrates the comments made in the preamble to the chap- ter on vector spaces at least some of the time an argument from higher-level constructs is clearer.  220 Chapter Three. Maps Between Spaces We have now seen how the representation of the composition of two linear maps is derived from the representations of the two maps. We have called the combination the product of the two matrices. This operation is extremely important. Before we go on to study how to represent the inverse of a linear map, we will explore it some more in the next subsection. Exercises / 2.14 Compute, or state "not defined". (a) (34 (05) (b) ( -4 2 0 0.54 2 7 1 0 5 (c) 7 4 -1 1 1 (d) 3 8 4 1 0 C5 3 21 Q - (-1 3 3 11 3 2J 1 -1 1 1 2 5 -1) 1 1% / 2.15 Where A= 1 1 2 0 compute or state 'not defined'. B 5 B 4 C -(-4 1) (a) AB (b) (AB)C (c) BC (d) A(BC) 2.16 Which products are defined? (a) 3x2 times 2x3 (b) 2x3 times 3x2 (c) 2x2 times 3x3 (d) 3x3 times 2x2 / 2.17 Give the size of the product or state "not defined". (a) a 2 x 3 matrix times a 3 x 1 matrix (b) a 1 x 12 matrix times a 12 x 1 matrix (c) a 2 x 3 matrix times a 2 x 1 matrix (d) a 2 x 2 matrix times a 2 x 2 matrix / 2.18 Find the system of equations resulting from starting with hi,1x1 + hi,2x2 + hi,3x3 = di h2,1x1 + h2,2x2 + h2,3x3 = d2 and making this change of variable (i.e., substitution). Xi= gi,1y1 + 1,2y2 X2 = g2,1yl + g2,2y2 X3 = 93,lyl + g3,2y2 2.19 As Definition 2.3 points out, the matrix product operation generalizes the dot product. Is the dot product of a 1 x n row vector and a n x 1 column vector the same as their matrix-multiplicative product? / 2.20 Represent the derivative map on Pn with respect to B, B where B is the natural basis (1, x, . . . , xz). Show that the product of this matrix with itself is defined; what the map does it represent? 2.21 Show that composition of linear transformations on R1 is commutative. Is this true for any one-dimensional space? 2.22 Why is matrix multiplication not defined as entry-wise multiplication? That would be easier, and commutative too. / 2.23 (a) Prove that HpH ± = Hp+q and (HP)q = Hp4 for positive integers p, q. (b) Prove that (rH)p = rP - Hp for any positive integer p and scalar r E-R. / 2.24 (a) How does matrix multiplication interact with scalar multiplication: is r(GH) = (rG)H? Is G(rH) = r(GH)?  Section IV. Matrix Operations 221 (b) How does matrix multiplication interact with linear combinations: is F(rG+ sH) =r(FG) + s(FH)? Is (rF + sG)H =rFH + sGH? 2.25 We can ask how the matrix product operation interacts with the transpose operation. (a) Show that (GH)trans = HtransGtrans. (b) A square matrix is symmetric if each i, j entry equals the j, i entry, that is, if the matrix equals its own transpose. Show that the matrices HHtrans and HtransH are symmetric. / 2.26 Rotation of vectors in R3 about an axis is a linear map. Show that linear maps do not commute by showing geometrically that rotations do not commute. 2.27 In the proof of Theorem 2.12 some maps are used. What are the domains and codomains? 2.28 How does matrix rank interact with matrix multiplication? (a) Can the product of rank n matrices have rank less than n? Greater? (b) Show that the rank of the product of two matrices is less than or equal to the minimum of the rank of each factor. 2.29 Is 'commutes with' an equivalence relation among n x n matrices? / 2.30 (This will be used in the Matrix Inverses exercises.) Here is another property of matrix multiplication that might be puzzling at first sight. (a) Prove that the composition of the projections rx, ry : R3 - R3 onto the x and y axes is the zero map despite that neither one is itself the zero map. (b) Prove that the composition of the derivatives d2/dx2, d3/dx3: P4 - P4 is the zero map despite that neither is the zero map. (c) Give a matrix equation representing the first fact. (d) Give a matrix equation representing the second. When two things multiply to give zero despite that neither is zero, each is said to be a zero divisor. 2.31 Show that, for square matrices, (S + T)(S - T) need not equal S2 - T2. / 2.32 Represent the identity transformation id: V - V with respect to B, B for any basis B. This is the identity matrix I. Show that this matrix plays the role in matrix multiplication that the number 1 plays in real number multiplication: HI IH = H (for all matrices H for which the product is defined). 2.33 In real number algebra, quadratic equations have at most two solutions. That is not so with matrix algebra. Show that the 2 x 2 matrix equation T2 = I has more than two solutions, where I is the identity matrix (this matrix has ones in its 1, 1 and 2, 2 entries and zeroes elsewhere; see Exercise 32). 2.34 (a) Prove that for any 2 x 2 matrix T there are scalars co, ... , c4 that are not all 0 such that the combination c4T4 + c3T3 + c2T2 + c1T + col is the zero matrix (where I is the 2 x 2 identity matrix, with l's in its 1,1 and 2, 2 entries and zeroes elsewhere; see Exercise 32). (b) Let p(x) be a polynomial p(x) = cax" + - - - + ciX + co. If T is a square matrix we define p(T) to be the matrix cnT4 + - - - + c1T + I (where I is the appropriately-sized identity matrix). Prove that for any square matrix there is a polynomial such that p(T) is the zero matrix. (c) The minimal polynomial m(x) of a square matrix is the polynomial of least degree, and with leading coefficient 1, such that m(T) is the zero matrix. Find the minimal polynomial of this matrix. (13/2 -1/2\ 1/2 3/2J  222 Chapter Three. Maps Between Spaces (This is the representation with respect to E2, E2, the standard basis, of a rotation through 7r/6 radians counterclockwise.) 2.35 The infinite-dimensional space P of all finite-degree polynomials gives a mem- orable example of the non-commutativity of linear maps. Let d/dx: P - P be the usual derivative and let s: P - P be the shift map. ao+aix+---+anx n- 0+aox+aix2+---+anx Show that the two maps don't commute d/dx o s - s o d/dx; in fact, not only is (d/dx o s) - (s o d/dx) not the zero map, it is the identity map. 2.36 Recall the notation for the sum of the sequence of numbers ai, a2, ... , an. a = a1+a2+---+an i=1 In this notation, the i, j entry of the product of G and H is this. Pi,j gikhkj k=1 Using this notation, (a) reprove that matrix multiplication is associative; (b) reprove Theorem 2.6. IV.3 Mechanics of Matrix Multiplication In this subsection we consider matrix multiplication as a mechanical process, putting aside for the moment any implications about the underlying maps. As described earlier, the striking thing about matrix multiplication is the way rows and columns combine. The i, j entry of the matrix product is the dot product of row i of the left matrix with column j of the right one. For instance, here a second row and a third column combine to make a 2,3 entry. 1 1- 9 13 17 5 | | 4 6 8 2 5 7 9 3 5 7 3 1 0- 4 6 8 2 We can view this as the left matrix acting by multiplying its rows, one at a time, into the columns of the right matrix. Of course, another perspective is that the right matrix uses its columns to act on the left matrix's rows. Below, we will examine actions from the left and from the right for some simple matrices. The first case, the action of a zero matrix, is very easy. 3.1 Example Multiplying by an appropriately-sized zero matrix from the left or from the right 0 0 1 3 2 0 0 0 2 3 (0 0 0 0 0 0(-1 1 -1 0 0 0 1 4) 0 0 0 0 results in a zero matrix.  Section IV. Matrix Operations 223 After zero matrices, the matrices whose actions are easiest to understand are the ones with a single nonzero entry. 3.2 Definition A matrix with all zeroes except for a one in the i, j entry is an i, j unit matrix. 3.3 Example This is the 1, 2 unit matrix with three rows and two columns, multiplying from the left. 0 1 56 7 8 0 0 7 8 = 0 0 0 0 0 0 Acting from the left, an i, j unit matrix copies row j of the multiplicand into row i of the result. From the right an i, j unit matrix copies column i of the multiplicand into column j of the result. 1 2 3 0 1 0 1 4 5 6 0 0 = 0 4 7 8 9 0 0 0 7 3.4 Example Rescaling these matrices simply rescales the result. This is the action from the left of the matrix that is twice the one in the prior example. 0 2 56 14 16 0 0 7 86= 0 0 0 0) 0 0 And this is the action of the matrix that is minus three times the one from the prior example. 1 2 3 0 -3 0 -3 4 5 6 0 0 = 0 -12 7 8 9 0 0 0 -21 Next in complication are matrices with two nonzero entries. There are two cases. If a left-multiplier has entries in different rows then their actions don't interact. 3.5 Example 1 0 0 1 2 3 1 0 0 0 0 0 1 2 3 0 0 2 4 5 6 =( 0 0 0 + 0 0 2j) 4 5 6 0 0 0 7 8 9 0 0 0 0 0 0 7 8 9 1 2 3 0 0 0 =0 0 0 + 14 16 18 0 0 0 0 0 0 1 2 3 =14 16 18 0 0 0  224 Chapter Three. Maps Between Spaces But if the left-multiplier's nonzero entries are in the same row then that row of the result is a combination. 3.6 Example 1 0 2 1 2 3 1 0 0 (0 0 2(1 2 3 0 0 014 5 6 =( 0 0 0+ 0 0 0j) 4 5 6 0 0 0 7 8 9 0 0 0/ 0 0 0/ 7 8 9 1 2 3 14 16 18 = 0 0 0+ 0 0 0 0 0 0 0 0 0 15 18 21 =0 0 0 0 0 0 Right-multiplication acts in the same way, with columns. These observations about matrices that are mostly zeroes extend to arbitrary matrices. 3.7 Lemma In a product of two matrices G and H, the columns of GH are formed by taking G times the columns of H and the rows of GH are formed by taking the rows of G times H -H= (ignoring the extra parentheses). PROOF. We will show the 2 x 2 case and leave the general case as an exercise. GH =(91,1 1,2 (hi,1h1,2 _(g1,1h1,1 + g1,2h2,1 g1,1h1,2 + g1,2h2,2 g2,1 92,2, h2,h2,2 g2,1h1,1 + g2,2h2,1 g2,1h1,2 + g2,2h2,2} The right side of the first equation in the result G (hi,1 G (h1,2 _ g1,1h1,1 + g1,2h2,1 (g,1h1,2 + 91,2h2,2 h2,1 h2,2 g2,1h1,1 + g2,2h2,1 g2,1h1,2 + g2,2h2,2 is indeed the same as the right side of GH, except for the extra parentheses (the ones marking the columns as column vectors). The other equation is similarly easy to recognize. QED  Section IV. Matrix Operations 225 An application of those observations is that there is a matrix that just copies out the rows and columns. 3.8 Definition The main diagonal (or principle diagonal or diagonal) of a square matrix goes from the upper left to the lower right. 3.9 Definition An identity matrix is square and has with all entries zero except for ones in the main diagonal. 1 0 ... 0\ 0 1 ... 0 Inxn = 0 0 ... 1/ 3.10 Example The 3x3 identity leaves its multiplicand unchanged both from the left 1 0 0 and from the right. 0 1 0 0\ 0 1 ( 2 1 -7 3 3 1 0 1 0 6 81 0/ 0 0 1 ( ( 2 1 -7 2 1 -7 3 3 1 3 3 1 6 8 0 6 8 0 ( 2 1 -7 3 3 1 6 8 0/ 1 0 0 3.11 Example So does the 2 x 2 identity matrix. 1 -2 1 -2 0 -2 1 0) _ 0 -2 1 -1 0 1) 1 -1 4 3 4 3 In short, an identity matrix is the identity element of the set of n x n matrices with respect to the operation of matrix multiplication. We next see two ways to generalize the identity matrix. The first is that if the ones are relaxed to arbitrary reals, the resulting matrix will rescale whole rows or columns. 3.12 Definition A diagonal matrix is square and has zeros off the main diagonal. a1,1, 0 ... 0 \ 0 a2,2 ... 0 0 0 ... anna  226 Chapter Three. Maps Between Spaces 3.13 Example rnom the left, the action of multiplication by a diagonal matrix is to rescales the rows. 2 0 2 1 4 -1 _ 4 2 8 -2 0 -1 -1 3 4 4 1 -3 -4 -4 From the right such a matrix rescales the columns. 1 2 1 3 0 0 3 4 -2) 2 2 2) 00 - 6 4 -4) The second generalization of identity matrices is that we can put a single one in each row and column in ways other than putting them down the diagonal. 3.14 Definition A permutation matrix is square and is all zeros except for a single one in each row and column. 3.15 Example From the left these matrices permute rows. 0 0 1 1 2 3 7 8 9 1 0 0 4 5 6 = 1 2 3 0 1 0 7 8 9 4 5 6 From the right they permute columns. 1 2 3 0 0 1 2 3 1 4 5 6 1 0 0 = 5 6 4 7 8 9 0 1 0 8 9 7 We finish this subsection by applying these observations to get matrices that perform Gauss' method and Gauss-Jordan reduction. 3.16 Example We have seen how to produce a matrix that will rescale rows. Multiplying by this diagonal matrix rescales the second row of the other by a factor of three. 1 0 0 0 2 1 1 0 2 1 1 0 3 0 0 1/3 1 -1 = 0 1 3 -3 0 0 1 1 0 2 0 1 0 2 0 We have seen how to produce a matrix that will swap rows. Multiplying by this permutation matrix swaps the first and third rows. 0 0 1 0 2 1 1 1 0 2 0 0 1 0 0 1 3 -3 = 0 1 3 -3 1 0 0 1 0 2 0 0 2 1 1  Section IV. Matrix Operations 227 To see how to perform a pivot, we observe something about those two ex- amples. The matrix that rescales the second row by a factor of three arises in this way from the identity. 1 0 0 1 0 0 0 1 0 3P2 0 3 0 0 0 1 0 0 1 Similarly, the matrix that swaps first and third rows arises in this way. 1 0 0 0 0 1 0 1 0 p11P 0 1 0 0 0 1 1 0 0 3.17 Example The 3 x 3 matrix that arises as 1 0 0 1 0 0 0 1 0 -2p2p3 0 1 0 0 0 1 0 -2 1 will, when it acts from the left, perform the pivot operation -2p2 + p3. 1 0 0 1 0 2 0 1 0 2 0 0 1 0 0 1 3 -3 = 0 1 3 -3 0 -2 1 0 2 1 1 0 0 -5 7 3.18 Definition The elementary reduction matrices are obtained from iden- tity matrices with one Gaussian operation. We denote them: (1) I 'P4 Mi(k) for k # 0; (2) I QZ Pij for i j; (3) I p)Ci, (k) for i #j. 3.19 Lemma Gaussian reduction can be done through matrix multiplication. (1) IfH -p4 Gthen Mi(k)H=G. (2) If H - G then Pjj H = G. (3) If H kpi-1P) G then Ci, (k)H = G. PROOF. Clear. QED  228 Chapter Three. Maps Between Spaces 3.20 Example This is the first system, from the first chapter, on which we performed Gauss' method. 3x3 = 9 x1 + 5x2 - 2x3 2 (1/3)x1 + 2x2 = 3 It can be reduced with matrix multiplication. Swap the first and third rows, 0 0 1 0 0 3 9 1/3 2 0 3 0 1 0 1 5 -2 2 = 1 5 -2 2 1 0 0 1/3 2 0 3 0 0 3 9 triple the first row, 3 0 0 1/3 2 0 3 1 6 0 9 0 1 0 1 5 -2 2 = 1 5 -2 2 0 0 1 0 0 3 9 0 0 3 9 and then add -1 times the first row to the second. 1 0 0 1 6 0 9 1 6 0 9 -1 1 0 1 5 -2 2 = 0 -1 -2 -7 0 0 1 0 0 3 9 0 0 3 9 Now back substitution will give the solution. 3.21 Example Gauss-Jordan reduction works the same way. For the matrix ending the prior example, first adjust the leading entries 1 0 0 1 6 0 9 1 6 0 9 0 -1 0 0 -1 -2 -7 = 0 1 2 7 0 0 1/3 0 0 3 9 0 0 1 3 and to finish, clear the third column and then the second column. 1 -6 0 1 0 0 1 6 0 9 1 0 0 3 0 1 0 0 1 -2 0 1 2 7 = 0 1 0 1 0 0 1 0 0 1 0 0 1 3 0 0 1 3 We have observed the following result, which we shall use in the next sub- section. 3.22 Corollary For any matrix H there are elementary reduction matrices R1, ... , Rr such that Rr - Rr- . .R1 - H is in reduced echelon form. Until now we have taken the point of view that our primary objects of study are vector spaces and the maps between them, and have adopted matrices only for computational convenience. This subsection show that this point of view isn't the whole story. Matrix theory is a fascinating and fruitful area. In the rest of this book we shall continue to focus on maps as the primary objects, but we will be pragmatic if the matrix point of view gives some clearer idea then we shall use it.  Section IV. Matrix Operations 229 Exercises / 3.23 Predict the result of each multiplication by an elementary reduction matrix, and then check by multiplying it out. 3 0 1 2 f4 0 1 2 1l 0 1 2 (a) 0 0 3 4 (b) 0 2 3 4 (c) -_2 1 3 4 (d 2 1-112 01 / 3.24 The need to take linear combinations of rows and columns in tables of numbers arises often in practice. For instance, this is a map of part of Vermont and New York. Swanton In part because of Lake Champlain, there are no roads directly connect- ing some pairs of towns. For in- stance, there is no way to go from Winooski to Grand Isle without go- ing through Colchester. (Of course, Grand 1sle many other roads and towns have been left off to simplify the graph. From top to bottom of this map is about forty miles.) Colchester Winooski Burlington (a) The incidence matrix of a map is the square matrix whose i, j entry is the number of roads from city i to city j. Produce the incidence matrix of this map (take the cities in alphabetical order). (b) A matrix is symmetric if it equals its transpose. Show that an incidence matrix is symmetric. (These are all two-way streets. Vermont doesn't have many one-way streets.) (c) What is the significance of the square of the incidence matrix? The cube? / 3.25 This table gives the number of hours of each type done by each worker, and the associated pay rates. Use matrices to compute the wages due. regular overtime wage Alan 40 12 regular $25.00 Betty 35 6 overtime $45.00 Catherine 40 18 Donald 28 0 (Remark. This illustrates, as did the prior problem, that in practice we often want to compute linear combinations of rows and columns in a context where we really aren't interested in any associated linear maps.) 3.26 Find the product of this matrix with its transpose. cos0 -sin" sin0 cosO0  230 Chapter Three. Maps Between Spaces / 3.27 Prove that the diagonal matrices form a subspace of Mx,. What is its dimension? 3.28 Does the identity matrix represent the identity map if the bases are unequal? 3.29 Show that every multiple of the identity commutes with every square matrix. Are there other matrices that commute with all square matrices? 3.30 Prove or disprove: nonsingular matrices commute. / 3.31 Show that the product of a permutation matrix and its transpose is an identity matrix. 3.32 Show that if the first and second rows of G are equal then so are the first and second rows of GH. Generalize. 3.33 Describe the product of two diagonal matrices. 3.34 Write 1 0 -3 3 as the product of two elementary reduction matrices. / 3.35 Show that if G has a row of zeros then GH (if defined) has a row of zeros. Does that work for columns? 3.36 Show that the set of unit matrices forms a basis for Mnxm. 3.37 Find the formula for the n-th power of this matrix. 1 1 1 0 / 3.38 The trace of a square matrix is the sum of the entries on its diagonal (its significance appears in Chapter Five). Show that trace(GH) = trace(HG). / 3.39 A square matrix is upper triangular if its only nonzero entries lie above, or on, the diagonal. Show that the product of two upper triangular matrices is upper triangular. Does this hold for lower triangular also? 3.40 A square matrix is a Markov matrix if each entry is between zero and one and the sum along each row is one. Prove that a product of Markov matrices is Markov. / 3.41 Give an example of two matrices of the same rank with squares of differing rank. 3.42 Combine the two generalizations of the identity matrix, the one allowing en- tires to be other than ones, and the one allowing the single one in each row and column to be off the diagonal. What is the action of this type of matrix? 3.43 On a computer multiplications are more costly than additions, so people are interested in reducing the number of multiplications used to compute a matrix product. (a) How many real number multiplications are needed in formula we gave for the product of a m x r matrix and a r x n matrix? (b) Matrix multiplication is associative, so all associations yield the same result. The cost in number of multiplications, however, varies. Find the association requiring the fewest real number multiplications to compute the matrix product of a 5 x 10 matrix, a 10x 20 matrix, a 20 x 5 matrix, and a 5 x 1 matrix. (c) (Very hard.) Find a way to multiply two 2 x 2 matrices using only seven multiplications instead of the eight suggested by the naive approach. ? 3.44 If A and B are square matrices of the same size such that ABAB = 0, does it follow that BABA =0? [Putnam i, 1990 , A-5]  Section IV. Matrix Operations 231 3.45 Demonstrate these four assertions to get an alternate proof that column rank equals row rank. [Am. Math. Mon., Dec. 1966] (a) g g= 0iff g=0. (b) AS = 0 iff At**a Az = 0. (c) dim(Pi(A)) = dim(Pi(Atrans A)). (d) col rank(A) = col rank(Atrans) = row rank(A). 3.46 Prove (where A is an n x n matrix and so defines a transformation of any n-dimensional space V with respect to B, B where B is a basis) that dim(M(A) n ,V(A)) = dim(M(A)) - dim(M(A2)). Conclude (a) Y(A) C M(A) if dim(Y(A)) = dim(M(A)) - dim(M(A2) (b) M(A) C Y(A) if A2 = 0; (c) G(A) =YV(A) if A2 = 0 and dim(Y(A)) = dim(M(A)) (d) dim(M(A) n YV(A)) = 0 if dim(M(A)) = dim(M(A2)) (e) (Requires the Direct Sum subsection, which is optional.) V = M(A) e 7(A) if dim(M(A)) = dim(M(A2) [Ackerson] IV.4 Inverses We now consider how to represent the inverse of a linear map. We start by recalling some facts about function inverses.* Some functions have no inverse, or have an inverse on the left side or right side only. 4.1 Example Where 7: R3 - R2 is the projection map (Y) H+(z) z and r: R2 - R3 is the embedding (;) H+(A the composition 7 o r is the identity map on R2. (' ( A) g (z) We say 7 is a left inverse map of rj or, what is the same thing, that rj is a right inverse map of 7. However, composition in the other order rj a 7 doesn't give the identity map-here is a vector that is not sent to itself under rl a 7. 0 0 0 0 0 0 1 N/ 0  232 Chapter Three. Maps Between Spaces In fact, the projection 7 has no left inverse at all. For, if f were to be a left inverse of r then we would have x x (7Z) A (Z () for all of the infinitely many z's. But no function f can send a single argument to more than one value. (An example of a function with no inverse on either side is the zero transfor- mation on R2.) Some functions have a two-sided inverse map, another function that is the inverse of the first, both from the left and from the right. For in- stance, the map given by v 1-* 2 - v has the two-sided inverse v 1-* (1/2) - v. In this subsection we will focus on two-sided inverses. The appendix shows that a function has a two-sided inverse if and only if it is both one-to-one and onto. The appendix also shows that if a function f has a two-sided inverse then it is unique, and so it is called 'the' inverse, and is denoted f-1. So our purpose in this subsection is, where a linear map h has an inverse, to find the rela- tionship between RepB,D(h) and RepD,B(h1) (recall that we have shown, in Theorem 2.21 of Section II of this chapter, that if a linear map has an inverse then the inverse is a linear map also). 4.2 Definition A matrix G is a left inverse matrix of the matrix H if GH is the identity matrix. It is a right inverse matrix if HG is the identity. A matrix H with a two-sided inverse is an invertible matrix. That two-sided inverse is called the inverse matrix and is denoted H-1. Because of the correspondence between linear maps and matrices, statements about map inverses translate into statements about matrix inverses. 4.3 Lemma If a matrix has both a left inverse and a right inverse then the two are equal. 4.4 Theorem A matrix is invertible if and only if it is nonsingular. PROOF. (For both results.) Given a matrix H, fix spaces of appropriate dimen- sion for the domain and codomain. Fix bases for these spaces. With respect to these bases, H represents a map h. The statements are true about the map and therefore they are true about the matrix. QED 4.5 Lemma A product of invertible matrices is invertible if G and H are invertible and if GH is defined then GH is invertible and (GH)-1 = H-1G-1. PROOF. (This is just like the prior proof except that it requires two maps.) Fix appropriate spaces and bases and consider the represented maps h and g. Note that h-1g-1 is a two-sided map inverse of gh since (h-1g-1)(gh) = h-1(id)h h-1h = id and (gh)(h-g-1) = g(id)g-1 = gg-1 = id. This equality is reflected in the matrices representing the maps, as required. QED  Section IV. Matrix Operations 233 Here is the arrow diagram giving the relationship between map inverses and matrix inverses. It is a special case of the diagram for function composition and matrix multiplication. Wwrt C hh- H H id Vwrt B Vwrt B Beyond its place in our general program of seeing how to represent map operations, another reason for our interest in inverses comes from solving linear systems. A linear system is equivalent to a matrix equation, as here. X1 + x2=3 1 1>(xi(3 2x1-x2=2 =22 -1)Kx2) 2) By fixing spaces and bases (e.g., R2, R2 and E2,82), we take the matrix H to represent some map h. Then solving the system is the same as asking: what domain vector Y is mapped by h to the result d? If we could invert h then we could solve the system by multiplying RepD,B(h-1) RepD(d) to get RepB ('). 4.6 Example We can find a left inverse for the matrix just given m n 1 1 1 0 p q 2 -1 0 1 by using Gauss' method to solve the resulting linear system. m+2rn =1 m- n =0 p+2q=0 p- q=1 Answer: m = 1/3, n = 1/3, p = 2/3, and q = -1/3. This matrix is actually the two-sided inverse of H, as can easily be checked. With it we can solve the system (*) above by applying the inverse. (X _ (1/3 1/3 (3 _ (5/3 y ) 2/3 -1/3 2 4/3 4.7 Remark Why solve systems this way, when Gauss' method takes less arithmetic (this assertion can be made precise by counting the number of arith- metic operations, as computer algorithm designers do)? Beyond its conceptual appeal of fitting into our program of discovering how to represent the various map operations, solving linear systems by using the matrix inverse has at least two advantages.  234 Chapter Three. Maps Between Spaces First, once the work of finding an inverse has been done, solving a system with the same coefficients but different constants is easy and fast: if we change the entries on the right of the system (*) then we get a related problem 1 1 x 5 2 -1(y) 1) wtih a related solution method. (X) _ (1/3 1/3 ) 5 _ (2 yf 2/3 -1/3) 1) 3) In applications, solving many systems having the same matrix of coefficients is common. Another advantage of inverses is that we can explore a system's sensitivity to changes in the constants. For example, tweaking the 3 on the right of the system (*) to 1 1 (x1) 3.01 2 -1 x2 2 can be solved with the inverse. 1/3 1/3 3.01 _ (1/3)(3.01) + (1/3)(2) 2/3 -1/3 2 (2/3)(3.01) - (1/3)(2) to show that x1 changes by 1/3 of the tweak while x2 moves by 2/3 of that tweak. This sort of analysis is used, for example, to decide how accurately data must be specified in a linear model to ensure that the solution has a desired accuracy. We finish by describing the computational procedure usually used to find the inverse matrix. 4.8 Lemma A matrix is invertible if and only if it can be written as the product of elementary reduction matrices. The inverse can be computed by applying to the identity matrix the same row steps, in the same order, as are used to Gauss-Jordan reduce the invertible matrix. PROOF. A matrix H is invertible if and only if it is nonsingular and thus Gauss- Jordan reduces to the identity. By Corollary 3.22 this reduction can be done with elementary matrices Rr R,_1 .. . R1- H = I. This equation gives the two halves of the result. First, elementary matrices are invertible and their inverses are also elemen- tary. Applying R-1 to the left of both sides of that equation, then R-11, etc., gives H as the product of elementary matrices H =R1-1... R-1 - I (the I is here to cover the trivial r = 0 case). Second, matrix inverses are unique and so comparison of the above equation with H-1H = I shows that H-1 = R.- R,_1 ... R1 - I. Therefore, applying R1 to the identity, followed by R2, etc., yields the inverse of H. QED  Section IV. Matrix Operations 235 4.9 Example To find the inverse of 1 1 2 -1 we do Gauss-Jordan reduction, meanwhile performing the same operations on the identity. For clerical convenience we write the matrix and the identity side- by-side, and do the reduction steps together. ( 1 10) C2 1 0I) -2p1+p2 71 1 1 0) 0 -3 -2 1) -1/3p2 1 1 1 0 0 1 2/3 -1/3) -P2+P1 1 0 1/3 1/31 0 1 2/3 -1/3J This calculation has found the inverse. 1 1 _1/3 1/3 2 -1 2/3 -1/3 4.10 Example This one happens to start with a row swap. 0 1 1 3 0 -1 -1 1 0 0\ 1 0 1 0 0 0 0 1 1 1 1 p 3 0 0 0 3 -1 0 3 -1 1 0 1 0 -1 1 0 0 0 0 0 1 1 0 1 0 -1 1 0 0 -1 0 -1 1 1 0 0 1/4 - 0 1 0 1/4 0 0 1 -1/4 1/4 1/4 3/4 3/4 -1/4 -3/4 4.11 Example A non-invertible matrix half won't reduce to the identity. is detected by the fact that the left 1 1 1 0 -2p1 +p2 1 1 1 0 2 2 0 1 0 0 -2 1 This procedure will find the inverse of a general n x n matrix. The 2 x 2 case is handy. 4.12 Corollary The inverse for a 2 x 2 matrix exists and equals a( b c d if and only if ad - bce 0. 1 d ad - bc -c -b aJ  236 Chapter Three. Maps Between Spaces PROOF. This computation is Exercise 22. QED We have seen here, as in the Mechanics of Matrix Multiplication subsection, that we can exploit the correspondence between linear maps and matrices. So we can fruitfully study both maps and matrices, translating back and forth to whichever helps us the most. Over the entire four subsections of this section we have developed an algebra system for matrices. We can compare it with the familiar algebra system for the real numbers. Here we are working not with numbers but with matrices. We have matrix addition and subtraction operations, and they work in much the same way as the real number operations, except that they only combine same-sized matrices. We also have a matrix multiplication operation and an operation inverse to multiplication. These are somewhat like the familiar real number operations (associativity, and distributivity over addition, for example), but there are differences (failure of commutativity, for example). And, we have scalar multiplication, which is in some ways another extension of real number multiplication. This matrix system provides an example that algebra systems other than the elementary one can be interesting and useful. Exercises 4.13 Supply the intermediate steps in Example 4.10. / 4.14 Use Corollary 4.12 to decide if each matrix has an inverse. (a)(2 1) (b) 0 4(c) 2 -3 -1 1 1 -3 -4 6 / 4.15 For each invertible matrix in the prior problem, use Corollary 4.12 to find its inverse. / 4.16 Find the inverse, if it exists, by using the Gauss-Jordan method. Check the answers for the 2 x 2 matrices with Corollary 4.12. )3 1 (b 2 1/2 ( 2 -41 13 (a) ( ) (b) 3 1 (c) -1 2 (d) 0 2 4 (-1 1 0 0 1 5 2 2 3 (e) 0 -2 4 (f) 1 -2 -3 2 3 -2 4 -2 -3 / 4.17 What matrix has this one for its inverse? 1 3 2 5 4.18 How does the inverse operation interact with scalar multiplication and addi- tion of matrices? (a) What is the inverse of rH? (b) Is (H + G)-1 = H-1 + G-1? / 4.19 Is (Tk)-1 --(T-1)k? 4.20 Is H-1 invertible? 4.21 For each real number 0 let to: R2 - R2 be represented with respect to the standard bases by this matrix. cos0 -sin&\ sine cos0 Show that toi+02 =to1 - to2. Show also that to-1 =to.  Section IV. Matrix Operations 237 4.22 Do the calculations for the proof of Corollary 4.12. 4.23 Show that this matrix 1 0 1 H 0 1 0 has infinitely many right inverses. Show also that it has no left inverse. 4.24 In Example 4.1, how many left inverses has r7? 4.25 If a matrix has infinitely many right-inverses, can it have infinitely many left-inverses? Must it have? / 4.26 Assume that H is invertible and that HG is the zero matrix. Show that G is a zero matrix. 4.27 Prove that if H is invertible then the inverse commutes with a matrix GH1-= H-1G if and only if H itself commutes with that matrix GH = HG. / 4.28 Show that if T is square and if T4 is the zero matrix then (I - T)- = I + T + T2 + T 3. Generalize. / 4.29 Let D be diagonal. Describe D2, D3, ... , etc. Describe D1, D-2, ... , etc. Define D0 appropriately. 4.30 Prove that any matrix row-equivalent to an invertible matrix is also invertible. 4.31 The first question below appeared as Exercise 28. (a) Show that the rank of the product of two matrices is less than or equal to the minimum of the rank of each. (b) Show that if T and S are square then TS = I if and only if ST = I. 4.32 Show that the inverse of a permutation matrix is its transpose. 4.33 The first two parts of this question appeared as Exercise 25. (a) Show that (GH)trans = HtransGtrans. (b) A square matrix is symmetric if each i, j entry equals the j, i entry (that is, if the matrix equals its transpose). Show that the matrices HHtrans and HtransH are symmetric. (c) Show that the inverse of the transpose is the transpose of the inverse. (d) Show that the inverse of a symmetric matrix is symmetric. / 4.34 The items starting this question appeared as Exercise 30. (a) Prove that the composition of the projections rx, wTry : R3 - R3 is the zero map despite that neither is the zero map. (b) Prove that the composition of the derivatives d2/dx2, d3/dx3: P4 - P4 is the zero map despite that neither map is the zero map. (c) Give matrix equations representing each of the prior two items. When two things multiply to give zero despite that neither is zero, each is said to be a zero divisor. Prove that no zero divisor is invertible. 4.35 In real number algebra, there are exactly two numbers, 1 and -1, that are their own multiplicative inverse. Does H2 = I have exactly two solutions for 2 x 2 matrices? 4.36 Is the relation 'is a two-sided inverse of' transitive? Reflexive? Symmetric? 4.37 Prove: if the sum of the elements of a square matrix is k, then the sum of the elements in each row of the inverse matrix is 1/k. [Am. Math. Mon., Nov. 1951]  238 Chapter Three. Maps Between Spaces V Change of Basis Representations, whether of vectors or of maps, vary with the bases. For in- stance, with respect to the two bases E2 and for R2, the vector el has two different representations. Rep£2 (el) = () 0 =(1/2)\ Similarly, with respect to E2, .2 and E2, B, the identity map has two different representations. RepsE,2 (id) = 0 0 1) (1/2 1/2 Rep2,B(id) = 1/2 -1/2) With our point of view that the objects of our studies are vectors and maps, in fixing bases we are adopting a scheme of tags or names for these objects, that are convienent for computation. We will now see how to translate among these names we will see exactly how representations vary as the bases vary. V.1 Changing Representations of Vectors In converting RepB (v) to RepD (v) the underlying vector v doesn't change. Thus, this translation is accomplished by the identity map on the space, de- scribed so that the domain space vectors are represented with respect to B and the codomain space vectors are represented with respect to D. Vw.r.t. B idt Vw.r.t. D (The diagram is vertical to fit with the ones in the next subsection.) 1.1 Definition The change of basis matrix for bases B, D C V is the repre- sentation of the identity map id: V -* V with respect to those bases. RepB,D (id)  Section V. Change of Basis 239 1.2 Lemma Left-multiplication by the change of basis matrix for B, D converts a representation with respect to B to one with respect to D. Conversly, if left- multiplication by a matrix changes bases M - RepB () = RepD (v) then M is a change of basis matrix. PROOF. For the first sentence, for each v, as matrix-vector multiplication repre- sents a map application, RepB,D(id) - Rep (v) = RepD( id(i)) RepD(-). For the second sentence, with respect to B, D the matrix M represents some linear map, whose action is 6 -> 6, and is therefore the identity map. QED 1.3 Example With these bases for R2, B 2 1 D -1 1 1 ' 0 )1 ' 1 because 2 (-1/2 e1 (-1/2) RepD (dRe) 32pD (d 0 ) 1/2 D D the change of basis matrix is this. Re id =-1/2 -1/2 RepB,D(d) (/2 1/2 We can see this matrix at work by finding the two representations of e2 RepB( 1) - RepD( / and checking that the conversion goes as expected. -1/2 -1/2 1 _ (1/2 3/2 1/2 -2 1/2 We finish this subsection by recognizing that the change of basis matrices are familiar. 1.4 Lemma A matrix changes bases if and only if it is nonsingular. PROOF. For one direction, if left-multiplication by a matrix changes bases then the matrix represents an invertible function, simply because the function is inverted by changing the bases back. Such a matrix is itself invertible, and so nonsingular. To finish, we will show that any nonsingular matrix M performs a change of basis operation from any given starting basis B to some ending basis. Because the matrix is nonsingular, it will Gauss-Jordan reduce to the identity, so there are elementatry reduction matrices such that Rr - - - R1 - M = I. Elementary matrices are invertible and their inverses are also elementary, so multiplying from the left first by Rj-1, then by Rr_1-1, etc., gives M as a product of  240 Chapter Three. Maps Between Spaces elementary matrices M = R1-1 .. R-1. Thus, we will be done if we show that elementary matrices change a given basis to another basis, for then R,-- changes B to some other basis Br, and R,_1-- changes Br to some Br-i, ..., and the net effect is that M changes B to B1. We will prove this about elementary matrices by covering the three types as separate cases. Applying a row-multiplication matrix M (k) cj =kci changes a representation with respect to (K31,... ,5A,...,,fin) to one with respect to (K1,...,(1/k)i,...,3n) in this way. - = c1>c1 +.-j-.- + c- --+ +c.1k.-. .n Sc1 -131 +--- + kci - (1/k)#3i +--- + cn - On= Similarly, left-multiplication by a row-swap matrix P,3 changes a representation with respect to the basis (Ki,... , ,... , ,...,,fin) into one with respect to the basis (31,...,1i,...,32,...,3n) in this way. SCi-#1+---+ci .-# +---+c2.-S2+---+cn -Sn=v And, a representation with respect to (3i,... , ,52,... ,5,...,,3n) changes via left-multiplication by a row-combination matrix C,3 (k) into a representation with respect to (1,"..., j - k ,I...,5j, ..., ) v= c1.-131 +-- c i y + - -+ cn - # Sc1 - 1 + - -+c2 -(1 - k# ) +.- -+ (kci +cy ) - 5+ - -+c -n O= 6 (the definition of reduction matrices specifies that i f k and k # 0 and so this last one is a basis). QED 1.5 Corollary A matrix is nonsingular if and only if it represents the identity map with respect to some pair of bases. In the next subsection we will see how to translate among representations of maps, that is, how to change RepB,D(h) to RepBfD(h). The above corollary is a special case of this, where the domain and range are the same space, and where the map is the identity map.  Section V. Change of Basis 241 Exercises / 1.6 In R2, where D -= ( 2 - find the change of basis matrices from D to E2 and from E2 to D. Multiply the two. v/ 1.7 Find the change of basis matrix for B, D C R2 (a) B = E2, D = (e2, el) (b) B = E2, D = ( 1, 1) (c) B =(1 , 1( ), D = E2 (d) B= ( ),, 2 D =( 0, 1) 1.8 For the bases in Exercise 7, find the change of basis matrix in the other direction, from D to B. / 1.9 Find the change of basis matrix for each B, D C P2. (a) B = ( 1, x, z2), D = (x2, 1, z) (b) B = (1, x, z2), D = (1, 1+x, 1+x+x2) (c) B = (2, 2x, x2), D = (1 + x2, 1 - x2, x+ x2) / 1.10 Decide if each changes bases on R2. To what basis is E2 changed? (a) 50 (b) 21 (c) 21 -8 (d) 1 1.11 Find bases such that this matrix represents the identity map with respect to those bases. 3 1 4 2 -1 1 0 0 4 1.12 Conside the vector space of real-valued functions with basis (sin(x), cos(x)). Show that (2 sin(x)+cos(x), 3 cos(x)) is also a basis for this space. Find the change of basis matrix in each direction. 1.13 Where does this matrix cos(20) sin(20) sin(20) - cos(20) send the standard basis for R2? Any other bases? Hint. Consider the inverse. / 1.14 What is the change of basis matrix with respect to B, B? 1.15 Prove that a matrix changes bases if and only if it is invertible. 1.16 Finish the proof of Lemma 1.4. / 1.17 Let H be a nxn nonsingular matrix. What basis of R" does H change to the standard basis? / 1.18 (a) In P3 with basis B = (1 + x, 1 - x, x2 +x3 ,x2 - x3) we have this repre- senatation. O RepB(1 - x + 3x2 - x3) (2) Find a basis D giving this different representation for the same polynomial. RepD( - x+3x2 -x3) 0  242 Chapter Three. Maps Between Spaces (b) State and prove that any nonzero vector representation can be changed to any other. Hint. The proof of Lemma 1.4 is constructive it not only says the bases change, it shows how they change. 1.19 Let V, W be vector spaces, and let B, B be bases for V and D, D be bases for W. Where h: V - W is linear, find a formula relating RepB,D(h) to RepgB(h). / 1.20 Show that the columns of an n x n change of basis matrix form a basis for R. Do all bases appear in that way: can the vectors from any R" basis make the columns of a change of basis matrix? / 1.21 Find a matrix having this effect. 3 -1 That is, find a M that left-multiplies the starting vector to yield the ending vector. Is there a matrix having these two effects? () 1 1 2 -1 (b 1 1 2 -1 (3 1 -1 -1 (3 1 (6 -1 Give a necessary and sufficient condition for there to be a matrix such that 61 - 1 and 2 'W2. V.2 Changing Map Representations The first subsection shows how to convert the representation of a vector with respect to one basis to the representation of that same vector with respect to another basis. Here we will see how to convert the representation of a map with respect to one pair of bases to the representation of that map with respect to a different pair. That is, we want the relationship between the matrices in this arrow diagram. h Vw.rt H> w.r.t. D id id h VW w.r.t. B >H w.r.t. D To move from the lower-left of this diagram to the lower-right we can either go straight over, or else up to VB then over to WD and then down. Restated in terms of the matrices, we can calculate H = RepB D (h) either by simply using B and D, or else by first changing bases with RepB B(id) then multiplying by H = RepB,D(h) and then changing bases with RepDb(id). This equation summarizes. H =RepDb(id) - H - RepgB(id) (*) (To compare this equation with the sentence before it, remember that the equa- tion is read from right to left because function composition is read right to left and matrix multiplication represent the composition.)  Section V. Change of Basis 2.1 Example The matrix T -cos(7/6) sin(7r/6) 243 - sin(7r/6)) cos(7r/6) v/( /2 1/2 -1/2 v/3/2 represents, with respect to E2, E2, the transformation t: R2 - R2 that rotates vectors 7r/6 radians counterclockwise. (1 \3)J (-3 + \)/2J (1 + 3v/53)/2 t7r/6 We can translate that representation with respect to E2, E2 to one with respect to B = (l(~) )<( 1 2 by using the arrow diagram and formula (*) above. w.r.t. E2 T w.r.t. E2 id R2 w.r.t. B id[ R2 w.r.t. D T = Rep.2 fl(id) - T - RepsE2(id) Note that Reps2 fl(id) can be calculated as the matrix inverse of RepE2 (id). {-1 2 v//2 -1/2) 1 0) Rep (t) = 0 3) 1/2 v/53/2) 1 2) ((5- - )/6 (3+2v)/3 (1 +v/)/6 v/53/3 Although the new matrix is messier-appearing, the map that it represents is the same. For instance, to replicate the effect of t in the picture, start with B, Repg( ) C)B apply T, ((5 - v3) 6 (3 + 2v/5) /3 (1 (1 + v3)76 v/3 ) fb ib(1) and check it against D 11+3v/5- -1 6 0 + v-(11 +3v/)/6) (1 + 3v/5)/6)f ((-3 + 3)/2 (1+3v3)/2) 1+ 3v/53 6 (2> K 3) to see that it is the same result as above.  244 Chapter Three. Maps Between Spaces 2.2 Example On R3 the map x y+ z z + y that is represented with respect to the standard basis in this way 0 1 1 Repe3 e3 (t) = 1 0 1 1 1 0 can also be represented with respect to another basis 1 1 1 -1 0 0 if B = ( -1 ,1 ,1 ) then RepB B(t) = 0 -1 0 0 (-2) 1) 0 0 2 in a way that is simpler, in that the action of a diagonal matrix is easy to understand. Naturally, we usually prefer basis changes that make the representation eas- ier to understand. When the representation with respect to equal starting and ending bases is a diagonal matrix we say the map or matrix has been diagoaal- ized. In Chaper Five we shall see which maps and matrices are diagonalizable, and where one is not, we shall see how to get a representation that is nearly diagonal. We finish this subsection by considering the easier case where representa- tions are with respect to possibly different starting and ending bases. Recall that the prior subsection shows that a matrix changes bases if and only if it is nonsingular. That gives us another version of the above arrow diagram and equation (*). 2.3 Definition Same-sized matrices H and H are matrix equivalent if there are nonsingular matrices P and Q such that H = PHQ. 2.4 Corollary Matrix equivalent matrices represent the same map, with re- spect to appropriate pairs of bases. Exercise 19 checks that matrix equivalence is an equivalence relation. Thus it partitions the set of matrices into matrix equivalence classes. All matrices: o xH matrix equivalent .a tofN  Section V. Change of Basis 245 We can get some insight into the classes by comparing matrix equivalence with row equivalence (recall that matrices are row equivalent when they can be re- duced to each other by row operations). In H = PHQ, the matrices P and Q are nonsingular and thus each can be written as a product of elementary reduction matrices (Lemma 4.8). Left-multiplication by the reduction matrices making up P has the effect of performing row operations. Right-multiplication by the reduction matrices making up Q performs column operations. Therefore, matrix equivalence is a generalization of row equivalence two matrices are row equivalent if one can be converted to the other by a sequence of row reduction steps, while two matrices are matrix equivalent if one can be converted to the other by a sequence of row reduction steps followed by a sequence of column reduction steps. Thus, if matrices are row equivalent then they are also matrix equivalent (since we can take Q to be the identity matrix and so perform no column operations). The converse, however, does not hold. 2.5 Example These two 1 0 1 1 0 0 0 0 are matrix equivalent because the second can be reduced to the first by the column operation of taking -1 times the first column and adding to the second. They are not row equivalent because they have different reduced echelon forms (in fact, both are already in reduced form). We will close this section by finding a set of representatives for the matrix equivalence classes.* 2.6 Theorem Any m x n matrix of rank k is matrix equivalent to the m x n matrix that is all zeros except that the first k diagonal entries are ones. 1 0 ... 0 0 ... 0 0 1 ... 0 0 ... 0 0 0 ... 1 0 ... 0 0 0 ... 0 0 ... 0 0 0 ... 0 0 ... 0 Sometimes this is described as a block partial-identity form. I Z Z Z * More information on class representatives is in the appendix.  246 Chapter Three. Maps Between Spaces PROOF. As discussed above, Gauss-Jordan reduce the given matrix and combine all the reduction matrices used there to make P. Then use the leading entries to do column reduction and finish by swapping columns to put the leading ones on the diagonal. Combine the reduction matrices used for those column operations into Q. QED 2.7 Example We illustrate the proof by finding the P and Q for this matrix. 1 2 1 -1 0 0 1 -1 2 4 2 -2 First Gauss-Jordan row-reduce. 1 -1 0 1 0 0 1 2 1 -1 1 2 0 0 0 1 0 0 1 0 0 0 1 -1 = 0 0 1 -1 0 0 1 -2 0 1 2 4 2 -2 0 0 0 0 Then column-reduce, which involves right-multiplication. 712 0 0 1 -200k 10 0 0 1 0 0 0 001-1 0 0 1 0 001 1 0010 0 00 00 1 0 0 0 1 0 0 00 S 010 00=10 0 0 1 \0 001/0 \00 1/1 Finish by swapping columns. 1 00 \0 (100 0 1 0 0 0 ~0 01010 01 01 0 0 1 0 = 0 1 0 0 0 0 0 1 00100 000 0 1 0 0 0 0 0 0 0 0 0 1 Finally, combine the left-multipliers together as P and the right-multipliers together as Q to get the PHQ equation. 1 -1 0 1 2 1 -1) 10 -2 j ( 1 0 0 0 0 1 0 0 0 1 -1 = 0 1 0 0 (-2 0 1 2 4 2 -2 01 0 0 0 0 0 0 0 0 1 2.8 Corollary Two same-sized matrices are matrix equivalent if and only if they have the same rank. That is, the matrix equivalence classes are character- ized by rank. PROOF. Two same-sized matrices with the same rank are equivalent to the same block partial-identity matrix. QED 2.9 Example The 2 x 2 matrices have only three possible ranks: zero, one, or two. Thus there are three matrix-equivalence classes.  Section V. Change of Basis 247 A 22* (0 0 ) Three equivalence All 2 x 2 matrices:clse classes Each class consists of all of the 2x2 matrices with the same rank. There is only one rank zero matrix, so that class has only one member, but the other two classes each have infinitely many members. In this subsection we have seen how to change the representation of a map with respect to a first pair of bases to one with respect to a second pair. That led to a definition describing when matrices are equivalent in this way. Finally we noted that, with the proper choice of (possibly different) starting and ending bases, any map can be represented in block partial-identity form. One of the nice things about this representation is that, in some sense, we can completely understand the map when it is expressed in this way: if the bases are B =f#,..i.,#) and D = (6i, . . ,m) then the map sends c113+---+Ck -|Ck+1Ck+1+- +Cn3n -c161-|--|c 6 -|0---|0 where k is the map's rank. Thus, we can understand any linear map as a kind of projection. Ci Cl ck ck Ck+1 0 cn B \0 D Of course, "understanding" a map expressed in this way requires that we un- derstand the relationship between B and D. However, despite that difficulty, this is a good classification of linear maps. Exercises / 2.10 Decide if these matrices are matrix equivalent. a)1 3 0 2 2 1 ()2 3 0 ' 0 5 -1 b)0 3 4 0 ()1 1' 0 5 /' 2.11 Find the canonical representative of the matrix-equivalence class of each ma- trix.  248 Chapter Three. Maps Between Spaces 2 1 00 1 0 2 (a) 4 2 0 (b) (%1 1 0 4 3 3 3 -1 2.12 Suppose that, with respect to 1 1 B=E2 D= ( ,_ ) B1 -1 the transformation t: R2 - R2 is represented by this matrix. 1 2 3 4 Use change of basis matrices to represent t with respect to each pair. (a)8E=(), 0 1 (b) 1 11 2 / 2.13 What sizes are P and Q in the equation H= PHQ? / 2.14 Use Theorem 2.6 to show that a square matrix is nonsingular if and only if it is equivalent to an identity matrix. / 2.15 Show that, where A is a nonsingular square matrix, if P and Q are nonsingular square matrices such that PAQ = I then QP = A-1. / 2.16 Why does Theorem 2.6 not show that every matrix is diagonalizable (see Example 2.2)? 2.17 Must matrix equivalent matrices have matrix equivalent transposes? 2.18 What happens in Theorem 2.6 if k = 0? / 2.19 Show that matrix-equivalence is an equivalence relation. / 2.20 Show that a zero matrix is alone in its matrix equivalence class. Are there other matrices like that? 2.21 What are the matrix equivalence classes of matrices of transformations on R1? R3?2 2.22 How many matrix equivalence classes are there? 2.23 Are matrix equivalence classes closed under scalar multiplication? Addition? 2.24 Let t: R" - R" represented by T with respect to E, E. (a) Find RepB,B(t) in this specific case. T= 1 1 B 1 -1 3 -1 2' -1 (b) Describe RepBB (t) in the general case where B = (31,... ,,3-) 2.25 (a) Let V have bases B1 and B2 and suppose that W has the basis D. Where h: V - W, find the formula that computes RepB2,D(h) from RepBl,D(h). (b) Repeat the prior question with one basis for V and two bases for W. 2.26 (a) If two matrices are matrix-equivalent and invertible, must their inverses be matrix-equivalent? (b) If two matrices have matrix-equivalent inverses, must the two be matrix- equivalent? (c) If two matrices are square and matrix-equivalent, must their squares be matrix-equivalent? (d) If two matrices are square and have matrix-equivalent squares, must they be matrix-equivalent?  Section V. Change of Basis 249 / 2.27 Square matrices are similar if they represent the same transformation, but each with respect to the same ending as starting basis. That is, RepB1,B1(t) is similar to RepB2,B2 (t). (a) Give a definition of matrix similarity like that of Definition 2.3. (b) Prove that similar matrices are matrix equivalent. (c) Show that similarity is an equivalence relation. (d) Show that if T is similar to T then T2 is similar to T2, the cubes are similar, etc. Contrast with the prior exercise. (e) Prove that there are matrix equivalent matrices that are not similar.  250 Chapter Three. Maps Between Spaces VI Projection This section is optional; only the last two sections of Chapter Five require this material. We have described the projection 7 from R3 into its xy plane subspace as a 'shadow map'. This shows why, but it also shows that some shadows fall upward. I \-1) So perhaps a better description is: the projection of v is the p in the plane with the property that someone standing on p and looking straight up or down sees v. In this section we will generalize this to other projections, both orthogonal (i.e., 'straight up and down') and nonorthogonal. VI.1 Orthogonal Projection Into a Line We first consider orthogonal projection into a line. To orthogonally project a vector v into a line £, darken a point on the line if someone on that line and looking straight up or down (from that person's point of view) sees v. The picture shows someone who has walked out on the line until the tip of v is straight overhead. That is, where the line is described as the span of some nonzero vector £ _ {c. s c e R}, the person has walked out to find the coefficient cf with the property that 6- cg "s is orthogonal to cfi- s We can solve for this coefficient by noting that because v - cps is orthogonal to a scalar multiple of s it must be orthogonal to s itself, and then the consequent fact that the dot product (67 - c1) - is zero gives that c1g = -s/-  Section VI. Projection 251 1.1 Definition The orthogonal projection of v into the line spanned by a nonzero s is this vector. v s projg] (v) = V . - s __-__ Exercise 19 checks that the outcome of the calculation depends only on the line and not on which vector s happens to be used to describe that line. 1.2 Remark The wording of that definition says 'spanned by s' instead the more formal 'the span of the set {s}'. This casual first phrase is common. 1.3 Example To orthogonally project the vector (2) into the line y = 2x, we first pick a direction vector for the line. For instance, will do. Then the calculation is routine. 3 1)_8 1)_8/5 - . 2 5 2 16/5 1.4 Example In R , the orthogonal projection of a general vector x y z into the y-axis is x 0 y-1 z (0 0 0 (0 0 (0) 1 - 1 (0) (0) which matches our intuitive expectation. The picture above with the stick figure walking out on the line until V's tip is overhead is one way to think of the orthogonal projection of a vector into a line. We finish this subsection with two other ways. 1.5 Example A railroad car left on an east-west track without its brake is pushed by a wind blowing toward the northeast at fifteen miles per hour; what speed will the car reach?  252 Chapter Three. Maps Between Spaces For the wind we use a vector of length 15 that points toward the northeast. - _ (15V /2 v 15 1/2) The car can only be affected by the part of the wind blowing in the east-west direction the part of v in the direction of the x-axis is this (the picture has the same perspective as the railroad car picture above). north '- (15 1/2~ east _ 15 So the car will reach a velocity of 15 I/2 miles per hour toward the east. Thus, another way to think of the picture that precedes the definition is that it shows v as decomposed into two parts, the part with the line (here, the part with the tracks, p), and the part that is orthogonal to the line (shown here lying on the north-south axis). These two are "not interacting" or "independent", in the sense that the east-west car is not at all affected by the north-south part of the wind (see Exercise 11). So the orthogonal projection of v into the line spanned by s can be thought of as the part of v that lies in the direction of s. Finally, another useful way to think of the orthogonal projection is to have the person stand not on the line, but on the vector that is to be projected to the line. This person has a rope over the line and pulls it tight, naturally making the rope orthogonal to the line. That is, we can think of the projection p as being the vector in the line that is closest to v (see Exercise 17). 1.6 Example A submarine is tracking a ship moving along the line y = 3x + 2. Torpedo range is one-half mile. Can the sub stay where it is, at the origin on the chart below, or must it move to reach a place where the ship will pass within range? north / / east  Section VI. Projection 253 The formula for projection into a line does not immediately apply because the line doesn't pass through the origin, and so isn't the span of any s. To adjust for this, we start by shifting the entire map down two units. Now the line is y = 3x, which is a subspace, and we can project to get the point p of closest approach, the point on the line through the origin closest to the sub's shifted position. -2 () 1 _-3/5 P 1 1 3) -9/5) (3) (3) The distance between v and p7is approximately 0.63 miles and so the sub must move to get in range. This subsection has developed a natural projection map: orthogonal projec- tion into a line. As suggested by the examples, it is often called for in appli- cations. The next subsection shows how the definition of orthogonal projection into a line gives us a way to calculate especially convienent bases for vector spaces, again something that is common in applications. The final subsection completely generalizes projection, orthogonal or not, into any subspace at all. Exercises / 1.7 Project the first vector orthogonally into the line spanned by the second vec- tor. (a) ()' -2 (b) (), (c) )(d) 1 2 / 1.8 Project the vector orthogonally into the line. 2 -3 - (a) -1 , {c 1 c E R} (b) 1 , the line y = 3x 4 (-3) 1.9 Although the development of Definition 1.1 is guided by the pictures, we are not restricted to spaces that we can draw. In R4 project this vector into this line. 1 -1 2 -1 (3)1 v 1.10 Definition I.1 uses two vectors s and v. Consider the transformation of R2 resulting from fixing and projecting v into the line that is the span of s Apply it to these vec- tors.  254 Chapter Three. Maps Between Spaces (a) 1 (b)0 Show that in general the projection tranformation is this. _1 (zi +3x2)/1O X2 ' (3xi + 9x2)/10 Express the action of this transformation with a matrix. 1.11 Example 1.5 suggests that projection breaks v into two parts, proj[g] (v) and v - projg] (V'), that are "not interacting". Recall that the two are orthogonal. Show that any two nonzero orthogonal vectors make up a linearly independent set. 1.12 (a) What is the orthogonal projection of v into a line if v is a member of that line? (b) Show that if v is not a member of the line then the set {v, - proj[g] (v)} is linearly independent. 1.13 Definition 1.1 requires that s be nonzero. Why? What is the right definition of the orthogonal projection of a vector into the (degenerate) line spanned by the zero vector? 1.14 Are all vectors the projection of some other vector into some line? / 1.15 Show that the projection of v into the line spanned by s has length equal to the absolute value of the number v -"s divided by the length of the vector s. 1.16 Find the formula for the distance from a point to a line. 1.17 Find the scalar c such that (cs1, cs2) is a minimum distance from the point (Vi, v2) by using calculus (i.e., consider the distance function, set the first derivative equal to zero, and solve). Generalize to R. / 1.18 Prove that the orthogonal projection of a vector into a line is shorter than the vector. / 1.19 Show that the definition of orthogonal projection into a line does not depend on the spanning vector: if s is a nonzero multiple of q then (- "s/s- s) - " equals (v'q/q 4q) -q / 1.20 Consider the function mapping to plane to itself that takes a vector to its projection into the line y = x. These two each show that the map is linear, the first one in a way that is bound to the coordinates (that is, it fixes a basis and then computes) and the second in a way that is more conceptual. (a) Produce a matrix that describes the function's action. (b) Show also that this map can be obtained by first rotating everything in the plane 7r/4 radians clockwise, then projecting into the x-axis, and then rotating -r/4 radians counterclockwise. 1.21 For a, b E R let 61 be the projection of a into the line spanned by b, let v2 be the projection of 61 into the line spanned by a, let V3 be the projection of v2 into the line spanned by b, etc., back and forth between the spans of a and b. That is, v2+1 is the projection of v2 into the span of a if i + 1 is even, and into the span of b if i + 1 is odd. Must that sequence of vectors eventually settle down-must there be a sufficiently large i such that v2+2 equals v2 and v2+3 equals v2+1? If so, what is the earliest such i?  Section VI. Projection 255 VI.2 Gram-Schmidt Orthogonalization This subsection is optional. It requires material from the prior, also optional, subsection. The work done here will only be needed in the final two sections of Chapter Five. The prior subsection suggests that projecting into the line spanned by s decomposes a vector v into two parts v v - Proj[g] (p) \ ----( = proj[g] (v) + (v- proj[s] (v)) proj [g] (y) that are orthogonal and so are "not interacting". We will now develop that suggestion. 2.1 Definition Vectors V1... , vk E R" are mutually orthogonal when any two are orthogonal: if i f j then the dot product vi " -6 is zero. 2.2 Theorem If the vectors in a set {61, ... , 6} C IR" are mutually orthog- onal and nonzero then that set is linearly independent. PROOF. Consider a linear relationship c1v1 + c2v2 + - + ckvk = 0. If i E [1..k] then taking the dot product of vi with both sides of the equation vi - (c161 + c262 + - --ckvk) --= -iO ci- (2. -61) = 0 shows, since vi is nonzero, that ci is zero. QED 2.3 Corollary If the vectors in a size k subset of a k dimensional space are mutually orthogonal and nonzero then that set is a basis for the space. PROOF. Any linearly independent size k subset of a k dimensional space is a basis. QED Of course, the converse of Corollary 2.3 does not hold not every basis of every subspace of R" is made of mutually orthogonal vectors. However, we can get the partial converse that for every subspace of R" there is at least one basis consisting of mutually orthogonal vectors. 2.4 Example The members 01 and 02 of this basis for R2 are not orthogonal. B=( , )  256 Chapter Three. Maps Between Spaces However, we can derive from B a new basis for the same space that does have mutually orthogonal members. For the first member of the new basis we simply use #1. K1 =(2 For the second member of the new basis, we take away from 02 its part in the direction of K1, K2 = 3 ) = 3 - 1 = 21 (1) (1) (2) (- ) (1)3 -proj[%1]( >2 which leaves the part, 2 pictured above, of 02 that is orthogonal to -1 (it is orthogonal by the definition of the projection into the span of K-1). Note that, by the corollary, {I1, 2} is a basis for 1R2. 2.5 Definition An orthogonal basis for a vector space is a basis of mutually orthogonal vectors. 2.6 Example To turn this basis for R3 into an orthogonal basis, we take the first vector as it is given. K1 =(1 We get K-2 by starting with the given second vector 02 and subtracting away the part of it in the direction of K-1. 0 2= 2 (0) 0[0 2/3 proj[] ( 2) 2) - (2/3 0) 0 2/3 ( -2/3 4/3 -2/3 Finally, we get i3 by taking the third given vector and subtracting the part of it in the direction of K1, and also the part of it in the direction of -2. 1 1 Ks = 0 - proj[91 ( 0 ) (3) 3) 1 Proi [921( 0 ) (3) -1 0 1  Section VI. Projection 257 Again the corollary gives that 1 -2/3 -1 ( 1 , 4/3 , 0 ) 1 -2/3 1 is a basis for the space. The next result verifies that the process used in those examples works with any basis for any subspace of an R" (we are restricted to R" only because we have not given a definition of orthogonality for other vector spaces). 2.7 Theorem (Gram-Schmidt orthogonalization) If (01, ... /k) is a basis for a subspace of R" then, where K1 = 01 K2 = 02 --proj[, (02) K3 -- 03 --ProJ[ (03) - proj [9,](03) Kk _ k - Proj[9, (0k) - - -proj [ ,/_ (0k) the K's form an orthogonal basis for the same subspace. PROOF. We will use induction to check that each Ki is nonzero, is in the span of (01, ... Oi) and is orthogonal to all preceding vectors: -1-'i = - - - _- = 0. With those, and with Corollary 2.3, we will have that (KI, ... irk) is a basis for the same space as (01, ...#k). We shall cover the cases up to i = 3, which give the sense of the argument. Completing the details is Exercise 23. The i = 1 case is trivial setting K1 equal to 01 makes it a nonzero vector since 01 is a member of a basis, it is obviously in the desired span, and the 'orthogonal to all preceding vectors' condition is vacuously met. For the i = 2 case, expand the definition of -2. K2-032-PrOJ[k9](/2)=0-- 2 K=2- -~ "3 - "1 K1*"K1 K1*"K1 This expansion shows that K2 is nonzero or else this would be a non-trivial linear dependence among the O3's (it is nontrivial because the coefficient of 02 is 1) and also shows that K2 is in the desired span. Finally, K2 is orthogonal to the only preceding vector b1 - 2 = p1 * (2 - projsgg (a2)) = 0 because this projection is orthogonal.  258 Chapter Three. Maps Between Spaces The i = 3 case is the same as the i = 2 case except for one detail. As in the i = 2 case, expanding the definition /33'K1 /33'K2 K3 =-/3- K1 -2 / 3'K1 13'2 . /32' 1 /3 -- - -0 ' 1 --- - ' 0 2 - - - ' 1 shows that i3 is nonzero and is in the span. A calculation shows that i3 is orthogonal to the preceding vector K1. K1 *3 i1 *(3- proj[1] (/33) - proj[22](/33) 1*3 - proj[ 1](/33)) - W1 -proj[! 2](,33) 0 (Here's the difference from the i = 2 case-the second line has two kinds of terms. The first term is zero because this projection is orthogonal, as in the i = 2 case. The second term is zero because i1 is orthogonal to i2 and so is orthogonal to any vector in the line spanned by i2.) The check that i3 is also orthogonal to the other preceding vector i2 is similar. QED Beyond having the vectors in the basis be orthogonal, we can do more; we can arrange for each vector to have length one by dividing each by its own length (we can normalize the lengths). 2.8 Example Normalizing the length of each vector in the orthogonal basis of Example 2.6 produces this orthonormal basis. 1/v/-- -1/v/\6- -1/v/2 ( 1/ , 2/v , 0 2) Besides its intuitive appeal, and its analogy with the standard basis En for R", an orthonormal basis also simplifies some computations. See Exercise 17, for example. Exercises 2.9 Perform the Gram-Schmidt process on each of these bases for R2. (a) l 2 (b) 0 -1 (c) 0 ( 1 (a ) ( 1) ( ) 1'3 )1( ) I('0 Then turn those orthogonal bases into orthonormal bases. /' 2.10 Perform the Gram-Schmidt process on each of these bases for 1R3.  Section VI. Projection 259 2 1 0 1 0 2 (a) (2 0 3 ) (b) ( -1 , 1 , 3 ) 2 -1 1 0 0 1 Then turn those orthogonal bases into orthonormal bases. / 2.11 Find an orthonormal basis for this subspace of R3: the plane x - y + z = 0. 2.12 Find an orthonormal basis for this subspace of R4. { x-y-z+w=0andx+z=0} z w 2.13 Show that any linearly independent subset of R' can be orthogonalized with- out changing its span. / 2.14 What happens if we apply the Gram-Schmidt process to a basis that is already orthogonal? 2.15 Let (i1, .. ., i4) be a set of mutually orthogonal vectors in R. (a) Prove that for any V7in the space, the vector v -(proj [ 1]()+- - -+proj ]( ') ) is orthogonal to each of %1 , ..., 4. (b) Illustrate the prior item in R3 by using e1 as K'1, using e2 as '2, and taking v to have components 1, 2, and 3. (c) Show that proj[;1] (v) + - - - + proj [v (v) is the vector in the span of the set of K's that is closest to v. Hint. To the illustration done for the prior part, add a vector d1K1 + d2i2 and apply the Pythagorean Theorem to the resulting triangle. 2.16 Find a vector in R3 that is orthogonal to both of these. 1 2 5 2 -1 0 / 2.17 One advantage of orthogonal bases is that they simplify finding the represen- tation of a vector with respect to that basis. (a) For this vector and this non-orthogonal basis for R2 v= 2 B = 1 ,1 first represent the vector with respect to the basis. Then project the vector into the span of each basis vector [31] and [32]. (b) With this orthogonal basis for R2 K-(1 1 1 -1 represent the same vector v with respect to the basis. Then project the vector into the span of each basis vector. Note that the coefficients in the representation and the projection are the same. (c) Let K = (2i1, ... , k 4) be an orthogonal basis for some subspace of R. Prove that for any v in the subspace, the i-th component of the representation RepK (v) is the scalar coefficient (v -2) )/(2 " -i2) from proj[ %(v). (d) Prove that '= proj[s1](6) + - -- +proj[ ](v). 2.18 Bessel's Inequality. Consider these orthonormal sets B1 = {e1} B2 {11, 2} B3 = {e1, e2, e3} B4 {11, 22, 3, 4} along with the vector v - R4 whose components are 4, 3, 2, and 1. (a) Find the coefficient ci for the projection of 'U into the span of the vector in B1. Check that ||6|2 ;>C c12  260 Chapter Three. Maps Between Spaces (b) Find the coefficients cl and c2 for the projection of v into the spans of the two vectors in B2. Check that || I|2 ;> |C12 + C2|2 (c) Find cl, c2, and c3 associated with the vectors in B3, and cl, c2, c3, and c4 for the vectors in B4. Check that ||v||2 ;> C1|2± + - c3|2 and that ||||2> |Cl12 + - + |c4|2 Show that this holds in general: where { 1, ... , irk} is an orthonormal set and c2 is coefficient of the projection of a vector v from the space then ||v||2 > c12 + -+ |ck 2. Hint. One way is to look at the inequality 0 < ||I - (cili + - + ckk) ||2 and expand the c's. 2.19 Prove or disprove: every vector in R" is in some orthogonal basis. 2.20 Show that the columns of an nxn matrix form an orthonormal set if and only if the inverse of the matrix is its transpose. Produce such a matrix. 2.21 Does the proof of Theorem 2.2 fail to consider the possibility that the set of vectors is empty (i.e., that k = 0)? 2.22 Theorem 2.7 describes a change of basis from any basis B = (31, ... , 3k) to one that is orthogonal K = (91, ... , hk). Consider the change of basis matrix RepB,K (id). (a) Prove that the matrix RepK,B (id) changing bases in the direction opposite to that of the theorem has an upper triangular shape-all of its entries below the main diagonal are zeros. (b) Prove that the inverse of an upper triangular matrix is also upper triangular (if the matrix is invertible, that is). This shows that the matrix RepBK(id) changing bases in the direction described in the theorem is upper triangular. 2.23 Complete the induction argument in the proof of Theorem 2.7. VI.3 Projection Into a Subspace This subsection, like the others in this section, is optional. It also requires material from the optional earlier subsection on Combining Subspaces. The prior subsections project a vector into a line by decomposing it into two parts: the part in the line proj g] (v ) and the rest v - proj[g] (). To generalize projection to arbitrary subspaces, we follow this idea. 3.1 Definition For any direct sum V = M+N and any v E V, the projection of v into M along N is projM,Nv) M where v= m + n with m E M, n E N. This definition doesn't involve a sense of 'orthogonal' so we can apply it to spaces other than subspaces of an R". (Definitions of orthogonality for other spaces are perfectly possible, but we haven't seen any in this book.) 3.2 Example The space M2x2 of 2x2 matrices is the direct sum of these two. M={ 0 o a,bcER} N={ (o c,dcER}  Section VI. Projection 261 To project i o M3 1 0 4 into M along N, we first fix bases for the two subspaces. 1 0 0 1 , BM={0 0 ' o0 0 The concatenation of these BN = (O O 1 O OJ B=BM BN (10 0 1 0 0 0)0 is a basis for the entire space, because the space is the direct sum, so we can use it to represent A. 3 1 0 4 3(0 0)+1"( p) +0"( ) +4"Ip I Now the projection of A into M along N is found by keeping the M part of this sum and dropping the N part. S1 projM,Ny 3. ( g) + 1" ( ) ( ) 3.3 Example Both subscripts on projM,N(Y) are significant. The first sub- script M matters because the result of the projection is an -iE M, and changing this subspace would change the possible results. For an example showing that the second subscript matters, fix this plane subspace of R3 and its basis M={ y y-2z =0} z 1 0 B = ( 0 ,2 0 (1 and compare the projections along two different subspaces. 0 N ={k 0 |k E R} (1) 0 1V= {k 1 k E R} -2 (Verification that R3 = M e N and R3 = M e N is routine.) We will check that these projections are different by checking that they have different effects on this vector. 2 V=2 5 For the first one we find a basis for N 0 BN 0 1  262 Chapter Three. Maps Between Spaces and represent v with respect to the concatenation BM BN. 2 1 0 0 2 =2- 0 +1 - 2 +4- 0 \5J 0J 1 (1) The projection of v into M along N is found by keeping the M part and dropping the N part. 1 0 2 projM,Nv=2 0+"2 =2 0 1 1 For the other subspace N, this basis is natural. 0 Bk K (212) Representing v with respect to the concatenation 2 1 0 0! (2 = 2 ( 0 + (9/5). ( 2 - (8/5) (22) and then keeping only the M part gives this. 1 0 2 projMR(6) = 2 - 0 + (9/5) - 2 18/5 0 1 9/5 Therefore projection along different subspaces may yield different results. These pictures compare the two maps. Both show that the projection is indeed 'into' the plane and 'along' the line. N N '- . M M Notice that the projection along N is not orthogonal-there are members of the plane M that are not orthogonal to the dotted line. But the projection along N is orthogonal. A natural question is: what is the relationship between the projection op- eration defined above, and the operation of orthogonal projection into a line? The second picture above suggests the answer-orthogonal projection into a line is a special case of the projection defined above; it is just projection along a subspace perpendicular to the line.  Section VI. Projection 263 N M In addition to pointing out that projection along a subspace is a generalization, this scheme shows how to define orthogonal projection into any subspace of R", of any dimension. 3.4 Definition The orthogonal complement of a subspace M of R" is M1 = {v E R" v is perpendicular to all vectors in M} (read "M perp"). The orthogonal projection projm(v) of a vector is its pro- jection into M along M'. 3.5 Example In R , to find the orthogonal complement of the plane P={ g3x+2y- 0} we start with a basis for P. 1 0 B=( 0 ,1 ) B (3) (2)> Any v perpendicular to every vector in B is perpendicular to every vector in the span of B (the proof of this assertion is Exercise 19). Therefore, the subspace P1 consists of the vectors that satisfy these two conditions. (1~\V \ 101 V2 \3J\(v3 0 (0~\V \ 11 (V2 = 0 \2 \v3/ We can express those conditions more compactly as a linear system. vl{% ( P1 = { 2 0 \V3/ 0 1 \v2 We are thus left with finding the nullspace of the map represented by the matrix, that is, with calculating the solution set of a homogeneous linear system. v1 P - = { v12 | 11 (v3) + 3v3 0 - 03 } {k 1-21 V2 + 2v3 =0 k E R}  264 Chapter Three. Maps Between Spaces 3.6 Example Where M is the xy-plane subspace of R3, what is ML? A common first reaction is that M1 is the yz-plane, but that's not right. Some vectors from the yz-plane are not perpendicular to every vector in the xy-plane. 1\ (0 10+1-3+0-2 1) 3 0 =arccos( 2)~ 0.94 rad 0 2 N/ '" 1 Instead M1 is the z-axis, since proceeding as in the prior example and taking the natural basis for the xy-plane gives this. 1 x fl 0 0 x _0 x M ={y) 0 10 f ) (0) }_{ y x=0andy=0} z z (Z The two examples that we've seen since Definition 3.4 illustrate the first sentence in that definition. The next result justifies the second sentence. 3.7 Lemma Let M be a subspace of R'. The orthogonal complement of M is also a subspace. The space is the direct sum of the two R" = M e M1. And, for any v E Rn, the vector v6- projM(6) is perpendicular to every vector in M. PROOF. First, the orthogonal complement M1 is a subspace of R" because, as noted in the prior two examples, it is a nullspace. Next, we can start with any basis BM --(1i,. . . ,A k) for M and expand it to a basis for the entire space. Apply the Gram-Schmidt process to get an orthog- onal basis K = (Ki,... , in) for R". This K is the concatenation of two bases K(1, . .. ,Ik) (with the same number of members as BM) and (Kk+1,... , Kn). The first is a basis for M, so if we show that the second is a basis for M1 then we will have that the entire space is the direct sum of the two subspaces. Exercise 17 from the prior subsection proves this about any orthogonal ba- sis: each vector v in the space is the sum of its orthogonal projections onto the lines spanned by the basis vectors. v = proj[;l] (v) + -.-. + proj () * To check this, represent the vector v= ri1 +.. - +r1n , apply ki to both sides V- . = (ri1 + -.-.-+ Trn i) - K2 = r1 -0 + -.-.-+ r2- (j2 - i) + -.-.-+ Trn -0, and solve to get r2 = (v- "i)/(i2j -"2), as desired. Since obviously any member of the span of (Kk+1,... , in) is orthogonal to any vector in M, to show that this is a basis for M1 we need only show the other containment that any w E M1 is in the span of this basis. The prior paragraph does this. On projections into basis vectors from M, any w E M gives proj[1](w) =0,..., proj[; ](t) 0=0 and therefore (*) gives that w is a linear combination of sk+1,. - - - .,i Thus this is a basis for M' and 1R is the direct sum of the two.  Section VI. Projection 265 The final sentence is proved in much the same way. Write v= proj[gI (v ) + - + proj[g] (i). Then projM(v) is gotten by keeping only the M part and dropping the M' part projM (v) = proj[g,] ( -) + + proj, (v). Therefore 6- projM (v) consists of a linear combination of elements of M' and so is perpendicular to every vector in M. QED We can find the orthogonal projection into a subspace by following the steps of the proof, but the next result gives a convienent formula. 3.8 Theorem Let v be a vector in R" and let M be a subspace of R" with basis (#1, ... , #3). If A is the matrix whose columns are the #3's then projM(v) = ci1 + - - - + CkA where the coefficients ci are the entries of the vector (AtransA)Atrans - v. That is, projM(6) = A(AtransA)-lAtrans - PROOF. The vector projM(v) is a member of M and so it is a linear combination of basis vectors c1 - 01 + - - - + ck - /k. Since A's columns are the /3's, that can be expressed as: there is a c E Rk such that projM(v) = Ac (this is expressed compactly with matrix multiplication as in Example 3.5 and 3.6). Because v- projM(v) is perpendicular to each member of the basis, we have this (again, expressed compactly). = trans (21 - AC) = Atransv - AtransAC Solving for c (showing that AtransA is invertible is an exercise) c= (AtransA)-lAtrans - gives the formula for the projection matrix as projM(v) = A - . QED 3.9 Example To orthogonally project this vector into this subspace 1 x V= -1 P={ y x+z=0} 1 (z first make a matrix whose columns are a basis for the subspace 0 1 A= 1 0 0 -1 and then compute. 0 1 A{AtransA)-Atrans = 1 0 0 1 1 0 -1 0 1 1/2 0 0 1 0 0 - 1 1/2 0 -1/2 = 0 1 0 -1/2 0 1/2  266 Chapter Three. Maps Between Spaces With the matrix, calculating the orthogonal projection of any vector into P is easy. projp(6) = 1/2 0 -1/2 0 1 0 -1/2 1 0 0 -1 = -1 1/2 1 0 Exercises / 3.10 Project the vectors into M along N. (a) , M ={(x + y= 0}, 2 3 Fy (b) ( , M={ x z - y = 0}, 3 zx (c) 0 ,M={ y x + y=- 0}, / 3.11 Find M'. N ={ { -x -2y = N={( 2x+ y =0} (1) 0} (a) M x x + y = 0} (b) M={(x -2x + 3y = 0} (c) M{(x) x - y =O} (d) M = {0} (e) M = { x x=0} (f) M { y -x+3y+z=0} (g) M={ y x=0andy+z= (Z) Z 0} 3.12 This subsection shows how to project orthogonally in two ways, the method of Example 3.2 and 3.3, and the method of Theorem 3.8. To compare them, consider the plane P specified by 3x + 2y - z = 0 in R3. (a) Find a basis for P. (b) Find P' and a basis for P'. (c) Represent this vector with respect to the concatenation of the two bases from the prior item. 1 V.= 1 (2 (d) Find the orthogonal projection of v into P by keeping only the P part from the prior item. (e) Check that against the result from applying Theorem 3.8. / 3.13 We have three ways to find the orthogonal projection of a vector into a line, the Definition 1.1 way from the first subsection of this section, the Example 3.2 and 3.3 way of representing the vector with respect to a basis for the space and then keeping the M part, and the way of Theorem 3.8. For these cases, do all three ways. (a)= -13), M={(x) x+y=0} 0 x (b)v=(1), M={ y x+z=0andy=0} 2 z 3.14 Check that the operation of Definition 3.1 is well-defined. That is, in Exam- ple 3.2 and 3.3, doesn't the answer depend on the choice of bases?  Section VI. Projection 267 3.15 What is the orthogonal projection into the trivial subspace? 3.16 What is the projection of v into M along N if v E M? 3.17 Show that if M C R" is a subspace with orthonormal basis (i, . . . , 1 ) then the orthogonal projection of v into M is this. / 3.18 Prove that the map p: V - V is the projection into M along N if and only if the map id - p is the projection into N along M. (Recall the definition of the difference of two maps: (id - p) (v) = id() - p() = v - p().) / 3.19 Show that if a vector is perpendicular to every vector in a set then it is perpendicular to every vector in the span of that set. 3.20 True or false: the intersection of a subspace and its orthogonal complement is trivial. 3.21 Show that the dimensions of orthogonal complements add to the dimension of the entire space. / 3.22 Suppose that 61, 2 E R" are such that for all complements M, N C R", the projections of 61 and v2 into M along N are equal. Must 61 equal v2? (If so, what if we relax the condition to: all orthogonal projections of the two are equal?) / 3.23 Let M, N be subspaces of R. The perp operator acts on subspaces; we can ask how it interacts with other such operations. (a) Show that two perps cancel: (M')'L= M. (b) Prove that M C N implies that N' C ML. (c) Show that (M + N)' = M' n N'. / 3.24 The material in this subsection allows us to express a geometric relationship that we have not yet seen between the rangespace and the nullspace of a linear map. (a) Represent f: R3 - R given by el (v2 lvi + 2v2 + 3V3 V3 with respect to the standard bases and show that 1 2 3 is a member of the perp of the nullspace. Prove that Y(f)' is equal to the span of this vector. (b) Generalize that to apply to any f: R - R. (c) Represent f: R3 -R2 (lvi + 2v2 + 3v3 v2F 4v + 5v2 + 6v3 V3 with respect to the standard bases and show that 1 4 25, 3 6 are both members of the perp of the nullspace. Prove that Y(f)- is the span of these two. (Hint. See the third item of Exercise 23.)  268 Chapter Three. Maps Between Spaces (d) Generalize that to apply to any f: R' -R'. This, and related results, is called the Fundamental Theorem of Linear Algebra in [Strang 93]. 3.25 Define a projection to be a linear transformation t: V - V with the property that repeating the projection does nothing more than does the projection alone: (to t)() =t(i) for all c EV. (a) Show that orthogonal projection into a line has that property. (b) Show that projection along a subspace has that property. (c) Show that for any such t there is a basis B =( 1, .... , ,3n) for V such that -- $ i = 1, 2, .. ., r ti) 0 i = r+1,r+2,..., n where r is the rank of t. (d) Conclude that every projection is a projection along a subspace. (e) Also conclude that every projection has a representation RepB, (t) I Z Ress()= Z Z in block partial-identity form. 3.26 A square matrix is symmetric if each i, j entry equals the j, i entry (i.e., if the matrix equals its transpose). Show that the projection matrix A(AtransA)--lAtrans is symmetric. [Strang 80] Hint. Find properties of transposes by looking in the index under 'transpose'.  Topic: Line of Best Fit 269 Topic: Line of Best Fit This Topic requires the formulas from the subsections on Orthogonal Projection Into a Line, and Projection Into a Subspace. Scientists are often presented with a system that has no solution and they must find an answer anyway. That is, they must find a value that is as close as possible to being an answer. For instance, suppose that we have a coin to use in flipping. This coin has some proportion m of heads to total flips, determined by how it is physically constructed, and we want to know if m is near 1/2. We can get experimental data by flipping it many times. This is the result a penny experiment, including some intermediate numbers. number of flips 30 60 90 number of heads 16 34 51 Because of randomness, we do not find the exact proportion with this sample there is no solution to this system. 30m =16 60m = 34 90m=51 That is, the vector of experimental data is not in the subspace of solutions. 16 (30\ (34) {m 60) mEI19} However, as described above, we want to find the m that most nearly works. An orthogonal projection of the data vector into the line subspace gives our best guess. 16 (30 (34 - 60 51J 90 30 7110 30 - 60 - 60 30 30 90 12600 90 (60 -1( 60 \90) 90 The estimate (m = 7110/12600 0.56) is a bit high but not much, so probably the penny is fair enough. The line with the slope m 0.56 is called the line of best fit for this data. heads flips  270 Chapter Three. Maps Between Spaces Minimizing the distance between the given vector and the vector used as the right-hand side minimizes the total of these vertical lengths, and consequently we say that the line has been obtained through fitting by least-squares (the vertical scale here has been exaggerated ten times to make the lengths visible). We arranged the equation above so that the line must pass through (0,0) because we take take it to be (our best guess at) the line whose slope is this coin's true proportion of heads to flips. We can also handle cases where the line need not pass through the origin. For example, the different denominations of U.S. money have different aver- age times in circulation (the $2 bill is left off as a special case). How long should we expect a $25 bill to last? denomination 1 5 10 20 50 100 average life (years) 1.5 2 3 5 9 20 The plot (see below) looks roughly linear. It isn't a perfect line, i.e., the linear system with equations b + im = 1.5, ..., b+ 100m = 20 has no solution, but we can again use orthogonal projection to find a best approximation. Consider the matrix of coefficients of that linear system and also its vector of constants, the experimentally-determined values. /1 1 \ 1.5\ 1 5 2 A 1 10 3 1 20 5 1 50 9 \1 100/ 20/ The ending result in the subsection on Projection into a Subspace says that coefficients b and m so that the linear combination of the columns of A is as close as possible to the vector v are the entries of (AtransA)--1Atrans - v. Some calculation gives an intercept of b = 1.05 and a slope of m = 0.18. avg life 15 ' 5 op- 10 30 50 70 90 denom Plugging x = 25 into the equation of the line shows that such a bill should last between five and six years.  Topic: Line of Best Fit 271 We close by considering the times for the men's mile race [Oakley & Baker]. These are the world records that were in force on January first of the given years. We want to project when a 3:40 mile will be run. year 1870 1880 1890 1900 1910 1920 1930 seconds 268.8 264.5 258.4 255.6 255.6 252.6 250.4 1940 1950 1960 1970 1980 1990 2000 246.4 241.4 234.5 231.1 229.0 226.3 223.1 We can see below that the data is surprisingly linear. With this input 1 1860\ 280.0\ 1 1870 268.8 A = 1A1990 226.3 1 2000/ \223.1 the Python program at this Topic's end gives slope = -0.35 and intercept 925.53 (rounded to two places; the original data is good to only about a quarter of a second since much of it was hand-timed). seconds 260- 240- .- 220- 1870 1890 1910 1930 1950 1970 1990 year When will a 220 second mile be run? Solving the equation of the line of best fit gives an estimate of the year 2008. This example is amusing, but serves as a caution-obviously the linearity of the data will break down someday (as indeed it does prior to 1860). Exercises The calculations here are best done on a computer. In addition, some of the prob- lems require more data, available in your library, on the net, or in the Answers to the Exercises. 1 Use least-squares to judge if the coin in this experiment is fair. flips 8 16 24 32 40 heads 4 9 13 17 20 2 For the men's mile record, rather than give each of the many records and its exact date, we've "smoothed" the data somewhat by taking a periodic sample. Do the longer calculation and compare the conclusions. 3 Find the line of best fit for the men's 1500 meter run. How does the slope compare with that for the men's mile? (The distances are close; a mile is about 1609 meters.)  272 Chapter Three. Maps Between Spaces 4 Find the line of best fit for the records for women's mile. 5 Do the lines of best fit for the men's and women's miles cross? 6 When the space shuttle Challenger exploded in 1986, one of the criticisms made of NASA's decision to launch was in the way the analysis of number of O-ring failures versus temperature was made (of course, 0-ring failure caused the explosion). Four O-ring failures will cause the rocket to explode. NASA had data from 24 previous flights. temp'F 53 75 57 58 63 70 70 66 67 67 67 failures 3 2 1 1 1 1 1 0 0 0 0 68 69 70 70 72 73 75 76 76 78 79 80 81 0 0 0 0 0 0 0 0 0 0 0 0 0 The temperature that day was forecast to be 31'F. (a) NASA based the decision to launch partially on a chart showing only the flights that had at least one O-ring failure. Find the line that best fits these seven flights. On the basis of this data, predict the number of O-ring failures when the temperature is 31, and when the number of failures will exceed four. (b) Find the line that best fits all 24 flights. On the basis of this extra data, predict the number of O-ring failures when the temperature is 31, and when the number of failures will exceed four. Which do you think is the more accurate method of predicting? (An excellent discussion appears in [Dalai, et. al.].) 7 This table lists the average distance from the sun to each of the first seven planets, using earth's average as a unit. Mercury Venus Earth Mars Jupiter Saturn Uranus 0.39 0.72 1.00 1.52 5.20 9.54 19.2 (a) Plot the number of the planet (Mercury is 1, etc.) versus the distance. Note that it does not look like a line, and so finding the line of best fit is not fruitful. (b) It does, however look like an exponential curve. Therefore, plot the number of the planet versus the logarithm of the distance. Does this look like a line? (c) The asteroid belt between Mars and Jupiter is thought to be what is left of a planet that broke apart. Renumber so that Jupiter is 6, Saturn is 7, and Uranus is 8, and plot against the log again. Does this look better? (d) Use least squares on that data to predict the location of Neptune. (e) Repeat to predict where Pluto is. (f) Is the formula accurate for Neptune and Pluto? This method was used to help discover Neptune (although the second item is mis- leading about the history; actually, the discovery of Neptune in position 9 prompted people to look for the "missing planet" in position 5). See [Gardner, 1970] 8 William Bennett has proposed an Index of Leading Cultural Indicators for the US ([Bennett], in 1993). Among the statistics cited are the average daily hours spent watching TV, and the average combined SAT scores. 1960 1965 1970 1975 1980 1985 1990 1992 TV 5:06 5:29 5:56 6:07 6:36 7:07 6:55 7:04 SAT 975 969 948 910 890 906 900 899 Suppose that a cause and effect relationship is proposed between the time spent watching TV and the decline in SAT scores (in this article, Mr. Bennett does not argue that there is a direct connection). (a) Find the line of best fit relating the independent variable of average daily TV hours to the dependent variable of SAT scores.  Topic: Line of Best Fit 273 (b) Find the most recent estimate of the average daily TV hours (Bennett's cites Neilsen Media Research as the source of these estimates). Estimate the associ- ated SAT score. How close is your estimate to the actual average? (Warning: a change has been made recently in the SAT, so you should investigate whether some adjustment needs to be made to the reported average to make a valid comparison.) Computer Code #!/usr/bin/python # leastsquares.py calculate the line of best fit for a data set # data file format: each line is two numbers, x and y import math, string n = 0 sum__x = 0 sum_y = 0 sum_xsquared = 0 sum_xy = 0 fn = raw_input("Name of the data file? ") datafile = open(fn,"r") while 1: In = datafile.readline() if (ln): data = string.split(ln) x = string.atof(data[0]) y = string.atof(data[1]) n = n+1 sumx = sumx+x sumy = sumy+y sum_x_squared = sum_x_squared+(x*x) sumxy = sumxy +(x*y) else: break dataf ile . close () slope=(sumofxy-pow(sumx,2)/n)/(sum_x_squared-pow(sumx,2)/n) intercept=(sumy-(slope*sumx))/n print "line of best fit: slope=",slope," intercept=",intercept  274 Chapter Three. Maps Between Spaces Topic: Geometry of Linear Maps The pictures below contrast fi(x) = ex and f2 (x) = x2, which are nonlinear, with hi(x) = 2x and h2(x) = -x, which are linear. Each of the four pictures shows the domain R1 on the left mapped to the codomain R1 on the right. Arrows trace out where each map sends x = 0, x= 1, x= 2, x= -1, and x = -2. Note how the nonlinear maps distort the domain in transforming it into the range. For instance, f1(1) is further from f1(2) than it is from f1(0) the map is spreading the domain out unevenly so that an interval near x = 2 is spread apart more than is an interval near x = 0 when they are carried over to the range. 0- 0 The linear maps are nicer, more regular, in that for each map all of the domain is spread by the same factor. 0- 0 The only linear maps from R1 to R1 are multiplications by a scalar. In higher dimensions more can happen. For instance, this linear transformation of R2, rotates vectors counterclockwise, and is not just a scalar multiplication.  Topic: Geometry of Linear Maps 275 The transformation of R3 which projects vectors into the xz-plane is also not just a rescaling. Nonetheless, even in higher dimensions the situation isn't too complicated. Below, we use the standard bases to represent each linear map h: R'--Rm by a matrix H. Recall that any H can be factored H = PBQ, where P and Q are nonsingular and B is a partial-identity matrix. Further, recall that nonsingular matrices factor into elementary matrices PBQ = TT_--... Tj BT _1...T1, which are matrices that are obtained from the identity I with one Gaussian step I -MV1(k) I -> P2,3 I - C,(k) (i f j, k # 0). So if we understand the effect of a linear map described by a partial-identity matrix, and the effect of linear mapss described by the elementary matrices, then we will in some sense understand the effect of any linear map. (The pictures below stick to transformations of R2 for ease of drawing, but the statements hold for maps from any R" to any Rm.) The geometric effect of the linear transformation represented by a partial- identity matrix is projection. 1 0 0 0o 1 0 x 0 0 0x (9) ~ 010) 83,83 (A z 0 For the M (k) matrices, the geometric action of a transformation represented by such a matrix (with respect to the standard basis) is to stretch vectors by a factor of k along the i-th axis. This map stretches by a factor of 3 along the x-axis. I I I()3;)  276 Chapter Three. Maps Between Spaces Note that if 0 < k < 1 or if k < 0 then the i-th component goes the other way; here, toward the left. Either of these is a dilation. The action of a transformation represented by a Pj j permutation matrix is to interchange the i-th and j-th axes; this is a particular kind of reflection. In higher dimensions, permutations involving many axes can be decomposed into a combination of swaps of pairs of axes see Exercise 5. The remaining case is that of matrices of the form Cj, (k). Recall that, for instance, that C1,2(2) performs 2p1 + P2. 1 0 2 1 Y) 2x +y) In the picture below, the vector a with the first component of 1 is affected less than the vector v with the first component of 2 h(u) is only 2 higher than U while h(6) is 4 higher than v. h() h(g) Any vector with a first component of 1 would be affected as is ; it would be slid up by 2. And any vector with a first component of 2 would be slid up 4, as was v. That is, the transformation represented by Ci (k) affects vectors depending on their i-th component. Another way to see this same point is to consider the action of this map on the unit square. In the next picture, vectors with a first component of 0, like the origin, are not pushed vertically at all but vectors with a positive first component are slid up. Here, all vectors with a first component of 1 the entire right side of the square is affected to the same extent. More generally, vectors on the same vertical line are slid up the same amount, namely, they are slid up by twice their first component. The resulting shape, a rhombus, has the same base and height as the square (and thus the same area) but the right angles are gone.  Topic: Geometry of Linear Maps 277 For contrast the next picture shows the effect of the map represented by C2,1(1). In this case, vectors are affected according to their second component. The vector (y) is slid horozontally by twice y. Because of this action, this kind of map is called a skew. With that, we have covered the geometric effect of the four types of com- ponents in the expansion H = TT,_- - - Tj BT _1 - - -T1, the partial-identity projection B and the elementary Ti's. Since we understand its components, we in some sense understand the action of any H. As an illustration of this assertion, recall that under a linear map, the image of a subspace is a subspace and thus the linear transformation h represented by H maps lines through the origin to lines through the origin. (The dimension of the image space cannot be greater than the dimension of the domain space, so a line can't map onto, say, a plane.) We will extend that to show that any line, not just those through the origin, is mapped by h to a line. The proof is simply that the partial- identity projection B and the elementary Ti's each turn a line input into a line output (verifying the four cases is Exercise 6), and therefore their composition also preserves lines. Thus, by understanding its components we can understand arbitrary square matrices H, in the sense that we can prove things about them. An understanding of the geometric effect of linear transformations on R" is very important in mathematics. Here is a familiar application from calculus. On the left is a picture of the action of the nonlinear function y(x) = x2+ x. As at that start of this Topic, overall the geometric effect of this map is irregular in that at different domain points it has different effects (e.g., as the domain point x goes from 2 to -2, the associated range point f(x) at first decreases, then pauses instantaneously, and then increases). 5 5 0 - * 0  278 Chapter Three. Maps Between Spaces But in calculus we don't focus on the map overall, we focus instead on the local effect of the map. At x = 1 the derivative is y'(1) = 3, so that near x = 1 we have Ay ~3 Ax. That is, in a neighborhood of x = 1, in carrying the domain to the codomain this map causes it to grow by a factor of 3-it is, locally, approximately, a dilation. The picture below shows a small interval in the domain (x - Ax.. x + Ax) carried over to an interval in the codomain (y - Ay.. y + Ay) that is three times as wide: Ay ~3 Ax. (When the above picture is drawn in the traditional cartesian way then the prior sentence about the rate of growth of y(x) is usually stated: the derivative y'(1) = 3 gives the slope of the line tangent to the graph at the point (1, 2).) In higher dimensions, the idea is the same but the approximation is not just the R1-to-R1 scalar multiplication case. Instead, for a function y: R" Rm and a point Y E R", the derivative is defined to be the linear map h: R - Rm best approximating how y changes near y(Y). So the geometry studied above applies. We will close this Topic by remarking how this point of view makes clear an often-misunderstood, but very important, result about derivatives: the deriva- tive of the composition of two functions is computed by using the Chain Rule for combining their derivatives. Recall that (with suitable conditions on the two functions) d (g of ) dg df dx(x) dx(f(x)) dx(x) so that, for instance, the derivative of sin(x2 + 3x) is cos(x2 + 3x) - (2x + 3). How does this combination arise? From this picture of the action of the composition.  Topic: Geometry of Linear Maps 279 The first map f dilates the neighborhood of x by a factor of df dx(x) and the second map g dilates some more, this time dilating a neighborhood of f(x) by a factor of dg dx and as a result, the composition dilates by the product of these two. In higher dimensions the map expressing how a function changes near a point is a linear map, and is expressed as a matrix. (So we understand the basic geometry of higher-dimensional derivatives; they are compositions of dila- tions, interchanges of axes, shears, and a projection). And, the Chain Rule just multiplies the matrices. Thus, the geometry of linear maps h: R" - Rm is appealing both for its simplicity and for its usefulness. Exercises 1 Let h: R2 - R2 be the transformation that rotates vectors clockwise by 7r/4 ra- dians. (a) Find the matrix H representing h with respect to the standard bases. Use Gauss' method to reduce H to the identity. (b) Translate the row reduction to to a matrix equation TjTyi _ ... T1H = I (the prior item shows both that H is similar to I, and that no column operations are needed to derive I from H). (c) Solve this matrix equation for H. (d) Sketch the geometric effect matrix, that is, sketch how H is expressed as a combination of dilations, flips, skews, and projections (the identity is a trivial projection). 2 What combination of dilations, flips, skews, and projections produces a rotation counterclockwise by 27r/3 radians? 3 What combination of dilations, flips, skews, and projections produces the map h: R3 - R3 represented with respect to the standard bases by this matrix? 1 2 1 3 6 0 1 2 2 4 Show that any linear transformation of Rl is the map that multiplies by a scalar x - kx. 5 Show that for any permutation (that is, reordering) p of the numbers 1, ..., n, the map (x1) p(1) can be accomplished with a composition of maps, each of which only swaps a single pair of coordinates. Hint: it can be done by induction on ni. (Remark: in the fourth  280 Chapter Three. Maps Between Spaces chapter we will show this and we will also show that the parity of the number of swaps used is determined by p. That is, although a particular permutation could be accomplished in two different ways with two different numbers of swaps, either both ways use an even number of swaps, or both use an odd number.) 6 Show that linear maps preserve the linear structures of a space. (a) Show that for any linear map from R' to R', the image of any line is a line. The image may be a degenerate line, that is, a single point. (b) Show that the image of any linear surface is a linear surface. This generalizes the result that under a linear map the image of a subspace is a subspace. (c) Linear maps preserve other linear ideas. Show that linear maps preserve "betweeness": if the point B is between A and C then the image of B is between the image of A and the image of C. 7 Use a picture like the one that appears in the discussion of the Chain Rule to answer: if a function f : R - R has an inverse, what's the relationship between how the function-locally, approximately-dilates space, and how its inverse dilates space (assuming, of course, that it has an inverse)?  Topic: Markov Chains 281 Topic: Markov Chains Here is a simple game: a player bets on coin tosses, a dollar each time, and the game ends either when the player has no money left or is up to five dollars. If the player starts with three dollars, what is the chance that the game takes at least five flips? Twenty-five flips? At any point, this player has either $0, or $1, ..., or $5. We say that the player is in the state so, si, ..., or s5. A game consists of moving from state to state. For instance, a player now in state s3 has on the next flip a .5 chance of moving to state s2 and a .5 chance of moving to s4. The boundary states are a bit different; once in state so or state s5, the player never leaves. Let pi(n) be the probability that the player is in state s2 after n flips. Then, for instance, we have that the probability of being in state so after flip n +1 is Po (n + 1) = po (n) + 0.5 - pi(n). This matrix equation sumarizes. (1 .5 0 0 0 0\(/po(n)\ (po(n +1)\ 0 0 .5 0 0 0 p1(n) (P1(n + 1) 0 .5 0 .5 0 0 P2i(n) _ p2(n + 1) 0 0 .5 0 .5 0 P3(n) p3(n + 1 0 0 0 .5 0 0 p4(n) p4(n + 1) 0 0 0 0 .5 1 p(n)/ \p5(n + 1) With the initial condition that the player starts with three dollars, calculation gives this. n=0 n=1 n=2 n=3 n=4 --- n=24 0 /00 .125 .125 .39600 0 0 .25 0 .1875 .00276 0 .5 0 .375 0 0 1 0 .5 0 .3125 .00447 0 .5 0 .25 0 0 0 \0.25 \.25 .375 .59676 As this computational exploration suggests, the game is not likely to go on for long, with the player quickly ending in either state so or state s5. For instance, after the fourth flip there is a probability of 0.50 that the game is already over. (Because a player who enters either of the boundary states never leaves, they are said to be absorbtive.) This game is an example of a Markov chain, named for A.A. Markov, who worked in the first half of the 1900's. Each vector of p's is a probability vector and the matrix is a transition matrix. The notable feature of a Markov chain model is that it is historyless in that with a fixed transition matrix, the next state depends only on the current state, not on any prior states. Thus a player, say, who arrives at s2 by starting in state s3, then going to state s2, then to si, and then to s2 has at this point exactly the same chance of moving next to state 33 as does a player whose history was to start in 33, then go to 34, and to 33, and then to s2.  282 Chapter Three. Maps Between Spaces Here is a Markov chain from sociology. A study ([Macdonald &Ridge], p. 202) divided occupations in the United Kingdom into upper level (executives and professionals), middle level (supervisors and skilled manual workers), and lower level (unskilled). To determine the mobility across these levels in a gen- eration, about two thousand men were asked, "At which level are you, and at which level was your father when you were fourteen years old?" This equation summarizes the results. .60 .29 .16 (Pu(r)\ (pu(n + 1) .26 .37 .27 (pM(rn)J -(PMl+1) .14 .34 .57 \p(n)P(n+1) For instance, a child of a lower class worker has a .27 probability of growing up to be middle class. Notice that the Markov model assumption about history seems reasonable-we expect that while a parent's occupation has a direct influence on the occupation of the child, the grandparent's occupation has no such direct influence. With the initial distribution of the respondents's fathers given below, this table lists the distributions for the next five generations. n=0 n=1 n=2 n=3 n=4 n=5 .12 .23 .29 .31 .32 .33 .32 .34 .34 .34 .33 .33 .56 .42 .37 .35 .34 .34 One more example, from a very important subject, indeed. The World Series of American baseball is played between the team winning the American League and the team winning the National League (we follow [Brunner] but see also [Woodside]). The series is won by the first team to win four games. That means that a series is in one of twenty-four states: 0-0 (no games won yet by either team), 1-0 (one game won for the American League team and no games for the National League team), etc. If we assume that there is a probability p that the American League team wins each game then we have the following transition matrix. 0 0 0 0 ... po-o (n) po-o (n + 1) p 0 0 0 ... p1_o0(n) p1-o(n + 1) 1- p 0 0 0 ... po_1(n) po_1(n + 1) 0 p 0 0 ... p2-O (n) -=p2-o (n + 1) 0 1- p p 0 ... p1_1(n) p1-1(n + 1) 0 0 1 - p 0 ... po-2(n) po-2(n + 1) An especially interesting special case is p = 0.50; this table lists the resulting components of the rn= 0 through rn= 7 vectors. (The code to generate this table in the computer algebra system Octave follows the exercises.)  Topic: Markov Chains 283 n 0 n=1 n=2 n=3 rn=4 rn=5 rn=6 n=7 i 0 0.5 0.5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0.5 0.25 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.125 0.375 0.375 0.125 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0625 0.25 0.375 0.25 0.0625 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0625 0 0 0 0.0625 0.125 0.3125 0.3125 0.125 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0625 0 0 0 0.0625 0.125 0 0 0.125 0.15625 0.3125 0.15625 0 0 0 0 0 0 0 0 0 0 0 0 0.0625 0 0 0 0.0625 0.125 0 0 0.125 0.15625 0 0.15625 0.15625 0.15625 Note that evenly-matched teams are likely to have a long series-there is a probability of 0.625 that the series goes at least six games. One reason for the inclusion of this Topic is that Markov chains are one of the most widely-used applications of matrix operations. Another reason is that it provides an example of the use of matrices where we do not consider the significance of the maps represented by the matrices. For more on Markov chains, there are many sources such as [Kemeny Snell] and [Iosifescu]. Exercises Use a computer for these problems. You can, for instance, adapt the Octave script given below. 1 These questions refer to the coin-flipping game. (a) Check the computations in the table at the end of the first paragraph. (b) Consider the second row of the vector table. Note that this row has alter- nating 0's. Must p1(j) be 0 when j is odd? Prove that it must be, or produce a counterexample. (c) Perform a computational experiment to estimate the chance that the player ends at five dollars, starting with one dollar, two dollars, and four dollars. 2 We consider throws of a die, and say the system is in state s2 if the largest number yet appearing on the die was i. (a) Give the transition matrix. (b) Start the system in state Si, and run it for five throws. What is the vector at the end?  284 Chapter Three. Maps Between Spaces [Feller], p. 424 3 There has been much interest in whether industries in the United States are moving from the Northeast and North Central regions to the South and West, motivated by the warmer climate, by lower wages, and by less unionization. Here is the transition matrix for large firms in Electric and Electronic Equipment ([Kelton], p. 43) NE NC S W Z NE 0.787 0 0 0.111 0.102 NC 0 0.966 0.034 0 0 S 0 0.063 0.937 0 0 W 0 0 0.074 0.612 0.314 Z 0.021 0.009 0.005 0.010 0.954 For example, a firm in the Northeast region will be in the West region next year with probability 0.111. (The Z entry is a "birth-death" state. For instance, with probability 0.102 a large Electric and Electronic Equipment firm from the North- east will move out of this system next year: go out of business, move abroad, or move to another category of firm. There is a 0.021 probability that a firm in the National Census of Manufacturers will move into Electronics, or be created, or move in from abroad, into the Northeast. Finally, with probability 0.954 a firm out of the categories will stay out, according to this research.) (a) Does the Markov model assumption of lack of history seem justified? (b) Assume that the initial distribution is even, except that the value at Z is 0.9. Compute the vectors for n = 1 through n = 4. (c) Suppose that the initial distribution is this. NE NC S W Z 0.0000 0.6522 0.3478 0.0000 0.0000 Calculate the distributions for n = 1 through n = 4. (d) Find the distribution for n = 50 and n = 51. Has the system settled down to an equilibrium? 4 This model has been suggested for some kinds of learning ([Wickens], p. 41). The learner starts in an undecided state sj. Eventually the learner has to decide to do either response A (that is, end in state SA) or response B (ending in sB). However, the learner doesn't jump right from being undecided to being sure A is the correct thing to do (or B). Instead, the learner spends some time in a "tentative-A" state, or a "tentative-B" state, trying the response out (denoted here tA and tB). Imagine that once the learner has decided, it is final, so once sA or sB is entered it is never left. For the other state changes, imagine a transition is made with probability p in either direction. (a) Construct the transition matrix. (b) Take p = 0.25 and take the initial vector to be 1 at su. Run this for five steps. What is the chance of ending up at SA? (c) Do the same for p = 0.20. (d) Graph p versus the chance of ending at sA. Is there a threshold value for p, above which the learner is almost sure not to take longer than five steps? 5 A certain town is in a certain country (this is a hypothetical problem). Each year ten percent of the town dwellers move to other parts of the country. Each year one percent of the people from elsewhere move to the town. Assume that there are two states ST, living in town, and so, living elsewhere. (a) Construct the transistion matrix.  Topic: Markov Chains 285 (b) Starting with an initial distribution ST= 0.3 and sC= 0.7, get the results for the first ten years. (c) Do the same for ST = 0.2. (d) Are the two outcomes alike or different? 6 For the World Series application, use a computer to generate the seven vectors for p = 0.55 and p = 0.6. (a) What is the chance of the National League team winning it all, even though they have only a probability of 0.45 or 0.40 of winning any one game? (b) Graph the probability p against the chance that the American League team wins it all. Is there a threshold value-a p above which the better team is essentially ensured of winning? (Some sample code is included below.) 7 A Markov matrix has each entry positive and each column sums to 1. (a) Check that the three transistion matrices shown in this Topic meet these two conditions. Must any transition matrix do so? (b) Observe that if Ao = v1 and A=1 =v2 then A2 is a transition matrix from 60 to V2. Show that a power of a Markov matrix is also a Markov matrix. (c) Generalize the prior item by proving that the product of two appropriately- sized Markov matrices is a Markov matrix. Computer Code This script markov.m for the computer algebra system Octave was used to generate the table of World Series outcomes. (The sharp character # marks the rest of a line as a comment.) # Octave script file to compute chance of World Series outcomes. function w = markov(p,v) q = 1-p; A=[0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 0-0 p,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 1-0 q,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 0-1_ O,p,O,O,O,O, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 2-0 0,q,p,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 1-1 0,0,q,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 0-2__ 0,0,0,p,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 3-0 0,0,0,q,p,0, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 2-1 0,0,0,0,q,p, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 1-2_ 0,0,0,0,0,q, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 0-3 0,0,0,0,0,0, p,0,0,0,1,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 4-0 0,0,0,0,0,0, q,p,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 3-1__ 0,0,0,0,0,0, 0,q,p,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 2-2 0,0,0,0,0,0, 0,0,q,p,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 1-3 0,0,0,0,0,0, 0,0,0,q,0,0, 0,0,1,0,0,0, 0,0,0,0,0,0; # 0-4_ 0,0,0,0,0,0, O,O,O,O,O,p, 0,0,0,1,0,0, 0,0,0,0,0,0; # 4-1 0,0,0,0,0,0, 0,0,0,0,0,q, p,O,O,O,O,O, 0,0,0,0,0,0; # 3-2 0,0,0,0,0,0, 0,0,0,0,0,0, q,p,0,0,0,0, 0,0,0,0,0,0; # 2-3__ 0,0,0,0,0,0, 0,0,0,0,0,0, 0,q,0,0,0,0, 1,0,0,0,0,0; # 1-4 0,0,0,0,0,0, 0,0,0,0,0,0, O,O,O,O,p,O, 0,1,0,0,0,0; # 4-2 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,q,p, 0,0,0,0,0,0; # 3-3_ 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,q, 0,0,0,1,0,0; # 2-4  286 Chapter Three. Maps Between Spaces 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,p,0,1,0; # 4-3 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,q,0,0,1]; # 3-4 w = A * v; endfunct ion Then the Octave session was this. > v0=[1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0] > p=.5 > vl=markov(p,v0) > v2=markov(p,vl) Translating to another computer algebra system should be easy all have com- mands similar to these.  Topic: Orthonormal Matrices 287 Topic: Orthonormal Matrices In The Elements, Euclid considers two figures to be the same if they have the same size and shape. That is, the triangles below are not equal because they are not the same set of points. But they are congruent-essentially indistin- guishable for Euclid's purposes because we can imagine picking the plane up, sliding it over and rotating it a bit, although not warping or stretching it, and then putting it back down, to superimpose the first figure on the second. (Euclid never explicitly states this principle but he uses it often [Casey].) P2 Pi Qi Q3 In modern terminology, "picking the plane up ..." means considering a map from the plane to itself. Euclid has limited consideration to only certain trans- formations of the plane, ones that may possibly slide or turn the plane but not bend or stretch it. Accordingly, we define a map f: R2 - R2 to be distance- preserving or a rigid motion or an isometry, if for all points P1, P2 E R2, the distance from f(P1) to f(P2) equals the distance from P1 to P2. We also define a plane figure to be a set of points in the plane and we say that two figures are congruent if there is a distance-preserving map from the plane to itself that carries one figure onto the other. Many statements from Euclidean geometry follow easily from these defini- tions. Some are: (i) collinearity is invariant under any distance-preserving map (that is, if P1, P2, and P3 are collinear then so are f(P1), f(P2), and f(P3)), (ii) betweeness is invariant under any distance-preserving map (if P2 is between P1 and P3 then so is f(P2) between f(P1) and f(P3)), (iii) the property of being a triangle is invariant under any distance-preserving map (if a figure is a triangle then the image of that figure is also a triangle), (iv) and the property of being a circle is invariant under any distance-preserving map. In 1872, F. Klein suggested that Euclidean geometry can be characterized as the study of prop- erties that are invariant under these maps. (This forms part of Klein's Erlanger Program, which proposes the organizing principle that each kind of geometry Euclidean, projective, etc.-can be described as the study of the properties that are invariant under some group of transformations. The word 'group' here means more than just 'collection', but that lies outside of our scope.) We can use linear algebra to characterize the distance-preserving maps of the plane. First, there are distance-preserving transformations of the plane that are not linear. The obvious example is this translation. (,x, 1- x+1  288 Chapter Three. Maps Between Spaces However, this example turns out to be the only example, in the sense that if f is distance-preserving and sends 0 to %o then the map v - f(v) -67o is linear. That will follow immediately from this statement: a map t that is distance-preserving and sends 0 to itself is linear. To prove this equivalent statement, let t((1) = ) t(e2) = for some a, b, c, d E R. Then to show that t is linear, we can show that it can be represented by a matrix, that is, that t acts in this way for all x, y e R. X t ax+cy v = +d(*) Recall that if we fix three non-collinear points then any point in the plane can be described by giving its distance from those three. So any point v in the domain is determined by its distance from the three fixed points 0, e1, and C2 Similarly, any point t(6) in the codomain is determined by its distance from the three fixed points t(0), t(e1), and t(e2) (these three are not collinear because, as mentioned above, collinearity is invariant and 0, e1, and e2 are not collinear). In fact, because t is distance-preserving, we can say more: for the point v in the plane that is determined by being the distance do from 0, the distance d1 from e1, and the distance d2 from e2, its image t(6) must be the unique point in the codomain that is determined by being do from t(0), d1 from t(e1), and d2 from t(2). Because of the uniqueness, checking that the action in (*) works in the do, d1, and d2 cases dist(Q , 0) = dist(t(Q)),t(0)) = dist((x+jy ,) (t is assumed to send 0 to itself) dist((x , e1) = dist(t((x ), t(e1)) = dist( a y a) and dist ((x), 2= dist (t ( ) , t (2))= dist(xCy( s)) suffices to show that (*) describes t. Those checks are routine. Thus, any distance-preserving f: R2 -R2 can be written f(v) = t(i) + o for some constant vector 7o and linear map t that is distance-preserving. Not every linear map is distance-preserving, for example, H 2v does not preserve distances. But there is a neat characterization: a linear transformation t of the plane is distance-preserving if and only if both t(1)| =t(e2)|= 1 and t(e1) is orthogonal to t(e2). The 'only if' half of that statement is easy because t is distance-preserving it must preserve the lengths of vectors, and because t is distance-preserving the Pythagorean theorem shows that it must preserve  Topic: Orthonormal Matrices 289 orthogonality. For the 'if' half, it suffices to check that the map preserves lengths of vectors, because then for all p and qithe distance between the two is preserved t(17- q)| =t(p) - t(q)| =||- . For that check, let v6=x t(e1) =a t(e2) = c and, with the 'if' assumptions that a2 + b2 = c2 + d2 = 1 and ac + bd = 0 we have this. t 2= (ax + cy)2 + (bx + dy)2 = a2x2 + 2acxy + c2y2 + b2x2 + 2bdxy + d2y2 = x2(a2 + b2) + y2(c2 + d2) + 2xy(ac + bd) = x2 + y2 V22 One thing that is neat about this characterization is that we can easily recognize matrices that represent such a map with respect to the standard bases. Those matrices have that when the columns are written as vectors then they are of length one and are mutually orthogonal. Such a matrix is called an orthonormal matrix or orthogonal matrix (the second term is commonly used to mean not just that the columns are orthogonal, but also that they have length one). We can use this insight to delimit the geometric actions possible in distance- preserving maps. Because t(6)|| =|, any v is mapped by t to lie somewhere on the circle about the origin that has radius equal to the length of v. In particular, e1 and e2 are mapped to the unit circle. What's more, once we fix the unit vector e1 as mapped to the vector with components a and b then there are only two places where e2 can be mapped if that image is to be perpendicular to the first vector: one where e2 maintains its position a quarter circle clockwise from e1 -b b - RepS2E2 ,(t) = b a) and one where is is mapped a quarter circle counterclockwise. (a b Rep82,28(t) = b -a) -a)  290 Chapter Three. Maps Between Spaces We can geometrically describe these two cases. Let 0 be the angle between the x-axis and the image of e1, measured counterclockwise. The first matrix above represents, with respect to the standard bases, a rotation of the plane by 0 radians. -b x) t xcos 0- y sin0 y xsin+ycos0 The second matrix above represents a reflection of the plane through the line bisecting the angle between e1 and t(e1). x) (xcos0 + ysin0 y x sin G - y cos 0 -a (This picture shows e1 reflected up into the first quadrant and e2 reflected down into the fourth quadrant.) Note again: the angle between e1 and e2 runs counterclockwise, and in the first map above the angle from t(e1) to t(e2) is also counterclockwise, so the orientation of the angle is preserved. But in the second map the orientation is reversed. A distance-preserving map is direct if it preserves orientations and opposite if it reverses orientation. So, we have characterized the Euclidean study of congruence: it considers, for plane figures, the properties that are invariant under combinations of (i) a rotation followed by a translation, or (ii) a reflection followed by a translation (a reflection followed by a non-trivial translation is a glide reflection). Another idea, besides congruence of figures, encountered in elementary ge- ometry is that figures are similar if they are congruent after a change of scale. These two triangles are similar since the second is the same shape as the first, but 3/2-ths the size. P2 Q2 Pi Qi Q3 From the above work, we have that figures are similar if there is an orthonormal matrix T such that the points q on one are derived from the points ] by q (kT)6 + o for some nonzero real number k and constant vector fo  Topic: Orthonormal Matrices 291 Although many of these ideas were first explored by Euclid, mathematics is timeless and they are very much in use today. One application of the maps studied above is in computer graphics. We can, for example, animate this top view of a cube by putting together film frames of it rotating; that's a rigid motion. Frame 1 Frame 2 Frame 3 We could also make the cube appear to be moving away from us by producing film frames of it shrinking, which gives us figures that are similar. Frame 1: Frame 2: Frame 3: Computer graphics incorporates techniques from linear algebra in many other ways (see Exercise 4). So the analysis above of distance-preserving maps is useful as well as inter- esting. A beautiful book that explores some of this area is [Weyl]. More on groups, of transformations and otherwise, can be found in any book on Modern Algebra, for instance [Birkhoff & MacLane]. More on Klein and the Erlanger Program is in [Yaglom]. Exercises 1 Decide if each of these is an orthonormal matrix. ( 1/v 3 -1/ > b 1/v/5-3- 1/1/5 (b) -1/v/5 -1/v/5) 1//5 - /2/ /5> (c) y-2/3 -1// 3) 2 Write down the formula for each of these distance-preserving maps. (a) the map that rotates 7r/6 radians, and then translates by e2 (b) the map that reflects about the line y = 2x (c) the map that reflects about y = -2x and translates over 1 and up 1 3 (a) The proof that a map that is distance-preserving and sends the zero vector to itself incidentally shows that such a map is one-to-one and onto (the point in the domain determined by do, di, and d2 corresponds to the point in the codomain determined by those three). Therefore any distance-preserving map has an inverse. Show that the inverse is also distance-preserving. (b) Prove that congruence is an equivalence relation between plane figures. 4 In practice the matrix for the distance-preserving linear transformation and the translation are often combined into one. Check that these two computations yield the same first two components. a c x z, e1 a ce z +h d f y  292 Chapter Three. Maps Between Spaces (These are homogeneous coordinates; see the Topic on Projective Geometry). 5 (a) Verify that the properties described in the second paragraph of this Topic as invariant under distance-preserving maps are indeed so. (b) Give two more properties that are of interest in Euclidean geometry from your experience in studying that subject that are also invariant under distance- preserving maps. (c) Give a property that is not of interest in Euclidean geometry and is not invariant under distance-preserving maps.  Determinants In the first chapter of this book we considered linear systems and we picked out the special case of systems with the same number of equations as unknowns, those of the form Tx = b where T is a square matrix. We noted a distinction between two classes of T's. While such systems may have a unique solution or no solutions or infinitely many solutions, if a particular T is associated with a unique solution in any system, such as the homogeneous system b = 0, then T is associated with a unique solution for every b. We call such a matrix of coefficients 'nonsingular'. The other kind of T, where every linear system for which it is the matrix of coefficients has either no solution or infinitely many solutions, we call 'singular'. Through the second and third chapters the value of this distinction has been a theme. For instance, we now know that nonsingularity of an n x n matrix T is equivalent to each of these: " a system Tx = b has a solution, and that solution is unique; " Gauss-Jordan reduction of T yields an identity matrix; " the rows of T form a linearly independent set; " the columns of T form a basis for RJ; " any map that T represents is an isomorphism; " an inverse matrix T-1 exists. So when we look at a particular square matrix, the question of whether it is nonsingular is one of the first things that we ask. This chapter develops a formula to determine this. (Since we will restrict the discussion to square matrices, in this chapter we will usually simply say 'matrix' in place of 'square matrix'.) More precisely, we will develop infinitely many formulas, one for 1 x 1 ma- trices, one for 2 x 2 matrices, etc. Of course, these formulas are related-that is, we will develop a family of formulas, a scheme that describes the formula for each size. 293  294 Chapter Four. Determinants I Definition For 1 x 1 matrices, determining nonsingularity is trivial. (a) is nonsingular iff a 0 The 2 x 2 formula came out in the course of developing the inverse. (a )is nonsingular if ad - bc # 0 c d The 3 x 3 formula can be produced similarly (see Exercise 9). a b c d e f is nonsingular if aei + bf g + cdh - hf a - idb - gec # 0 9 h i With these cases in mind, we posit a family of formulas, a, ad - bc, etc. For each n the formula gives rise to a determinant function detnxn : Mx - R such that an n x n matrix T is nonsingular if and only if detnxn (T) # 0. (We usually omit the subscript because if T is n x n then 'det(T)' could only mean 'detnxn(T)'.) I.1 Exploration This subsection is optional. It briefly describes how an investigator might come to a good general definition, which is given in the next subsection. The three cases above don't show an evident pattern to use for the general n x n formula. We may spot that the 1 x 1 term a has one letter, that the 2 x 2 terms ad and bc have two letters, and that the 3 x 3 terms aei, etc., have three letters. We may also observe that in those terms there is a letter from each row and column of the matrix, e.g., the letters in the cdh term c d h come one from each row and one from each column. But these observations perhaps seem more puzzling than enlightening. For instance, we might wonder why some of the terms are added while others are subtracted. A good problem solving strategy is to see what properties a solution must have and then search for something with those properties. So we shall start by asking what properties we require of the formulas. At this point, our primary way to decide whether a matrix is singular is to do Gaussian reduction and then check whether the diagonal of resulting echelon form matrix has any zeroes (that is, to check whether the product down the diagonal is zero). So, we may expect that the proof that a formula  Section I. Definition 295 determines singularity will involve applying Gauss' method to the matrix, to show that in the end the product down the diagonal is zero if and only if the determinant formula gives zero. This suggests our initial plan: we will look for a family of functions with the property of being unaffected by row operations and with the property that a determinant of an echelon form matrix is the product of its diagonal entries. Under this plan, a proof that the functions determine singularity would go, "Where T - -" -- T is the Gaussian reduction, the determinant of T equals the determinant of T (because the determinant is unchanged by row operations), which is the product down the diagonal, which is zero if and only if the matrix is singular". In the rest of this subsection we will test this plan on the 2x2 and 3x3 determinants that we know. We will end up modifying the "unaffected by row operations" part, but not by much. The first step in checking the plan is to test whether the 2 x 2 and 3 x 3 formulas are unaffected by the row operation of pivoting: if kp ±p T - T then is det(T) = det(T)? This check of the 2x 2 determinant after the kp1 + P2 operation det((b ) =a kb+d) -(ka+c)b=ad-bc (ka+c kb+d) ( )( ) shows that it is indeed unchanged, and the other 2 x 2 pivot kp2 + p1 gives the same result. The 3 x 3 pivot kp3 + P2 leaves the determinant unchanged a b c det( kg+d kh+e ki+f )=a kh+eji+b(ki+f)g+c(kg+d)h g h i - h(ki + fa-i(kg + d)b - g(kh+ e)c aei+bfg+cdh-hfa-idb-gec as do the other 3 x 3 pivot operations. So there seems to be promise in the plan. Of course, perhaps the 4 x 4 determinant formula is affected by pivoting. We are exploring a possibility here and we do not yet have all the facts. Nonetheless, so far, so good. The next step is to compare det(T) with det(T) for the operation T P ijT of swapping two rows. The 2 x 2 row swap p1 - P2 det d=( ) = b -ad does not yield ad - bc. This p1 - p3 swap inside of a 3 x 3 matrix g h i det ( d e f 1 = gec+ h fa +idb - b fgo-cdh - aei  296 Chapter Four. Determinants also does not give the same determinant as before the swap-again there is a sign change. Trying a different 3 x 3 swap p1 <-> P2 d e f det( a b c ) dbi + ecg + fah - hcd - iae - gbf also gives a change of sign. Thus, row swaps appear to change the sign of a determinant. This mod- ifies our plan, but does not wreck it. We intend to decide nonsingularity by considering only whether the determinant is zero, not by considering its sign. Therefore, instead of expecting determinants to be entirely unaffected by row operations, will look for them to change sign on a swap. To finish, we compare det(T) to det(T) for the operation T-AT of multiplying a row by a scalar k / 0. One of the 2 x 2 cases is det( (kc kd>= akd) - ( kkc)b =k (ad - bc) and the other case has the same result. Here is one 3 x 3 case a b c det( d e f )=ae(ki) + bf(kg) + cd(kh) \kg kh kij -(kh)fa-(ki)db-(kg)ec k- (aei + bfg + cdh - hf a - idb - gec) and the other two are similar. These lead us to suspect that multiplying a row by k multiplies the determinant by k. This fits with our modified plan because we are asking only that the zeroness of the determinant be unchanged and we are not focusing on the determinant's sign or magnitude. In summary, to develop the scheme for the formulas to compute determi- nants, we look for determinant functions that remain unchanged under the pivoting operation, that change sign on a row swap, and that rescale on the rescaling of a row. In the next two subsections we will find that for each n such a function exists and is unique. For the next subsection, note that, as above, scalars come out of each row without affecting other rows. For instance, in this equality 3 3 9 1 1 3 det( 2 1 1 )=-3-det( 2 1 1 ) 5 10 -5 5 10 -5 the 3 isn't factored out of all three rows, only out of the top row. The determi- nant acts on each row of independently of the other rows. When we want to use this property of determinants, we shall write the determinant as a function of the rows: 'detp-1,1p2,. ... p n), instead of as 'det(T)' or 'det(ti,1, ... ,)'. The definition of the determinant that starts the next subsection is written in this way.  Section I. Definition 297 Exercises / 1.1 Evaluate the determinant of each. 3 1 2 0 1 4 0 1 (a) _-1 1 (b) 3 1 1 (c) 0 0 1 -1 0 1 1 3 -1 1.2 Evaluate the determinant of each. 2 0 2 1 1 2 3 4 (a) -1 3 (b) 0 5 -2 (c) 5 6 7 1 -3 4 8 9 1 / 1.3 Verify that the determinant of an upper-triangular 3 x 3 matrix is the product down the diagonal. a b c det ( 0 e f )= aei 0 0 i Do lower-triangular matrices work the same way? / 1.4 Use the determinant to decide if each is singular or nonsingular. (a) 2 1 (b) 0 1 (c) 4 2 ()3 1 (b) - (c 2 1 1.5 Singular or nonsingular? Use the determinant to decide. 2 1 1 1 0 1 2 1 0 (a) 3 2 2 (b) 2 1 1 (c)(3 -2 0 0 1 4 4 1 3 1 0 0 / 1.6 Each pair of matrices differ by one row operation. Use this operation to compare det(A) with det(B). (a) A 12B 1 21 3 1 0 3 1 0 (b)A= 0 0 1 B= 0 1 2 0 1 2 0 0 1 1 -1 3 1 -1 3 (c) A= 2 2 -6 B= 1 1 -3 1 0 4 1 0 4 1.7 Show this. 1 1 1 det( a b c )=(b-a)(c-a)(c-b) a2 b2 c2 / 1.8 Which real numbers x make this matrix singular? (12_x -z4 8 8 -x 1.9 Do the Gaussian reduction to check the formula for 3x3 matrices stated in the preamble to this section. a b c d e f is nonsingular iff aei + bf g + cdh - hf a - idb - gec 0 1.10 Show that the equation of a line in R2 thru (xi, yi) and (x2, y2) is expressed by this determinant. S y 1 det((x1 y 1 1) =0 z1Ifx2  298 Chapter Four. Determinants / 1.11 Many people know this mnemonic for the determinant of a 3 x 3 matrix: first repeat the first two columns and then sum the products on the forward diagonals and subtract the products on the backward diagonals. That is, first write hi,1 hi,2 hi,3 hi,1 hi,2 h2,1 h2,2 h2,3 h2,1 h2,2 h3,1 h3,2 h3,3 h3,1 h3,2/ and then calculate this. h1,1h2,2h3,3 + h1,2h2,3h3,1 + h1,3h2,1h3,2 -h3,1h2,2hi,3 - h3,2h2,3hi,1 - h3,3h2,1hi,2 (a) Check that this agrees with the formula given in the preamble to this section. (b) Does it extend to other-sized determinants? 1.12 The cross product of the vectors z= 2 Y= y2 x3 (y3 is the vector computed as this determinant. f21 2 3 eI e x 2J/= det( z1 z2 z3 ) y1 Y2 Y3 Note that the first row is composed of vectors, the vectors from the standard basis for R3. Show that the cross product of two vectors is perpendicular to each vector. 1.13 Prove that each statement holds for 2 x 2 matrices. (a) The determinant of a product is the product of the determinants det(ST)= det(S) - det(T). (b) If T is invertible then the determinant of the inverse is the inverse of the determinant det(T-1) = (det(T) )-1. Matrices T and T' are similar if there is a nonsingular matrix P such that T' PTP-1. (This definition is in Chapter Five.) Show that similar 2x2 matrices have the same determinant. / 1.14 Prove that the area of this region in the plane (Y2) (1 (Y1 is equal to the value of this determinant. det((Xi x2) y1 Y2 Compare with this. det((x2 1) y2 y1 1.15 Prove that for 2x 2 matrices, the determinant of a matrix equals the determi- nant of its transpose. Does that also hold for 3 x 3 matrices? / 1.16 Is the determinant function linear is det(x-T+y -S) x= -det(T)+y -det(S)? 1.17 Show that if A is 3 x3 then det(c - A) = 3 det(A) for any scalar c.  Section I. Definition 299 1.18 Which real numbers 0 make cosO -sin0 sinO cos 9 singular? Explain geometrically. ? 1.19 If a third order determinant has elements 1, 2, ..., 9, what is the maximum value it may have? [Am. Math. Mon., Apr. 1955] 1.2 Properties of Determinants As described above, we want a formula to determine whether an n x n matrix is nonsingular. We will not begin by stating such a formula. Instead, we will begin by considering the function that such a formula calculates. We will define the function by its properties, then prove that the function with these proper- ties exist and is unique and also describe formulas that compute this function. (Because we will show that the function exists and is unique, from the start we will say 'det(T)' instead of 'if there is a determinant function then det(T)' and 'the determinant' instead of 'any determinant'.) 2.1 Definition A n x n determinant is a function det: M *x, - R such that (1) det(p1, ..., k -i + pj,...,gn) = det(p1, ..., g, ..., n) for i #j (2) det( i, ...,g , ..., i,..., n) = - det( i, ..., i,...,g , ..., n) fori (3) det(p1, ... , ki, ... , ,On) = _ det(01, ... , pi, ... , pn) for k#0 (4) det(I) = 1 where I is an identity matrix (the 1's are the rows of the matrix). We often write ITI for det(T). 2.2 Remark Property (2) is redundant since T Q4 Pj3L4T swaps rows i and j. It is listed only for convenience. The first result shows that a function satisfying these conditions gives a criteria for nonsingularity. (Its last sentence is that, in the context of the first three conditions, (4) is equivalent to the condition that the determinant of an echelon form matrix is the product down the diagonal.) 2.3 Lemma A matrix with two identical rows has a determinant of zero. A matrix with a zero row has a determinant of zero. A matrix is nonsingular if and only if its determinant is nonzero. The determinant of an echelon form matrix is the product down its diagonal.  300 Chapter Four. Determinants PROOF. To verify the first sentence, swap the two equal rows. The sign of the determinant changes, but the matrix is unchanged and so its determinant is unchanged. Thus the determinant is zero. The second sentence is clearly true if the matrix is 1 x 1. If it has at least two rows then apply property (1) of the definition with the zero row as row j and with k =1. det(..., ,...,6,...) =det(..., I,..., + 0,...) The first sentence of this lemma gives that the determinant is zero. For the third sentence, where T -- --- -> T is the Gauss-Jordan reduction, by the definition the determinant of T is zero if and only if the determinant of T is zero (although they could differ in sign or magnitude). A nonsingular T Gauss-Jordan reduces to an identity matrix and so has a nonzero determinant. A singular T reduces to a T with a zero row; by the second sentence of this lemma its determinant is zero. Finally, for the fourth sentence, if an echelon form matrix is singular then it has a zero on its diagonal, that is, the product down its diagonal is zero. The third sentence says that if a matrix is singular then its determinant is zero. So if the echelon form matrix is singular then its determinant equals the product down its diagonal. If an echelon form matrix is nonsingular then none of its diagonal entries is zero so we can use property (3) of the definition to factor them out (again, the vertical bars .|. indicate the determinant operation). ti,1 ti,2 tiln 1 ti,2/ti,1 ti,n/ti,1 0 t2,2 t2,n 0 1 t2,n/t2,2 0 in,n 0 1 Next, the Jordan half of Gauss-Jordan elimination, using property (1) of the definition, leaves the identity matrix. 1 0 0 0 1 0 = t1,1 - t2,2 -.-.- n,n -=.ti1,1.-t2,2 -.-.- n,n - 1 0 1 Therefore, if an echelon form matrix is nonsingular then its determinant is the product down its diagonal. QED That result gives us a way to compute the value of a determinant function on a matrix. Do Gaussian reduction, keeping track of any changes of sign caused by row swaps and any scalars that are factored out, and then finish by multiplying down the diagonal of the echelon form result. This procedure takes the same time as Gauss' method and so is sufficiently fast to be practical on the size matrices that we see in this book.  Section I. Definition 301 2.4 Example Doing 2 x 2 determinants 2 4 2 4 -1 3 0 5 with Gauss' method won't give a big savings because the 2 x 2 determinant formula is so easy. However, a 3 x 3 determinant is usually easier to calculate with Gauss' method than with the formula given earlier. 2 2 6 2 2 6 2 2 6 4 4 3 =0 0 -9=-0 -3 5 =-54 0 -3 5 0 -3 5 0 0 -9 2.5 Example Determinants of matrices any bigger than 3x3 are almost always most quickly done with this Gauss' method procedure. 1 0 1 3 1 0 1 3 1 0 1 3 0 1 1 4_ 0 1 1 4 0 1 1 4 _ 0 0 0 5 0 0 0 5 0 0 -1 -3=(-5)5 0 1 0 1 0 0 -1 -3 0 0 0 5 The prior example illustrates an important point. Although we have not yet found a 4x4 determinant formula, if one exists then we know what value it gives to the matrix-if there is a function with properties (1)-(4) then on the above matrix the function must return 5. 2.6 Lemma For each n, if there is an n x n determinant function then it is unique. PROOF. For any n x n matrix we can perform Gauss' method on the matrix, keeping track of how the sign alternates on row swaps, and then multiply down the diagonal of the echelon form result. By the definition and the lemma, all nxn determinant functions must return this value on this matrix. Thus all n x n de- terminant functions are equal, that is, there is only one input argument/output value relationship satisfying the four conditions. QED The 'if there is an n xrn determinant function' emphasizes that, although we can use Gauss' method to compute the only value that a determinant function could possibly return, we haven't yet shown that such a determinant function exists for all n. In the rest of the section we will produce determinant functions. Exercises For these, assume that an n x n determinant function exists for all n. / 2.7 Use Gauss' method to find each determinant. 3 1 2 1 0 0 1 312 10010 (a) 3 1 0 (b) 1 1 1 0 0 1 4 1 0 1 0 2.8 Use Gauss' method to find each.  302 Chapter Four. Determinants 2 -1 1 1 0 (a) -1 -1 (b) 3 0 2 5 2 2 2.9 For which values of k does this system have a unique solution? x + z-w=2 y- 2z =3 x +kz =4 z-w=2 / 2.10 Express each of these in terms of HI. h3,1 h3,2 h3,3 (a) h2,1 h2,2 h2,3 hi,1 hi,2 hi,3 -h1,1 -hi,2 -hi,3 (b) -2h2,1 -2h2,2 -2h2,3 -3h3,1 -3h3,2 -3h3,3 hi,1 + h3,1 h1,2 + h3,2 h1,3 + h3,3 (c) h2,1 h2,2 h2,3 5h3,1 5h3,2 5h3,3 / 2.11 Find the determinant of a diagonal matrix. 2.12 Describe the solution set of a homogeneous linear system if the determinant of the matrix of coefficients is nonzero. / 2.13 Show that this determinant is zero. y+z x+z x+y x y z 1 1 1 2.14 (a) Find the 1 x 1, 2x 2, and 3 x 3 matrices with i, j entry given by (-1)2+j. (b) Find the determinant of the square matrix with i, j entry (-1)2+j. 2.15 (a) Find the 1 x 1, 2 x 2, and 3 x 3 matrices with i, j entry given by i + j. (b) Find the determinant of the square matrix with i, j entry i + j. / 2.16 Show that determinant functions are not linear by giving a case where A + B # A|+|B. 2.17 The second condition in the definition, that row swaps change the sign of a determinant, is somewhat annoying. It means we have to keep track of the number of swaps, to compute how the sign alternates. Can we get rid of it? Can we replace it with the condition that row swaps leave the determinant unchanged? (If so then we would need new 1 x 1, 2 x 2, and 3 x 3 formulas, but that would be a minor matter.) 2.18 Prove that the determinant of any triangular matrix, upper or lower, is the product down its diagonal. 2.19 Refer to the definition of elementary matrices in the Mechanics of Matrix Multiplication subsection. (a) What is the determinant of each kind of elementary matrix? (b) Prove that if E is any elementary matrix then ES = |ES for any appro- priately sized S. (c) (This question doesn't involve determinants.) Prove that if T is singular then a product TS is also singular. (d) Show that TSI= T SI. (e) Show that if T is nonsingular then ITil T |T--.  Section I. Definition 303 2.20 Prove that the determinant of a product is the product of the determinants TSI= T S in this way. Fix the n x n matrix S and consider the function d: M9x9 - R given by T -|TS / SI. (a) Check that d satisfies property (1) in the definition of a determinant function. (b) Check property (2). (c) Check property (3). (d) Check property (4). (e) Conclude the determinant of a product is the product of the determinants. 2.21 A submatrix of a given matrix A is one that can be obtained by deleting some of the rows and columns of A. Thus, the first matrix here is a submatrix of the second. 3 1 3 4 1 2 5 0 9 -2 2 -1 5 Prove that for any square matrix, the rank of the matrix is r if and only if r is the largest integer such that there is an r x r submatrix with a nonzero determinant. / 2.22 Prove that a matrix with rational entries has a rational determinant. ? 2.23 Find the element of likeness in (a) simplifying a fraction, (b) powdering the nose, (c) building new steps on the church, (d) keeping emeritus professors on campus, (e) putting B, C, D in the determinant 1 a a2 as a3 1 a a2 B a3 1 a C D a3 1 [Am. Math. Mon., Feb. 1953] 1.3 The Permutation Expansion The prior subsection defines a function to be a determinant if it satisfies four conditions and shows that there is at most one n x n determinant function for each n. What is left is to show that for each n such a function exists. How could such a function not exist? After all, we have done computations that start with a square matrix, follow the conditions, and end with a number. The difficulty is that, as far as we know, the computation might not give a well-defined result. To illustrate this possibility, suppose that we were to change the second condition in the definition of determinant to be that the value of a determinant does not change on a row swap. By Remark 2.2 we know that this conflicts with the first and third conditions. Here is an instance of the conflict: here are two Gauss' method reductions of the same matrix, the first without any row swap (1 2) -3p1p2 (1 2  304 Chapter Four. Determinants and the second with a swap. 1 2 p-p2 3 4 -(1/3)pi+p2 3 4 3 4 1 2 0 2/3 Following Definition 2.1 gives that both calculations yield the determinant -2 since in the second one we keep track of the fact that the row swap changes the sign of the result of multiplying down the diagonal. But if we follow the supposition and change the second condition then the two calculations yield different values, -2 and 2. That is, under the supposition the outcome would not be well-defined no function exists that satisfies the changed second condition along with the other three. Of course, observing that Definition 2.1 does the right thing in this one instance is not enough; what we will do in the rest of this section is to show that there is never a conflict. The natural way to try this would be to define the determinant function with: "The value of the function is the result of doing Gauss' method, keeping track of row swaps, and finishing by multiplying down the diagonal". (Since Gauss' method allows for some variation, such as a choice of which row to use when swapping, we would have to fix an explicit algorithm.) Then we would be done if we verified that this way of computing the determinant satisfies the four properties. For instance, if T and T are related by a row swap then we would need to show that this algorithm returns determinants that are negatives of each other. However, how to verify this is not evident. So the development below will not proceed in this way. Instead, in this subsection we will define a different way to compute the value of a determinant, a formula, and we will use this way to prove that the conditions are satisfied. The formula that we shall use is based on an insight gotten from property (3) of the definition of determinants. This property shows that determinants are not linear. 3.1 Example For this matrix det(2A) # 2 - det(A). 2 1 A --1 3 Instead, the scalar comes out of each of the two rows. 4 2 =2 2 1 2 1 -2 6 -2 6 -1 3 Since scalars come out a row at a time, we might guess that determinants are linear a row at a time. 3.2 Definition Let V be a vector space. A map f: V" -* R is multilinear if (1) f(pi, ...,61+2,..., Sn) =f(P1,..,26,...,Pn) +f(01,..., 0,..., Sn) (2) f Pi,..., kv,...,Pn) = k -f 1i,...,v, ...,'On) for 6, w E V and k E R.  Section I. Definition 305 3.3 Lemma Determinants are multilinear. PROOF. The definition of determinants gives property (2) (Lemma 2.3 following that definition covers the k = 0 case) so we need only check property (1). det(pi,...,6+ w,..., gn) =det(pi,...,6,...,gn)+ detpgi,...,w,...,gn) If the set {#1i, ... , 2-i1, i+1,... , Sn5} is linearly dependent then all three matrices are singular and so all three determinants are zero and the equality is trivial. Therefore assume that the set is linearly independent. This set of n-wide row vectors has n - 1 members, so we can make a basis by adding one more vector (Ki, ... , p2-1 i+3, p±1,... , pn)- Express v and w with respect to this basis = v1= 1 ++--+vi-152-1 + vi/ + vi+1i+1 + - -- + vgn w = wi11 + -..-+w21_ +w2/3+wi+1i2+1 + -..-+wmnP giving this. By the definition of determinant, the value of det(15i, ... , v+7 ..... , pn) is un- changed by the pivot operation of adding -(v1 + w1) 1 to + w. v+wG- (v1 +w1)p1 = (v2 + w2)02 + -.-.-+ (v + w )13+-.-.+ (vn +wn)pn Then, to the result, we can add -(v2 + w2)p2, etc. Thus detgi,...,6+w,..., pn) = det (Pi,.., (v2 + w2) "-13, . . . , ) _(vi + wi)- det(#1,....,3, ..., gn) =v2 - det (P1, ...1, ,... , Pn)+ w2 - de('1..# .. n (using (2) for the second equality). To finish, bring v2 and w2 back inside in front of 13 and use pivoting again, this time to reconstruct the expressions of v and w in terms of the basis, e.g., start with the pivot operations of adding v11 to v2/3 and wi1 to w li, etc. QED Multilinearity allows us to expand a determinant into a sum of determinants, each of which involves a simple matrix. 3.4 Example We can use multilinearity to split this determinant into two, first breaking up the first row 2 1 2 0 0 1 4 3 4 3+4 3 and then separating each of those two, breaking along the second rows. 2 0 2 0 01 0 1 4 0+ 03 + 40 + 0 3  306 Chapter Four. Determinants We are left with four determinants, such that in each row of each matrix there is a single entry from the original matrix. 3.5 Example In the same way, a 3 x 3 determinant separates into a sum of many simpler determinants. We start by splitting along the first row, producing three determinants (the zero in the 1, 3 position is underlined to set it off visually from the zeroes that appear in the splitting). 2 1 -1 2 0 0 0 1 0 0 0 -1 4 3 0 =4 3 0+ 4 3 0+ 4 3 0 2 1 5 2 1 5 2 1 5 2 1 5 Each of these three will itself split in three along the second row. Each of the resulting nine splits in three along the third row, resulting in twenty seven determinants 2 0 0 2 0 0 2 0 0 2 0 0 0 0 -1 = 4 0 0+ 4 0 0+ 4 0 0+ 0 3 0 +---+ 0 0 0 2 0 0 0 1 0 0 0 5 2 0 0 0 0 5 such that each row contains a single entry from the starting matrix. So an n x n determinant expands into a sum of nn determinants where each row of each summands contains a single entry from the starting matrix. How- ever, many of these summand determinants are zero. 3.6 Example In each of these three matrices from the above expansion, two of the rows have their entry from the starting matrix in the same column, e.g., in the first matrix, the 2 and the 4 both come from the first column. 2 0 0 0 0 -1 0 1 0 4 0 0 030 000 0 1 0 0 0 5 0 0 5 Any such matrix is singular, because in each, one row is a multiple of the other (or is a zero row). Thus, any such determinant is zero, by Lemma 2.3. Therefore, the above expansion of the 3 x 3 determinant into the sum of the twenty seven determinants simplifies to the sum of these six. 2 1 -1 2 0 0 2 0 0 4 3 0 0 3 0+ 0 0 0 2 1 5 0 0 5 0 1 0 0 1 0 0 1 0 + 4 0 0+0 0 0 0 0 5 2 0 0 0 0 -1 0 0 -1 + 4 0 0+ 0 3 0 0 10 20 0  Section . Definition 307 We can bring out the scalars. 1 0 0 1 0 0 _(2)(3)(5) 0 1 0+ (2)(0)(1) 0 0 1 0 0 1 0 1 0 0 1 0 0 1 0 +(1)(4)(5) 1 0 0+ (1)(0)(2) 0 0 1 0 0 1 1 0 0 0 0 1 0 0 1 + (-1)(4)(1) 1 0 0 + (-1)(3)(2) 0 1 0 0 1 0 1 0 0 To finish, we evaluate those six determinants by row-swapping them to the identity matrix, keeping track of the resulting sign changes. = 30 - (+1) + 0 - (-1) + 20 - (-1) + 0 - (+1) - 4. (+1) - 6" (-1) =12 That example illustrates the key idea. We've applied multilinearity to a 3x3 determinant to get 33 separate determinants, each with one distinguished entry per row. We can drop most of these new determinants because the matrices are singular, with one row a multiple of another. We are left with the one- entry-per-row determinants also having only one entry per column (one entry from the original determinant, that is). And, since we can factor scalars out, we can further reduce to only considering determinants of one-entry-per-row-and- column matrices where the entries are ones. These are permutation matrices. Thus, the determinant can be computed in this three-step way (Step 1) for each permutation matrix, multiply together the entries from the original matrix where that permutation matrix has ones, (Step 2) multiply that by the determinant of the permutation matrix and (Step 3) do that for all permutation matrices and sum the results together. To state this as a formula, we introduce a notation for permutation matrices. Let tG be the row vector that is all zeroes except for a one in its j-th entry, so that the four-wide t2 is (0 1 0 0). We can construct permutation matrices by permuting that is, scrambling the numbers 1, 2, .. ., n, and using them as indices on the t's. For instance, to get a 4x4 permutation matrix matrix, we can scramble the numbers from 1 to 4 into this sequence (3, 2, 1, 4) and take the corresponding row vector 's. t3 0 0 1 0 G2 _ 0 1 0 0 G1 1 0 0 0 G4 0 0 0 1 3.7 Definition An n-permutation is a sequence consisting of an arrangement of the numbers 1, 2, ..., n.  308 308 Chapter Four. Determinants 3.8 Example The 2-permutations are 01i =Ki, 2) and 0b2 the associated permutation matrices. (2, 1). These are _ (11 _ 1 0 Po1 G2 0 1 ( 2 G1;) We sometimes write permutations as functions, e.g., 052(1) =2, and 02(2) =1. Then the rows of P02 are t02 (1) = 2 and t02(2) =Li. The 3-permutations are 01 =K1, 2,3), 052 =1, 3,2), 053 =K2, 1,3), 054 (2, 3, 1), 055 =K3, 1, 2), and Os =K3, 2, 1). Here are two of the associated permu- tation matrices. (1 ) 0 0 1 0 0, P5 (t2) (2 0 0 1 1 01 0, For instance, the rows of P05 are 605(1) =t3, t05(2) = i, and 605(3)= t2- 3.9 Definition The permutation~ expan~sion~ for determinants is t2,1 t2,2 ... t2,n t "1t, . + ti,402(i)t2,02(2) . .. tn,0b2(n) IP02 +ti,0bk(i)t2,0bk(2) .. t,01k(n P' where 01, ... , q$k are all of the n-permutations. This formula is often written in summation notation permutations 0 read aloud as "the sum, over all permutations 0b, of terms having the form tl,0(1t2,0(2 " tn,4o(n) Po, ". This phrase is just a restating of the three-step process (Step 1) for each permutation matrix, compute ti,0(i)t2,0(2) " " tn,o(n) (Step 2) multiply that by Po and (Step 3) sum all such terms together. 3.10 Example The familiar formula for the determinant of a 2x2 matrix can be derived in this way. tii1 ti,2_ t2,i t2,2 ti,it2,2 . O, + ti,2t2,i 0 ti,it2,2~ 120 + ti,2t2,i 0 t1 l2,2 tlt21 1 0  Section L Definition 309 (the second permutation matrix takes one row swap to pass to the identity). Similarly, the formula for the determinant of a 3x 3 matrix is this. t1,1 t1,2 t1,3 t2,1 t2,2 t2,3 = t1,1t2,2t3,3 |P$1| + t1,1t2,3t3,2 |P$2| + t1,2t2,13,3 |P$3 t3,1 t3,2 t3,3 + t1,2t2,3t3,1 |P4| + t1,3t2,1t3,2 |P5 | + t1,3t2,2t3,1 |P6 = t11t2,2t3,3 - t1,1t2,3t3,2 - t1,2t2,1t3,3 + t1,2t2,3t3,1 + t1,3t2,1t3,2 - t1,3t2,2t3,1 Computing a determinant by permutation expansion usually takes longer than Gauss' method. However, here we are not trying to do the computation efficiently, we are instead trying to give a determinant formula that we can prove to be well-defined. While the permutation expansion is impractical for computations, it is useful in proofs. In particular, we can use it for the result that we are after. 3.11 Theorem For each n there is a n x n determinant function. The proof is deferred to the following subsection. Also there is the proof of the next result (they share some features). 3.12 Theorem The determinant of a matrix equals the determinant of its transpose. The consequence of this theorem is that, while we have so far stated results in terms of rows (e.g., determinants are multilinear in their rows, row swaps change the signum, etc.), all of the results also hold in terms of columns. The final result gives examples. 3.13 Corollary A matrix with two equal columns is singular. Column swaps change the sign of a determinant. Determinants are multilinear in their columns. PROOF. For the first statement, transposing the matrix results in a matrix with the same determinant, and with two equal rows, and hence a determinant of zero. The other two are proved in the same way. QED We finish with a summary (although the final subsection contains the un- finished business of proving the two theorems). Determinant functions exist, are unique, and we know how to compute them. As for what determinants are about, perhaps these lines [Kemp] help make it memorable. Determinant none, Solution: lots or none. Determinant some, Solution: just one.  310 Chapter Four. Determinants Exercises These summarize the notation used in this book for the 2- and 3- permutations. i 1 2 i 1 2 3 #1(i) 1 2 #1(i) 1 2 3 #2(i) 2 1 #2(i) 1 3 2 #3(i) 2 1 3 #4(i) 2 3 1 #5(i) 3 1 2 06(i) 3 2 1 / 3.14 Compute the determinant by using the permutation expansion. 1 2 3 2 2 1 (a) 4 5 6 (b) 3 -1 0 7 8 9 -2 0 5 / 3.15 Compute these both with Gauss' method and with the permutation expansion formula. 210 1 4 (a) 3 1 (b) 0 2 3 1 5 1 / 3.16 Use the permutation expansion formula to derive the formula for 3 x 3 deter- minants. 3.17 List all of the 4-permutations. 3.18 A permutation, regarded as a function from the set {1, .., n} to itself, is one- to-one and onto. Therefore, each permutation has an inverse. (a) Find the inverse of each 2-permutation. (b) Find the inverse of each 3-permutation. 3.19 Prove that f is multilinear if and only if for all v, t-w E V and ki, k2 E R, this holds. f( i, . . ., k1611 + k222, . . .,p2) =kif gi, . ..,11, . .., Pn) + k2f( 1, . . .,62, ..., jn) 3.20 Find the only nonzero term in the permutation expansion of this matrix. 0 1 0 0 1 0 1 0 0 1 0 1 0 0 1 0 Compute that determinant by finding the signum of the associated permutation. 3.21 How would determinants change if we changed property (4) of the definition to read that II = 2? 3.22 Verify the second and third statements in Corollary 3.13. / 3.23 Show that if an nxn matrix has a nonzero determinant then any column vector v E R n can be expressed as a linear combination of the columns of the matrix. 3.24 True or false: a matrix whose entries are only zeros or ones has a determinant equal to zero, one, or negative one. [Strang 80] 3.25 (a) Show that there are 120 terms in the permutation expansion formula of a 5 x 5 matrix. (b) How many are sure to be zero if the 1, 2 entry is zero? 3.6 owmayn-eruttin 1ae 0hee  Section I. Definition 311 3.27 A matrix A is skew-symmetric if Atrans =-A, as in this matrix. A 0 3 -3 0 Show that nxn skew-symmetric matrices with nonzero determinants exist only for even n. / 3.28 What is the smallest number of zeros, and the placement of those zeros, needed to ensure that a 4 x 4 matrix has a determinant of zero? / 3.29 If we have n data points (xi, y1), (x2, y2), ... , (xn, yn) and want to find a polynomial p(x) = an_1xn-1 + an-2xn -2 + ... + aix + ao passing through those points then we can plug in the points to get an n equation/n unknown linear system. The matrix of coefficients for that system is called the Vandermonde matrix. Prove that the determinant of the transpose of that matrix of coefficients 1 1 ... 1 X1 X2 ... x xi2 x22 ... x X1n-i 2n-i ---xn-1 equals the product, over all indices i, j E {1,... , n} with i < j, of terms of the form x3 - x2. (This shows that the determinant is zero, and the linear system has no solution, if and only if the xi's in the data are not distinct.) 3.30 A matrix can be divided into blocks, as here, 1 2 0 3 4 0 0 0 -2 which shows four blocks, the square 2 x 2 and 1 x 1 ones in the upper left and lower right, and the zero blocks in the upper right and lower left. Show that if a matrix can be partitioned as J Z2 T=Z1 K where J and K are square, and Z1 and Z2 are all zeroes, then TI =J -|Kl. / 3.31 Prove that for any n x n matrix T there are at most n distinct reals r such that the matrix T - rI has determinant zero (we shall use this result in Chapter Five). ? 3.32 The nine positive digits can be arranged into 3x3 arrays in 9! ways. Find the sum of the determinants of these arrays. [Math. Mag., Jan. 1963, Q307] 3.33 Show that x-2 x-3 x-4 x+1 x-1 x-3 =0. x-4 x-7 x-10 [Math. Mlag., Jan. 1963, Q237] ? 3.34 Let S be the sum of the integer elements of a magic square of order three and let D be the value of the square considered as a determinant. Show that D/S is an integer. [Amn. Mathi. 'Ion., Jan. 1949]1  312 Chapter Four. Determinants ? 3.35 Show that the determinant of the n2 elements in the upper left corner of the Pascal triangle 1 1 1 1 . . 1 2 3 . . 1 3 . . 1 .. has the value unity. [Am. Math. Mon., Jun. 1931] 1.4 Determinants Exist This subsection is optional. It consists of proofs of two results from the prior subsection. These proofs involve the properties of permutations, which will not be used later, except in the optional Jordan Canonical Form subsection. The prior subsection attacks the problem of showing that for any size there is a determinant function on the set of square matrices of that size by using multilinearity to develop the permutation expansion. ti,1 t1,2 ... ti,n t2,1 t2,2 ... t2,n . = tl,1,4 (1)t2,41(2) -.-.- n,og (n)|PeO to,1 to,2 ... ton + tl,4$2(l)t2,42(2) ... tn,42(n) P42 + tl,4k(l)t2,4k(2) ... tn,Ok(n) fe t,4(1)t2,4(2) ... tn,4(n) PeO permutations # This reduces the problem to showing that there is a determinant function on the set of permutation matrices of that size. Of course, a permutation matrix can be row-swapped to the identity matrix and to calculate its determinant we can keep track of the number of row swaps. However, the problem is still not solved. We still have not shown that the result is well-defined. For instance, the determinant of 0 1 0 0 P0 1 0 0 0 0 0 1 0 0 0 0 1 could be computed with one swap 1 0 0 0 PP1 p2 0 1 0 0 0010 (1 0 001  Section . Definition 313 or with three. p4~ 0 0 0 1 0 1 0 0 0 01 01 0 1 0 0 1 0 P2 p3 0 1 0 0 1 0 0 0 0 0 0 1 1 0 0 0 P p3 0 1 0 0 0 0 1 0 0 0 0 1 Both reductions have an odd number of swaps so we figure that |Pel = -1 but how do we know that there isn't some way to do it with an even number of swaps? Corollary 4.6 below proves that there is no permutation matrix that can be row-swapped to an identity matrix in two ways, one with an even number of swaps and the other with an odd number of swaps. 4.1 Definition Two rows of a permutation matrix k such that k > j are in an in~version~ of their natural order. 4.2 Example This permutation matrix (s 0 L2 = 0 L1 1 0 1 0 1 0 0 has three inversions: ts precedes 1, ts precedes t2, and t2 precedes 1. 4.3 Lemma A row-swap in a permutation matrix changes the number of in- versions from even to odd, or from odd to even. PROOF. Consider a swap of rows j and k, where k > j. If the two rows are adjacent G0(k) L0(k) then the swap changes the total number of inversions by one either removing or producing one inversion, depending on whether #(j) > #(k) or not, since inversions involving rows not in this pair are not affected. Consequently, the total number of inversions changes from odd to even or from even to odd.  314 Chapter Four. Determinants If the rows are not adjacent then they can be swapped via a sequence of adjacent swaps, first bringing row k up / toJ) t10(+1) 10(j+2) 10(k) 1 Pk--Pk-1 Pk-1 --Pk-2 Pj±+' Pj 10(k) toJ) 10(j+1) to(k-1) l 'I and then bringing row j down. / Pj±1+--Pj±2 Pj±2+--Pj±3 Pk-1+--Pk 10(k) 10(±+1) 10(±+2) 'I Each of these adjacent swaps changes the number of inversions or from even to odd. There are an odd number (k - j) + (k The total change in the number of inversions is from even to to even. from odd to even - j - 1) of them. odd or from odd QED 4.4 Definition The signum of a permutation sgn(#) is +1 if the number of inversions in P, is even, and is -1 if the number of inversions is odd. 4.5 Example With the subscripts from Example 3.8 for the 3-permutations, sgn(#1) = 1 while sgn(#2) = -1. 4.6 Corollary If a permutation matrix has an odd number of inversions then swapping it to the identity takes an odd number of swaps. If it has an even number of inversions then swapping to the identity takes an even number of swaps. PROOF. The identity matrix has zero inversions. To change an odd number to zero requires an odd number of swaps, and to change an even number to zero requires an even number of swaps. QED We still have not shown that the permutation expansion is well-defined be- cause we have not considered row operations on permutation matrices other than  Section I. Definition 315 row swaps. We will finesse this problem: we will define a function d: Max - R by altering the permutation expansion formula, replacing Pel with sgn(#) d(T) = t1,3(1)t2,4(2) ... tm,4(n) sgn(#) permutations # (this gives the same value as the permutation expansion because the prior result shows that det(P4) = sgn(#)). This formula's advantage is that the number of inversions is clearly well-defined-just count them. Therefore, we will show that a determinant function exists for all sizes by showing that d is it, that is, that d satisfies the four conditions. 4.7 Lemma The function d is a determinant. Hence determinants exist for every n. PROOF. We'll must check that it has the four properties from the definition. Property (4) is easy; in d(I) = 3 1,#(1)L2,#(2) ... tn,#(n) sgn(#) perms # all of the summands are zero except for the product down the diagonal, which is one. kp For property (3) consider d(T) where T-T. S 1,#(1)... i,#(i) ... n,#(n) sgn(#) 5 ,#(1)... kti,#(i) ... n,#(n) sgn(#) perms #0 Factor the k out of each term to get the desired equality. =k - 81,#(1) - - -ti,#(i) - - - n,#(n) sgn(#) = k - d(T) For (2), let T - T. d(T) = t1,#(1) tj( '''.t,#() ' ' '. n,#(n) sgn(#) perms # To convert to unhatted t's, for each # consider the permutation a that equals # except that the i-th and j-th numbers are interchanged, (i) =w#(j) and g(j) #b(i). Replacing the #b in $1,#(1) '. ' i,#(i) '. ' .,# . ' n#n with this u gives tia(l) . -.-ti,) . . t .t(i) -.--n,,(n). Now sgn(#) -sgn(a) (by Lemma 4.3) and so we get 5tl,u(l) . .. t4,u(j) ... ti,u(i) .. tm,u(m). sgn(cr)  316 Chapter Four. Determinants where the sum is over all permutations o derived from another permutation # by a swap of the i-th and j-th numbers. But any permutation can be derived from some other permutation by such a swap, in one and only one way, so this summation is in fact a sum over all permutations, taken once and only once. Thus d(T) = -d(T). kp+p2 To do property (1) let T - T and consider d(i) =t 1,#(1) '.'.'t2,#(i) '.'.' $,#(j) '.'' tn,#(n) sgn(# perms # =Z t,(1) ti,#(i) - - - (kti,#(j) + tj,(()) - -n,#(n) sgn(#) (notice: that's kti,#(j), not kt,#(0)). Distribute, commute, and factor. = [t1,(1)-... ti,#(i) ... kti,#(j) ... t n,#(n) sgn(#) + ti,#(1) ... ti,#(i) ... tj,#(j) ... tn,#(n) sgn(#)] ~3t1,7(1) ... tj,o(j) ... k2oj ... tn,O$(n) sgn(b) + t1,(1 ) ... t,( ) ... ti,$( ) ... tn ,(n ) sgn( ) k ." 3t1,0(1) ... t24c(2) ... tj,co(j) ... tn,O(n) sgn(Oj) +d(T) We finish by showing that the terms t1,#(1) - - - ti,#(i) -"- - ti,#(j) ... tn,#(n) sgn(#) add to zero. This sum represents d(S) where S is a matrix equal to T except that row j of S is a copy of row i of T (because the factor is ti,#(), not ti,#())- Thus, S has two equal rows, rows i and j. Since we have already shown that d changes sign on row swaps, as in Lemma 2.3 we conclude that d(S) = 0. QED We have now shown that determinant functions exist for each size. We already know that for each size there is at most one determinant. Therefore, the permutation expansion computes the one and only determinant value of a square matrix. We end this subsection by proving the other result remaining from the prior subsection, that the determinant of a matrix equals the determinant of its trans- pose. 4.8 Example Writing out the permutation expansion of the general 3x3 matrix and of its transpose, and comparing corresponding terms a b c 0 0 1 d e f=---+cdh- 1 0 0+ --- 9ghi 0 10  Section I. Definition 317 (terms with the same letters) a d g 0 1 0 b e h = +dhc- 0 1+- c f i 1 0 0 shows that the corresponding permutation matrices are transposes. That is, there is a relationship between these corresponding permutations. Exercise 15 shows that they are inverses. 4.9 Theorem The determinant of a matrix equals the determinant of its transpose. PROOF. Call the matrix T and denote the entries of Ttrans with s's so that tij = sj,i. Substitution gives this T I= t1,4(1) ... tn,4(n) sgn(#) = s4(1),1 ... s(n),n sgn(#) perms # and we can finish the argument by manipulating the expression on the right to be recognizable as the determinant of the transpose. We have written all permutation expansions (as in the middle expression above) with the row indices ascending. To rewrite the expression on the right in this way, note that because # is a permutation, the row indices in the term on the right #(1), ..., #(n) are just the numbers 1, ..., n, rearranged. We can thus commute to have these ascend, giving si,0-1(1) - - - sn,0-1(n) (if the column index is j and the row index is #(j) then, where the row index is i, the column index is #-1(i)). Substituting on the right gives s: 1,$-1 (1) -.- sn,$-1(n) sgn(#-1) 0-1 (Exercise 14 shows that sgn(#-1) = sgn(#)). Since every permutation is the inverse of another, a sum over all #-1 is a sum over all permutations # S s1,o(1) ... sn o(n) sgn(o) = Ttrans perms o- as required. QED Exercises These summarize the notation used in this book for the 2- and 3- permutations. i 1 2 i 1 2 3 #1(i) 1 2 #1(i) 1 2 3 #2(i) 2 1 #2(i) 1 3 2 #3(i) 2 1 3 #4(i) 2 3 1 #5(i) 3 1 2 $6(i) 3 2 1  318 Chapter Four. Determinants 4.10 Give the permutation expansion of a general 2 x 2 matrix and its transpose. / 4.11 This problem appears also in the prior subsection. (a) Find the inverse of each 2-permutation. (b) Find the inverse of each 3-permutation. / 4.12 (a) Find the signum of each 2-permutation. (b) Find the signum of each 3-permutation. 4.13 What is the signum of the n-permutation # (n, n - 1,... , 2, 1)? [Strang 80] 4.14 Prove these. (a) Every permutation has an inverse. (b) sgn(#-1) = sgn(#) (c) Every permutation is the inverse of another. 4.15 Prove that the matrix of the permutation inverse is the transpose of the matrix of the permutation PO-1 = POtrans, for any permutation #. / 4.16 Show that a permutation matrix with m inversions can be row swapped to the identity in m steps. Contrast this with Corollary 4.6. / 4.17 For any permutation # let g(#) be the integer defined in this way. g(4) = ]1[4(i) - 4c()] i j. (a) Must the adjoint of an upper triangular matrix be upper triangular? Lower triangular? (b) Prove that the inverse of a upper triangular matrix is upper triangular, if an inverse exists. 1.27 This question requires material from the optional Determinants Exist subsec- tion. Prove Theorem 1.5 by using the permutation expansion. 1.28 Prove that the determinant of a matrix equals the determinant of its transpose using Laplace's expansion and induction on the size of the matrix. ? 1.29 Show that 1 -1 1 -1 1 -1 ... 1 1 0 1 0 1 .. F,,= 0 1 1 0 1 0 .. 0 0 1 1 0 1 .. where F, is the n-th term of 1, 1, 2, 3, 5, ... , x, y, x+ y, ..., the Fibonacci sequence, and the determinant is of order n - 1. [Am. Math. Mon., Jun. 1949]  Topic: Cramer's Rule 331 Topic: Cramer's Rule We have introduced determinant functions algebraically by looking for a formula to decide whether a matrix is nonsingular. After that introduction we saw a geometric interpretation, that the determinant function gives the size of the box with sides formed by the columns of the matrix. This Topic makes a connection between the two views. First, a linear system x1 + 2x2 = 6 3x1+ x2=8 is equivalent to a linear relationship among vectors. x1 (3 + x2 ( () The picture below shows a parallelogram with sides formed from (1) and (2) nested inside a parallelogram with sides formed from x1(1) and x2 (). (() x2 (1) (1) So even without determinants we can state the algebraic issue that opened this book, finding the solution of a linear system, in geometric terms: by what factors x1 and x2 must we dilate the vectors to expand the small parallegram to fill the larger one? However, by employing the geometric significance of determinants we can get something that is not just a restatement, but also gives us a new insight and sometimes allows us to compute answers quickly. Compare the sizes of these shaded boxes. 3 3 The second is formed from X11( ) and (2), and one of the properties of the size function -the determinant -is that its size is therefore x1 times the size of the  332 Chapter Four. Determinants first box. Since the third box is formed from x1(1) + x2 (1) (g) and (f), and the determinant is unchanged by adding x2 times the second column to the first column, the size of the third box equals that of the second. We have this. 6 2 x i.1 2 1 2 8 1 x1-3 1 x 3 1 Solving gives the value of one of the variables. 6 2 8 1 -10 1 2 -5 3 1 The theorem that generalizes this example, Cramer's Rule, is: if Al 0 then the system Ax = has the unique solution x2 =Bl/|A where the matrix B2 is formed from A by replacing column i with the vector b. Exercise 3 asks for a proof. For instance, to solve this system for x2 1 0 4 (X1\ 2 2 1 -1 (X2 = 1 1 0 1 x3 -1 we do this computation. 1 2 4 2 1 -1 1 -1 1 -18 X2 1 0 4 -3 2 1 -1 1 0 1 Cramer's Rule allows us to solve many two equations/two unknowns systems by eye. It is also sometimes used for three equations/three unknowns systems. But computing large determinants takes a long time, so solving large systems by Cramer's Rule is not practical. Exercises 1 Use Cramer's Rule to solve each for each of the variables. (a) - y= 4 (b) -2x +y=-2 -+-2y= -7 x-2y -2 2 Use Cramer's Rule to solve this system for z. 2x+y+z=1 3x +z=4 m-y-z=2 3 Prove Cramer's Rule.  Topic: Cramer's Rule 333 4 Suppose that a linear system has as many equations as unknowns, that all of its coefficients and constants are integers, and that its matrix of coefficients has determinant 1. Prove that the entries in the solution are all integers. (Remark. This is often used to invent linear systems for exercises. If an instructor makes the linear system with this property then the solution is not some disagreeable fraction.) 5 Use Cramer's Rule to give a formula for the solution of a two equations/two unknowns linear system. 6 Can Cramer's Rule tell the difference between a system with no solutions and one with infinitely many? 7 The first picture in this Topic (the one that doesn't use determinants) shows a unique solution case. Produce a similar picture for the case of infintely many solutions, and the case of no solutions.  334 Chapter Four. Determinants Topic: Speed of Calculating Determinants The permutation expansion formula for computing determinants is useful for proving theorems, but the method of using row operations is a much better for finding the determinants of a large matrix. We can make this statement precise by considering, as computer algorithm designers do, the number of arithmetic operations that each method uses. The speed of an algorithm is measured by finding how the time taken by the computer grows as the size of its input data set grows. For instance, how much longer will the algorithm take if we increase the size of the input data by a factor of ten, from a 1000 row matrix to a 10,000 row matrix or from 10, 000 to 100, 000? Does the time taken grow by a factor of ten, or by a factor of a hundred, or by a factor of a thousand? That is, is the time taken by the algorithm proportional to the size of the data set, or to the square of that size, or to the cube of that size, etc.? Recall the permutation expansion formula for determinants. ti,1 t1,2 ... ti,n t2,1 t2,2 ... t2,n permutations # tn,l tn,2 ... t n,n + t,02() . ,t(2) .. . tn ,2(n ) P 2 + tl,4k(l)- t2,4(2) ... tn,4k(n) |P4 There are n! = n - (n - 1) - (n - 2) ... 2. 1 different n-permutations. For numbers n of any size at all, this is a large value; for instance, even if n is only 10 then the expansion has 10! = 3, 628, 800 terms, all of which are obtained by multiplying n entries together. This is a very large number of multiplications (for instance, [Knuth] suggests 10! steps as a rough boundary for the limit of practical calculation). The factorial function grows faster than the square function. It grows faster than the cube function, the fourth power function, or any polynomial function. (One way to see that the factorial function grows faster than the square is to note that multiplying the first two factors in n! gives n- (n - 1), which for large n is approximately n2, and then multiplying in more factors will make it even larger. The same argument works for the cube function, etc.) So a computer that is programmed to use the permutation expansion formula, and thus to perform a number of operations that is greater than or equal to the factorial of the number of rows, would take very long times as its input data set grows. In contrast, the time taken by the row reduction method does not grow so fast. This fragment of row-reduction code is in the computer language FOR- TRAN. The matrix is stored in the N x N array A. For each ROW between 1 and N parts of the program not shown here have already found the pivot entry  Topic: Speed of Calculating Determinants 335 A(ROW, COL). Now the program does a row pivot. -PIVINV - PROW + Pi (This code fragment is for illustration only and is incomplete. Still, analysis of a finished version that includes all of the tests and subcases is messier but gives essentially the same conclusion.) PIVINV=1.0/A(ROW,COL) DO 10 I=ROW+1, N DO 20 J=I, N A(I,J)=A(I,J)-PIVINV*A(ROW,J) 20 CONTINUE 10 CONTINUE The outermost loop (not shown) runs through N - 1 rows. For each row, the nested I and J loops shown perform arithmetic on the entries in A that are below and to the right of the pivot entry. Assume that the pivot is found in the expected place, that is, that COL = ROW. Then there are (N - ROW)2 entries below and to the right of the pivot. On average, ROW will be N/2. Thus, we estimate that the arithmetic will be performed about (N/2)2 times, that is, will run in a time proportional to the square of the number of equations. Taking into account the outer loop that is not shown, we get the estimate that the running time of the algorithm is proportional to the cube of the number of equations. Finding the fastest algorithm to compute the determinant is a topic of cur- rent research. Algorithms are known that run in time between the second and third power. Speed estimates like these help us to understand how quickly or slowly an algorithm will run. Algorithms that run in time proportional to the size of the data set are fast, algorithms that run in time proportional to the square of the size of the data set are less fast, but typically quite usable, and algorithms that run in time proportional to the cube of the size of the data set are still reasonable in speed for not-too-big input data. However, algorithms that run in time (greater than or equal to) the factorial of the size of the data set are not practical for input of any appreciable size. There are other methods besides the two discussed here that are also used for computation of determinants. Those lie outside of our scope. Nonetheless, this contrast of the two methods for computing determinants makes the point that although in principle they give the same answer, in practice the idea is to select the one that is fast. Exercises Most of these problems presume access to a computer. 1 Computer systems generate random numbers (of course, these are only pseudo- random, in that they are generated by an algorithm, but they pass a number of reasonable statistical tests for randomness). (a) Fill a 5 x 5 array with random numbers (say, in the range [0..1)). See if it is singular. Repeat that experiment a few times. Are singular matrices frequent or rare (in this sense)?  336 Chapter Four. Determinants (b) Time your computer algebra system at finding the determinant of ten 5 x 5 arrays of random numbers. Find the average time per array. Repeat the prior item for 15 x 15 arrays, 25 x 25 arrays, and 35 x 35 arrays. (Notice that, when an array is singular, it can sometimes be found to be so quite quickly, for instance if the first row equals the second. In the light of your answer to the first part, do you expect that singular systems play a large role in your average?) (c) Graph the input size versus the average time. 2 Compute the determinant of each of these by hand using the two methods dis- cussed above. 3 1 1 2 1 0 0 (a) 2 1 (b) -1 0 5 (c) 1 31 220 5 -3 -1 2 -2 0 -1 -2 1 0 0 -2 1 Count the number of multiplications and divisions used in each case, for each of the methods. (On a computer, multiplications and divisions take much longer than additions and subtractions, so algorithm designers worry about them more.) 3 What 10 x 10 array can you invent that takes your computer system the longest to reduce? The shortest? 4 Write the rest of the FORTRAN program to do a straightforward implementation of calculating determinants via Gauss' method. (Don't test for a zero pivot.) Compare the speed of your code to that used in your computer algebra system. 5 The FORTRAN language specification requires that arrays be stored "by col- umn", that is, the entire first column is stored contiguously, then the second col- umn, etc. Does the code fragment given take advantage of this, or can it be rewritten to make it faster, by taking advantage of the fact that computer fetches are faster from contiguous locations?  Topic: Projective Geometry 337 Topic: Projective Geometry There are geometries other than the familiar Euclidean one. One such geometry arose in art, where it was observed that what a viewer sees is not necessarily what is there. This is Leonardo da Vinci's The Last Supper. What is there in the room, for instance where the ceiling meets the left and right walls, are lines that are parallel. However, what a viewer sees is lines that, if extended, would intersect. The intersection point is called the vanishing point. This aspect of perspective is also familiar as the image of a long stretch of railroad tracks that appear to converge at the horizon. To depict the room, da Vinci has adopted a model of how we see, of how we project the three dimensional scene to a two dimensional image. This model is only a first approximation it does not take into account that our retina is curved and our lens bends the light, that we have binocular vision, or that our brain's processing greatly affects what we see but nonetheless it is interesting, both artistically and mathematically. The projection is not orthogonal, it is a central projection from a single point, to the plane of the canvas. A B (It is not an orthogonal projection since the line from the viewer to C is not orthogonal to the image plane.) As the picture suggests, the operation of central projection preserves some geometric properties lines project to lines. How- ever, it fails to preserve some others equal length segments can project to segments of unequal length; the length of AB is greater than the length of  338 Chapter Four. Determinants BC because the segment projected to AB is closer to the viewer and closer things look bigger. The study of the effects of central projections is projective geometry. We will see how linear algebra can be used in this study. There are three cases of central projection. The first is the projection done by a movie projector. projector P source S image I We can think that each source point is "pushed" from the domain plane out- ward to the image point in the codomain plane. This case of projection has a somewhat different character than the second case, that of the artist "pulling" the source back to the canvas. painter P image I source S In the first case S is in the middle while in the second case I is in the middle. One more configuration is possible, with P in the middle. An example of this is when we use a pinhole to shine the image of a solar eclipse onto a piece of paper. source S pinhole P image I We shall take each of the three to be a central projection by P of S to I.  Topic: Projective Geometry 339 Consider again the effect of railroad tracks that appear to converge to a point. We model this with parallel lines in a domain plane S and a projection via a P to a codomain plane I. (The gray lines are parallel to S and I.) S P I All three projection cases appear here. The first picture below shows P acting like a movie projector by pushing points from part of S out to image points on the lower half of I. The middle picture shows P acting like the artist by pulling points from another part of S back to image points in the middle of I. In the third picture, P acts like the pinhole, projecting points from S to the upper part of I. This picture is the trickiest-the points that are projected near to the vanishing point are the ones that are far out on the bottom left of S. Points in S that are near to the vertical gray line are sent high up on I. S S S P :.P0 /\.P 1 I I ,-'; I There are two awkward things about this situation. The first is that neither of the two points in the domain nearest to the vertical gray line (see below) has an image because a projection from those two is along the gray line that is parallel to the codomain plane (we sometimes say that these two are projected "to infinity"). The second awkward thing is that the vanishing point in I isn't the image of any point from S because a projection to this point would be along the gray line that is parallel to the domain plane (we sometimes say that the vanishing point is the image of a projection "from infinity"). l7 S P I  340 Chapter Four. Determinants For a better model, put the projector P at the origin. Imagine that P is covered by a glass hemispheric dome. As P looks outward, anything in the line of vision is projected to the same spot on the dome. This includes things on the line between P and the dome, as in the case of projection by the movie projector. It includes things on the line further from P than the dome, as in the case of projection by the painter. It also includes things on the line that lie behind P, as in the case of projection by a pinhole. {k= 2 k EIR} From this perspective P, all of the spots on the line are seen as the same point. Accordingly, for any nonzero vector v E R3, we define the associated point v in the projective plane to be the set {k6I k E IR and k 0} of nonzero vectors lying on the same line through the origin as v. To describe a projective point we can give any representative member of the line, so that the projective point shown above can be represented in any of these three ways. 1 (1/3\ -2 2 2/3 (-4 3 1 (-6) Each of these is a homogeneous coordinate vector for v. This picture, and the above definition that arises from it, clarifies the de- scription of central projection but there is something awkward about the dome model: what if the viewer looks down? If we draw P's line of sight so that the part coming toward us, out of the page, goes down below the dome then we can trace the line of sight backward, up past P and toward the part of the hemisphere that is behind the page. So in the dome model, looking down gives a projective point that is behind the viewer. Therefore, if the viewer in the picture above drops the line of sight toward the bottom of the dome then the projective point drops also and as the line of sight continues down past the equator, the projective point suddenly shifts from the front of the dome to the back of the dome. This discontinuity in the drawing means that we often have to treat equatorial points as a separate case. That is, while the railroad track discussion of central projection has three cases, the dome model has two. We can do better than this. Consider a sphere centered at the origin. Any line through the origin intersects the sphere in two spots, which are said to be antipodal. Because we associate each line through the origin with a point in the projective plane, we can draw such a point as a pair of antipodal spots on the sphere. Below, the two antipodal spots are shown connected by a dashed line  Topic: Projective Geometry 341 to emphasize that they are not two different points, the pair of spots together make one projective point. While drawing a point as a pair of antipodal spots is not as natural as the one- spot-per-point dome mode, on the other hand the awkwardness of the dome model is gone, in that if as a line of view slides from north to south, no sudden changes happen on the picture. This model of central projection is uniform- the three cases are reduced to one. So far we have described points in projective geometry. What about lines? What a viewer at the origin sees as a line is shown below as a great circle, the intersection of the model sphere with a plane through the origin. (One of the projective points on this line is shown to bring out a subtlety. Because two antipodal spots together make up a single projective point, the great circle's behind-the-paper part is the same set of projective points as its in-front-of-the-paper part.) Just as we did with each projective point, we will also describe a projective line with a triple of reals. For instance, the members of this plane through the origin in 1R3 xP j{ y x+y-z=0} z project to a line that we can described with the triple (1 1 -1) (we use row vectors to typographically distinguish lines from points). In general, for any nonzero three-wide row vector L we define the associated line in the projective plane, to be the set L ={kL |k E- R and k # 0} of nonzero multiples of L. The reason that this description of a line as a triple is convienent is that in the projective plane, a point v and a line L are incident-the point lies on the line, the line passes throught the point-if and only if a dot product of their representatives v1L1 + v2L2 + vLs is zero (Exercise 4 shows that this is independent of the choice of representatives ce and L). For instance, the projective point described above by the column vector with components 1, 2, and 3 lies in the projective line described by (1 1 -1), simply because any  342 Chapter Four. Determinants vector in R3 whose components are in ratio 1: 2: 3 lies in the plane through the origin whose equation is of the form 1k - x +1k - y -1k.- z = 0 for any nonzero k. That is, the incidence formula is inherited from the three-space lines and planes of which v and L are projections. Thus, we can do analytic projective geometry. For instance, the projective line L = (1 1 -1) has the equation 1v1 + 1v2 - 1v3 = 0, because points incident on the line are characterized by having the property that their repre- sentatives satisfy this equation. One difference from familiar Euclidean anlaytic geometry is that in projective geometry we talk about the equation of a point. For a fixed point like 1 v (2 (3 the property that characterizes lines through this point (that is, lines incident on this point) is that the components of any representatives satisfy 1L1 + 2L2 + 3L3 = 0 and so this is the equation of v. This symmetry of the statements about lines and points brings up the Duality Principle of projective geometry: in any true statement, interchanging 'point' with 'line' results in another true statement. For example, just as two distinct points determine one and only one line, in the projective plane, two distinct lines determine one and only one point. Here is a picture showing two lines that cross in antipodal spots and thus cross at one projective point. Contrast this with Euclidean geometry, where two distinct lines may have a unique intersection or may be parallel. In this way, projective geometry is simpler, more uniform, than Euclidean geometry. That simplicity is relevant because there is a relationship between the two spaces: the projective plane can be viewed as an extension of the Euclidean plane. Take the sphere model of the projective plane to be the unit sphere in R3 and take Euclidean space to be the plane z = 1. This gives us a way of viewing some points in projective space as corresponding to points in Euclidean space, because all of the points on the plane are projections of antipodal spots from the sphere. (**)  Topic: Projective Geometry 343 Note though that projective points on the equator don't project up to the plane. Instead, these project 'out to infinity'. We can thus think of projective space as consisting of the Euclidean plane with some extra points adjoined-the Eu- clidean plane is embedded in the projective plane. These extra points, the equatorial points, are the ideal points or points at infinity and the equator is the ideal line or line at infinity (note that it is not a Euclidean line, it is a projective line). The advantage of the extension to the projective plane is that some of the awkwardness of Euclidean geometry disappears. For instance, the projective lines shown above in (*) cross at antipodal spots, a single projective point, on the sphere's equator. If we put those lines into (**) then they correspond to Euclidean lines that are parallel. That is, in moving from the Euclidean plane to the projective plane, we move from having two cases, that lines either intersect or are parallel, to having only one case, that lines intersect (possibly at a point at infinity). The projective case is nicer in many ways than the Euclidean case but has the problem that we don't have the same experience or intuitions with it. That's one advantage of doing analytic geometry, where the equations can lead us to the right conclusions. Analytic projective geometry uses linear algebra. For instance, for three points of the projective plane t, u, and v, setting up the equations for those points by fixing vectors representing each, shows that the three are collinear incident in a single line-if and only if the resulting three- equation system has infinitely many row vector solutions representing that line. That, in turn, holds if and only if this determinant is zero. tl 1 vi t2 U2 V2 t3 U3 V3 Thus, three points in the projective plane are collinear if and only if any three representative column vectors are linearly dependent. Similarly (and illustrating the Duality Principle), three lines in the projective plane are incident on a single point if and only if any three row vectors representing them are linearly dependent. The following result is more evidence of the 'niceness' of the geometry of the projective plane, compared to the Euclidean case. These two triangles are said to be in perspective from P because their corresponding vertices are collinear. 0 U1 T2 V2 U2 Consider the pairs of corresponding sides: the sides T1U1 and T2U2, the sides T1V1 and T2V2, and the sides U1V1 and U2V2. Desargue's Theorem is that  344 Chapter Four. Determinants when the three pairs of corresponding sides are extended to lines, they intersect (shown here as the point TU, the point TV, and the point UV), and further, those three intersection points are collinear. UV TV TU ,- We will prove this theorem, using projective geometry. (These are drawn as Euclidean figures because it is the more familiar image. To consider them as projective figures, we can imagine that, although the line segments shown are parts of great circles and so are curved, the model has such a large radius compared to the size of the figures that the sides appear in this sketch to be straight.) For this proof, we need a preliminary lemma [Coxeter]: if W, X, Y, Z are four points in the projective plane (no three of which are collinear) then there are homogeneous coordinate vectors w, x, , and z for the projective points, and a basis B for R3, satisfying this. 1 0 0 1 RepB (w) = 0 RepB (x) = 1 RepB (g) = 0 RepB (z) = 1 (0) 0) 1 1 The proof is straightforward. Because W, X, Y are not on the same projective line, any homogeneous coordinate vectors wo, xo, Yo do not line on the same plane through the origin in R3 and so form a spanning set for R3. Thus any homogeneous coordinate vector for Z can be written as a combination zo a -o + b -o + c -o. Then, we can take w = a - Go, x = b -o, g= c - o, and z = zo, where the basis is B = (K, z, g). Now, to prove of Desargue's Theorem, use the lemma to fix homogeneous coordinate vectors and a basis. 1 0 0 1 RepB (ti) = 0 RepB (u1) = 1 RepB (01) = 0 RepB (o) = 1 (0) 0) 1 1 Because the projective point T2 is incident on the projective line OT1, any homogeneous coordinate vector for T2 lies in the plane through the origin in R3 that is spanned by homogeneous coordinate vectors of O and T1: 1 1 RepB (t2) = a 1 + b 0 1 (0  Topic: Projective Geometry 345 for some scalars a and b. That is, the homogenous coordinate vectors of members T2 of the line OT1 are of the form on the left below, and the forms for U2 and V2 are similar. _ t2 1 1 RepB(t2) =t1 RepB (2) --p2 RepB (v2) = 1 1 \1J V2 The projective line T1U1 is the image of a plane through the origin in R3. A quick way to get its equation is to note that any vector in it is linearly dependent on the vectors for T1 and U1 and so this determinant is zero. 1 0 x 0 1 y = z=0 0 0 z The equation of the plane in R3 whose image is the projective line T2U2 is this. t2 1 x 1 U2 y =0 - (1 -2)-x+(1-t2)-y+(t22-1)-z 0 l 1 z Finding the intersection of the two is routine. T1LU1 n T2U2 = 1 - 2 0 (This is, of course, the homogeneous coordinate vector of a projective point.) The other two intersections are similar. 1l-t82\0 T1V1 n T2V2 = 0 U1V1 n U2V2 ( 2-1 v2 -1 1-v2 The proof is finished by noting that these projective points are on one projective line because the sum of the three homogeneous coordinate vectors is zero. Every projective theorem has a translation to a Euclidean version, although the Euclidean result is often messier to state and prove. Desargue's theorem illustrates this. In the translation to Euclidean space, the case where 0 lies on the ideal line must be treated separately for then the lines T1T2, U1 U2, and V1 V2 are parallel. The parenthetical remark following the statement of Desargue's Theorem suggests thinking of the Euclidean pictures as figures from projective geometry for a model of very large radius. That is, just as a small area of the earth appears flat to people living there, the projective plane is also 'locally Euclidean'. Although its local properties are the familiar Euclidean ones, there is a global property of the projective plane that is quite different. The picture below shows  346 Chapter Four. Determinants a projective point. At that point is drawn an xy-axis. There is something interesting about the way this axis appears at the antipodal ends of the sphere. In the northern hemisphere, where the axis are drawn in black, a right hand put down with fingers on the x-axis will have the thumb point along the y-axis. But the antipodal axis has just the opposite: a right hand placed with its fingers on the x-axis will have the thumb point in the wrong way, instead, it is a left hand that works. Briefly, the projective plane is not orientable: in this geometry, left and right handedness are not fixed properties of figures. The sequence of pictures below dramatizes this non-orientability. They sketch a trip around this space in the direction of the y part of the xy-axis. (Warning: the trip shown is not halfway around, it is a full circuit. True, if we made this into a movie then we could watch the northern hemisphere spots in the drawing above gradually rotate about halfway around the sphere to the last picture below. And we could watch the southern hemisphere spots in the picture above slide through the south pole and up through the equator to the last picture. But: the spots at either end of the dashed line are the same projective point. We don't need to continue on much further; we are pretty much back to the projective point where we started by the last picture.) At the end of the circuit, the x part of the xy-axes sticks out in the other direction. Thus, in the projective plane we cannot describe a figure as right- or left-handed (another way to make this point is that we cannot describe a spiral as clockwise or counterclockwise). This exhibition of the existence of a non-orientable space raises the question of whether our universe is orientable: is is possible for an astronaut to leave right-handed and return left-handed? An excellent nontechnical reference is [Gardner]. An classic science fiction story about orientation reversal is [Clarke]. So projective geometry is mathematically interesting, in addition to the nat- ural way in which it arises in art. It is more than just a technical device to shorten some proofs. For an overview, see [Courant & Robbins]. The approach we've taken here, the analytic approach, leads to quick theorems and most importantly for us illustrates the power of linear algebra (see [Hanes], [Ryan], and [Eggar]). But another approach, the synthetic approach of deriving the  Topic: Projective Geometry 347 results from an axiom system, is both extraordinarily beautiful and is also the historical route of development. Two fine sources for this approach are [Coxeter] or [Seidenberg]. An interesting and easy application is [Davies] Exercises 1 What is the equation of this point? 1 0 0 2 (a) Find the line incident on these points in the projective plane. 1 4 25, 3 6 (b) Find the point incident on both of these projective lines. (1 2 3) , (4 5 6) 3 Find the formula for the line incident on two projective points. Find the formula for the point incident on two projective lines. 4 Prove that the definition of incidence is independent of the choice of the rep- resentatives of p and L. That is, if P1, P2, P3, and q1, q2, q3 are two triples of homogeneous coordinates for p, and L1, L2, L3, and M1, M2, M3 are two triples of homogeneous coordinates for L, prove that piLi + p2L2 + p3L3 = 0 if and only if q1M1 + q2M2 + q3M3 = 0. 5 Give a drawing to show that central projection does not preserve circles, that a circle may project to an ellipse. Can a (non-circular) ellipse project to a circle? 6 Give the formula for the correspondence between the non-equatorial part of the antipodal modal of the projective plane, and the plane z = 1. 7 (Pappus's Theorem) Assume that To, Uo, and Vo are collinear and that T1, U1, and V1 are collinear. Consider these three points: (i) the intersection V2 of the lines ToU1 and T1Uo, (ii) the intersection U2 of the lines ToV1 and T1Vo, and (iii) the intersection T2 of Uo Vi and U1 Vo. (a) Draw a (Euclidean) picture. (b) Apply the lemma used in Desargue's Theorem to get simple homogeneous coordinate vectors for the T's and Vo. (c) Find the resulting homogeneous coordinate vectors for U's (these must each involve a parameter as, e.g., Uo could be anywhere on the ToVo line). (d) Find the resulting homogeneous coordinate vectors for V1. (Hint: it involves two parameters.) (e) Find the resulting homogeneous coordinate vectors for V2. (It also involves two parameters.) (f) Show that the product of the three parameters is 1. (g) Verify that V2 is on the T2U2 line..   Similarity While studying matrix equivalence, we have shown that for any homomorphism there are bases B and D such that the representation matrix has a block partial- identity form. (Identity Zero RepB,D~h pBD( ) Zero Zero) This representation describes the map as sending c1131 + - - - + cn,/n to c161 + - - - + Ck6k + 0 + - - - + 0, where n is the dimension of the domain and k is the dimension of the range. So, under this representation the action of the map is easy to understand because most of the matrix entries are zero. This chapter considers the special case where the domain and the codomain are equal, that is, where the homomorphism is a transformation. In this case we naturally ask to find a single basis B so that RepB, B(t) is as simple as possible (we will take 'simple' to mean that it has many zeroes). A matrix having the above block partial-identity form is not always possible here. But we will develop a form that comes close, a representation that is nearly diagonal. I Complex Vector Spaces This chapter requires that we factor polynomials. Of course, many polynomials do not factor over the real numbers; for instance, x2 + 1 does not factor into the product of two linear polynomials with real coefficients. For that reason, we shall from now on take our scalars from the complex numbers. That is, we are shifting from studying vector spaces over the real numbers to vector spaces over the complex numbers-in this chapter vector and matrix entries are complex. Any real number is a complex number and a glance through this chapter shows that most of the examples use only real numbers. Nonetheless, the critical theorems require that the scalars be complex numbers, so the first section below is a quick review of complex numbers. 349  350 Chapter Five. Similarity In this book we are moving to the more general context of taking scalars to be complex only for the pragmatic reason that we must do so in order to develop the representation. We will not go into using other sets of scalars in more detail because it could distract from our goal. However, the idea of taking scalars from a structure other than the real numbers is an interesting one. Delightful presentations taking this approach are in [Halmos] and [Hoffman & Kunze]. 1.1 Factoring and Complex Numbers; A Review This subsection is a review only and we take the main results as known. For proofs, see [Birkhoff & MacLane] or [Ebbinghaus]. Just as integers have a division operation e.g., '4 goes 5 times into 21 with remainder 1' so do polynomials. 1.1 Theorem (Division Theorem for Polynomials) Let c(x) be a polyno- mial. If m(x) is a non-zero polynomial then there are quotient and remainder polynomials q(x) and r(x) such that c(x) = m(x) - q(x) + r(x) where the degree of r(x) is strictly less than the degree of m(x). In this book constant polynomials, including the zero polynomial, are said to have degree 0. (This is not the standard definition, but it is convienent here.) The point of the integer division statement '4 goes 5 times into 21 with remainder 1' is that the remainder is less than 4 while 4 goes 5 times, it does not go 6 times. In the same way, the point of the polynomial division statement is its final clause. 1.2 Example If c(x) = 2x3 - 3x2 + 4x and m(x) = x2 + 1 then q(x) = 2x - 3 and r(x) = 2x + 3. Note that r(x) has a lower degree than m(x). 1.3 Corollary The remainder when c(x) is divided by x - A is the constant polynomial r(x) = c(A). PROOF. The remainder must be a constant polynomial because it is of degree less than the divisor x - A, To determine the constant, take m(x) from the theorem to be x - A and substitute A for x to get c(A) = (A - A) - q(A) + r(x). QED If a divisor m(x) goes into a dividend c(x) evenly, meaning that r(x) is the zero polynomial, then m(x) is a factor of c(x). Any root of the factor (any A E R such that m(A) = 0) is a root of c(x) since c(A) = m(A) - q(A) = 0. The prior corollary immediately yields the following converse. 1.4 Corollary If A is a root of the polynomial c(x) then x - A divides c(x) evenly, that is, x - A is a factor of c(x).  Section . Complex Vector Spaces 351 Finding the roots and factors of a high-degree polynomial can be hard. But for second-degree polynomials we have the quadratic formula: the roots of ax2 + bx + c are -b+ b2 -4 ac -b - b2 -4 ac 2a 2a (if the discriminant b2 - 4ac is negative then the polynomial has no real number roots). A polynomial that cannot be factored into two lower-degree polynomials with real number coefficients is irreducible over the reals. 1.5 Theorem Any constant or linear polynomial is irreducible over the reals. A quadratic polynomial is irreducible over the reals if and only if its discrimi- nant is negative. No cubic or higher-degree polynomial is irreducible over the reals. 1.6 Corollary Any polynomial with real coefficients can be factored into linear and irreducible quadratic polynomials. That factorization is unique; any two factorizations have the same powers of the same factors. Note the analogy with the prime factorization of integers. In both cases, the uniqueness clause is very useful. 1.7 Example Because of uniqueness we know, without multiplying them out, that (x + 3)2(x2 + 1)3 does not equal (x + 3)4(x2 + x + 1)2 1.8 Example By uniqueness, if c(x) = m(x) - q(x) then where c(x) = (x - 3)2(x + 2)' and m(x) = (x - 3)(x + 2)2, we know that q(x) = (x - 3)(x + 2). While x2 + 1 has no real roots and so doesn't factor over the real numbers, if we imagine a root traditionally denoted i so that i2 + 1 = 0 -then x2 + 1 factors into a product of linears (x - i)(x + i). So we adjoin this root i to the reals and close the new system with respect to addition, multiplication, etc. (i.e., we also add 3 + i, and 2i, and 3 + 2i, etc., putting in all linear combinations of 1 and i). We then get a new structure, the complex numbers, denoted C. In C we can factor (obviously, at least some) quadratics that would be irre- ducible if we were to stick to the real numbers. Surprisingly, in C we can not only factor x2 + 1 and its close relatives, we can factor any quadratic. -b+ b2 - 4ac -b - b2 - 4ac ax2 + bx + c = a - (x - 2a - (x - a 2a ).x2a 1.9 Example The second degree polynomial x2+x+1 factors over the complex numbers into the product of two first degree polynomials. -1+ 5 -1- 1 1 x- 2 x- 2 2 +2i))x - (- 2- 2 i)) 1.10 Corollary (Fundamental Theorem of Algebra) Polynomials with complex coefficients factor into linear polynomials with complex coefficients. The factorization is unique.  352 Chapter Five. Similarity 1.2 Complex Representations Recall the definitions of the complex number addition (a+bi) + (c+ di) (a+c) + (b+d)i and multiplication. (a + bi)(c + di) = ac + adi + bci + bd(-1) (ac-bd) + (ad+bc)i 2.1 Example For instance, (1- 2i) + (5+4i) = 6 + 2i and (2 - 3i)(4 - 0.5i)= 6.5 - 13i. Handling scalar operations with those rules, all of the operations that we've covered for real vector spaces carry over unchanged. 2.2 Example Matrix multiplication is the same, although the scalar arithmetic involves more bookkeeping. (1+1i 2-O0i (1+0i 1 -0i> i -2+ 3 1) 3i -i} ((1+li) -(1+0i) + (2 - 0i) - (3i) (1+1i) -"(1 O- i) + (2 - i) - (-i) (i) -"(1+Oi) + (-2+ 3i) - (3i) (i) (1- Oi) + (-2+ 3i)- (-)) (1+ 7i 1 -li -9-5i 3+3i Everything else from prior chapters that we can, we shall also carry over unchanged. For instance, we shall call this 0+0i 0+0i +Oi/ 1 + Oi the standard basis for C" as a vector space over C and again denote it S.  Section I. Similarity 353 II Similarity 11.1 Definition and Examples We've defined H and H to be matrix-equivalent if there are nonsingular ma- trices P and Q such that H = PHQ. That definition is motivated by this diagram h Vwrt B ------ W'w.r.t. D H id{ id{ h VW w.r.t. B ' w.r.t. D H showing that H and f both represent h but with respect to different pairs of bases. We now specialize that setup to the case where the codomain equals the domain, and where the codomain's basis equals the domain's basis. t Vwrt B t---- Vwrt B id{ id{ Vw.r.t. D I Vw.r.t. D To move from the lower left to the lower right we can either go straight over, or up, over, and then down. In matrix terms, RepD,D (t) = RepB,D (id) RepB,B(t) (RepB,D(id))1 (recall that a representation of composition like this one reads right to left). 1.1 Definition The matrices T and S are similar if there is a nonsingular P such that T = PSP-1. Since nonsingular matrices are square, the square and of the same size. similar matrices T and S must be 1.2 Example With these two, 2 1 P 1 1 2 -3 S=1 -1 calculation gives that S is similar to this matrix. TK 0 -1 T 1 1  354 Chapter Five. Similarity 1.3 Example The only matrix similar to the zero matrix is itself: PZP--1= PZ = Z. The only matrix similar to the identity matrix is itself: PIP-1= PP-1 = I. Since matrix similarity is a special case of matrix equivalence, if two ma- trices are similar then they are equivalent. What about the converse: must matrix equivalent square matrices be similar? The answer is no. The prior example shows that the similarity classes are different from the matrix equiv- alence classes, because the matrix equivalence class of the identity consists of all nonsingular matrices of that size. Thus, for instance, these two are matrix equivalent but not similar. 7_1 0 S 1 2 0 1 0 3 So some matrix equivalence classes split into two or more similarity classes similarity gives a finer partition than does equivalence. This picture shows some matrix equivalence classes subdivided into similarity classes. o A To understand the similarity relation we shall study the similarity classes. We approach this question in the same way that we've studied both the row equivalence and matrix equivalence relations, by finding a canonical form for representatives* of the similarity classes, called Jordan form. With this canon- ical form, we can decide if two matrices are similar by checking whether they reduce to the same representative. We've also seen with both row equivalence and matrix equivalence that a canonical form gives us insight into the ways in which members of the same class are alike (e.g., two identically-sized matrices are matrix equivalent if and only if they have the same rank). Exercises 1.4 For S- 1 3 7, 0 0 P 4 2 -2 -6 -11/2 -5 P -3 2 check that T = PSP-1. / 1.5 Example 1.3 shows that the only matrix similar to a zero matrix is itself and that the only matrix similar to the identity is itself. (a) Show that the 1 x 1 matrix (2), also, is similar only to itself. (b) Is a matrix of the form cI for some scalar c similar only to itself? (c) Is a diagonal matrix similar only to itself? 1.6 Show that these matrices are not similar. 1 0 4 1 0 1 1 1 3 0 1 1 2 1 7 3 1 2  Section II. Similarity 355 1.7 Consider the transformation t: P2 - P2 described by x2 - x + 1, x x - 1, and 1 - 3. (a) Find T = RepB, B(t) where B = (x2, x, 1). (b) Find S = RepD,D (t) where D = (1, 1 + x, 1 + x + x2). (c) Find the matrix P such that T = PSP-1. / 1.8 Exhibit an nontrivial similarity relationship in this way: let t: C2 - C2 act by 1 3 -1 -1 2 0 1 2 and pick two bases, and represent t with respect to then T = RepB, B(t) and S = RepDD(t). Then compute the P and P-1 to change bases from B to D and back again. 1.9 Explain Example 1.3 in terms of maps. / 1.10 Are there two matrices A and B that are similar while A2 and B2 are not similar? [Halmos] / 1.11 Prove that if two matrices are similar and one is invertible then so is the other. / 1.12 Show that similarity is an equivalence relation. 1.13 Consider a matrix representing, with respect to some B, B, reflection across the x-axis in R2. Consider also a matrix representing, with respect to some D, D, reflection across the y-axis. Must they be similar? 1.14 Prove that similarity preserves determinants and rank. Does the converse hold? 1.15 Is there a matrix equivalence class with only one matrix similarity class inside? One with infinitely many similarity classes? 1.16 Can two different diagonal matrices be in the same similarity class? / 1.17 Prove that if two matrices are similar then their k-th powers are similar when k > 0. What if k < 0? / 1.18 Let p(x) be the polynomial cx"+.. -+ ciX+ co. Show that if T is similar to S then p(T) = cnT" + ---"+ c1T + col is similar to p(S) =cnS" + ---+ c1S + col. 1.19 List all of the matrix equivalence classes of 1 x 1 matrices. Also list the sim- ilarity classes, and describe which similarity classes are contained inside of each matrix equivalence class. 1.20 Does similarity preserve sums? 1.21 Show that if T - Al and N are similar matrices then T and N + Al are also similar. 11.2 Diagonalizability The prior subsection defines the relation of similarity and shows that, although similar matrices are necessarily matrix equivalent, the converse does not hold. Some matrix-equivalence classes break into two or more similarity classes (the nonsingular n x n matrices, for instance). This means that the canonical form for matrix equivalence, a block partial-identity, cannot be used as a canonical form for matrix similarity because the partial-identities cannot be in more than  356 Chapter Five. Similarity one similarity class, so there are similarity classes without one. This picture illustrates. As earlier in this book, class representatives are shown with stars. We are developing a canonical form for representatives of the similarity classes. We naturally try to build on our previous work, meaning first that the partial identity matrices should represent the similarity classes into which they fall, and beyond that, that the representatives should be as simple as possible. The simplest extension of the partial-identity form is a diagonal form. 2.1 Definition A transformation is diagonalizable if it has a diagonal repre- sentation with respect to the same basis for the codomain as for the domain. A diagonalizable matrix is one that is similar to a diagonal matrix: T is diag- onalizable if there is a nonsingular P such that PTP-1 is diagonal. 2.2 Example The matrix 4 -2 1 1 is diagonalizable. 2 0 (-1 2 4 -2 (-1 2 - 0 3 1 -1 1 1 1 -1 2.3 Example Not every matrix is diagonalizable. The square of is the zero matrix. Thus, for any map n that N represents (with respect to the same basis for the domain as for the codomain), the composition n o n is the zero map. This implies that no such map n can be diagonally represented (with respect to any B, B) because no power of a nonzero diagonal matrix is zero. That is, there is no diagonal matrix in N's similarity class. That example shows that a diagonal form will not do for a canonical form we cannot find a diagonal matrix in each matrix similarity class. However, the canonical form that we are developing has the property that if a matrix can be diagonalized then the diagonal matrix is the canonical representative of the similarity class. The next result characterizes which maps can be diagonalized. 2.4 Corollary A transformation t is diagonalizable if and only if there is a basis B = (#1, ... , #,) and scalars A1, ... , A, such that t(#i) = Aj o for each i.  Section II. Similarity 357 PROOF. This follows from the definition by considering a diagonal representation matrix. 1l 0 RepB, B(t) = RepB (t (/1)) -.-. RepB (t (fn)) -- '. :0 An This representation is equivalent to the existence of a basis satisfying the stated conditions simply by the definition of matrix representation. QED 2.5 Example To diagonalize T_3 2 0 1 we take it as the representation of a transformation with respect to the standard basis T = Repe212 (t) and we look for a basis B = (1,/32) such that RepB,B(t) 0 A2 that is, such that t(1) =A13 and t(/32) = A2. 3 1 = A1'- 11 0312 =A2-2 We are looking for scalars x such that this equation 3 2 bi (bi 0 1) b2)= "b2) has solutions b1 and b2, which are not both zero. Rewrite that as a linear system. (3-x).bi+ 2-b2=0 (1-xz) -b2 = 0 In the bottom equation the two numbers multiply to give zero only if at least one of them is zero so there are two possibilities, b2 = 0 and x= 1. In the b2 = 0 possibility, the first equation gives that either b1 = 0 or x = 3. Since the case of both b1= 0 and b2 = 0 is disallowed, we are left looking at the possibility of x = 3. With it, the first equation in (*) is 0 -"b1 + 2 - b2 = 0 and so associated with 3 are vectors with a second component of zero and a first component that is free. 3 2 bi =3 {bi 0 1)(0) =-0) That is, one solution to (*) is Al= 3, and we have a first basis vector. 5ilGi  358 Chapter Five. Similarity In the x= 1 possibility, the first equation in (*) is 2 - b1 + 2 - b2 = 0, and so associated with 1 are vectors whose second component is the negative of their first component. 3 2 b1 1. b1 0 1 -b1 (-b1) Thus, another solution is A2 = 1 and a second basis vector is this. (1) To finish, drawing the similarity diagram R2 t >R2 w.r.t. E2 T w.r.t. E2 id id w.r.t. B >D w.r.t. B and noting that the matrix RepB,E2 (id) is easy leads to this diagonalization. 3 0 1 1 3 2 1 1 0 1 0 -1 0 1 0 -1 In the next subsection, we will expand on that example by considering more closely the property of Corollary 2.4. This includes seeing another way, the way that we will routinely use, to find the A's. Exercises / 2.6 Repeat Example 2.5 for the matrix from Example 2.2. 2.7 Diagonalize these upper triangular matrices. () -2 1 (b 5 4 0 2 0 1 / 2.8 What form do the powers of a diagonal matrix have? 2.9 Give two same-sized diagonal matrices that are not similar. Must any two different diagonal matrices come from different similarity classes? 2.10 Give a nonsingular diagonal matrix. Can a diagonal matrix ever be singular? / 2.11 Show that the inverse of a diagonal matrix is the diagonal of the the inverses, if no element on that diagonal is zero. What happens when a diagonal entry is zero? 2.12 The equation ending Example 2.5 1 1 3 2 1 1 3 0 0 -1 0 1 0 -1 0 1 is a bit jarring because for P we must take the first matrix, which is shown as an inverse, and for P-1 we take the inverse of the first matrix, so that the two -1 powers cancel and this matrix is shown without a superscript -1. (a) Check that this nicer-appearing equation holds. 3 01 1 1 1 3 21 1 1 1  Section II. Similarity 359 (b) Is the previous item a coincidence? Or can we always switch the P and the P-? 2.13 Show that the P used to diagonalize in Example 2.5 is not unique. 2.14 Find a formula for the powers of this matrix Hint: see Exercise 8. -3 1 -4 2 / 2.15 Diagonalize these. 1l 1 {0 1 (a) 0 0 (b) 1 0 2.16 We can ask how diagonalization interacts with the matrix operations. Assume that t, s: V -> V are each diagonalizable. Is ct diagonalizable for all scalars c? What about t + s? t o s? / 2.17 Show that matrices of this form are not diagonalizable. ( c c# 0 2.18 Show that each of these is diagonalizable. (a) ( ) (b) x ) x, y, z scalars 11.3 Eigenvalues and Eigenvectors In this subsection we will focus on the property of Corollary 2.4. 3.1 Definition A transformation t: V -* V has a scalar eigenvalue A if there is a nonzero eigenvector ( E V such that t(() = A - (. ("Eigen" is German for "characteristic of" or "peculiar to"; some authors call these characteristic values and vectors. No authors call them "peculiar".) 3.2 Example The projection map x x y y x, y, z E C z 0 has an eigenvalue of 1 associated with any eigenvector of the form x 0 where x and y are non-0 scalars. On the other hand, 2 is not an eigenvalue of r since no non-0 vector is doubled. That example shows why the 'non-O' appears in the definition. Disallowing 0 as an eigenvector eliminates trivial eigenvalues.  360 Chapter Five. Similarity 3.3 Example The only transformation on the trivial space {0} is 0 1-* 0. This map has no eigenvalues because there are no non-0 vectors v mapped to a scalar multiple A - 6 of themselves. 3.4 Example Consider the homomorphism t: P1 - P1 given by co + c1x (co + c1) + (co + c1)x. The range of t is one-dimensional. Thus an application of t to a vector in the range will simply rescale that vector: c + cx 1-* (2c) + (2c)x. That is, t has an eigenvalue of 2 associated with eigenvectors of the form c + cx where c # 0. This map also has an eigenvalue of 0 associated with eigenvectors of the form c - cx where c # 0. 3.5 Definition A square matrix T has a scalar eigenvalue A associated with the non-0 eigeavector ( if T(= A - (. 3.6 Remark Although this extension from maps to matrices is obvious, there is a point that must be made. Eigenvalues of a map are also the eigenvalues of matrices representing that map, and so similar matrices have the same eigen- values. But the eigenvectors are different similar matrices need not have the same eigenvectors. For instance, consider again the transformation t: P1 - P1 given by co + c1x 1-* (co+c1)+(co+c1)x. It has an eigenvalue of 2 associated with eigenvectors of the form c + cx where c # 0. If we represent t with respect to B = (1 + 1x, 1 - 1x) T = RepB B (t) = 0 0 then 2 is an eigenvalue of T, associated with these eigenvectors. { ( c} = { co E C, co 0} On the other hand, representing t with respect to D = (2 + lx, 1 + Ox) gives S = RepD,D(t) (73 1 and the eigenvectors of S associated with the eigenvalue 2 are these. {co) 3 1 (co) 2co 0 ECc: 0 c1 -3 -1 c1 2c1 c1 ( Thus similar matrices can have different eigenvectors. Here is an informal description of what's happening. The underlying trans- formation doubles the eigenvectors 6 1-* 2 - 6. But when the matrix representing the transformation is T = RepBB (t) then it "assumes" that column vectors are representations with respect to B. In contrast, S = RepD,D (t) "assumes" that column vectors are representations with respect to D. So the vectors that get doubled by each matrix look different.  Section II. Similarity 361 The next example illustrates the basic tool for finding eigenvectors and eigen- values. 3.7 Example What are the eigenvalues and eigenvectors of this matrix? I T= 2 -1 2 0 2 1 -2 3 To find the scalars x such that T(= =x for non-0 eigenvectors , bring every- thing to the left-hand side 1 2 -1 2 0 2 1 zi \(Zi -2 z2 -x z2 3 \z3 / Z3 and factor (T-xI) =G. (Note that it says T -xI; the expression T -x doesn't make sense because T is a matrix while x is a scalar.) This homogeneous linear system (1-x 2 1 (z1 0 2 0-x -2 (z2 = 0 -1 2 3 - x z3 0 has a non-6 solution if when that happens. and only if the matrix is singular. We can determine o = T - zI| 1-x 2 1 2 0-x -2 -1 2 3-x =x - 4x2+ 4x = x(x -2)2 The eigenvalues are A1 = 0 and A2 = 2. To find the plug in each eigenvalue. Plugging in A1= 0 gives (1- 0 2 1 (z1 0\ 2 0 -0 -2 (z2 = 0-> -1 2 3-0 \Z3 0 associated eigenvectors, ( Z\(a z2 = -a z3/ a for a scalar parameter a # 0 (a is non-0 because eigenvectors must be non-6). In the same way, plugging in A2 = 2 gives w 1-2 2 1 bzi 0 2 0 -2 -2 (z2 = 0 -1 2 3-2 z3 0 with b 0. zi b -> z2 = 0 z3 b  362 Chapter Five. Similarity 3.8 Example If _( 7A) S 03 (here 7 is not a projection map, it is the number 3.14...) then 70 x3 x (x )(x 3) so S has eigenvalues of A1 = 7 and A2 = 3. To find associated eigenvectors, first plug in A1 for x: 0 3- z2 0z for a scalar a # 0, and then plug in A2: (- 3 3 3 z 0 -b/( -3) where b f 0. 3.9 Definition The characteristic polynomial of a square matrix T is the determinant of the matrix T - xI, where x is a variable. The characteristic equation is |T - xl = 0. The characteristic polynomial of a transformation t is the polynomial of any RepBB(t). Exercise 30 checks that the characteristic polynomial of a transformation is well-defined, that is, any choice of basis yields the same polynomial. 3.10 Lemma A linear transformation on a nontrivial vector space has at least one eigenvalue. PROOF. Any root of the characteristic polynomial is an eigenvalue. Over the complex numbers, any polynomial of degree one or greater has a root. (This is the reason that in this chapter we've gone to scalars that are complex.) QED Notice the familiar form of the sets of eigenvectors in the above examples. 3.11 Definition The eigenspace of a transformation t associated with the eigenvalue A is VA = {| t(() = A(} U {0}. The eigenspace of a matrix is defined analogously. 3.12 Lemma An eigenspace is a subspace. PROOF. An eigenspace must be nonempty for one thing it contains the zero vector and so we need only check closure. Take vectors (1, ... , (a from VA, to show that any linear combination is in VA t(cidi + c2(2 + ... + can~) = cit(() + .. + cat((n) = C1A(1 + ---+ cn A(n (the second equality holds even if any Q is O since t(0) = A - 0 = 0). QED  Section I. Similarity 363 3.13 Example In Example 3.8 the eigenspace associated with the eigenvalue 7 and the eigenspace associated with the eigenvalue 3 are these. V, aER} V3={ -b/;3 bCER} 3.14 Example In Example 3.7, these are the eigenspaces associated with the eigenvalues 0 and 2. VQ={ a -al a EIR1, a/ b V2 ={ 0 bGER}. (b 3.15 Remark The characteristic equation is 0 = x(x - 2)2 so in some sense 2 is an eigenvalue "twice". However there are not "twice" as many eigenvectors, in that the dimension of the eigenspace is one, not two. The next example shows a case where a number, 1, is a double root of the characteristic equation and the dimension of the associated eigenspace is two. 3.16 Example With respect to the standard bases, this matrix 1 0 0 0 1 0 0 0 0 represents projection. IYH xy Its eigenspace associated with the eigenvalue 0 and its eigenspace associated with the eigenvalue 1 are easy to find. 0 Vo ={ 0 |c3 E C} (c3) ci Vi = { c2 ci, c2 E C}{ 0 By the lemma, if two eigenvectors v1 and -2 are associated with the same eigenvalue then any linear combination of those two is also an eigenvector as- sociated with that same eigenvalue. But, if two eigenvectors v1 and -2 are associated with different eigenvalues then the sum v1 + -2 need not be related to the eigenvalue of either one. In fact, just the opposite. If the eigenvalues are different then the eigenvectors are not linearly related. 3.17 Theorem For any set of distinct eigenvalues of a map or matrix, a set of associated eigenvectors, one per eigenvalue, is linearly independent.  364 Chapter Five. Similarity PROOF. We will use induction on the number of eigenvalues. If there is no eigen- value or only one eigenvalue then the set of associated eigenvectors is empty or is a singleton set with a non-O member, and in either case is linearly independent. For induction, assume that the theorem is true for any set of k distinct eigen- values, suppose that A1, . . . , Ak+1 are distinct eigenvalues, and let 61, .. . , 6k+1 be associated eigenvectors. If c11 + - - - + cklk + Ck+lVk+1= 0 then after multi- plying both sides of the displayed equation by Ak+1, applying the map or matrix to both sides of the displayed equation, and subtracting the first result from the second, we have this. c1(Ak+1 - A '-| + ... + Ck(Ak+1 - Ak)ik + Ck+1(Ak+1 - Ak+1>Yk+1 0 The induction hypothesis now applies: cl(Ak+1--A1) = 0, ... , ck (Ak+1--Ak) = 0. Thus, as all the eigenvalues are distinct, c1, ... , Ck are all 0. Finally, now Ck+1 must be 0 because we are left with the equation Vk+1 - 0. QED 3.18 Example The eigenvalues of 2 -2 2 0 1 1 -4 8 3 are distinct: A1= 1, A2= 2, and A3 = 3. A set of associated eigenvectors like 2 9 2 { 1 ,4, 1 } 0 4 2 is linearly independent. 3.19 Corollary An n x n matrix with n distinct eigenvalues is diagonalizable. PROOF. Form a basis of eigenvectors. Apply Corollary 2.4. QED Exercises 3.20 For each, find the characteristic polynomial and the eigenvalues. ()10 -9 (b l 2 (C)0 3 (d)0 0 () 4 -2 (b 4 3 (c 7 0 (d 0 0 e) 1 0 (e) 0 1 / 3.21 For each matrix, find the characteristic equation, and the eigenvalues and associated eigenvectors. a)3 0 (b 3 2 8 -1 (-1 0 3.22 Find the characteristic equation, and the eigenvalues and associated eigenvec- tors for this matrix. Hint. The eigenvalues are complex. -2 -1)  Section II. Similarity 365 3.23 Find the characteristic polynomial, the eigenvalues, and the associated eigen- vectors of this matrix. 1 1 1 0 0 1 0 0 1 / 3.24 For each matrix, find the characteristic equation, and the eigenvalues and associated eigenvectors. 3 -2 0 0 1 0 (a) -2 3 0 (b) 0 0 1 0 0 5 4 -17 8 / 3.25 Let t: P2 P 22 be ao + aix + a2x2 - (5ao + 6a1 + 2a2) - (ai + 8a2)x + (ao - 2a2)x2. Find its eigenvalues and the associated eigenvectors. 3.26 Find the eigenvalues and eigenvectors of this map t: M2 - M2. a b 2c arc c d b-2c d / 3.27 Find the eigenvalues and associated eigenvectors of the differentiation operator d/dx: P3 ' P3. 3.28 Prove that the eigenvalues of a triangular matrix (upper or lower triangular) are the entries on the diagonal. / 3.29 Find the formula for the characteristic polynomial of a 2 x 2 matrix. 3.30 Prove that the characteristic polynomial of a transformation is well-defined. / 3.31 (a) Can any non-0 vector in any nontrivial vector space be a eigenvector? That is, given a 0 0 from a nontrivial V, is there a transformation t: V - V and a scalar A - IR such that t() = AV? (b) Given a scalar A, can any non-0 vector in any nontrivial vector space be an eigenvector associated with the eigenvalue A? / 3.32 Suppose that t: V - V and T = RepB, B(t). Prove that the eigenvectors of T associated with A are the non-O vectors in the kernel of the map represented (with respect to the same bases) by T - Al. 3.33 Prove that if a,..., d are all integers and a + b = c+ d then a b c d has integral eigenvalues, namely a + b and a - c. / 3.34 Prove that if T is nonsingular and has eigenvalues A1, ... , A- then T-1 has eigenvalues 1/A1, ... , 1/An. Is the converse true? / 3.35 Suppose that T is n x n and c, d are scalars. (a) Prove that if T has the eigenvalue A with an associated eigenvector v then v is an eigenvector of cT + dI associated with eigenvalue cA + d. (b) Prove that if T is diagonalizable then so is cT + dI. / 3.36 Show that A is an eigenvalue of T if and only if the map represented by T - Al is not an isomorphism. 3.37 [Strang 80] (a) Show that if A is an eigenvalue of A then Ak is an eigenvalue of Ak. (b) What is wrong with this proof generalizing that? "If A is an eigenvalue of A and y is an eigenvalue for B, then Au is an eigenvalue for AB, for, if A = As and Bz= pz then ABz= Apz ~z~"  366 Chapter Five. Similarity 3.38 Do matrix-equivalent matrices have the same eigenvalues? 3.39 Show that a square matrix with real entries and an odd number of rows has at least one real eigenvalue. 3.40 Diagonalize. -1 2 2 2 2 2 -3 -6 -6 3.41 Suppose that P is a nonsingular nxn matrix. Show that the similarity trans- formation map tp: M9x9 - Mnx sending T -* PTP-1 is an isomorphism. ? 3.42 Show that if A is an n square matrix and each row (column) sums to c then c is a characteristic root of A. [Math. Mag., Nov. 1967]  Section III. Nilpotence 367 III Nilpotence The goal of this chapter is to show that every square matrix is similar to one that is a sum of two kinds of simple matrices. The prior section focused on the first kind, diagonal matrices. We now consider the other kind. 111.1 Self-Composition This subsection is optional, although it is necessary for later material in this section and in the next one. A linear transformations t: V - V, because it has the same domain and codomain, can be iterated.* That is, compositions of t with itself such as t2 = tot and t3 = t o t o t are defined. t2 (v)- Note that this power notation for the linear transformation functions dovetails with the notation that we've used earlier for their square matrix representations because if RepB,B(t)= T then RepBB(t3) Ti. 1.1 Example For the derivative map d/dx: P3 - P3 given by a+bx+cx2 +dx di) b+2cx+3dx2 the second power is the second derivative a+bx+cx2+dx3 d2/2 2c+6dx the third power is the third derivative a+bx+cx2 +dx - 6d and any higher power is the zero map. 1.2 Example This transformation of the space of 2 x 2 matrices a bt i b a c d)1 d 0)  368 Chapter Five. Similarity has this second power a b t2 a b c d 0 0 and this third power. a b t3 b a c d 0 0 After that, t4 = t2 and t5 = t3, etc. These examples suggest that on iteration more and more zeros appear until there is a settling down. The next result makes this precise. 1.3 Lemma For any transformation t: V - V, the rangespaces of the powers form a descending chain V D (t) D (t2) D ... and the nullspaces form an ascending chain. {0} C Y(t) C Y(t2) C... Further, there is a k such that for powers less than k the subsets are proper (if j < k then 4(t3) D 4(tj+1) and Y(ti) c Y(tj+1)), while for powers greater than k the sets are equal (if j > k then 2(t) = (tj+1) and Y(ti) =_ Y(tj+1)). PROOF. We will do the rangespace half and leave the rest for Exercise 13. Recall, however, that for any map the dimension of its rangespace plus the dimension of its nullspace equals the dimension of its domain. So if the rangespaces shrink then the nullspaces must grow. That the rangespaces form chains is clear because if E (tj+1), so that S= tj +1(v), then w = ti(t(67)) and so w EC (t3). To verify the "further" property, first observe that if any pair of rangespaces in the chain are equal M(tk) --2(tk+1) then all subsequent ones are also equal q(tk+1) __ ggk+2 etc. This is because if t: (tk+1) g(tk+2) is the same map, with the same domain, as t: q(tk) k(t+1) and it therefore has the same range: M(tk+1) 2(tk+2) (and induction shows that it holds for all higher powers). So if the chain of rangespaces ever stops being strictly decreasing then it is stable from that point onward. But the chain must stop decreasing. Each rangespace is a subspace of the one before it. For it to be a proper subspace it must be of strictly lower dimension (see Exercise 11). These spaces are finite-dimensional and so the chain can fall for only finitely-many steps, that is, the power k is at most the dimension of V. QED 1.4 Example The derivative map a + bx + cx2 + dx3 d b + 2cx + 3dx2 of Example 1.1 has this chain of rangespaces P3 D P2 D P1 D Po D 0G} - }  Section II. Nilpotence 369 and this chain of nullspaces. {0} C Po C PI C P2 C P3= P= 1.5 Example The transformation 7: C- C projecting onto the first two coordinates C1 C1 C2 C2 c3 0 has C D 2(7) =q(w2) ... and {0} C f (x) =j$(72)_.. 1.6 Example Let t: P2 - P2 be the map co + cix + c2x2 - 2co + c2x. As the lemma describes, on iteration the rangespace shrinks 2(to) = P2 4(t) = {a + bx a, b E C} q(t2) = {a a E C} and then stabilizes q(t2) = (t3) = - - , while the nullspace grows f(t) ={0} f(t) = {cx c E C} Y(t2) = {cx + d c, dE C} and then stabilizes jV(t2) =V(t3) .. This graph illustrates Lemma 1.3. The horizontal axis gives the power j of a transformation. The vertical axis gives the dimension of the rangespace of ti as the distance above zero and thus also shows the dimension of the nullspace as the distance below the gray horizontal line, because the two add to the dimension n of the domain. o n rank(ti) 0 12 jn Power j of the transformation As sketched, on iteration the rank falls and with it the nullity grows until the two reach a steady state. This state must be reached by the n-th iterate. The steady state's distance above zero is the dimension of the generalized rangespace and its distance below n is the dimension of the generalized nullspace. 1.7 Definition Let t be a transformation on an n-dimensional space. The generalized rangespace (or the closure of the rangespace) is 4 (t) = q(") The generalized nullspace (or the closure of the nullspace) is ix(t) = s(t").  370 Chapter Five. Similarity Exercises 1.8 Give the chains of rangespaces and nullspaces for the zero and identity trans- formations. 1.9 For each map, give the chain of rangespaces and the chain of nullspaces, and the generalized rangespace and the generalized nullspace. (a) to: P2 P2, a+bx+cx21--b+ cx2 (b) ti: R2 R2 (c) t2: P2 P2, a +bx + cx2 - b+ cx + ax2 (d) t3: R3 - R3 a a b aa c b 1.10 Prove that function composition is associative (t o t) o t - t o (t o t) and so we can write t3 without specifying a grouping. 1.11 Check that a subspace must be of dimension less than or equal to the dimen- sion of its superspace. Check that if the subspace is proper (the subspace does not equal the superspace) then the dimension is strictly less. (This is used in the proof of Lemma 1.e3.) 1.12 Prove that the generalized rangespace Mlo(t) is the entire space, and the generalized nullspace iK (t) is trivial, if the transformation t is nonsingular. Is this 'only if' also? 1.13 Verify the nullspace half of Lemma 1.3. 1.14 Give an example of a transformation on a three dimensional space whose range has dimension two. What is its nullspace? Iterate your example until the rangespace and nullspace stabilize. 1.15 Show that the rangespace and nullspace of a linear transformation need not be disjoint. Are they ever disjoint? 111.2 Strings This subsection is optional, and requires material from the optional Direct Sum subsection. The prior subsection shows that as j increases, the dimensions of the M(t3)'s fall while the dimensions of the Y(ti)'s rise, in such a way that this rank and nullity split the dimension of V. Can we say more; do the two split a basis is V = M (tj ) (e/V(t ) ? The answer is yes for the smallest power j = 0 since V =4(t°) e Y(t0) - V e {0}. The answer is also yes at the other extreme. 2.1 Lemma Where t: V - V is a linear transformation, the space is the direct sum V = o(t) e Joe (t). That is, both dim(V) = dim( 0c(t)) + dim(Yoe(t))  Section III. Nilpotence 371 PROOF. We will verify the second sentence, which is equivalent to the first. The first clause, that the dimension n of the domain of t' equals the rank of t' plus the nullity of t", holds for any transformation and so we need only verify the second clause. Assume that E 0(t) 0 Y/%(t) = (t") 0 Y(t" ), to prove that V6 is 0. Because v is in the nullspace, t"(67) =0. On the other hand, because q(t") ,(tn+1), the map t: R (t) - o m(t) is a dimension-preserving homomorphism and therefore is one-to-one. A composition of one-to-one maps is one-to-one, and so to": R (t) -> R (t) is one-to-one. But now because only 0 is sent by a one-to-one linear map to 0-the fact that t"(=) =0 implies that 0=. QED 2.2 Note Technically we should distinguish the map t: V - V from the map t: R (t) -o m(t) because the domains or codomains might differ. The second one is said to be the restriction* of t to jq(tk). We shall use later a point from that proof about the restriction map, namely that it is nonsingular. In contrast to the j = 0 and j = n cases, for intermediate powers the space V might not be the direct sum of 4(t3) and Y(ti). The next example shows that the two can have a nontrivial intersection. 2.3 Example Consider the transformation of C2 defined by this action on the elements of the standard basis. 1 0 0 0 N =Repe e2(n)=00 The vector (0) is in both the rangespace and nullspace. Another way to depict this map's action is with a string. F1 2- 0 2.4 Example A map n: C4 - C4 whose action on E4 is given by the string has 4(n) n Y(n) equal to the span [{e4}], has 2(n2) noY(n2) [{e3, e4}], and has R(n3) 0 y(3) --[{e4}]. The matrix representation is all zeros except for some subdiagonal ones. 0 0 0 0 1 0 0 0 N =Rep4 S4(n) = 0 1 0 0 0 0 1 0 More information on map restrictions is in the appendix.  372 Chapter Five. Similarity 2.5 Example Transformations can act via more than one string. A transfor- mation t acting on a basis B = (#1, . . .,#5) by 1302 3 -* 0 4 / 05 - 0 is represented by a matrix that is all zeros except for blocks of subdiagonal ones /0 0 0 0 0\ 1 0 0 0 0 RepB B(t)= 0 1 0 0 0 0 0 0 0 0 \0 0 0 1 0/ (the lines just visually organize the blocks). In those three examples all vectors are eventually transformed to zero. 2.6 Definition A nilpotent transformation is one with a power that is the zero map. A nilpotent matrix is one with a power that is the zero matrix. In either case, the least such power is the index of nilpotency. 2.7 Example In Example 2.3 the index of nilpotency is two. In Example 2.4 it is four. In Example 2.5 it is three. 2.8 Example The differentiation map d/dx: P2 -- P2 is nilpotent of index three since the third derivative of any quadratic polynomial is zero. This map's action is described by the string x2 -* 2x F-* 2 1-* 0 and taking the basis B = (x2, 2x, 2) gives this representation. 0 0 0 RepB,B (d/dx) = 1 0 0 0 1 0 Not all nilpotent matrices are all zeros except for blocks of subdiagonal ones. 2.9 Example With the matrix N from Example 2.4, and this four-vector basis 1 0 1 0 D= 0 2 1 0 D ( 1 ' 1 ' 1 ' 0 ' 0 0 0 1 a change of basis operation produces this representation with respect to D, D. 1 0 1 0 0 0 0 1 10 1 0 -1 0 1 0 0 2 1 0 1 0 0 0 0 2 1 0 _ -3 -2 5 0 1 1 1 0 0 1 0 0 1 1 1 0 -2 -1 3 0 0 0 01 0 0 1 0 0 0 0 1 2 1 -2 0  Section II. Nilpotence 373 The new matrix is nilpotent; it's fourth power is the zero matrix since (PNP-1)4 = P1VP-1 - P1VP- - P1VP- - P1VP- = P14P--1 and Na is the zero matrix. The goal of this subsection is Theorem 2.13, which shows that the prior example is prototypical in that every nilpotent matrix is similar to one that is all zeros except for blocks of subdiagonal ones. 2.10 Definition Let t be a nilpotent transformation on V. A t-string gener- ated by v E V is a sequence (, t(v), ..., tk-1(v)). This sequence has length k. A t-string basis is a basis that is a concatenation of t-strings. 2.11 Example In Example 2.5, the t-strings (01, 02, 3) and (04,35), of length three and two, can be concatenated to make a basis for the domain of t. 2.12 Lemma If a space has a t-string basis then the longest string in it has length equal to the index of nilpotency of t. PROOF. Suppose not. Those strings cannot be longer; if the index is k then tk sends any vector including those starting the string to 0. So suppose instead that there is a transformation t of index k on some space, such that the space has a t-string basis where all of the strings are shorter than length k. Because t has index k, there is a vector v such that tk-1(v) 0. Represent v as a linear combination of basis elements and apply t-1. We are supposing that tk-1 sends each basis element to 0 but that it does not send v to 0. That is impossible. QED We shall show that every nilpotent map has an associated string basis. Then our goal theorem, that every nilpotent matrix is similar to one that is all zeros except for blocks of subdiagonal ones, is immediate, as in Example 2.5. Looking for a counterexample, a nilpotent map without an associated string basis that is disjoint, will suggest the idea for the proof. Consider the map t: C _* C5 with this action. e1 /0 0 0 0 0 e3 0 0 0 0 0 0 e2 Rep5 £5(t) = 1 1 0 0 0 00~ 0 0 0 0 e~e 0 00 0 1 0' Even after ommitting the zero vector, these three strings aren't disjoint, but that doesn't end hope of finding a t-string basis. It only means that Es5 will not do for the string basis. To find a basis that will do, we first find the number and lengths of its strings. Since t's index of nilpotency is two, Lemma 2.12 says that at least one  374 Chapter Five. Similarity string in the basis has length two. Thus the map must act on a string basis in one of these two ways. 131 -/324H0-3 /2O /3 F /4 F 0 /33 F0 ,35 0 O/34 F0 /5-H 0 Now, the key point. A transformation with the left-hand action has a nullspace of dimension three since that's how many basis vectors are sent to zero. A transformation with the right-hand action has a nullspace of dimension four. Using the matrix representation above, calculation of t's nullspace Y(t) { z x,z, r E C} 0 shows that it is three-dimensional, meaning that we want the left-hand action. To produce a string basis, first pick /32 and /34 from M(t) n Y(t) 0 0 32= 1 /4= 0 0 0 (other choices are possible, just be sure that {/32, /34} is linearly independent). For /35 pick a vector from Y(t) that is not in the span of {/32, /34}. / 1 \ -1 ,31 = 0 0 \0/ Finally, take 13 and /33 such that t(131) =/2 and t (/3) --34 . 1 0 1= 0 /3= 0 0 1  Section II. Nilpotence 375 Now, with respect to B = (01,... ,/35), the matrix of t is as desired. /0 0 0 0 0\ 1 0 0 0 0 RepB,B(t) = 0 0 0 0 0 0 0 1 0 0 \0 0 0 0 0/ 2.13 Theorem Any nilpotent transformation t is associated with a t-string basis. While the basis is not unique, the number and the length of the strings is determined by t. This illustrates the proof. Basis vectors are categorized into kind 1, kind 2, and kind 3. They are also shown as squares or circles, according to whether they are in the nullspace or not. 3O O1 ... O 1 0 9 O1 ... O1 1 0 ®H-*QH-... HOH-+WH-0 PROOF. Fix a vector space V; we will argue by induction on the index of nilpo- tency of t: V -> V. If that index is 1 then t is the zero map and any basis is a string basis #1 1-* 0, ..., #, F-* 0. For the inductive step, assume that the theorem holds for any transformation with an index of nilpotency between 1 and k - 1 and consider the index k case. First observe that the restriction to the rangespace t: 4(t) -* fi(t) is also nilpotent, of index k - 1. Apply the inductive hypothesis to get a string basis for 4(t), where the number and length of the strings is determined by t. B = (01, t(01), ..., th10 1) ( 2, ... I e 2)) - - - i, ..., t (0 ) (In the illustration these are the basis vectors of kind 1, so there are i strings shown with this kind of basis vector.) Second, note that taking the final nonzero vector in each string gives a basis C (thi (#1), ... , thi (i)) for 4(t) n mo(t). (These are illustrated with 1's in squares.) For, a member of 4(t) is mapped to zero if and only if it is a linear combination of those basis vectors that are mapped to zero. Extend C to a basis for all of Y(t). (The 's are the vectors of kind 2 so that C is the set of squares.) While many choices are possible for the c's, their number p is determined by the map t as it is the dimension of w(t) minus the dimension of 4(t) n m(t).  376 Chapter Five. Similarity Finally, B^C is a basis for 4(t) +Y(t) because any sum of something in the rangespace with something in the nullspace can be represented using elements of B for the rangespace part and elements of C for the part from the nullspace. Note that dim (M(t) + Y(t)) = dim(M(t)) + dim(Y (t)) - dim(M(t) n Y(t)) = rank(t) + nullity(t) - i = dim(V) - i and so B C can be extended to a basis for all of V by the addition of i more vectors. Specifically, remember that each of #1,... , /3 is in 4(t), and extend B C with vectors v1,. .. , v2 such that t(71) = 13, .1. . , t(v2) =_1 . (In the illustration, these are the 3's.) The check that linear independence is preserved by this extension is Exercise 29. QED 2.14 Corollary Every nilpotent matrix is similar to a matrix that is all zeros except for blocks of subdiagonal ones. That is, every nilpotent map is repre- sented with respect to some basis by such a matrix. This form is unique in the sense that if a nilpotent matrix is similar to two such matrices then those two simply have their blocks ordered differently. Thus this is a canonical form for the similarity classes of nilpotent matrices provided that we order the blocks, say, from longest to shortest. 2.15 Example The matrix M=1 -1 1 -1 has an index of nilpotency of two, as this calculation shows. p MP -Y(MP) 1 M= 1 1 { IzEC} 2 M2 ( 0 ) C2 0 0 The calculation also describes how a map m represented by M must act on any string basis. With one map application the nullspace has dimension one and so one vector of the basis is sent to zero. On a second application, the nullspace has dimension two and so the other basis vector is sent to zero. Thus, the action of the map is f1 3 H/32 H- 0 and the canonical form of the matrix is this. 0 0 1 0 We can exhibit such a m-string basis and the change of basis matrices wit- nessing the matrix similarity. For the basis, take M to represent m with respect  Section III. Nilpotence 377 to the standard bases, pick a /32 E Y(m) and also pick a 131 so that m(,31) /32. (If we take M to be a representative with respect to some nonstandard bases then this picking step is just more messy.) Recall the similarity diagram. C2 rMwtC 2 w.,.t. E2 M 'w.,.t. E2 id{ P id P 0i2 m c w.r.t. B > w.r.t. B The canonical form equals RepB,B (m)= PMP-1, where P-1 = RepB,E2(id) (=01 D P =(P-1)- 1 -1 0 1 and the verification of the matrix calculation is routine. 1 -1 1 -1 1 1 0 0 0 1 1 -1 0 1 1 0 2.16 Example The matrix 0 1 -1 0 1 0 0 1 1 0 0 0 1 0 -1 0 0 -1 0 1 0 0 1 0 -1/ is nilpotent. These calculations show the nullspaces growing. p Y(NP) i 1 2 3 (0 1 -1 0 \1 0 0 1 1 0 0 0 0 0 0 0 1 1 -1 1 0 0 0 -1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -zero matrix- 0 0 0 0 0 0 0 1 { u-ov lu,v ECC} 0 u -1/ v/ 00 y { z y, z, u,v E C}l u \v/ C5 That table shows that any string basis must satisfy: the nullspace after one map application has dimension two so two basis vectors are sent directly to zero,  378 Chapter Five. Similarity the nullspace after the second application has dimension four so two additional basis vectors are sent to zero by the second iteration, and the nullspace after three applications is of dimension five so the final basis vector is sent to zero in three hops. 1> /2 > /3 0 /34 H /35 H 0 To produce such a basis, first pick two independent vectors from Y(n) 0 0 /3= 1 35 = 0 1 1 then add /32,/34 E (n2) such that n(,32) /33 and n(/34) /35 1 1 /32= 0 /34= 0 0 1 and finish by adding 31 E Y(n3) = C5) such that n(/31) ,32. /1\ 0 1 = 1 0 \0 Exercises / 2.17 What is the index of nilpotency of the left-shift operator, here acting on the space of triples of reals? (z, y,z) ~- (0,z, y) / 2.18 For each string basis state the index of nilpotency and give the dimension of the rangespace and nullspace of each iteration of the nilpotent map. (a) 1 /F-$2 0 /3 */4 H->0 _ /4 F-> ( /6 F>0 (c) 1 v /32 /33 - 0 Also give the canonical form of the matrix. 2.19 Decide which of these matrices are nilpotent.  Section III. Nilpotence 379 I 2 3 1-3 2 1 1 1 4 (a) -12 (b) 1 3 (c) -3 2 1 (d) 3 0 -1 -3 2 1 5 2 7 45 -22 -19 (e) 33 -16 -14 69 -34 -29 / 2.20 Find the canonical form of this matrix. /0 1 1 0 1\ 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0/ / 2.21 Consider the matrix from Example 2.16. (a) Use the action of the map on the string basis to give the canonical form. (b) Find the change of basis matrices that bring the matrix to canonical form. (c) Use the answer in the prior item to check the answer in the first item. / 2.22 Each of these matrices is nilpotent. 1/2 1/20 0 0 -1 1 -1 (a) 1/2 -1/2 (b) 0 -1 1 (c) 1 0 1 0 -1 1 1 -1 1 Put each in canonical form. 2.23 Describe the effect of left or right multiplication by a matrix that is in the canonical form for nilpotent matrices. 2.24 Is nilpotence invariant under similarity? That is, must a matrix similar to a nilpotent matrix also be nilpotent? If so, with the same index? / 2.25 Show that the only eigenvalue of a nilpotent matrix is zero. 2.26 Is there a nilpotent transformation of index three on a two-dimensional space? 2.27 In the proof of Theorem 2.13, why isn't the proof's base case that the index of nilpotency is zero? / 2.28 Let t: V - V be a linear transformation and suppose v - V is such that tk (v) = 0'but tk-1() 0. Consider the t-string (v, t(6),. . . ,tk-()). (a) Prove that t is a transformation on the span of the set of vectors in the string, that is, prove that t restricted to the span has a range that is a subset of the span. We say that the span is a t-invariant subspace. (b) Prove that the restriction is nilpotent. (c) Prove that the t-string is linearly independent and so is a basis for its span. (d) Represent the restriction map with respect to the t-string basis. 2.29 Finish the proof of Theorem 2.13. 2.30 Show that the terms 'nilpotent transformation' and 'nilpotent matrix', as given in Definition 2.6, fit with each other: a map is nilpotent if and only if it is represented by a nilpotent matrix. (Is it that a transformation is nilpotent if an only if there is a basis such that the map's representation with respect to that basis is a nilpotent matrix, or that any representation is a nilpotent matrix?) 2.31 Let T be nilpotent of index four. How big can the rangespace of T3 be? 2.32 Recall that similar matrices have the same eigenvalues. Show that the converse does not hold. 2.33 Prove a nilpotent matrix is similar to one that is all zeros except for blocks of super-diagonal ones.  380 Chapter Five. Similarity / 2.34 Prove that if a transformation has the same rangespace as nullspace. then the dimension of its domain is even. 2.35 Prove that if two nilpotent matrices commute then their product and sum are also nilpotent. 2.36 Consider the transformation of Mx- given by ts(T) = ST - TS where S is an n x n matrix. Prove that if S is nilpotent then so is ts. 2.37 Show that if N is nilpotent then I - N is invertible. Is that 'only if' also?  Section IV. Jordan Form 381 IV Jordan Form This section uses material from three optional subsections: Direct Sum, Deter- minants Exist, and Other Formulas for the Determinant. The chapter on linear maps shows that every h: V - W can be represented by a partial-identity matrix with respect to some bases B c V and D c W. This chapter revisits this issue in the special case that the map is a linear transformation t: V - V. Of course, the general result still applies but with the codomain and domain equal we naturally ask about having the two bases also be equal. That is, we want a canonical form to represent transformations as RepBB(t). After a brief review section, we began by noting that a block partial identity form matrix is not always obtainable in this B, B case. We therefore considered the natural generalization, diagonal matrices, and showed that if its eigenvalues are distinct then a map or matrix can be diagonalized. But we also gave an example of a matrix that cannot be diagonalized and in the section prior to this one we developed that example. We showed that a linear map is nilpotent if we take higher and higher powers of the map or matrix then we eventually get the zero map or matrix-if and only if there is a basis on which it acts via disjoint strings. That led to a canonical form for nilpotent matrices. Now, this section concludes the chapter. We will show that the two cases we've studied are exhaustive in that for any linear transformation there is a basis such that the matrix representation RepB,B (t) is the sum of a diagonal matrix and a nilpotent matrix in its canonical form. IV.1 Polynomials of Maps and Matrices Recall that the set of square matrices is a vector space under entry-by-entry addition and scalar multiplication and that this space Maxn has dimension n2. Thus, for any nxn matrix T the n2 + 1-member set {I, T, T2, ... , T42 } is linearly dependent and so there are scalars co, ... , cn2 such that cn2T2 +-" --+c1T+coI is the zero matrix. 1.1 Remark This observation is small but important. It says that every transformation exhibits a generalized nilpotency: the powers of a square matrix cannot climb forever without a "repeat". 1.2 Example Rotation of plane vectors 7r/6 radians counterclockwise is rep- resented with respect to the standard basis by T _(3/2 -1/2 1/2 3/2 and verifying that 0T4 + 0T3 + iT2 - 2T - 1I equals the zero matrix is easy.  382 Chapter Five. Similarity 1.3 Definition For any polynomial f(x) = cu" + - - -+ cis + c0, where t is a linear transformation then f(t) is the transformation cnt" + - - - + cit + co(id) on the same space and where T is a square matrix then f(T) is the matrix cnT"+---+c1T+coI. 1.4 Remark If, for instance, f(x) = x - 3, then most authors write in the identity matrix: f(T) = T - 31. But most authors don't write in the identity map: f(t) = t - 3. In this book we shall also observe this convention. Of course, if T = RepBB(t) then f(T) = RepBB(f(t)), which follows from the relationships T = RepBB(tj), and cT = RepB,B(ct), and T1 + T2 = RepB,B (tl + t2). As Example 1.2 shows, there may be polynomials of degree smaller than n2 that zero the map or matrix. 1.5 Definition The minimal polynomial m(x) of a transformation t or a square matrix T is the polynomial of least degree and with leading coefficient 1 such that m(t) is the zero map or m(T) is the zero matrix. A minimal polynomial always exists by the observation opening this subsec- tion. A minimal polynomial is unique by the 'with leading coefficient 1' clause. This is because if there are two polynomials m(x) and rhn(x) that are both of the minimal degree to make the map or matrix zero (and thus are of equal degree), and both have leading l's, then their difference m(x) - rn(x) has a smaller de- gree than either and still sends the map or matrix to zero. Thus m(x) - rn(x) is the zero polynomial and the two are equal. (The leading coefficient requirement also prevents a minimal polynomial from being the zero polynomial.) 1.6 Example We can see that m(x) = x2 - 2x - 1 is minimal for the matrix of Example 1.2 by computing the powers of T up to the power n2 4. T2 1/2 -1/3/2 T3 (0 -1 T4 -1/2 -v/2/2 5 /2 1/2 T 1 0 5 //2 -1/2 Next, put c4T4 + c3T3 + c2T2 + c1T + coI equal to the zero matrix -(1/2)c4 + (1/2)c2 + (/3/2)c1 + co = 0 -(/3/2)c4 - c3 - (/3/2)c2 - (1/2)c1 = 0 (/5/2)c4 + c3 + (/3/2)c2 + (1/2)c1 = 0 -(1/2)c4 + (1/2)c2 + (/3/2)c1 + co = 0 and use Gauss' method. c4 - c2 - /3c1 - 2co = 0 c3 + /3c2 + 2c1 + 3/co = 0 Setting c4, c3, and c2 to zero forces ci and co to also come out as zero. To get a leading one, the most we can do is to set c4 and c3 to zero. Thus the minimal polynomial is quadratic.  Section IV. Jordan Form 383 Using the method of that example to find the minimal polynomial of a 3 x 3 matrix would mean doing Gaussian reduction on a system with nine equations in ten unknowns. We shall develop an alternative. To begin, note that we can break a polynomial of a map or a matrix into its components. 1.7 Lemma Suppose that the polynomial f(x) =c zx"+""" -+ c1x + co factors as k(x - A1) 1 - - - (x - A )qe. If t is a linear transformation then these two are equal maps. cnt" +.-.-+cit + co = k.- (t -A1)g1 o.- -o (t - Af)g' Consequently, if T is a square matrix then f(T) and k -(T - A1I) 1 - - - (T - A I) ' are equal matrices. PROOF. This argument is by induction on the degree of the polynomial. The cases where the polynomial is of degree 0 and 1 are clear. The full induction argument is Exercise 1.7 but the degree two case gives its sense. A quadratic polynomial factors into two linear terms f(x) = k(x - A1) - (x - A2)= k(x2 + (A1+ A2)x+ A1A2) (the roots A1 and A2 might be equal). We can check that substituting t for x in the factored and unfactored versions gives the same map. (k - (t - A1) O (t - A2)) (1) = (k - (t - A1)) (t(i) - A2V) =k (t(t(il)) - t(A2i) - Ait(7) - A1A2v) = k - (tot(i) - (A1 +A2)t() +A1A2v) k - (t2 - (A1 + A2)t + A1A2) (v) The third equality holds because the scalar A2 comes out of the second term, as t is linear. QED In particular, if a minimial polynomial m(x) for a transformation t factors as m(x) = (x - A1)1 ... (x - Af)ge then m(t) = (t - A1)1 0 -... o (t - Ar)qe is the zero map. Since m(t) sends every vector to zero, at least one of the maps t - A2 sends some nonzero vectors to zero. So, too, in the matrix case-if m is minimal for T then m(T) = (T - A1I)q1 - -"- (T - AI) q is the zero matrix and at least one of the matrices T - A2I sends some nonzero vectors to zero. Rewording both cases: at least some of the A2 are eigenvalues. (See Exercise 29.) Recall how we have earlier found eigenvalues. We have looked for A such that Ti! = AV by considering the equation 0 = T -z6= (T-zI)i6 and computing the determinant of the matrix T - zI. That determinant is a polynomial in x, the characteristic polynomial, whose roots are the eigenvalues. The major result of this subsection, the next result, is that there is a connection between this characteristic polynomial and the minimal polynomial. This results expands on the prior paragraph's insight that some roots of the minimal polynomial are eigenvalues by asserting that every root of the minimal polynomial is an eigenvalue and further that every eigenvalue is a root of the minimal polynomial (this is because it says '1 qj' and not just '0 qi').  384 Chapter Five. Similarity 1.8 Theorem (Cayley-Hamilton) If the characteristic polynomial of a transformation or square matrix factors into k - (x - A1)Pi(x - A2)P2 -.-. (x - AM) then its minimal polynomial factors into where 1 < qi < pi for each i between 1 and t. The proof takes up the next three lemmas. Although they are stated only in matrix terms, they apply equally well to maps. We give the matrix version only because it is convenient for the first proof. The first result is the key some authors call it the Cayley-Hamilton Theo- rem and call Theorem 1.8 above a corollary. For the proof, observe that a matrix of polynomials can be thought of as a polynomial with matrix coefficients. 2x2 +3x -1 x2 +2 _2 1 2 3 0 (-1 2 3x2 +4x +1 4x2 + x+1 3 4 x + 4 1 x + 1 1 1.9 Lemma If T is a square matrix with characteristic polynomial c(x) then c(T) is the zero matrix. PROOF. Let C be T - xI, the matrix whose determinant is the characteristic polynomial c(x) = cnx" + - - + c1x + co. t1,1 - x t1,2 -.-. t2,1 t2,2 -- x C=. tn - Recall that the product of the adjoint of a matrix with the matrix itself is the determinant of that matrix times the identity. c(x) - I = adj(C)C = adj(C)(T - xI) = adj(C)T - adj(C) x (*) The entries of adj (C) are polynomials, each of degree at most n - 1 since the minors of a matrix drop a row and column. Rewrite it, as suggested above, as adj(C) = Cn_1x"-1 + - - - + C1x + C0 where each Ci is a matrix of scalars. The left and right ends of equation (*) above give this. cnIxn + Cn-1Ixn-1 + .- -c + Ix + coI = Cn-)xn + ... + (C1T)x + COT - Cn_1x - Cn-2x" -... -Cox  Section IV. Jordan Form 385 Equate the coefficients of x", the coefficients of xz-1, etc. cnI = -On_1 CnI = -On-2 + Cn-1T c1I = -Co + C1T coI = COT Multiply (from the right) both sides of the first equation by Tn, both sides of the second equation by T-1, etc. Add. The result on the left is cnT4 + cn_1Tn-1 + ... + cOI, and the result on the right is the zero matrix. QED We sometimes refer to that lemma by saying that a matrix or map satisfies its characteristic polynomial. 1.10 Lemma Where f(x) is a polynomial, if f(T) is the zero matrix then f(x) is divisible by the minimal polynomial of T. That is, any polynomial satisfied by T is divisable by T's minimal polynomial. PROOF. Let m(x) be minimal for T. The Division Theorem for Polynomials gives f(x) = q(x)m(x) + r(x) where the degree of r is strictly less than the degree of m. Plugging T in shows that r(T) is the zero matrix, because T satisfies both f and m. That contradicts the minimality of m unless r is the zero polynomial. QED Combining the prior two lemmas gives that the minimal polynomial divides the characteristic polynomial. Thus, any root of the minimal polynomial is also a root of the characteristic polynomial. That is, so far we have that if m(x) = (x - A1) . .. (x - A2)" then c(x) must has the form (x - A1)Pi ... (x - A))Pi(x - Ai+1)Pi+1 ... (x - A )P' where each qi is less than or equal to pj. The proof of the Cayley-Hamilton Theorem is finished by showing that in fact the characteristic polynomial has no extra roots Ai+1, etc. 1.11 Lemma Each linear factor of the characteristic polynomial of a square matrix is also a linear factor of the minimal polynomial. PROOF. Let T be a square matrix with minimal polynomial m(x) and assume that x - A is a factor of the characteristic polynomial of T, that is, assume that A is an eigenvalue of T. We must show that x - A is a factor of m, that is, that m(A) = 0. In general, where A is associated with the eigenvector v, for any polyno- mial function f(x), application of the matrix f(T) to v equals the result of multiplying v by the scalar f(A). (For instance, if T has eigenvalue A associ- ated with the eigenvector v and f (x) = x2 + 2x + 3 then (T2 + 2T + 3) (v) T2(v) + 2T(6) + 3v = A2 - v+2A - v+ 3 - v= (A%2 +2A+3).-v.) Now, as m(T) is the zero matrix, 0 - m(T)(67) - m(A) - 67 and therefore m(A) - 0. QED  386 Chapter Five. Similarity 1.12 Example We can use the Cayley-Hamilton Theorem to help find the minimal polynomial of this matrix. 2 0 0 1 T- 1 2 0 2 T 0 0 2 -1 0 0 0 1 First, its characteristic polynomial c(x) = (x - 1)(x - 2)3 can be found with the usual determinant. Now, the Cayley-Hamilton Theorem says that T's minimal polynomial is either (x - 1)(x - 2) or (x - 1)(x decide among the choices just by computing: 2)2 or (x - 1)(x - 2)3. We can (T-1I)(T-2I) and 1 0 0 1 0 1 1 0 2 1 0 0 1 -11 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 2 1 0 0 1 -1 0 0 0 0 -1 0 0 0 0 1 0 0 0 0 2 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 (T - 1I)(T - 2I)2 and so m(x) = (x - 1)(x - 2)2. Exercises / 1.13 What are the possible minimal polynomials if a matrix has the given charac- teristic polynomial? (a) 8 - (x- 3)4 (b) (1/3) .(x + 1)3(x-4) (c) -1 .(x- 2)2(x- 5)2 (d) 5.- (x + 3)2(x - 1)(x - 2)2 What is the degree of each possibility? / 1.14 Find the minimal polynomial of each matrix. 3 0 0 3 0 0 3 0 0 2 0 1 (a) 1 3 0 (b) 1 3 0 (c) 1 3 0 (d) 0 6 2 0 0 4 0 0 3 0 1 3 0 0 2 (-1 4 0 0 0 2 2 1 0 3 0 0 0 (e) 0 6 2 (f) 0 -4 -1 0 0 0 0 2 3 -9 -4 2 -1 1 5 4 1 4 1.15 Find the minimal polynomial of this matrix. 0 1 0 0 0 1 1 0 0 / 1.16 What is the minimal polynomial of the differentiation operator d/dx on 'P,?  Section IV. Jordan Form 387 / 1.17 Find the minimal polynomial of matrices of this form /A 0 0 ... 0\ 1 A 0 0 0 1 A A 0 \0 0 ... 1 A/ where the scalar A is fixed (i.e., is not a variable). 1.18 What is the minimal polynomial of the transformation of Ps that sends p(x) to p(x + 1)? 1.19 What is the minimal polynomial of the map -r: C3 - C3 projecting onto the first two coordinates? 1.20 Find a 3 x 3 matrix whose minimal polynomial is x2. 1.21 What is wrong with this claimed proof of Lemma 1.9: "if c(x) =|T - xl then c(T) =|T - TI = 0"? [Cullen] 1.22 Verify Lemma 1.9 for 2 x 2 matrices by direct calculation. / 1.23 Prove that the minimal polynomial of an n x n matrix has degree at most n (not n2 as might be guessed from this subsection's opening). Verify that this maximum, n, can happen. / 1.24 The only eigenvalue of a nilpotent map is zero. Show that the converse state- ment holds. 1.25 What is the minimal polynomial of a zero map or matrix? Of an identity map or matrix? / 1.26 Interpret the minimal polynomial of Example 1.2 geometrically. 1.27 What is the minimal polynomial of a diagonal matrix? / 1.28 A projection is any transformation t such that t2 = t. (For instance, the transformation of the plane R2 projecting each vector onto its first coordinate will, if done twice, result in the same value as if it is done just once.) What is the minimal polynomial of a projection? 1.29 The first two items of this question are review. (a) Prove that the composition of one-to-one maps is one-to-one. (b) Prove that if a linear map is not one-to-one then at least one nonzero vector from the domain is sent to the zero vector in the codomain. (c) Verify the statement, excerpted here, that preceeds Theorem 1.8. ... if a minimial polynomial m(x) for a transformation t factors as m(x) =_(x - A1)-1 ... (x - A) then m(t) = (t - A1) 1 o... o (t -A ) is the zero map. Since m(t) sends every vector to zero, at least one of the maps t - A2 sends some nonzero vectors to zero. ... Rewording ...: at least some of the As are eigenvalues. 1.30 True or false: for a transformation on an n dimensional space, if the minimal polynomial has degree n then the map is diagonalizable. 1.31 Let f(x) be a polynomial. Prove that if A and B are similar matrices then f(A) is similar to f(B). (a) Now show that similar matrices have the same characteristic polynomial. (b) Show that similar matrices have the same minimal polynomial.  388 Chapter Five. Similarity (c) Decide if these are similar. 1 3 4 -1 2 3 1 1 1.32 (a) Show that a matrix is invertible if and only if the constant term in its minimal polynomial is not 0. (b) Show that if a square matrix T is not invertible then there is a nonzero matrix S such that ST and TS both equal the zero matrix. / 1.33 (a) Finish the proof of Lemma 1.7. (b) Give an example to show that the result does not hold if t is not linear. 1.34 Any transformation or square matrix has a minimal polynomial. Does the converse hold? IV.2 Jordan Canonical Form This subsection moves from the canonical form for nilpotent matrices to the one for all matrices. We have shown that if a map is nilpotent then all of its eigenvalues are zero. We can now prove the converse. 2.1 Lemma A linear transformation whose only eigenvalue is zero is nilpotent. PROOF. If a transformation t on an r-dimensional space has only the single eigenvalue of zero then its characteristic polynomial is x" . The Cayley-Hamilton Theorem says that a map satisfies its characteristic polynimial so to is the zero map. Thus t is nilpotent. QED We have a canonical form for nilpotent matrices, that is, for each matrix whose single eigenvalue is zero: each such matrix is similar to one that is all zeroes except for blocks of subdiagonal ones. (To make this representation unique we can fix some arrangement of the blocks, say, from longest to shortest.) We next extend this to all single-eigenvalue matrices. Observe that if t's only eigenvalue is A then t - A's only eigenvalue is 0 because t(_) = A if and only if (t - A) (v) = 0 - ". The natural way to extend the results for nilpotent matrices is to represent t - A in the canonical form N, and try to use that to get a simple representation T for t. The next result says that this try works. 2.2 Lemma If the matrices T - Al and N are similar then T and N + AI are also similar, via the same change of basis matrices. PROOF. With N = P(T - AI)P-1= PTP-1 - P(AI)P-1 we have N PTP-1 - PP-1(AI) since the diagonal matrix AI commutes with anything, and so N= PTP-- - AI. Therefore N + AIl PTP-1, as required. QED  Section IV. Jordan Form 389 2.3 Example The characteristic polynomial of T 2 -1 1 4 is (x - 3)2 and so T has only the single eigenvalue 3. Thus for T-3I=-1 -1 the only eigenvalue is 0, and T - 3I is nilpotent. The null spaces are routine to find; to ease this computation we take T to represent the transformation t: C2 - C2 with respect to the standard basis (we shall maintain this convention for the rest of the chapter). Y(t-3)={(Y) yEC} Y((t-3)2) 2 The dimensions of these null spaces show that the action of an associated map t - 3 on a string basis is 31 H /32 H 0. Thus, the canonical form for t - 3 with one choice for a string basis is Re t3 N 0 0 1 (f -2 Rep,BCt- ) =N=10 B=(1'2 and by Lemma 2.2, T is similar to this matrix. Rep (B, B) = N + 3I = 130 We can produce the similarity computation. Recall from the Nilpotence section how to find the change of basis matrices P and P-1 to express N as P(T - 31)P-1. The similarity diagram c2 it-3i>c2 w.r.t. S2 T-31 w.r.t. S2 id{P id{P C2 t-3 >C2 Cart.B N w~rt.B describes that to move from the lower left to the upper left we multiply by P- (Repe2,B(id))Y RepB,52(id) (1-2) and to move from the upper right to the lower right we multiply by this matrix. (1 -2\1 l 1/2 1/2\  390 Chapter Five. Similarity So the similarity is expressed by 3 0 _ 1/2 1/2 (2 -1 1 -2 1 3 -1/4 1/4) 1 4 1 2 which is easily checked. 2.4 Example This matrix has characteristic polynomial (x - 4)4 4 1 0 -1 _0 3 0 1 T 0 0 4 0 1 0 0 5 and so has the single eigenvalue 4. The nullities of t - 4 are: the null space of t - 4 has dimension two, the null space of (t - 4)2 has dimension three, and the null space of (t - 4)3 has dimension four. Thus, t - 4 has the action on a string basis of 13 H /32 H /33 H- 0 and /34 H 0. This gives the canonical form N for t - 4, which in turn gives the form for t. 4 0 0 0 N+4I - 1 4 0 0 0 1 4 0 0 0 0 4 An array that is all zeroes, except for some number A down the diagonal and blocks of subdiagonal ones, is a Jordan block. We have shown that Jordan block matrices are canonical representatives of the similarity classes of single- eigenvalue matrices. 2.5 Example The 3 x 3 matrices whose only eigenvalue is 1/2 separate into three similarity classes. The three classes have these canonical representatives. 1/2 0 0 1/2 0 0 1/2 0 0 0 1/2 2 1 1// 2 )0 1 1/2 0 0 0 1/2 0 0 1/2 0 1 1/2 In particular, this matrix 1/2 0 0 0 1/2 0 0 1 1/2 belongs to the similarity class represented by the middle one, because we have adopted the convention of ordering the blocks of subdiagonal ones from the longest block to the shortest. We will now finish the program of this chapter by extending this work to cover maps and matrices with multiple eigenvalues. The best possibility for general maps and matrices would be if we could break them into a part involving  Section IV. Jordan Form 391 their first eigenvalue A1 (which we represent using its Jordan block), a part with A2, etc. This ideal is in fact what happens. For any transformation t: V -* V, we shall break the space V into the direct sum of a part on which t - A1 is nilpotent, plus a part on which t - A2 is nilpotent, etc. More precisely, we shall take three steps to get to this section's major theorem and the third step shows that V = f, (t - A1) + - - J ,(t - Ae) where A1, ... , Af are t's eigenvalues. Suppose that t: V -* V is a linear transformation. Note that the restriction* of t to a subspace M need not be a linear transformation on M because there may be an m E M with t() V M. To ensure that the restriction of a transformation to a 'part' of a space is a transformation on the partwe need the next condition. 2.6 Definition Let t: V -* V be a transformation. A subspace M is t in- variant if whenever m E M then t(m) E M (shorter: t(M) C M). Two examples are that the generalized null space fK(t) and the generalized range space 4, (t) of any transformation t are invariant. For the generalized null space, if v E fK(t) then t" (v) = 0 where n is the dimension of the underlying space and so t(6) E /f(t) because t"(t()) is zero also. For the generalized range space, if v E 4, (t) then v = t" (w) for some w and then t(6) = tn+1(w) t" ( t(w) ) shows that t(6) is also a member of , (t). Thus the spaces fK(t - Ai) and 4,,(t - Ai) are t - Ai invariant. Observe also that t - Ai is nilpotent on jK(t - Ai) because, simply, if v has the property that some power of t - Ai maps it to zero that is, if it is in the generalized null space then some power of t - Ai maps it to zero. The generalized null space jK(t - Ai) is a 'part' of the space on which the action of t - Ai is easy to understand. The next result is the first of our three steps. It establishes that t - A3 leaves t - Ai's part unchanged. 2.7 Lemma A subspace is t invariant if and only if it is t - A invariant for any scalar A. In particular, where Ai is an eigenvalue of a linear transformation t, then for any other eigenvalue Aj, the spaces /f (t - Ai) and 4,,(t - Ai) are t - Aj invariant. PROOF. For the first sentence we check the two implications of the 'if and only if' separately. One of them is easy: if the subspace is t - A invariant for any A then taking A = 0 shows that it is t invariant. For the other implication suppose that the subspace is t invariant, so that if M E M then t(m) E M, and let A be any scalar. The subspace M is closed under linear combinations and so if t(m) E M then t(m) - Am E M. Thus if M E M then (t - A) (M) E M, as required. The second sentence follows straight from the first. Because the two spaces are t - Ai invariant, they are therefore t invariant. From this, applying the first sentence again, we conclude that they are also t - A3 invariant. QED * More information on restrictions of functions is in the appendix.  392 Chapter Five. Similarity The second step of the three that we will take to prove this section's major result makes use of an additional property of Y (t - A2) and s (t - a2), that they are complementary. Recall that if a space is the direct sum of two others V = Y e J then any vector v in the space breaks into two parts v = n+ f where n e Y and f e J, and recall also that if By and B2 are bases for Y and 9 then the concatenation B /'B2 is linearly independent (and so the two parts of v do not "overlap"). The next result says that for any subspaces Y and J that are complementary as well as t invariant, the action of t on v breaks into the "non-overlapping" actions of t on n and on F. 2.8 Lemma Let t: V - V be a transformation and let Y and J be t invariant complementary subspaces of V. Then t can be represented by a matrix with blocks of square submatrices T1 and T2 T1 Z2 }dim(Y)-many rows Zl T2 }dim(Q)-many rows where Z1 and Z2 are blocks of zeroes. PROOF. Since the two subspaces are complementary, the concatenation of a basis for Y and a basis for J makes a basis B = (Ki,. . . ,i,/ l,.. . ,/7g) for V. We shall show that the matrix RepB,B (t) = RepB(t(1)) ... RepB (t(q) has the desired form. Any vector v E V is in Y if and only if its final q components are zeroes when it is represented with respect to B. As Y is t invariant, each of the vectors RepB(t(l)), ..., RepB (t(2)) has that form. Hence the lower left of RepB,B(t) is all zeroes. The argument for the upper right is similar. QED To see that t has been decomposed into its action on the parts, observe that the restrictions of t to the subspaces Y and J are represented, with respect to the obvious bases, by the matrices T1 and T2. So, with subspaces that are invariant and complementary, we can split the problem of examining a linear transformation into two lower-dimensional subproblems. The next result illustrates this decomposition into blocks. 2.9 Lemma If T is a matrices with square submatrices T1 and T2 T-T1 Z2 T Z1 T'2 where the Z's are blocks of zeroes, then T |T - T2  Section IV. Jordan Form 393 PROOF. Suppose that T is n x n, that T1 is p x p, and that T2 is q x q. In the permutation formula for the determinant T I 3 ,#1)2,(2 tn,#(n) sgn(#) permutations # each term comes from a rearrangement of the column numbers 1,... , n into a new order #(1), . . . , #(n). The upper right block Z2 is all zeroes, so if a # has at least one of p + 1, .. . , n among its first p column numbers #(1), ... , #(p) then the term arising from # is zero, e.g., if b(1) = n then tl,#(1)t2,#(2) . . . tn,#(n) 0 - t2,#(2) ... tn,#(n) = 0. So the above formula reduces to a sum over all permutations with two halves: any significant # is the composition of a #1 that rearranges only 1,... , p and a #2 that rearranges only p + 1, ... , p + q. Now, the distributive law (and the fact that the signum of a composition is the product of the signums) gives that this S ( = 4t1,#1(1..) -tp,#1(p) sgn(#1)) perms 01 of1,...,p t+1,#2(p+1) tp'q' p+q,#2(p+q) sgn(b2) perms 2 of p+1,...,p+q equals T = Esignificant $tl1,0(1)t2,4(2) ... tn,7(n) sgn(#). QED 2.10 Example 2 0 0 0 1 2 0 0 2 0 3 0=3 0 0 3 0 1 2 * 0 3 0 0 0 3 From Lemma 2.9 we conclude that if two subspaces are complementary and t invariant then t is nonsingular if and only if its restrictions to both subspaces are nonsingular. Now for the promised third, final, step to the main result. 2.11 Lemma If a linear transformation t: V - V has the characteristic poly- nomial (x - A1)P... (x - A)Pe then (1) V =Y/(t - A1) e --.- e Y(t - AX) and (2) dim(Yoc(t - A2)) = pi. PROOF. Because dim(V) is the degree p1 + - - - + pf of the characteristic poly- nomial, to establish statement (1) we need only show that statement (2) holds and that oe(t - A2) n Yo1%(t - A j) is trivial whenever i j. For the latter, by Lemma 2.7, both Ye(t-A) and Yo(t-A) are t invariant. Notice that an intersection of t invariant subspaces is t invariant and so the restriction oft to Aoe (t - A2) n Yo(t - A4) is a linear transformation. But both t - A2 and t - A3 are nilpotent on this subspace and so if t has any eigenvalues  394 Chapter Five. Similarity on the intersection then its "only" eigenvalue is both Ai and A3. That cannot be, so this restriction has no eigenvalues: jf(t - Ai) n /f(t - Aj) is trivial (Lemma 3.10 shows that the only transformation without any eigenvalues is on the trivial space). To prove statement (2), fix the index i. Decompose V as fK(t - Ai) + ,,(t - Ai) and apply Lemma 2.8. T Ti Z2 }dim( ,V (t - Ai) )-many rows T kZl T2 }dim(,f,(t - Ai) )-many rows By Lemma 2.9, |T - xIl = T1 - xIl -|T2 - xII. By the uniqueness clause of the Fundamental Theorem of Arithmetic, the determinants of the blocks have the same factors as the characteristic polynomial |T1 - xI - (x - A1)1 ... (x - Af)qe and |T2 - xll = (x - A1)rl ... (x - Af)r, and the sum of the powers of these factors is the power of the factor in the characteristic polynomial: q + r1 = p1, ..., qe + re = pf. Statement (2) will be proved if we will show that qi = pi and that qi = 0 for all j # i, because then the degree of the polynomial |T1 - xIl which equals the dimension of the generalized null space is as required. For that, first, as the restriction of t - Ai to fK(t - Ai) is nilpotent on that space, the only eigenvalue of t on it is Ai. Thus the characteristic equation of t on (t - Ai) is |T1 - xIl (x - Ai)Qi. And thus q3 = 0 for all j # i. Now consider the restriction of t to 4,,(t - Ai). By Note 11.2.2, the map t - Ai is nonsingular on , (t - Ai) and so Ai is not an eigenvalue of t on that subspace. Therefore, x - Ai is not a factor of |T2 - xII, and so qi = pi. QED Our major result just translates those steps into matrix terms. 2.12 Theorem Any square matrix is similar to one in Jordan form JA -zeroes-- JA2 Jai- zeroes- Jai where each JA is the Jordan block associated with the eigenvalue A of the original matrix (that is, is all zeroes except for A's down the diagonal and some subdiagonal ones). PROOF. Given an n x n matrix T, consider the linear map t: C" -* C" that it represents with respect to the standard bases. Use the prior lemma to write C"n = f(t - A1) - - - + f(t - Af) where A1, ..., Ae are the eigenvalues of t. Because each /f(t - Ai) is t invariant, Lemma 2.8 and the prior lemma show that t is represented by a matrix that is all zeroes except for square blocks along the diagonal. To make those blocks into Jordan blocks, pick each BAi to be a string basis for the action of t - Ai on V (t - Ai). QED  Section IV. Jordan Form 395 Jordan form is a canonical form for similarity classes of square matrices, provided that we make it unique by arranging the Jordan blocks from least eigenvalue to greatest and then arranging the subdiagonal 1 blocks inside each Jordan block from longest to shortest. 2.13 Example This matrix has the characteristic polynomial (x - 2)2(x - 6). 2 0 1 T= 0 6 2 0 0 2 We will handle the eigenvalues 2 and 6 separately. Computation of the powers, and the null spaces and nullities, of T - 21 is routine. (Recall from Example 2.3 the convention of taking T to represent a transformation, here t: C3 - C3, with respect to the standard basis.) power p (T - 21)P /Y((t - 2)P) nullity 0 0 1 x\ 1 0 4 2 {(0) xEC} 1 0 0 0 0o 0 0 0 (x 2 0 16 8 { -z/2 |x,z E C} 2 0 0 0 z) 0 0 0 3 0 64 32 -same- - 0 0 0 So the generalized null space 4 (t - 2) has dimension two. We've noted that the restriction of t - 2 is nilpotent on this subspace. From the way that the nullities grow we know that the action of t - 2 on a string basis 31 H /32 H 0. Thus the restriction can be represented in the canonical form 0 0 1 -2 N2= 1 0= RepB,B (t- 2) B2 = ( 1 , 0 ) (-2) 0 where many choices of basis are possible. Consequently, the action of the re- striction of t to YP%(t - 2) is represented by this matrix. J2 =N2+ 2I= RepB2,B2(t= 1 2 The second eigenvalue's computations are easier. Because the power of x -6 in the characteristic polynomial is one, the restriction of t -6 to /1%(t -6) must be nilpotent of index one. Its action on a string basis must be /33 H- 0 and since it is the zero map, its canonical form N6 is the 1 x1 zero matrix. Consequently,  396 Chapter Five. Similarity the canonical form J6 for the action of t on //,(t -6) is the lx1 matrix with the single entry 6. For the basis we can use any nonzero vector from the generalized null space. 0 B6=() 0 Taken together, these two give that the Jordan form of T is 2 0 0 RepB,B(t) = 1 2 0 0 0 6 where B is the concatenation of B2 and B6. 2.14 Example Contrast the prior example with 2 2 1 T= 0 6 2 0 0 2 which has the same characteristic polynomial (x - 2)2(x - 6). While the characteristic polynomial is the same, power p (T - 21)P ((t - 2)P) nullity 0 2 1 (x 1 0 4 2 { -z/2 x ,zECC} 2 0 8 4 2 0 16 8 -same- - 0 0 0 here the action of t -2 is stable after only one application-the restriction of of t -2 to Y1%(t -2) is nilpotent of index only one. (So the contrast with the prior example is that while the characteristic polynomial tells us to look at the action of the t - 2 on its generalized null space, the characteristic polynomial does not describe completely its action and we must do some computations to find, in this example, that the minimal polynomial is (x - 2)(x - 6).) The restriction of t - 2 to the generalized null space acts on a string basis as 11- 0 and /32 H 0, and we get this Jordan block associated with the eigenvalue 2. _ 2 0 J2(= 0 2 For the other eigenvalue, the arguments for the second eigenvalue of the prior example apply again. The restriction of t - 6 to Y (t - 6) is nilpotent of index one (it can't be of index less than one, and since x - 6 is a factor of  Section IV. Jordan Form 397 the characteristic polynomial to the power one it can't be of index more than one either). Thus t - 6's canonical form N6 is the 1 x 1 zero matrix, and the associated Jordan block J6 is the 1 x 1 matrix with entry 6. Therefore, T is diagonalizable. 2 0 0 RepBB(t) = 0 2 0 0 0 6 1 0 3 B=B2 B6= 0 1 1 1 4 \OJ \-2J (0) (Checking that the third vector in B is in the nullspace of t - 6 is routine.) 2.15 Example A bit of computing with /-1 0 T= 0 3 \1 4 3 -4 -9 5 0 0 -1 -4 4 0 0 0 2 1 0 0 0 -1 4/ shows that its characteristic polynomial is (x - 3)3(x + 1)2. This table power p (T - 3I)P /((t - 3)P) nullity 1 2 3 -4 0 0 3 1 16 0 0 -16 0 -64 0 0 64 0 4 0 0 0 0 0 -4 -4 0 0 -9 -4 -1 -1 5 4 1 1 -16 0 0 0 0 001 16 16 0 01 32 16 0 01 -16 -16 0 0/, 64 0 0 0 0 0 0 -64 -64 0 01 -128 -64 0 0 64 64 0 0/ /-(u + v)/2\ -(u+ v)/2 {(u +v)/2 lu,v E C} u v/ 2 3 (-z\ -z {Iz u v/ Iz, uv E C} -same- - 3) acts on a string basis via the lue shows that the restriction of t - 3 to Yo<(t - two strings 13 /32 0 and /33 0. A similar calculation for the other eigenva]  398 Chapter Five. Similarity power p (T + 1I)P- ((t + 1)P) nullity 0 4 0 0 0\ -(u+v) 0 4 0 0 0 1 0 -4 0 0 0 { -v lu,v ECC} 2 3 -9 -4 3 -1 u \1 5 4 1 5/ \ v / /0 16 0 0 0\ 0 16 0 0 0 2 0 -16 0 0 0 -same- - 8 -40 -16 8 -8 8 24 16 8 24/ shows that the restriction of t + 1 to its generalized null space acts on a string basis via the two separate strings /34 H 0 and /35 H 0. Therefore T is similar to this Jordan form matrix. (-1 0 0 0 0 0 -1 0 0 0 0 0 3 0 0 0 0 1 3 0 0 0 0 0 3 We close with the statement that the subjects considered earlier in this Chpater are indeed, in this sense, exhaustive. 2.16 Corollary Every square matrix is similar to the sum of a diagonal matrix and a nilpotent matrix. Exercises 2.17 Do the check for Example 2.3. 2.18 Each matrix is in Jordan form. State its characteristic polynomial and its minimal polynomial. 3 0 - 0 2 0 0 3 0 0 (a) 1 3 (b) 0 -1 (c) 1 2 0 (d) 1 3 0 0 0 -1/2 0 1 3 3 0 0 0 4 0 0 0 5 0 0 (e)1 3 0 0) (f) 1 4 0 0) ()020 () 0 0 3 0 0 0 -4 0 ()0 203 0 0 1 3 0 0 1 -4003 5 0 0 0 5 0 0 0 0h t 2 0 0 0i t 2 0 0 () 0 0 2 0 0 1 2 0 0 0 0 3 0 0 0 3 / 2.19 Find the Jordan form from the given data. (a) The matrix T is 5x5 with the single eigenvalue 3. The nullities of the powers are: T - 31 has nullity two, (T - 3I)2 has nullity three, (T - 3I)3 has nullity four, and (T - 3I)4 has nullity five.  Section IV. Jordan Form 399 (b) The matrix S is 5 x 5 with two eigenvalues. For the eigenvalue 2 the nullities are: S - 21 has nullity two, and (S - 21)2 has nullity four. For the eigenvalue -1 the nullities are: S + 1I has nullity one. 2.20 Find the change of basis matrices for each example. (a) Example 2.13 (b) Example 2.14 (c) Example 2.15 / 2.21 Find the Jordan form and a Jordan basis for each matrix. (-10 4 (a) -25 10 (b) ( 4 9 -7 4 0 0 (c) 2 1 3 5 0 4 5 4 3 (d) -1 0 -3 1 -2 1 9 7 3 (e) -9 -7 -4 4 4 4 2 2 -1 (f) -1 -1 1 -1 -2 2 7 1 2 2 () 1 4 -1 -1 (d -2 1 5 -1 1 1 2 8 / 2.22 Find all possible Jordan forms of a transformation with characteristic poly- nomial (x - 1)2(x + 2)2 2.23 Find all possible Jordan forms of a transformation with characteristic poly- nomial (x - 1)3(x + 2). / 2.24 Find all possible Jordan forms of a transformation with characteristic poly- nomial (x - 2)3(x + 1) and minimal polynomial (x - 2)2(x + 1). 2.25 Find all possible Jordan forms of a transformation with characteristic poly- nomial (x - 2) 4(x + 1) and minimal polynomial (x - 2) 2 ( + 1). / 2.26 Diagonalize these. () 1 1 (b 0 1 0 0 1 0 / 2.27 Find the Jordan matrix representing the differentiation operator on P3. / 2.28 Decide if these two are similar. 1 -1 -1 0 4 -3 1 -1 2.29 Find the Jordan form of this matrix. 0 -1 1 0 Also give a Jordan basis. 2.30 How many similarity classes are there for 3x3 matrices whose only eigenvalues are -3 and 4?  400 Chapter Five. Similarity / 2.31 Prove that a matrix is diagonalizable if and only if its minimal polynomial has only linear factors. 2.32 Give an example of a linear transformation on a vector space that has no non-trivial invariant subspaces. 2.33 Show that a subspace is t - A1 invariant if and only if it is t - A2 invariant. 2.34 Prove or disprove: two n x n matrices are similar if and only if they have the same characteristic and minimal polynomials. 2.35 The trace of a square matrix is the sum of its diagonal entries. (a) Find the formula for the characteristic polynomial of a 2 x 2 matrix. (b) Show that trace is invariant under similarity, and so we can sensibly speak of the 'trace of a map'. (Hint: see the prior item.) (c) Is trace invariant under matrix equivalence? (d) Show that the trace of a map is the sum of its eigenvalues (counting multi- plicities). (e) Show that the trace of a nilpotent map is zero. Does the converse hold? 2.36 To use Definition 2.6 to check whether a subspace is t invariant, we seemingly have to check all of the infinitely many vectors in a (nontrivial) subspace to see if they satisfy the condition. Prove that a subspace is t invariant if and only if its subbasis has the property that for all of its elements, t(,3) is in the subspace. / 2.37 Is t invariance preserved under intersection? Under union? Complementation? Sums of subspaces? 2.38 Give a way to order the Jordan blocks if some of the eigenvalues are complex numbers. That is, suggest a reasonable ordering for the complex numbers. 2.39 Let P3 (R) be the vector space over the reals of degree j polynomials. Show that if j < k then P3 (R) is an invariant subspace of Pk (R) under the differentiation operator. In P7(R), does any of Po(R), ... , P6(R) have an invariant complement? 2.40 In Pn(R), the vector space (over the reals) of degree n polynomials, E {p(x) E P-,(R) p(-x) = p(x) for all x} and 0= {p(x) E P-,(R) p(-x) -p(x) for all x} are the even and the odd polynomials; p(x) x= 2 is even while p(x) x= 3 is odd. Show that they are subspaces. Are they complementary? Are they invariant under the differentiation transformation? 2.41 Lemma 2.8 says that if M and N are invariant complements then t has a representation in the given block form (with respect to the same ending as starting basis, of course). Does the implication reverse? 2.42 A matrix S is the square root of another T if S2 = T. Show that any nonsin- gular matrix has a square root.  Topic: Method of Powers 401 Topic: Method of Powers In practice, calculating eigenvalues and eigenvectors is a difficult problem. Find- ing, and solving, the characteristic polynomial of the large matrices often en- countered in applications is too slow and too hard. Other techniques, indirect ones that avoid the characteristic polynomial, are used. Here we shall see such a method that is suitable for large matrices that are 'sparse' (the great majority of the entries are zero). Suppose that the nxn matrix T has the n distinct eigenvalues A1, A2, ..., A,. Then R" has a basis that is composed of the associated eigenvectors ..., (). For any TER", where v= c1(1 + - -- + c iterating T on gives these. T = c1A1 + c2A2(2 + ... + cnAnfo T26 =c1A + c2A + ... + cnA C3 T3--c1An1+c2A2 + ... + cnAnn Tk --c1AN1-+c2A 2 + ... + cnA C If one of the eigenvaluse, say, A1, has a larger absolute value than any of the other eigenvalues then its term will dominate the above expression. Put another way, dividing through by Al gives this, TkvJ A2 Ak Ak= C11+C2Ak 2 +--- +CnmAn 1 1 1 and, because A1 is assumed to have the largest absolute value, as k gets larger the fractions go to zero. Thus, the entire expression goes to c1(1. That is (as long as c1 is not zero), as k increases, the vectors T k v will tend toward the direction of the eigenvectors associated with the dominant eigenvalue, and, consequently, the ratios of the lengths TkY / T-1|| will tend toward that dominant eigenvalue. For example (sample computer code for this follows the exercises), because the matrix T 3 0 8 -1 is triangular, its eigenvalues are just the entries on the diagonal, 3 and -1. Arbitrarily taking v to have the components 1 and 1 gives STI T2 ... T91 T106 1 3 9 19683 59049 1 () 7 17 ~~ (39367) 118097 and the ratio between the lengths of the last two is 2.999 9. Two implementation issues must be addressed. The first issue is that, instead of finding the powers of T and applying them to 67, we will compute 61 as T6J and  402 Chapter Five. Similarity then compute v2 as T71, etc. (i.e., we never separately calculate T2, T3, etc.). These matrix-vector products can be done quickly even if T is large, provided that it is sparse. The second issue is that, to avoid generating numbers that are so large that they overflow our computer's capability, we can normalize the 67's at each step. For instance, we can divide each v2 by its length (other possibilities are to divide it by its largest component, or simply by its first component). We thus implement this method by generating W0 = 60/|6| v1 = Two w1 = v1/||1| v2 = T w2 Wk-1 6k-1 Vk-1 until we are satisfied. Then the vector Vk is an approximation of an eigenvector, and the approximation of the dominant eigenvalue is the ratio Vk /llk_1|| Vk|. One way we could be 'satisfied' is to iterate until our approximation of the eigenvalue settles down. We could decide, for instance, to stop the iteration process not after some fixed number of steps, but instead when vk differs from Vk_1 by less than one percent, or when they agree up to the second significant digit. The rate of convergence is determined by the rate at which the powers of A2/A1 go to zero, where A2 is the eigenvalue of second largest norm. If that ratio is much less than one then convergence is fast, but if it is only slightly less than one then convergence can be quite slow. Consequently, the method of powers is not the most commonly used way of finding eigenvalues (although it is the simplest one, which is why it is here as the illustration of the possibility of computing eigenvalues without solving the characteristic polynomial). Instead, there are a variety of methods that generally work by first replacing the given matrix T with another that is similar to it and so has the same eigenvalues, but is in some reduced form such as tridiagonal form: the only nonzero entries are on the diagonal, or just above or below it. Then special techniques can be used to find the eigenvalues. Once the eigenvalues are known, the eigenvectors of T can be easily computed. These other methods are outside of our scope. A good reference is [Goult, et al.] Exercises 1 Use ten iterations to estimate the largest eigenvalue of these matrices, starting from the vector with components 1 and 2. Compare the answer with the one obtained by solving the characteristic equation.  Topic: Method of Powers 403 () 1 5 (b 3 2 ()0 4 (b -1 0 2 Redo the prior exercise by iterating until ||Bk - V-1 has absolute value less than 0.01 At each step, normalize by dividing each vector by its length. How many iterations are required? Are the answers significantly different? 3 Use ten iterations to estimate the largest eigenvalue of these matrices, starting from the vector with components 1, 2, and 3. Compare the answer with the one obtained by solving the characteristic equation. 4 0 1 -1 2 2 (a) -2 1 0 (b) 2 2 2 -2 0 1 -3 -6 -6 4 Redo the prior exercise by iterating until ||vk - V- has absolute value less than 0.01. At each step, normalize by dividing each vector by its length. How many iterations does it take? Are the answers significantly different? 5 What happens if ci = 0? That is, what happens if the initial vector does not to have any component in the direction of the relevant eigenvector? 6 How can the method of powers be adopted to find the smallest eigenvalue? Computer Code This is the code for the computer algebra system Octave that was used to do the calculation above. (It has been lightly edited to remove blank lines, etc.) >T=[3, 0; 8, -1] T= 3 0 8 -1 >v0=[1; 2] v0= 1 1 >vl=T*vO v1= 3 7 >v2=T*vl v2= 9 17 >T9=T**9 T9= 19683 0 39368 -1 >T10=T**10 T10= 59049 0 118096 1 >v9=T9*v0 v9=  404 Chapter Five. Similarity 19683 39367 >v10=T10*v0 v10= 59049 118096 >norm(v10)/norm(v9) ans=2.9999 Remark: we are ignoring the power of Octave here; there are built-in func- tions to automatically apply quite sophisticated methods to find eigenvalues and eigenvectors. Instead, we are using just the system as a calculator.  Topic: Stable Populations 405 Topic: Stable Populations Imagine a reserve park with animals from a species that we are trying to protect. The park doesn't have a fence and so animals cross the boundary, both from the inside out and in the other direction. Every year, 10% of the animals from inside of the park leave, and 1% of the animals from the outside find their way in. We can ask if we can find a stable level of population for this park: is there a population that, once established, will stay constant over time, with the number of animals leaving equal to the number of animals entering? To answer that question, we must first establish the equations. Let the year n population in the park be pn and in the rest of the world be rn. Pn+i =.90pn + .O1rn rn+1 = -0pn + .99rn We can set this system up as a matrix equation (see the Markov Chain topic). Pn+1 _.90 -01 Pn r'n+1 -.10 -99 rn Now, "stable level" means that Pn+1 = Pn and rn+1 = rn, so that the matrix equation Vm±1 T!, becomes = Tv. We are therefore looking for eigenvectors for T that are associated with the eigenvalue 1. The equation (I - T)= is .10 .01 (p\\_0 .10 .01 r 0 which gives the eigenspace: vectors with the restriction that p = .1r. Coupled with additional information, that the total world population of this species is is p + r = 110 000, we find that the stable state is p = 10, 000 and r = 100, 000. If we start with a park population of ten thousand animals, so that the rest of the world has one hundred thousand, then every year ten percent (a thousand animals) of those inside will leave the park, and every year one percent (a thousand) of those from the rest of the world will enter the park. It is stable, self-sustaining. Now imagine that we are trying to gradually build up the total world pop- ulation of this species. We can try, for instance, to have the world population grow at a rate of 1% per year. In this case, we can take a "stable" state for the park's population to be that it also grows at 1% per year. The equation Sn+1 = 1.01' n = Tvn leads to ((1.01 - I) - T) = , which gives this system. .11 .01 p _(0 .10 .02 r 0 The matrix is nonsingular, and so the only solution is p = 0 and r = 0. Thus, there is no (usable) initial population that we can establish at the park and expect that it will grow at the same rate as the rest of the world.  406 Chapter Five. Similarity Knowing that an annual world population growth rate of 1% forces an un- stable park population, we can ask which growth rates there are that would allow an initial population for the park that will be self-sustaining. We consider A6= Tv and solve for A. A-9 01 0=.10 A -.99O= (A - .9)(A - .99) - (.10)(.01) =A2 - 1.89A + .89 A shortcut to factoring that quadratic is our knowledge that A = 1 is an eigen- value of T, so the other eigenvalue is .89. Thus there are two ways to have a stable park population (a population that grows at the same rate as the popu- lation of the rest of the world, despite the leaky park boundaries): have a world population that is does not grow or shrink, and have a world population that shrinks by 11% every year. So this is one meaning of eigenvalues and eigenvectors-they give a sta- ble state for a system. If the eigenvalue is 1 then the system is static. If the eigenvalue isn't 1 then the system is either growing or shrinking, but in a dynamically-stable way. Exercises 1 What initial population for the park discussed above should be set up in the case where world populations are allowed to decline by 11% every year? 2 What will happen to the population of the park in the event of a growth in world population of 1% per year? Will it lag the world growth, or lead it? Assume that the inital park population is ten thousand, and the world population is one hunderd thousand, and calculate over a ten year span. 3 The park discussed above is partially fenced so that now, every year, only 5% of the animals from inside of the park leave (still, about 1% of the animals from the outside find their way in). Under what conditions can the park maintain a stable population now? 4 Suppose that a species of bird only lives in Canada, the United States, or in Mexico. Every year, 4% of the Canadian birds travel to the US, and 1% of them travel to Mexico. Every year, 6% of the US birds travel to Canada, and 4% go to Mexico. From Mexico, every year 10% travel to the US, and 0% go to Canada. (a) Give the transition matrix. (b) Is there a way for the three countries to have constant populations? (c) Find all stable situations.  Topic: Linear Recurrences 407 Topic: Linear Recurrences In 1202 Leonardo of Pisa, also known as Fibonacci, posed this problem. A certain man put a pair of rabbits in a place surrounded on all sides by a wall. How many pairs of rabbits can be produced from that pair in a year if it is supposed that every month each pair begets a new pair which from the second month on becomes productive? This moves past an elementary exponential growth model for population in- crease to include the fact that there is an initial period where newborns are not fertile. However, it retains other simplyfing assumptions, such as that there is no gestation period and no mortality. The number of newborn pairs that will appear in the upcoming month is simply the number of pairs that were alive last month, since those will all be fertile, having been alive for two months. The number of pairs alive next month is the sum of the number alive last month and the number of newborns. f(n+ 1) = f(n) + f(n - 1) where f(0) = 1, f(1) = 1 The is an example of a recurrence relation (it is called that because the values of f are calculated by looking at other, prior, values of f). From it, we can easily answer Fibonacci's twelve-month question. month 0 1 2 3 4 5 6 7 8 9 10 11 12 pairs 1 1 2 3 5 8 13 21 34 55 89 144 233 The sequence of numbers defined by the above equation (of which the first few are listed) is the Fibonacci sequence. The material of this chapter can be used to give a formula with which we can can calculate f (n + 1) without having to first find f(n), f (n - 1), etc. For that, observe that the recurrence is a linear relationship and so we can give a suitable matrix formulation of it. 1 1 f(n)> (f(n +1) f(1) 1 1 0 f (n - 1) - f(n) where f (0)) -= 1) Then, where we write T for the matrix and 6. for the vector with components f(n +1) and f(n), we have that 6 = T46o. The advantage of this matrix formu- lation is that by diagonalizing T we get a fast way to compute its powers: where T = PDP-1 we have Tn = PD"P-1, and the n-th power of the diagonal matrix D is the diagonal matrix whose entries that are the n-th powers of the entries of D. The characteristic equation of T is A2 - A - 1. The quadratic formula gives its roots as (1 + v/5)/2 and (1 - v/5)/2. Diagonalizing gives this. 1 1\ /1+ 1-- \ /1+v/5_ 0 1/ / -1 1 0 1 1 0 --4 --1 1+  408 Chapter Five. Similarity Introducing the vectors and taking the n-th power, we have f (n + 1)) (1 1) (1)_ f (n) f 1 Of f(0)f 1+_ 1-2 1+ 0f(1) 1 1 0 12 \-1 v1+5- f (Q) We can compute f(n) from the second component of that equation. 1 (1+ 5 (1_ - f (n) = v '5 2 2 Notice that f is dominated by its first term because (1 - 5)/2 is less than one, so its powers go to zero. Although we have extended the elementary model of population growth by adding a delay period before the onset of fertility, we nonetheless still get an (asmyptotically) exponential function. In general, a linear recurrence relation has the form f(n +1) = anf(n) + an_1f(n - 1) +...+ an-kf(n - k) (it is also called a difference equation). This recurrence relation is homogeneous because there is no constant term; i.e, it can be put into the form 0 = -f (n+1)+ anf(n)+an_1f(n -1)+- - -+ank f(n- k). This is said to be a relation of order k. The relation, along with the initial conditions f(0), ..., f(k) completely determine a sequence. For instance, the Fibonacci relation is of order 2 and it, along with the two initial conditions f(0) = 1 and f(1) = 1, determines the Fibonacci sequence simply because we can compute any f(n) by first computing f(2), f(3), etc. In this Topic, we shall see how linear algebra can be used to solve linear recurrence relations. First, we define the vector space in which we are working. Let V be the set of functions f from the natural numbers N = {0, 1, 2,.. .} to the real numbers. (Below we shall have functions with domain {1, 2,.. .}, that is, without 0, but it is not an important distinction.) Putting the initial conditions aside for a moment, for any recurrence, we can consider the subset S of V of solutions. For example, without initial conditions, in addition to the function f given above, the Fibonacci relation is also solved by the function g whose first few values are g(0) = 1, g(1) = 1, g(2) = 3, g(3) = 4, and g(4) = 7. The subset S is a subspace of V. It is nonempty because the zero function is a solution. It is closed under addition since if fi and f2 are solutions, then an+1(f1 + f2)(n + 1) + -.-. + an-k(f 1 + f2)(n- k) (an+ifi(n+1) +... + an-kf1(n- k)) + (an+1f2(n + 1) + ... + an-kf2(n - k)) =0.  Topic: Linear Recurrences 409 And, it is closed under scalar multiplication since an+1(rfi)(n +1)+ --.-+ ank(rf1)(n - k) =r(an+1ff1(n +1) + --.-+ an-kfi(n - k)) = 0. We can give the dimension of S. Consider this map from the set of functions S to the set of vectors Rk. /f(0)\ f(1) \f(k)/ Exercise 3 shows that this map is linear. Because, as noted above, any solution of the recurrence is uniquely determined by the k initial conditions, this map is one-to-one and onto. Thus it is an isomorphism, and thus S has dimension k, the order of the recurrence. So (again, without any initial conditions), we can describe the set of solu- tions of any linear homogeneous recurrence relation of degree k by taking linear combinations of only k linearly independent functions. It remains to produce those functions. For that, we express the recurrence f (n + 1) = an f (n) +.-.-.- + an-if (n - k) with a matrix equation. n ani an-2 ... an-k+1 n-k 1 0 0 . . . 0 0 / f (n)\ / f(n + 1) 0 1 0 f(n - 1) f(n) 0 0 1- =- 1:0 1 : )\f(n -k)) \f(n-k+1)) \0 0 0 ... 1 0/ In trying to find the characteristic function of the matrix, we can see the pattern in the 2 x 2 case an-A an-1 __A2 __an __ n-1 1 -A and 3x 3 case. (na-- A an-1 an-2 1 -A 0 = -A3 +a.. A2 +an-1,A +an-2  410 Chapter Five. Similarity Exercise 4 shows that the characteristic equation is this. an - A an_1 an-2 ... an-k+1 an-k 1 -A 0 ... 0 0 0 1 -A 0 0 1 0 0 0 ... 1 -A +(-Ak + anAk-1 + a Ak-2 + ... + an-k+1A +an-k) We call that the polynomial 'associated' with the recurrence relation. (We will be finding the roots of this polynomial and so we can drop the + as irrelevant.) If -Ak + anAk-1 + an_1Ak-2 + -. ---+ an-k+1A + an_k has no repeated roots then the matrix is diagonalizable and we can, in theory, get a formula for f(n) as in the Fibonacci case. But, because we know that the subspace of solutions has dimension k, we do not need to do the diagonalization calculation, provided that we can exhibit k linearly independent functions satisfying the relation. Where ri, r2, ... , rk are the distinct roots, consider the functions f, (n) = r1 through frk(n) = rn of powers of those roots. Exercise 5 shows that each is a solution of the recurrence and that the k of them form a linearly independent set. So, given the homogeneous linear recurrence f((n + 1) = anf (n) + - - - + an_k f(n - k) (that is, 0 = -f(n +1)+anf(n)+ - --+an_k f(n - k)) we consider the associated equation 0 = -Ak + anmAk-1 +. ----+ an-k+1A + an_k. We find its roots r1, ..., rk, and if those roots are distinct then any solution of the relation has the form f (n) = cirl + c2r2 + - - - + ckrj for c1, ... ,cn E R. (The case of repeated roots is also easily done, but we won't cover it here-see any text on Discrete Mathematics.) Now, given some initial conditions, so that we are interested in a particular solution, we can solve for c1, ..., cn. For instance, the polynomial associated with the Fibonacci relation is -A2 + A + 1, whose roots are (1+ 5)/2 and so any solution of the Fibonacci equation has the form f(n) = c1((1 + 5)/2)"n + C2((1- 5)/2)". Including the initial conditions for the cases n = 0 and n = 1 gives C1 + C2= 1 (1 + 5/2)c1 + (1 - 5/2)c2 1 which yields c1 = 1/ 5and c2 = -1/v5, as was calculated above. We close by considering the nonhomogeneous case, where the relation has the form f(n+1) = anf(n)+an_1f(n -1)+. - .+an_k f(n - k)+ b for some nonzero b. As in the first chapter of this book, only a small adjustment is needed to make the transition from the homogeneous case. This classic example illustrates. In 1883, Edouard Lucas posed the following problem. In the great temple at Benares, beneath the dome which marks the center of the world, rests a brass plate in which are fixed three diamond needles, each a cubit high and as thick as the body of a  Topic: Linear Recurrences 411 bee. On one of these needles, at the creation, God placed sixty four disks of pure gold, the largest disk resting on the brass plate, and the others getting smaller and smaller up to the top one. This is the Tower of Bramah. Day and night unceasingly the priests transfer the disks from one diamond needle to another according to the fixed and immutable laws of Bramah, which require that the priest on duty must not move more than one disk at a time and that he must place this disk on a needle so that there is no smaller disk below it. When the sixty-four disks shall have been thus transferred from the needle on which at the creation God placed them to one of the other needles, tower, temple, and Brahmins alike will crumble into dusk, and with a thunderclap the world will vanish. (Translation of [De Parville] from [Ball & Coxeter].) How many disk moves will it take? Instead of tackling the sixty four disk problem right away, we will consider the problem for smaller numbers of disks, starting with three. To begin, all three disks are on the same needle. After moving the small disk to the far needle, the mid-sized disk to the middle needle, and then moving the small disk to the middle needle we have this. Now we can move the big disk over. Then, to finish, we repeat the process of moving the smaller disks, this time so that they end up on the third needle, on top of the big disk. So the thing to see is that to move the very largest disk, the bottom disk, at a minimum we must: first move the smaller disks to the middle needle, then move the big one, and then move all the smaller ones from the middle needle to the ending needle. Those three steps give us this recurence. T (n + 1) = T (n) + 1 + T (n) = 2T (n) + 1 where T(1) = 1 We can easily get the first few values of T.  412 Chapter Five. Similarity n 1 2 3 4 5 6 7 8 9 10 T(n) 1 3 7 15 31 63 127 255 511 1023 We recognize those as being simply one less than a power of two. To derive this equation instead of just guessing at it, we write the original relation as -1 = -T (n + 1) + 2T(n), consider the homogeneous relation 0 -T(n) + 2T (n - 1), get its associated polynomial -A + 2, which obviously has the single, unique, root of r1 = 2, and conclude that functions satisfying the homogeneous relation take the form T(n) = c12. That's the homogeneous solution. Now we need a particular solution. Because the nonhomogeneous relation -1 = -T(n +1) + 2T(n) is so simple, in a few minutes (or by remembering the table) we can spot the particular solution T(n) = -1 (there are other particular solutions, but this one is easily spotted). So we have that without yet considering the initial condition any solution of T (n + 1) = 2T(n) + 1 is the sum of the homogeneous solution and this particular solution: T(n) = c12" - 1. The initial condition T(1) = 1 now gives that c1 = 1, and we've gotten the formula that generates the table: the n-disk Tower of Hanoi problem requires a minimum of 2n - 1 moves. Finding a particular solution in more complicated cases is, naturally, more complicated. A delightful and rewarding, but challenging, source on recur- rence relations is [Graham, Knuth, Patashnik]., For more on the Tower of Hanoi, [Ball Coxeter] or [Gardner 1957] are good starting points. So is [Hofstadter]. Some computer code for trying some recurrence relations follows the exercises. Exercises 1 Solve each homogeneous linear recurrence relations. (a) f (n + 1) = 5f (n) - 6f (n - 1) (b) f (n + 1) = 4 f (n - 1) (c) f(n+ 1) = 6f(n) +7f(n- 1)+6f(n- 2) 2 Give a formula for the relations of the prior exercise, with these initial condi- tions. (a) f(0) 1, f(1) 1 (b) f (0) =0, f (1) =1 (c) f (0) = 1, f (1) = 1, f (2) = 3. 3 Check that the isomorphism given betwween S and R' is a linear map. It is argued above that this map is one-to-one. What is its inverse? 4 Show that the characteristic equation of the matrix is as stated, that is, is the polynomial associated with the relation. (Hint: expanding down the final column, and using induction will work.) 5 Given a homogeneous linear recurrence relation f(n + 1) = af(n) + - - - + an_kf(n - k), let ri, ..., rk be the roots of the associated polynomial. (a) Prove that each function fr2(n) = rn satisfies the recurrence (without initial conditions). (b) Prove that no r, is 0. (c) Prove that the set {fri,... , frk } is linearly independent.  Topic: Linear Recurrences 413 6 (This refers to the value T(64) = 18, 446, 744, 073, 709, 551, 615 given in the com- puter code below.) Transferring one disk per second, how many years would it take the priests at the Tower of Hanoi to finish the job? Computer Code This code allows the generation of the first few values of a function defined by a recurrence and initial conditions. It is in the Scheme dialect of LISP (specifically, it was written for A. Jaffer's free scheme interpreter SCM, although it should run in any Scheme implementation). First, the Tower of Hanoi code is a straightforward implementation of the recurrence. (define (tower-of-hanoi-moves n) (if (= n 1) 1 (+ (* (tower-of-hanoi-moves (- n 1)) 2) 1) ) ) (Note for readers unused to recursive code: to compute T(64), the computer is told to compute 2 * T(63) - 1, which requires, of course, computing T(63). The computer puts the 'times 2' and the 'plus 1' aside for a moment to do that. It computes T(63) by using this same piece of code (that's what 'recursive' means), and to do that is told to compute 2 * T(62) - 1. This keeps up (the next step is to try to do T(62) while the other arithmetic is held in waiting), until, after 63 steps, the computer tries to compute T(1). It then returns T(1) = 1, which now means that the computation of T(2) can proceed, etc., up until the original computation of T(64) finishes.) The next routine calculates a table of the first few values. (Some language notes: ' 0 is the empty list, that is, the empty sequence, and cons pushes something onto the start of a list. Note that, in the last line, the procedure proc is called on argument n.) (define (first-few-outputs proc n) (first-few-outputs-helper proc n '()) (define (first-few-outputs-aux proc n 1st) (if (< n 1) 1st (first-few-outputs-aux proc (- n 1) (cons (proc n) 1st)) The session at the SCM prompt went like this. > (first-few-outputs tower-of-hanoi-moves 64) Evaluation took 120 mSec (1 3 7 15 31 63 127 255 511 1023 2047 4095 8191 16383 32767 65535 131071 262143 524287 1048575 2097151 4194303 8388607 16777215 33554431 67108863 134217727 268435455 536870911 1073741823 2147483647 4294967295 8589934591 17179869183 34359738367 68719476735 137438953471 274877906943 549755813887  414 Chapter Five. Similarity 1099511627775 2199023255551 4398046511103 8796093022207 17592186044415 35184372088831 70368744177663 140737488355327 281474976710655 562949953421311 1125899906842623 2251799813685247 4503599627370495 9007199254740991 18014398509481983 36028797018963967 72057594037927935 144115188075855871 288230376151711743 576460752303423487 1152921504606846975 2305843009213693951 4611686018427387903 9223372036854775807 18446744073709551615) This is a list of T(1) through T(64). (The 120 mSec came on a 50 mHz '486 running in an XTerm of XWindow under Linux. The session was edited to put line breaks between numbers.)  Appendix Mathematics is made of arguments (reasoned discourse that is, not crockery- throwing). This section is a reference to the most used techniques. A reader having trouble with, say, proof by contradiction, can turn here for an outline of that method. But this section gives only a sketch. For more, these are classics: Methods of Logic by Quine, Induction and Analogy in Mathematics by P6lya, and Naive Set Theory by Halmos. IV.3 Propositions The point at issue in an argument is the proposition. Mathematicians usually write the point in full before the proof and label it either Theorem for major points, Corollary for points that follow immediately from a prior one, or Lemma for results chiefly used to prove other results. The statements expressing propositions can be complex, with many subparts. The truth or falsity of the entire proposition depends both on the truth value of the parts, and on the words used to assemble the statement from its parts. Not. For example, where P is a proposition, 'it is not the case that P' is true provided that P is false. Thus, 'n is not prime' is true only when n is the product of smaller integers. We can picture the 'not' operation with a Venn diagram. P Where the box encloses all natural numbers, and inside the circle are the primes, the shaded area holds numbers satisfying 'not P'. To prove that a 'not P' statement holds, show that P is false. A-1  A-2 And. Consider the statement form 'P and Q'. For the statement to be true both halves must hold: '7 is prime and so is 3' is true, while '7 is prime and 3 is not' is false. Here is the Venn diagram for 'P and Q'. To prove 'P and Q', prove that each half holds. Or. A 'P or Q' is true when either half holds: '7 is prime or 4 is prime' is true, while '7 is not prime or 4 is prime' is false. We take 'or' inclusively so that if both halves are true '7 is prime or 4 is not' then the statement as a whole is true. (In everyday speech, sometimes 'or' is meant in an exclusive way "Eat your vegetables or no dessert" does not intend both halves to hold-but we will not use 'or' in that way.) The Venn diagram for 'or' includes all of both circles. P Q To prove 'P or Q', show that in all cases at least one half holds (perhaps sometimes one half and sometimes the other, but always at least one). If-then. An 'if P then Q' statement (sometimes written 'P materially implies Q' or just 'P implies Q' or 'P - Q') is true unless P is true while Q is false. Thus 'if 7 is prime then 4 is not' is true while 'if 7 is prime then 4 is also prime' is false. (Contrary to its use in casual speech, in mathematics 'if P then Q' does not connote that P precedes Q or causes Q.) More subtly, in mathematics 'if P then Q' is true when P is false: 'if 4 is prime then 7 is prime' and 'if 4 is prime then 7 is not' are both true statements, sometimes said to be vacuously true. We adopt this convention because we want statements like 'if a number is a perfect square then it is not prime' to be true, for instance when the number is 5 or when the number is 6. The diagram  A-3 shows that Q holds whenever P does (another phrasing is 'P is sufficient to give Q'). Notice again that if P does not hold, Q may or may not be in force. There are two main ways to establish an implication. The first way is direct: assume that P is true and, using that assumption, prove Q. For instance, to show 'if a number is divisible by 5 then twice that number is divisible by 10', assume that the number is 5n and deduce that 2(5n) = 10n. The second way is indirect: prove the contrapositive statement: 'if Q is false then P is false' (rephrased, 'Q can only be false when P is also false'). As an example, to show 'if a number is prime then it is not a perfect square', argue that if it were a square p = n2 then it could be factored p = n -n where n

Q'. For example, 'a number is divisible by a prime if and only if that number squared is divisible by the prime squared'. The picture here shows that P and Q hold in exactly the same cases. Although in simple arguments a chain like "P if and only if R, which holds if and only if S ... " may be practical, typically we show equivalence by showing the 'if P then Q' and 'if Q then P' halves separately. IV.4 Quantifiers Compare these two statements about natural numbers: 'there is an x such that x is divisible by 2' is true, while 'for all numbers x, that x is divisible by 92' is false. We call the 'there is' and 'for all' prefixes quantifiers.  A-4 For all. The 'for all' prefix is the universal quantifier, symbolized V. Venn diagrams aren't very helpful with quantifiers, but in a sense the box we draw to border the diagram shows the universal quantifier since it dilineates the universe of possible members. To prove that a statement holds in all cases, we must show that it holds in each case. Thus, to prove 'every number divisible by p has its square divisible by p2', take a single number of the form pn and square it (pn)2 p2n2. This is a "typical element" or "generic element" proof. This kind of argument requires that we are careful to not assume properties for that element other than those in the hypothesis-for instance, this type of wrong argument is a common mistake: "if n is divisible by a prime, say 2, so that n = 2k then n2 = (2k)2 = 4k2 and the square of the number is divisible by the square of the prime". That is an argument about the case p = 2, but it isn't a proof for general p. There exists. We will also use the existential quantifier, symbolized I and read 'there exists'. As noted above, Venn diagrams are not much help with quantifiers, but a picture of 'there is a number such that P' would show both that there can be more than one and that not all numbers need satisfy P. P An existence proposition can be proved by producing something satisfying the property: once, to settle the question of primality of 225 +1, Euler produced its divisor 641. But there are proofs showing that something exists without say- ing how to find it; Euclid's argument given in the next subsection shows there are infinitely many primes without naming them. In general, while demon- strating existence is better than nothing, giving an example is better, and an exhaustive list of all instances is great. Still, mathematicians take what they can get. Finally, along with "Are there any?" we often ask "How many?" That is why the issue of uniqueness often arises in conjunction with questions of existence. Many times the two arguments are simpler if separated, so note that just as proving something exists does not show it is unique, neither does proving something is unique show that it exists. (Obviously 'the natural number with  A-5 more factors than any other' would be unique, but in fact no such number exists.) IV.5 Techniques of Proof Induction. Many proofs are iterative, "Here's why the statement is true for for the case of the number 1, it then follows for 2, and from there to 3, and so on ...". These are called proofs by induction. Such a proof has two steps. In the base step the proposition is established for some first number, often 0 or 1. Then in the inductive step we assume that the proposition holds for numbers up to some k and deduce that it then holds for the next number k + 1. Here is an example. We williprove that 1+2+3+---+n=n(n+1)/2. For the base step we must show that the formula holds when n = 1. That's easy, the sum of the first 1 number does indeed equal 1(1 + 1)/2. For the inductive step, assume that the formula holds for the numbers 1, 2, ... , k. That is, assume all of these instances of the formula. 1 = 1(1 + 1)/2 and 1 + 2 = 2(2 + 1)/2 and 1+2+3=3(3+1)/2 and 1+---+k=k(k+1)/2 From this assumption we will deduce that the formula therefore also holds in the k + 1 next case. The deduction is straightforward algebra. 1+2+..++(k+) =k(k +1)++1 ) _(k +1)(k +2) 2 2 We've shown in the base case that the above proposition holds for 1. We've shown in the inductive step that if it holds for the case of 1 then it also holds for 2; therefore it does hold for 2. We've also shown in the inductive step that if the statement holds for the cases of 1 and 2 then it also holds for the next case 3, etc. Thus it holds for any natural number greater than or equal to 1. Here is another example. We will prove that every integer greater than 1 is a product of primes. The base step is easy: 2 is the product of a single prime. For the inductive step assume that each of 2, 3, ... , k is a product of primes, aiming to show k + 1 is also a product of primes. There are two  A-6 possibilities: (i) if k + 1 is not divisible by a number smaller than itself then it is a prime and so is the product of primes, and (ii) if k + 1 is divisible then its factors can be written as a product of primes (by the inductive hypothesis) and so k+1 can be rewritten as a product of primes. That ends the proof. (Remark. The Prime Factorization Theorem of Number Theory says that not only does a factorization exist, but that it is unique. We've shown the easy half.) There are two things to note about the 'next number' in an induction argu- ment. For one thing, while induction works on the integers, it's no good on the reals. There is no 'next' real. The other thing is that we sometimes use induction to go down, say, from 10 to 9 to 8, etc., down to 0. So 'next number' could mean 'next lowest number'. Of course, at the end we have not shown the fact for all natural numbers, only for those less than or equal to 10. Contradiction. Another technique of proof is to show something is true by showing it can't be false. The classic example is Euclid's, that there are infinitely many primes. Suppose there are only finitely many primes pI,.-.. , Pk . Consider p1 P2 ... Pk +1. None of the primes on this supposedly exhaustive list divides that number evenly, each leaves a remainder of 1. But every number is a product of primes so this can't be. Thus there cannot be only finitely many primes. Every proof by contradiction has the same form: assume that the proposition is false and derive some contradiction to known facts. Another example is this proof that 2 is not a rational number. Suppose that = m/n. 2n2 = m2 Factor out the 2's: n = 2 - "n and m = 2km -"in and rewrite. 2 (2kn , )2 - (2k n . The Prime Factorization Theorem says that there must be the same num- ber of factors of 2 on both sides, but there are an odd number 1 + 2k, on the left and an even number 2km on the right. That's a contradiction, so a rational with a square of 2 cannot be. Both of these examples aimed to prove something doesn't exist. A negative proposition often suggests a proof by contradiction.  A-7 IV.6 Sets, Functions, and Relations Sets. Mathematicians work with collections called sets. A set can be given as a listing between curly braces as in {1, 4, 9, 16}, or, if that's unwieldy, by using set-builder notation as in {x I x5 - 3x3 + 2 O=0} (read "the set of all x such that ..."). We name sets with capital roman letters as with the primes P = {2, 3, 5, 7, 11, ... }, except for a few special sets such as the real numbers R, and the complex numbers C. To denote that something is an element (or member) of a set we use ' E ', so that 7 E {3, 5, 7} while 8 g {3, 5, 7}. What distinguishes a set from any other type of collection is the Principle of Extensionality, that two sets with the same elements are equal. Because of this principle, in a set repeats collapse {7, 7} = {7} and order doesn't matter {2, } = {, 2}. We use 'C' for the subset relationship: {2,w7} c {2, 7, 7} and 'C' for subset or equality (if A is a subset of B but A # B then A is a proper subset of B). These symbols may be flipped, for instance {2, 7, 5} D {2, 5}. Because of Extensionality, to prove that two sets are equal A = B, just show that they have the same members. Usually we show mutual inclusion, that both AC B and AD B. Set operations. Venn diagrams are handy here. For instance, x e P can be pictured P and 'P C Q' looks like this. Note that this is a repeat of the diagram for 'if ... then ...' propositions. That's because 'P C Q' means 'if x E P then x E Q'. In general, for every propositional logic operator there is an associated set operator. For instance, the complement of P is Pcomp = {x I not(x E P)}  A-8 the union is P U Q = {x (x E P) or (x E Q)} and the intersection is P n Q = {x (x E P) and (x E Q)}. When two sets share no members their intersection is the empty set {}, symbolized 0. Any set has the empty set for a subset, by the 'vacuously true' property of the definition of implication. Sequences. We shall also use collections where order does matter and where repeats do not collapse. These are sequences, denoted with angle brackets: (2, 3, 7) / (2, 7, 3). A sequence of length 2 is sometimes called an ordered pair and written with parentheses: (7, 3). We also sometimes say 'ordered triple', 'ordered 4-tuple', etc. The set of ordered n-tuples of elements of a set A is denoted A". Thus the set of pairs of reals is 1R2. Functions. We first see functions in elementary Algebra, where they are pre- sented as formulas (e.g., f(x) = 16x2 - 100), but progressing to more advanced Mathematics reveals more general functions trigonometric ones, exponential and logarithmic ones, and even constructs like absolute value that involve piec- ing together parts and we see that functions aren't formulas, instead the key idea is that a function associates with its input x a single output f(x). Consequently, a function or map is defined to be a set of ordered pairs (x, f(x) ) such that x suffices to determine f(x), that is: if x1 = x2 then f(xi) f(x2) (this requirement is referred to by saying a function is well-defined).* Each input x is one of the function's arguments and each output f(x) is a value. The set of all arguments is f's domain and the set of output values is its range. Usually we don't need know what is and is not in the range and we instead work with a superset of the range, the codomain. The notation for a function f with domain X and codomain Y is f: X -* Y. *More on this is in the section on isomorphisms  A-9 We sometimes instead use the notation x fL16x2 - 100, read 'x maps under f to 16x2 - 100', or '16x2 - 100 is the image of x'. Some maps, like x H sin(1/x), can be thought of as combinations of simple maps, here, g(y) = sin(y) applied to the image of f(x) = 1/x. The composition of g: Y - Z with f: X - Y, is the map sending x E X to g( f(x)) E Z. It is denoted g o f: X - Z. This definition only makes sense if the range of f is a subset of the domain of g. Observe that the identity map id: Y - Y defined by id(y) = y has the property that for any f: X - Y, the composition id o f is equal to f. So an identity map plays the same role with respect to function composition that the number 0 plays in real number addition, or that the number 1 plays in multiplication. In line with that analogy, define a left inverse of a map f: X - Y to be a function g: range(f) - X such that g o f is the identity map on X. Of course, a right inverse of f is a h: Y - X such that f o h is the identity. A map that is both a left and right inverse of f is called simply an inverse. An inverse, if one exists, is unique because if both gi and g2 are inverses of f then g1(x) = gi o (f o g2)(x) = (gi o f) o g2(x) =g2(x) (the middle equality comes from the associativity of function composition), so we often call it "the" inverse, written f-1. For instance, the inverse of the function f: IR -> R given by f (x) = 2x - 3 is the function f -1: R -> R given by f -1(x) = (x + 3)/2. The superscript 'f-' notation for function inverse can be confusing-it doesn't mean 1/f(x). It is used because it fits into a larger scheme. Func- tions that have the same codomain as domain can be iterated, so that where f : X - X, we can consider the composition of f with itself: f o f, and f o f of, etc. Naturally enough, we write f o f as f2 and f o f o f as f3, etc. Note that the familiar exponent rules for real numbers obviously hold: fi ofi = fi+j and (fi)i = f2i. The relationship with the prior paragraph is that, where f is invertible, writing f-1 for the inverse and f-2 for the inverse of f2, etc., gives that these familiar exponent rules continue to hold, once f0 is defined to be the identity map. If the codomain Y equals the range of f then we say that the function is onto. A function has a right inverse if and only if it is onto (this is not hard to check). If no two arguments share an image, if x1 # x2 implies that f(xi) # f(x2), then the function is one-to-one. A function has a left inverse if and only if it is one-to-one (this is also not hard to check). By the prior paragraph, a map has an inverse if and only if it is both onto and one-to-one; such a function is a correspondence. It associates one and only one element of the domain with each element of the range (for example, finite  A-10 sets must have the same number of elements to be matched up in this way). Because a composition of one-to-one maps is one-to-one, and a composition of onto maps is onto, a composition of correspondences is a correspondence. We sometimes want to shrink the domain of a function. For instance, we may take the function f: IR -> R given by f(x) = x2 and, in order to have an inverse, limit input arguments to nonnegative reals f: R+ -> R. Technically, f is a different function than f; we call it the restriction of f to the smaller domain. A final point on functions: neither x nor f(x) need be a number. As an example, we can think of f(x, y) = x + y as a function that takes the ordered pair (x, y) as its argument. Relations. Some familiar operations are obviously functions: addition maps (5, 3) to 8. But what of '<' or '='? We here take the approach of rephrasing '3 < 5' to '(3, 5) is in the relation <'. That is, define a binary relation on a set A to be a set of ordered pairs of elements of A. For example, the < relation is the set {(a, b) I a < b}; some elements of that set are (3, 5), (3, 7), and (1, 100). Another binary relation on the natural numbers is equality; this relation is formally written as the set {. . . , (-1, -1), (0, 0), (1, 1), . . .}. Still another example is 'closer than 10', the set {(x, y) Iz - y < 10}. Some members of that relation are (1, 10), (10, 1), and (42, 44). Neither (11, 1) nor (1, 11) is a member. Those examples illustrate the generality of the definition. All kinds of re- lationships (e.g., 'both numbers even' or 'first number is the second with the digits reversed') are covered under the definition. Equivalence Relations. We shall need to say, formally, that two objects are alike in some way. While these alike things aren't identical, they are related (e.g., two integers that 'give the same remainder when divided by 2'). A binary relation {(a, b),.. .} is an equivalence relation when it satisfies (1) reflexivity: any object is related to itself; (2) symmetry: if a is related to b then b is related to a; (3) transitivity: if a is related to b and b is related to c then a is related to c. (To see that these conditions formalize being the same, read them again, replac- ing 'is related to' with 'is like'.) Some examples (on the integers): '=' is an equivalence relation, '<' does not satisfy symmetry, 'same sign' is a equivalence, while 'nearer than 10' fails transitivity. Partitions. In 'same sign' {(1, 3), (-5, -7), (-1, -1),.. .} there are two kinds of pairs, the first with both numbers positive and the second with both negative. So integers fall into exactly one of two classes, positive or negative. A partition of a set S is a collection of subsets {S1, S2, ...} such that every element of S is in one and only one S: Si U S2 U ... =5, and if i is not equal to j then S2 n Si 0. Picture S being decomposed into distinct parts.  A-11 Thus, the first paragraph says 'same sign' partitions the integers into the pos- itives and the negatives. Similarly, the equivalence relation '=' partitions the integers into one-element sets. Another example is the fractions. Of course, 2/3 and 4/6 are equivalent fractions. That is, for the set S = {n/d I n, d E Z and d 0}, we define two elements nr1/d1 and n2/d2 to be equivalent if ni d2 = n2d1. We can check that this is an equivalence relation, that is, that it satisfies the above three conditions. With that, S is divided up into parts. -/1 2/-4 2 0/1 -4/3 8/6 Before we show that equivalence relations always give rise to partitions, we first illustrate the argument. Consider the relationship between two in- tegers of 'same parity', the set {(-1, 3), (2,4), (0, 0),...} (i.e., 'give the same remainder when divided by 2'). We want to say that the natural numbers split into two pieces, the evens and the odds, and inside a piece each mem- ber has the same parity as each other. So for each x we define the set of numbers associated with it: Sx = {y I (x, y) e 'same parity'}. Some exam- ples are Si = {. .. , -3, -1, 1, 3, . . . }, and S4 = {. .. , -2, 0, 2, 4, . ..}, and S_1= {.. . , -3, -1, 1, 3,. ..}. These are the parts, e.g., Si is the odds. Theorem. An equivalence relation induces a partition on the underlying set. PROOF. Call the set S and the relation R. In line with the illustration in the paragraph above, for each x E S define Sz = {y (x,y) e R}. Observe that, as x is a member if Sx, the union of all these sets is S. So we will be done if we show that distinct parts are disjoint: if SX f SY then S, n Sy = 0. We will verify this through the contrapositive, that is, we wlll assume that S n Sy # 0 in order to deduce that S = Sy. Let p be an element of the intersection. Then by definition of Sx and Sy, the two (x, p) and (y, p) are members of R, and by symmetry of this relation (p, x) and (p, y) are also members of R. To show that Sx = SY we will show each is a subset of the other. Assume that q E Sz so that (q, x) e R. Use transitivity along with (x, p) e R to conclude that (q, p) is also an element of R. But (p, y) E R so another use of transitivity gives that (q, y) E R. Thus q E S,. Therefore q E So implies q e SY, and so Sx C SY. The same argument in the other direction gives the other inclusion, and so the two sets are equal, completing the contrapositive argument. QED  A-12 We call each part of a partition an equivalence class (or informally, 'part'). We somtimes pick a single element of each equivalence class to be the class representative. * Usually when we pick representatives we have some natural scheme in mind. In that case we call them the canonical representatives. An example is the simplest form of a fraction. We've defined 3/5 and 9/15 to be equivalent fractions. In everyday work we often use the 'simplest form' or 'reduced form' fraction as the class representatives.  Bibliography [Abbot] Edwin Abbott, Flatland, Dover. [Ackerson] R. H. Ackerson, A Note on Vector Spaces, American Mathematical Monthly, volume 62 number 10 (Dec. 1955), p. 721. [Agnew] Jeanne Agnew, Explorations in Number Theory, Brooks/Cole, 1972. [Am. Math. Mon., Jun. 1931] C. A. Rupp (proposer), H. T. R. Aude (solver), problem 3468, American Mathematical Monthly, volume 37 number 6 (June-July 1931), p. 355. [Am. Math. Mon., Feb. 1933] V. F. Ivanoff (proposer), T. C. Esty (solver), problem 3529, American Mathematical Monthly, volume 39 number 2 (Feb. 1933), p. 118. [Am. Math. Mon., Jan. 1935] W. R. Ransom (proposer), Hansraj Gupta (solver), El- ementary problem 105, American Mathematical Monthly, volume 42 number 1 (Jan. 1935), p. 47. [Am. Math. Mon., Jan. 1949] C. W. Trigg (proposer), R. J. Walker (solver), Elemen- tary problem 813, American Mathematical Monthly, volume 56 number 1 (Jan. 1949), p. 33. [Am. Math. Mon., Jun. 1949] Don Walter (proposer), Alex Tytun (solver), Elemen- tary problem 834, American Mathematical Monthly, volume 56 number 6 (June-July 1949), p. 409. [Am. Math. Mon., Nov. 1951] Albert Wilansky, The Row-Sums of the Inverse Matrix, American Mathematical Monthly, volume 58 number 9 (Nov. 1951), p. 614. [Am. Math. Mon., Feb. 1953] Norman Anning (proposer), C. W. Trigg (solver), Ele- mentary problem 1016, American Mathematical Monthly, volume 60 number 2 (Feb. 1953), p. 115. [Am. Math. Mon., Apr. 1955] Vern Haggett (proposer), F. W. Saunders (solver), El- ementary problem 1135, American Mathematical Monthly, volume 62 number 4 (Apr. 1955), p. 257. [Am. Math. Mon., Jan. 1963] Underwood Dudley, Arnold Lebow (proposers), David Rothman (solver), Elemantary problem 1151, American Mathematical Monthly, volume 70 number 1 (Jan. 1963), p. 93. [Am. Math. Mon., Dec. 1966] Hans Liebeck, A Proof of the Equality of Column Rank and Row Rank of a Matrix American Mathematical Monthly, volume 73 num- ber 10 (Dec. 1966), p. 1114.  [Anton] Howard Anton, Elementary Linear Algebra, John Wiley & Sons, 1987. [Arrow] Kenneth J. Arrow, Social Choice and Individual Values, Wiley, 1963. [Ball & Coxeter] W.W. Rouse Ball, Mathematical Recreations and Essays, revised by H.S.M. Coxeter, MacMillan, 1962. [Bennett] William J. Bennett, Quantifying America's Decline, in Wall Street Journal, 15 March, 1993. [Birkhoff & MacLane] Garrett Birkhoff, Saunders MacLane, Survey of Modern Alge- bra, third edition, Macmillan, 1965. [Blass 1984] A. Blass, Existence of Bases Implies the Axiom of Choice, pp. 31-33, Ax- iomatic Set Theory, J. E. Baumgartner, ed., American Mathematical Society, Providence RI, 1984. [Bridgman] P.W. Bridgman, Dimensional Analysis, Yale University Press, 1931. [Casey] John Casey, The Elements of Euclid, Books I to VI and XI, ninth edition, Hodges, Figgis, and Co., Dublin, 1890. [Clark & Coupe] David H. Clark, John D. Coupe, The Bangor Area Economy Its Present and Future, report to the city of Bangor ME, Mar. 1967. [Clarke] Arthur C. Clarke, Technical Error, Fantasy, December 1946, reprinted in Great SF Stories 8 (1946), DAW Books, 1982. [Con. Prob. 1955] The Contest Problem Book, 1955 number 38. [Coxeter] H.S.M. Coxeter, Projective Geometry, second edition, Springer-Verlag, 1974. [Courant & Robbins] Richard Courant, Herbert Robbins, What is Mathematics?, Ox- ford University Press, 1978. [Cullen] Charles G. Cullen, Matrices and Linear Transformations, second edition, Dover, 1990. [Dalal, et. al.] Siddhartha R. Dalal, Edward B. Fowlkes, & Bruce Hoadley, Lesson Learned from Challenger: A Statistical Perspective, Stats: the Magazine for Students of Statistics, Fall 1989, p. 3. [Davies] Thomas D. Davies, New Evidence Places Peary at the Pole, National Geo- graphic Magazine, vol. 177 no. 1 (Jan. 1990), p. 44. [de Mestre] Neville de Mestre, The Mathematics of Projectiles in Sport, Cambridge University Press, 1990. [De Parville] De Parville, La Nature, Paris, 1884, part I, p. 285 -286 (citation from [Ball & Coxeter]). [Duncan] W.J. Duncan, Method of Dimensions, in Encyclopaedic Dictionary of Physics Macmillan, 1962. [Ebbing] Darrell D. Ebbing, General Chemistry, fourth edition, Houghton Mifflin, 1993. [Ebbinghaus] H. D. Ebbinghaus, Numbers, Springer-Verlag, 1990. [Einstein] A. Einstein, Annals of Physics, v. 35, 1911, p. 686. Eggar] M.H. Eggar, Pinhole Cameras, Perspecitve, and Projective Geometry, Amer- ican Mathematicsl Monthly, August-September 1998, p. 618 -630.  [Feller] William Feller, An Introduction to Probability Theory and Its Applications (vol. 1, 3rd ed.), John Wiley, 1968. [Finkbeiner] Daniel T. Finkbeiner III, Introduction to Matrices and Linear Transfor- mations, third edition, W. H. Freeman and Company, 1978. [Fraleigh & Beauregard] Fraleigh & Beauregard, Linear Algebra. [Gardner] Martin Gardner, The New Ambidextrous Universe, third revised edition, W. H. Freeman and Company, 1990. [Gardner 1957] Martin Gardner, Mathematical Games: About the remarkable similar- ity between the Icosian Game and the Tower of Hanoi, Scientific American, May 1957, p. 150-154. [Gardner, 1970] Martin Gardner, Mathematical Games, Some mathematical curiosi- ties embedded in the solar system, Scientific American, April 1970, p. 108- 112. [Gardner, 1980] Martin Gardner, Mathematical Games, From counting votes to mak- ing votes count: the mathematics of elections, Scientific American, October 1980. [Gardner, 1974] Martin Gardner, Mathematical Games, On the paradoxical situations that arise from nontransitive relations, Scientific American, October 1974. [Giordano, Wells, Wilde] Frank R. Giordano, Michael E. Wells, Carroll O. Wilde, Di- mensional Analysis, UMAP Unit 526, in UMAP Modules, 1987, COMAP, 1987. [Giordano, Jaye, Weir] Frank R. Giordano, Michael J. Jaye, Maurice D. Weir, The Use of Dimensional Analysis in Mathematical Modeling, UMAP Unit 632, in UMAP Modules, 1986, COMAP, 1986. [Glazer] A.M. Glazer, The Structure of Crystals, Adam Hilger, 1987. [Goult, et al.] R.J. Goult, R.F. Hoskins, J.A. Milner, M.J. Pratt, Computational Methods in Linear Algebra, Wiley, 1975. [Graham, Knuth, Patashnik] Ronald L. Graham, Donald E. Knuth, Oren Patashnik, Concrete Mathematics, Addison-Wesley, 1988. [Halmos] Paul P. Halmos, Finite Dimensional Vector Spaces, second edition, Van Nos- trand, 1958. [Hamming] Richard W. Hamming, Introduction to Applied Numerical Analysis, Hemi- sphere Publishing, 1971. [Hanes] Kit Hanes, Analytic Projective Geometry and its Applications, UMAP Unit 710, UMAP Modules, 1990, p. 111. [Heath] T. Heath, Euclid's Elements, volume 1, Dover, 1956. [Hoffman & Kunze] Kenneth Hoffman, Ray Kunze, Linear Algebra, second edition, Prentice-Hall, 1971. [Hofstadter] Douglas R. Hofstadter, Metamagical Themas: Questing for the Essence of Mind and Pattern, Basic Books, 1985. [Iosifescu] Marius Jofescu, Finite Markov Processes and Their Applications, John Wi- ley, 1980. [Kelton] Christina M.L. Kelton, Trends on the Relocation of U.S. Manufacturing, UMI Research Press, 1983.  [Kemeny & Snell] John G. Kemeny, J. Laurie Snell, Finite Markov Chains, D. Van Nostrand, 1960. [Kemp] Franklin Kemp Linear Equations, American Mathematical Monthly, volume 89 number 8 (Oct. 1982), p. 608. [Knuth] Donald E. Knuth, The Art of Computer Programming, Addison Wesley, 1988. [Lang] Serge Lang, Linear Algebra, Addison-Wesley, 1966. [Leontief 1951] Wassily W. Leontief, Input-Output Economics, Scientific American, volume 185 number 4 (Oct. 1951), p. 15. [Leontief 1965] Wassily W. Leontief, The Structure of the U.S. Economy, Scientific American, volume 212 number 4 (Apr. 1965), p. 25. [Lieberman] David Lieberman, The Big Bucks Ad Battles Over TV's Most Expensive Minutes, TV Guide, Jan. 26 1991, p. 11. [Macdonald & Ridge] Kenneth Macdonald, John Ridge, Social Mobility, in British Social Trends Since 1900, A.H. Halsey, Macmillian, 1988. [Macmillan Dictionary] William D. Halsey, Macmillan, 1979. [Math. Mag., Sept. 1952] Dewey Duncan (proposer), W. H. Quelch (solver), Mathe- matics Magazine, volume 26 number 1 (Sept-Oct. 1952), p. 48. [Math. Mag., Jan. 1957] M. S. Klamkin (proposer), Trickie T-27, Mathematics Mag- azine, volume 30 number 3 (Jan-Feb. 1957), p. 173. [Math. Mag., Jan. 1963, Q237] D. L. Silverman (proposer), C. W. Trigg (solver), Quickie 237, Mathematics Magazine, volume 36 number 1 (Jan. 1963). [Math. Mag., Jan. 1963, Q307] C. W. Trigg (proposer). Quickie 307, Mathematics Magazine, volume 36 number 1 (Jan. 1963), p. 77. [Math. Mag., Nov. 1967] Clarence C. Morrison (proposer), Quickie, Mathematics Magazine, volume 40 number 4 (Nov. 1967), p. 232. [Math. Mag., Jan. 1973] Marvin Bittinger (proposer), Quickie 578, Mathematics Magazine, volume 46 number 5 (Jan. 1973), p. 286, 296. [Munkres] James R. Munkres, Elementary Linear Algebra, Addison-Wesley, 1964. [Neimi & Riker] Richard G. Neimi, William H. Riker, The Choice of Voting Systems, Scientific American, June 1976, p. 21-27. [Nering] Evar D. Nering, Linear Algebra and Matrix Theory, second edition, John Wiley, 1970. [Niven & Zuckerman] I. Niven, H. Zuckerman, An Introduction to the Theory of Num- bers, third edition, John Wiley, 1972. [Oakley & Baker] Cletus O. Oakley, Justine C. Baker, Least Squares and the 3 : 40 Mile, Mathematics Teacher, Apr. 1977. [Ohanian] Hans O'Hanian, Physics, volume one, W. W. Norton, 1985. [Onan] Onan, Linear Algebra. [Petersen] G. M. Petersen, Area of a Triangle, American Mathematical Monthly, vol- ume 62 number 4 (Apr. 1955), p. 249. [Polya] G. Polya, Patterns of Plaasible Inference,  [Poundstone] W. Poundstone, Gaming the Vote, Hill and Wang, 2008. ISBN-13: 978- 0-8090-4893-9 [Programmer's Ref.] Microsoft Programmers Reference Microsoft Press. [Putnam, 1988, A-6] William Lowell Putnam Mathematical Competition, Problem A- 6, 1988, solution: American Mathematical Monthly, volume 96 number 8 (Oct. 1989), p. 688. [Putnam, 1990, A-5] William Lowell Putnam Mathematical Competition, Problem A- 5, 1990. [Rice] John R. Rice, Numerical Mathods, Software, and Analysis, second edition, Academic Press, 1993. [Quine] W. V. Quine, Methods of Logic, fourth edition, Harvard University Press, 1982. [Rucker] Rudy Rucker, Infinity and the Mind, Birkhauser, 1982. [Ryan] Patrick J. Ryan, Euclidean and Non-Euclidean Geometry: an Analytic Ap- proach, Cambridge University Press, 1986. [Seidenberg] A. Seidenberg, Lectures in Projective Geometry, Van Nostrand, 1962. [Smith] Larry Smith, Linear Algebra, second edition, Springer-Verlag, 1984. [Strang 93] Gilbert Strang The Fundamental Theorem of Linear Algebra, American Mathematical Monthly, Nov. 1993, p. 848-855. [Strang 80] Gilbert Strang, Linear Algebra and its Applications, second edition, Har- court Brace Jovanovich, 1980. [Taylor] Alan D. Taylor, Mathematics and Politics: Strategy, Voting, Power, and Proof, Springer-Verlag, 1995. [Tilley] Burt Tilley, private communication, 1996. [Trono] Tony Trono, compiler, University of Vermont Mathematics Department High School Prize Examinations 1958-1991, mimeographed printing, 1991. [USSR Olympiad no. 174] The USSR Mathematics Olympiad, number 174. [Weston] J. D. Weston, Volume in Vector Spaces, American Mathematical Monthly, volume 66 number 7 (Aug./Sept. 1959), p. 575-577. [Weyl] Hermann Weyl, Symmetry, Princeton University Press, 1952. [Wickens] Thomas D. Wickens, Models for Behavior, W.H. Freeman, 1982. [Wilkinson 1965] Wilkinson, 1965 [Wohascum no. 2] The Wohascum County Problem Book problem number 2. [Wohascum no. 47] The Wohascum County Problem Book problem number 47. [Yaglom] I.M. Yaglom, Felix Klein and Sophus Lie: Evolution of the Idea of Symmetry in the Nineteenth Century, translated by Sergei Sossinsky, Birkhsuser, 1988. [Zwicker] William S. Zwicker, The Voters' Paradox, Spin, and the Borda Count, Math- ematical Social Sciences, vol. 22 (1991), p. 187-227.  Index accuracy of Gauss' method, 68-71 rounding error, 69 addition vector, 80 additive inverse, 80 adjoint matrix, 328 angle, 42 antipodal, 340 antisymmetric matrix, 138 argument, A-8 arrow diagram, 217, 233, 238, 242, 353 augmented matrix, 14 automorphism, 163 dilation, 163 reflection, 163 rotation, 163 back-substitution, 5 base step of induction, A-5 basis, 112-123 change of, 238 definition, 112 orthogonal, 256 orthogonalization, 257 orthonormal, 258 standard, 113, 352 standard over the complex numbers, 352 string, 373 best fit line, 269 block matrix, 311 box, 321 orientation, 321 sense, 321 volume, 321 C language, 68 canonical form for matrix equivalence, 245 for nilpotent matrices, 376 for row equivalence, 58 for similarity, 394 canonical representative, A-12 Cauchy-Schwartz Inequality, 41 Cayley-Hamilton theorem, 384 central projection, 337 change of basis, 238-249 characteristic vectors, values, 359 characteristic equation, 362 characteristic polynomial, 362 characterized, 172 characterizes, 246 Chemistry problem, 1, 9 chemistry problem, 22 circuits parallel, 73 series, 73 series-parallel, 74 class equivalence, A-12 closure, 95 of nullspace, 369 of rangespace, 369 codomain, A-8 cofactor, 327 column, 13 rank, 125 vector, 15 column rank full, 130 column space, 125 complement, A-7 complementary subspaces, 135 orthogonal, 263 complex numbers vector space over, 90 component, 15  composition, A-9 self, 367 computer algebra systems, 62-63 concatenation, 133 conditioning number, 71 congruent figures, 287 congruent plane figures, 287 contradiction, A-6 contrapositive, A-3 convex set, 183 coordinates homogeneous, 340 with respect to a basis, 115 corollary, A-1 correspondence, 161, A-9 coset, 193 Cramer's rule, 331-333 cross product, 298 crystals, 142-145 diamond, 143 graphite, 143 salt, 142 unit cell, 143 da Vinci, Leonardo, 337 determinant, 294, 299-318 cofactor, 327 Cramer's rule, 332 definition, 299 exists, 309, 315 Laplace expansion, 327 minor, 327 permutation expansion, 308, 312, 334 diagonal matrix, 210, 225 diagonalizable, 356-359 difference equation, 408 homogeneous, 408 dilation, 163, 276 representing, 203 dimension, 120 physical, 152 direct map, 290 direct sum, 131 ), 139 definition, 135 external, 168 internal, 168 of two subspaces, 135 direction vector, 35 distance-preserving, 287 division theorem, 350 domain, A-8 dot product, 40 double precision, 69 dual space, 194 echelon form, 5 free variable, 12 leading variable, 5 reduced, 47 eigenspace, 362 eigenvalue, eigenvector of a matrix, 360 of a transformation, 359 element, A-7 elementary matrix, 227, 275 elementary reduction operations, 4 pivoting, 4 rescaling, 4 swapping, 4 elementary row operations, 4 empty set, A-8 entry, 13 equivalence class, A-12 canonical representative, A-12 relation, A-10 representative, A-12 equivalence relation, A-10, A-11 isomorphism, 169 matrix equivalence, 244 matrix similarity, 353 row equivalence, 50 equivalent statements, A-3 Erlanger Program, 287 Euclid, 287 even functions, 99, 137 even polynomials, 400 external direct sum, 168 Fibonacci sequence, 407 field, 140-141 definition, 140 finite-dimensional vector space, 119 flat, 36 form, 56 free variable, 12 full column rank, 130 full row rank, 130  function, A-8 inverse image, 185 argument, A-8 codomain, A-8 composition, 216, A-9 correspondence, A-9 domain, A-8 even, 99 identity, A-9 inverse, 232, A-9 left inverse, 231 multilinear, 304 odd, 99 one-to-one, A-9 onto, A-9 range, A-8 restriction, A-10 right inverse, 231 structure preserving, 161, 165 seehomomorphism, 176 two-sided inverse, 232 value, A-8 well-defined, A-8 zero, 177 Fundamental Theorem of Linear Algebra, 268 Gauss' method, 2 accuracy, 68-71 back-substitution, 5 elementary operations, 4 Gauss-Jordan, 47 Gauss-Jordan, 47 generalized nullspace, 369 generalized rangespace, 369 Geometry of Linear Maps, 274-280 Gram-Schmidt process, 255-260 historyless Markov chain, 281 homogeneous coordinate vector, 340 homogeneous coordinates, 292 homogeneous equation, 21 homomorphism, 176 composition, 216 matrix representing, 195-205 nonsingular, 190, 208 nullity, 188 nullspace, 188 rangespace, 184 rank, 207 zero, 177 ideal line, 343 ideal point, 343 identity function, A-9 matrix, 225 if-then statement, A-2 ill-conditioned, 69 image under a function, A-9 improper subspace, 92 incidence matrix, 229 index of nilpotency, 372 induction, 23, A-5 inductive step of induction, A-5 inherited operations, 82 inner product, 40 Input-Output Analysis, 64-67 internal direct sum, 135, 168 intersection, A-8 invariant subspace, 379 invariant subspace definition, 391 inverse, 232, A-9 additive, 80 exists, 232 left, 232, A-9 matrix, 329 right, 232, A-9 two-sided, A-9 inverse function, 232 inverse image, 185 inversion, 313 isometry, 287 isomorphism, 159-175 characterized by dimension, 172 definition, 161 of a space with itself, 163 Jordan block, 390 Jordan form, 381-400 represents similarity classes, 394 kernel, 188 Kirchhoff's Laws, 73  Klein, F., 287 Laplace expansion, 326-330 computes determinant, 327 leading variable, 5 least squares, 269-273 lemma, A-1 length, 39 Leontief, W., 64 line best fit, 269 in projective plane, 341 line at infinity, 343 line of best fit, 269-273 linear transpose operation, 130 linear combination, 52 Linear Combination Lemma, 53 linear equation, 2 coefficients, 2 constant, 2 homogeneous, 21 inconsistent systems, 269 satisfied by a vector, 15 solution of, 2 Gauss' method, 3 Gauss-Jordan, 47 solutions of Cramer's rule, 332 system of, 2 linear map dilation, 276 reflection, 290 rotation, 274, 290 seehomomorphism, 176 skew, 277 trace, 400 linear recurrence, 408 linear recurrences, 407-414 linear relationship, 102 linear surface, 36 linear transformation seetransformation, 179 linearly dependent, 102 linearly independent, 102 UNPACK, 62 map, A-8 distance-preserving, 287 extended linearly, 173 self composition, 367 Maple, 62 Markov chain, 281 historyless, 281 Markov chains, 281-286 Markov matrix, 285 material implication, A-2 Mathematica, 62 mathematical induction, 23, A-5 MATLAB, 62 matrix, 13 adjoint, 328 antisymmetric, 138 augmented, 14 block, 245, 311 change of basis, 238 characteristic polynomial, 362 cofactor, 327 column, 13 column space, 125 conditioning number, 71 determinant, 294, 299 diagonal, 210, 225 diagonalizable, 356 diagonalized, 244 elementary reduction, 227, 275 entry, 13 equivalent, 244 identity, 221, 225 incidence, 229 inverse, 329 main diagonal, 225 Markov, 230, 285 matrix-vector product, 198 minimal polynomial, 221, 382 minor, 327 multiplication, 216 nilpotent, 372 nonsingular, 27, 208 orthogonal, 289 orthonormal, 287-292 permutation, 226 rank, 207 representation, 197 row, 13 row equivalence, 50 row rank, 124 row space, 124 scalar multiple, 213 similar, 324  similarity, 353 singular, 27 skew-symmetric, 311 submatrix, 303 sum, 213 symmetric, 118, 138, 214, 221, 229, 268 trace, 214, 230, 400 transition, 281 transpose, 19, 126, 214 triangular, 204, 230, 330 unit, 223 Vandermonde, 311 matrix equivalence, 242-249 canonical form, 245 definition, 244 matrix:form, 56 mean arithmetic, 44 geometric, 44 member, A-7 method of powers, 401-404 minimal polynomial, 221, 382 minor, 327 morphism, 161 multilinear, 304 multiplication matrix-matrix, 216 matrix-vector, 198 MuPAD, 62 mutual inclusion, A-7 natural representative, A-12 networks, 72-77 Kirchhoff's Laws, 73 nilpotent, 370-380 canonical form for, 376 definition, 372 matrix, 372 transformation, 372 nilpotentcy index, 372 nonsingular, 208, 232 homomorphism, 190 matrix, 27 normalize, 258 nullity, 188 nullspace, 188 closure of, 369 generalized, 369 Octave, 62 odd functions, 99, 137 one-to-one function, A-9 onto function, A-9 opposite map, 290 order of a recurrence, 408 ordered pair, A-8 orientation, 321, 324 orthogonal, 42 basis, 256 complement, 263 mutually, 255 projection, 263 orthogonal matrix, 289 orthogonalization, 257 orthonormal basis, 258 orthonormal matrix, 287-292 pair ordered, A-8 parallelepiped, 321 parallelogram rule, 34 parameter, 13 partial pivoting, 70 partition, A-10-A-12 matrix equivalence classes, 244, 246 row equivalence classes, 51 partitions into isomorphism classes, 170 permutation, 307 inversions, 313 matrix, 226 signum, 314 permutation expansion, 308, 312, 334 perp, 263 perpendicular, 42 perspective triangles, 343 Physics problem, 1 pivoting full, 70 partial scaled, 70 pivoting on rows, 4 plane figure, 287 congruence, 287 point at infinity, 343 in projective plane, 340  polynomial even, 400 minimal, 382 of map, matrix, 381 polynomials division theorem, 350 populations, stable, 405-406 potential, 72 powers, method of, 401-404 preserves structure, 176 probability vector, 281 projection, 176, 185, 250, 268, 387 along a subspace, 260 central, 337 vanishing point, 337 into a line, 251 into a subspace, 260 orthogonal, 251, 263 Projective Geometry, 337-347 projective geometry Duality Principle, 342 projective plane ideal line, 343 ideal point, 343 lines, 341 proof techniques induction, 23 proper subset, A-7 proper subspace, 92 proposition, A-1 propositions equivalent, A-3 quantifier, A-3 existential, A-4 universal, A-4 quantifiers, A-3 range, A-8 rangespace, 184 closure of, 369 generalized, 369 rank, 127, 207 column, 125 of a homomorphism, 184, 189 recurrence, 327, 408 homogeneous, 408 initial conditions, 408 reduced echelon form, 47 reflection, 290 glide, 290 reflection (or flip) about a line, 163 reflexivity, A-10 relation, A-10 equivalence, A-10 reflexive, A- 10 symmetric, A-10 transitive, A-10 relationship linear, 102 representation of a matrix, 197 of a vector, 115 representative, A-12 canonical, A-12 for row equivalence classes, 58 of matrix equivalence classes, 245 of similarity classes, 395 rescaling rows, 4 resistance, 72 resistance:equivalent, 76 resistor, 72 restriction, A-10 rigid motion, 287 rotation, 274, 290 rotation (or turning), 163 represented, 200 row, 13 rank, 124 vector, 15 row equivalence, 50 row rank full, 130 row space, 124 scalar, 80 scalar multiple matrix, 213 vector, 15, 34, 80 scalar product, 40 scaled partial pivoting, 70 Schwartz Inequality, 41 SciLab, 62 self composition of maps, 367 sense, 321 sequence, A-8 concatenation, 133 set, A-7  complement, A-7 element, A-7 empty, A-8 intersection, A-8 member, A-7 union, A-8 sets, A-7 dependent, independent, 102 empty, 104 mutual inclusion, A-7 proper subset, A-7 span of, 95 subset, A-7 sgn seesignum, 314 signum, 314 similar, 298, 324 canonical form, 394 similar matrices, 353 similar triangles, 290 similarity, 353-366 similarity transformation, 366 single precision, 68 singular matrix, 27 size, 319, 321 skew, 277 skew-symmetric, 311 span, 95 of a singleton, 99 spin, 148 square root, 400 stable populations, 405-406 standard basis, 113 state, 281 absorbtive, 281 Statics problem, 5 string, 373 basis, 373 of basis vectors, 371 structure preservation, 176 submatrix, 303 subspace, 91-100 closed, 93 complementary, 135 definition, 91 direct sum, 135 improper, 92 independence, 135 invariant, 391 proper, 92 sum, 131 sum of matrices, 213 of subspaces, 131 vector, 15, 34, 80 summation notation for permutation expansion, 308 swapping rows, 4 symmetric matrix, 118, 138, 214, 221 symmetry, A-10 system of linear equations, 2 Gauss' method, 2 solving, 2 theorem, A-1 trace, 214, 230, 400 transformation characteristic polynomial, 362 composed with itself, 367 diagonalizable, 356 eigenspace, 362 eigenvalue, eigenvector, 359 Jordan form for, 394 minimal polynomial, 382 nilpotent, 372 canonical representative, 376 projection, 387 size change, 321 transition matrix, 281 transitivity, A-10 translation, 287 transpose, 19, 126 determinant, 309, 317 interaction with sum and scalar mul- tiplication, 214 Triangle Inequality, 40 triangles similar, 290 triangular matrix, 230 Triangularization, 204 trivial space, 83, 113 turning map, 163 union, A-8 unit matrix, 223 vacuously true, A-2 value, A-8  Vandermonde matrix, 311 vanishing point, 337 vector, 15, 33 angle, 42 canonical position, 34 column, 15 component, 15 cross product, 298 direction, 35 dot product, 40 free, 33 homogeneous coordinate, 340 length, 39 orthogonal, 42 probability, 281 representation of, 115, 238 row, 15 satisfies an equation, 15 scalar multiple, 15, 34, 80 sum, 15, 34, 80 unit, 44 zero, 22, 80 vector space, 80-100 basis, 112 closure, 80 complex scalars, 90 definition, 80 dimension, 120 dual, 194 finite dimensional, 119 homomorphism, 176 isomorphism, 161 map, 176 over complex numbers, 349 subspace, 91 trivial, 83, 113 Venn diagram, A-1 voltage drop, 73 volume, 321 voting paradox, 146 majority cycle, 146 rational preference order, 146 voting paradoxes, 146-151 spin, 148 well-defined, A-8 Wheatstone bridge, 74 zero divisor, 221 zero divison, 237 zero divisor, 221 zero homomorphism, 177 zero vector, 22, 80