Chapter Four Determinants
Total Page:16
File Type:pdf, Size:1020Kb
Chapter Four 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 T~x = ~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£n matrix T is equivalent to each of these: ² a system T~x = ~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 Rn; ² 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£1 ma- trices, one for 2£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. 289 290 Chapter Four. Determinants I Definition For 1£1 matrices, determining nonsingularity is trivial. ¡ ¢ a is nonsingular iff a 6= 0 The 2£2 formula came out in the course of developing the inverse. µ ¶ a b is nonsingular iff ad ¡ bc 6= 0 c d The 3£3 formula can be produced similarly (see Exercise 9). 0 1 a b c @d e fA is nonsingular iff aei + bfg + cdh ¡ hfa ¡ idb ¡ gec 6= 0 g 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 detn£n : Mn£n ! R such that an n£n matrix T is nonsingular if and only if detn£n(T ) 6= 0. (We usually omit the subscript because if T is n£n then ‘det(T )’ could only mean ‘detn£n(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£n formula. We may spot that the 1£1 term a has one letter, that the 2£2 terms ad and bc have two letters, and that the 3£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 0 1 c @d A 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 291 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 2£2 and 3£3 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£2 and 3£3 formulas are unaffected by the row operation of pivoting: if k½ +½ T ¡!i j Tˆ then is det(Tˆ) = det(T )? This check of the 2£2 determinant after the k½1 + ½2 operation µ ¶ a b det( ) = a(kb + d) ¡ (ka + c)b = ad ¡ bc ka + c kb + d shows that it is indeed unchanged, and the other 2£2 pivot k½2 + ½1 gives the same result. The 3£3 pivot k½3 + ½2 leaves the determinant unchanged 0 1 a b c det(@kg + d kh + e ki + fA) = a(kh + e)i + b(ki + f)g + c(kg + d)h g h i ¡ h(ki + f)a ¡ i(kg + d)b ¡ g(kh + e)c = aei + bfg + cdh ¡ hfa ¡ idb ¡ gec as do the other 3£3 pivot operations. So there seems to be promise in the plan. Of course, perhaps the 4 £ 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 ¡!i j Tˆ of swapping two rows. The 2£2 row swap ½1 $ ½2 µ ¶ c d det( ) = cb ¡ ad a b does not yield ad ¡ bc. This ½1 $ ½3 swap inside of a 3£3 matrix 0 1 g h i det(@d e fA) = gec + hfa + idb ¡ bfg ¡ cdh ¡ aei a b c 292 Chapter Four. Determinants also does not give the same determinant as before the swap — again there is a sign change. Trying a different 3£3 swap ½1 $ ½2 0 1 d e f det(@a b cA) = dbi + ecg + fah ¡ hcd ¡ iae ¡ gbf g h i 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 k½ T ¡!i Tˆ of multiplying a row by a scalar k 6= 0. One of the 2£2 cases is µ ¶ a b det( ) = a(kd) ¡ (kc)b = k ¢ (ad ¡ bc) kc kd and the other case has the same result. Here is one 3£3 case 0 1 a b c det(@ d e f A) = ae(ki) + bf(kg) + cd(kh) kg kh ki ¡(kh)fa ¡ (ki)db ¡ (kg)ec = k ¢ (aei + bfg + cdh ¡ hfa ¡ 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 0 1 0 1 3 3 9 1 1 3 det(@2 1 1 A) = 3 ¢ det(@2 1 1 A) 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: ‘det(~½1; ~½2; : : : ~½n)’, instead of as ‘det(T )’ or ‘det(t1;1; : : : ; tn;n)’. The definition of the determinant that starts the next subsection is written in this way. Section I. Definition 293 Exercises X 1.1 Evaluate the determinantà of each.! à ! µ ¶ 2 0 1 4 0 1 3 1 (a) (b) 3 1 1 (c) 0 0 1 ¡1 1 ¡1 0 1 1 3 ¡1 1.2 Evaluate the determinantà of each.