Determinants of 2 2 Matrices

Similar documents
22m:033 Notes: 3.1 Introduction to Determinants

Linear Algebra and Vector Analysis MATH 1120

1300 Linear Algebra and Vector Geometry

Announcements Wednesday, October 25

Determinant of a Matrix

Cofactors and Laplace s expansion theorem

Topic 15 Notes Jeremy Orloff

Chapter 2:Determinants. Section 2.1: Determinants by cofactor expansion

Math 240 Calculus III

Determinants and Scalar Multiplication

sum of squared error.

ENGR-1100 Introduction to Engineering Analysis. Lecture 21. Lecture outline

ENGR-1100 Introduction to Engineering Analysis. Lecture 21

Matrices. Chapter Definitions and Notations

Inverses and Determinants

Key Point. The nth order linear homogeneous equation with constant coefficients

Lecture 8: Determinants I

Math 4A Notes. Written by Victoria Kala Last updated June 11, 2017

[Disclaimer: This is not a complete list of everything you need to know, just some of the topics that gave people difficulty.]

Chapter 2. Square matrices

Linear equations The first case of a linear equation you learn is in one variable, for instance:

6.4 Determinants and Cramer s Rule

Determinants: Introduction and existence

k=1 ( 1)k+j M kj detm kj. detm = ad bc. = 1 ( ) 2 ( )+3 ( ) = = 0

MAC Module 3 Determinants. Learning Objectives. Upon completing this module, you should be able to:

7.3. Determinants. Introduction. Prerequisites. Learning Outcomes

Determinants. Samy Tindel. Purdue University. Differential equations and linear algebra - MA 262

Determinants. Recall that the 2 2 matrix a b c d. is invertible if

Determinants Chapter 3 of Lay

1 Determinants. 1.1 Determinant

Determinants in detail

CS 246 Review of Linear Algebra 01/17/19

Evaluating Determinants by Row Reduction

Math/CS 466/666: Homework Solutions for Chapter 3

Determinants and Scalar Multiplication

Lemma 8: Suppose the N by N matrix A has the following block upper triangular form:

Unit 2, Section 3: Linear Combinations, Spanning, and Linear Independence Linear Combinations, Spanning, and Linear Independence

1 Matrices and Systems of Linear Equations. a 1n a 2n

Notes on Determinants and Matrix Inverse

MATH 2030: EIGENVALUES AND EIGENVECTORS

Linear Algebra Practice Final

LA lecture 4: linear eq. systems, (inverses,) determinants

II. Determinant Functions

Math Lecture 27 : Calculating Determinants

Math 416, Spring 2010 The algebra of determinants March 16, 2010 THE ALGEBRA OF DETERMINANTS. 1. Determinants

Second Midterm Exam April 14, 2011 Answers., and

William Stallings Copyright 2010

Matrix Operations: Determinant

Graduate Mathematical Economics Lecture 1

Review for Exam Find all a for which the following linear system has no solutions, one solution, and infinitely many solutions.

2 b 3 b 4. c c 2 c 3 c 4

REVIEW FOR EXAM II. The exam covers sections , the part of 3.7 on Markov chains, and

I = i 0,

Chapter 3. Determinants and Eigenvalues

MATRIX DETERMINANTS. 1 Reminder Definition and components of a matrix

Determinants: summary of main results

MATH 2050 Assignment 8 Fall [10] 1. Find the determinant by reducing to triangular form for the following matrices.

Some Notes on Linear Algebra

Differential Equations and Linear Algebra C. Henry Edwards David E. Penney Third Edition

Diagonalization. MATH 1502 Calculus II Notes. November 4, 2008

Math 103, Summer 2006 Determinants July 25, 2006 DETERMINANTS. 1. Some Motivation

ECON 186 Class Notes: Linear Algebra


Chapter 4. Determinants

The Laplace Expansion Theorem: Computing the Determinants and Inverses of Matrices

MATH Topics in Applied Mathematics Lecture 12: Evaluation of determinants. Cross product.

Math 308 Midterm Answers and Comments July 18, Part A. Short answer questions

Determinants. Beifang Chen

Determinants: Uniqueness and more

Matrix Algebra Determinant, Inverse matrix. Matrices. A. Fabretti. Mathematics 2 A.Y. 2015/2016. A. Fabretti Matrices

M. Matrices and Linear Algebra

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

1 Matrices and Systems of Linear Equations

Undergraduate Mathematical Economics Lecture 1

Differential Equations

Matrix Inverses. November 19, 2014

Linear Algebra (part 1) : Matrices and Systems of Linear Equations (by Evan Dummit, 2016, v. 2.02)

Determinants. 2.1 Determinants by Cofactor Expansion. Recall from Theorem that the 2 2 matrix

Eigenvalues and eigenvectors

Linear Algebra Basics

Linear Systems and Matrices

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2

DETERMINANTS. , x 2 = a 11b 2 a 21 b 1

Chapter 4 - MATRIX ALGEBRA. ... a 2j... a 2n. a i1 a i2... a ij... a in

Linear Algebra: Lecture Notes. Dr Rachel Quinlan School of Mathematics, Statistics and Applied Mathematics NUI Galway

Basic matrix operations

Elementary maths for GMT

EXAM 2 REVIEW DAVID SEAL

Section 1.8 Matrices as Linear Transformations

Lecture Notes in Linear Algebra

Matrices and Determinants

Lecture 9: Elementary Matrices

Presentation by: H. Sarper. Chapter 2 - Learning Objectives

9 Appendix. Determinants and Cramer s formula

Getting Started with Communications Engineering

Example: 2x y + 3z = 1 5y 6z = 0 x + 4z = 7. Definition: Elementary Row Operations. Example: Type I swap rows 1 and 3

Roberto s Notes on Linear Algebra Chapter 4: Matrix Algebra Section 7. Inverse matrices

DETERMINANTS IN WONDERLAND: MODIFYING DODGSON S METHOD TO COMPUTE DETERMINANTS

MATRICES AND MATRIX OPERATIONS

Fundamentals of Engineering Analysis (650163)

Transcription:

Determinants In section 4, we discussed inverses of matrices, and in particular asked an important question: How can we tell whether or not a particular square matrix A has an inverse? We will be able to answer this question soon but first, we must take a few moments to discuss a property of square matrices called the determinant You are probably already familiar with calculating determinants for 2 2 and 3 3 matrices; unfortunately, there is no simple formula for calculating determinants of larger matrices Accordingly, we will in this section develop a method for finding the determinant of any square matrix Determinants of 2 2 Matrices The determinant function is quite simple to use if the matrix in question is 2 2: Definition The determinant of a 2 2 matrix ( a b, c d denoted by a c is the number a b c d b ( a d or det c = ad bc b, d As a quick example, let s calculate the determinant of the matrix ( 3 2 A = 9 6 det(a = 3 2 9 6 = 3 ( 6 ( 2 9 = 18 + 18 = 0 Notice that the determinant function sent the matrix A to the number 0 Key Point The determinant function is a function that sends square matrices to numbers; if we let M n be the set of all n n matrices with real entries, we can write det : M n C to indicate the correspondence If all of the entries of the matrix A are real, then det A will be a purely real number; otherwise, det A might have an imaginary component 1

Of course, we want to be able to calculate the determinant of any square matrix, not just the 2 2 variety; there are actually many alternate methods for doing so (in fact, you are probably quite familiar with the diagonal method for 3 3 matrices All of the methods will produce equivalent results, but the method that we will learn in this section requires us to use the definition of the determinant for 2 2 matrices Minors and Cofactors The method that we are going to learn for calculating determinants is called cofactor expansion Accordingly, we need to define cofactors, and the closely related concept of minors To fully understand minors and cofactors, we need to be comfortable with the idea of a submatrix, which is simply any matrix living inside a larger one As an example, let s think about the matrix 1 3 1 A = 2 0 4 We can create a submatrix of A by, say deleting its first row and first column: 1 3 1 ( A = 2 0 4 0 4 A 11 = 1 1 We use the notation A 11 to indicate that it is the submatrix of A that results from deleting row 1 and column 1 of A Similarly, we can get another submatrix A 12 of A by deleting, say, the first row and second column: A = 1 3 1 2 0 4 We are now ready for the relevant definitions: A 12 = ( 2 4 2 1 Definition Let A be a square matrix with entries a ij The minor M ij of entry a ij is the determinant of the submatrix A ij of A that results from deleting row i and column j The cofactor C ij of entry a ij is the quantity C ij = ( 1 i+j M ij, that is C ij = { M ij M ij i + j is even i + j is odd 2

Example Calculate the minors and cofactors of entries a 11 and a 12 of the matrix 1 3 1 A = 2 0 4 In order to calculate the minor M 11 of entry a 11, we need to find the submatrix A 11 that results from A by deleting row 1 and column 1; fortunately, we already calculated above that ( 0 4 A 11 = 1 1 According to the definition, M 11 is the determinant of this submatrix, ie So M 11 = 4, and since M 11 = det A 11 ( 0 4 = det 1 1 = 0 1 4 1 = 4 C 11 = ( 1 1+1 M 11 = 1 4, we know that C 11 = 4 as well Let s calculate M 12 : again, we need to start with the submatrix A 12 that results from A by deleting row 1 and column 2: Since M 12 = det A 12, we calculate A 12 = ( 2 4 2 1 M 12 = det A 12 ( 2 4 = det 2 1 = 2 1 4 2 = 10 Finally, to get the cofactor of a 12, we calculate C 12 = ( 1 1+2 M 12 = 1( 10 = 10 3

Key Point As mentioned in the definition, C ij is always equal either to M ij (if i + j is even, or to M ij (if i + j is odd While you can certainly use this formula to determine which sign is correct, it s often easier to make that choice by use a simple observation: the cofactor C 11 of a 11 is always positive, and the cofactor switches signs along any checkerboard pattern For example, if we wished to determine if the cofactor C 43 of entry a 43 in the matrix 0 1 1 5 1 2 3 2 1 0 10 8 3 0 1 3 4 4 1 0 1 0 2 7 1 is equal to M ij or to M ij, we can start by picking any checkerboard pattern (right, left, up, or down from entry a 11 to entry a 43, say as follows: 0 1 1 5 1 2 3 2 1 0 10 8 3 0 1 3 4 4 1 0 1 0 2 7 1 Now we know that C 11 keeps the sign of M 11 ; to determine what happens with C 43, follow the checkerboard pattern from a 11 to a 43, switching signs at each step: + 1 1 5 1 + + 0 10 8 3 1 3 4 + 0 1 0 2 7 1 Since we ended at a sign, we know that C 43 = M 43 Calculating Determinants Using Cofactor Expansion We are almost ready to record a method for calculating the determinant of any square matrix We need a bit more data to be able to do so, starting with the definition of cofactor expansion: Definition The cofactor expansion of an n n matrix A along row i is the sum of the products of the entries a ik of the ith row with their cofactors C ik, that is n cofactor expansion of A along row i = a ik C ik = a i1 C i1 + a i2 + C i2 + + a in C in k=1 The cofactor expansion of A along row j is the sum of the products of the entries a kj of the jth column with their cofactors C kj, that is n cofactor expansion of A along column j = a kj C kj = a 1j C 1j + a 2j + C 2j + + a nj C nj k=1 4

Example Calculate the cofactor expansion of along 1 the first row, and A = 1 3 1 2 0 4 2 the second column 1 The formula for the cofactor expansion of A along the first row is a 11 C 11 + a 12 C 12 + a 13 C 13 ; fortunately, we already have most of the data we need to make this calculation We have already determined that C 11 = 4 C 12 = 10 a 11 = 1 a 12 = 3 a 13 = 1 To make the calculation, we simply need to find C 13 Let s start with the minor M 13, the determinant of the matrix obtained from A by deleting its first row and third column: ( 2 0 A 13 = 2 1 Now M 13 = det A 13 ( 2 0 = det 2 1 = 2 1 0 2 = 2, and so our chart is completed: C 13 = ( 1 1+3 M 13 = 1 2 = 2, C 11 = 4 C 12 = 10 C 13 = 2 a 11 = 1 a 12 = 3 a 13 = 1 5

Using the formula above for the cofactor expansion along row 1 of A, we have a 11 C 11 + a 12 C 12 + a 13 C 13 = 1 4 + 3 10 + 1 2 = 4 + 30 2 = 24 2 Next, let s find the cofactor expansion of A along the second column The formula for the expansion is a 12 C 12 + a 22 C 22 + a 32 C 32 ; we already have much of the necessary data: We know that C 12 = 10 C 22 =? C 32 =? a 12 = 3 a 22 = 0 a 32 = 1 Thus we simply need to calculate the cofactors C 22 and C 32 However, upon closer inspection, it s clear that we don t even need to find C 22! When we calculate the cofactor expansion along column 2, C 22 shows up only once, as a factor in the product a 22 C 22 Since a 22 = 0, we already know that a 22 C 22 = 0 as well So we simply need to calculate C 32, again starting with the submatrix A 32 obtained from A by deleting row 3 and column 2: ( 1 1 A 32 = 2 4 Now M 32 = det A 32 ( 1 1 = det 2 4 = 1 4 1 ( 2 = 6, and and we have: C 32 = ( 1 3+2 M 32 = 1 6 = 6, C 12 = 10 C 22 =? C 32 = 6 a 12 = 3 a 22 = 0 a 32 = 1 6

Using the formula above for the cofactor expansion along column 2 of A, we have a 12 C 12 + a 22 C 22 + a 32 C 32 = 3 10 + 0 + 1 6 = 30 6 = 24 Determinants You may have noticed something quite interesting about the last example the cofactor expansion of A along row 1 was exactly the same number as the cofactor expansion of A along column 2 If you think that this is too remarkable to be a fluke, you re absolutely right, as indicated by the following theorem: Theorem Given an n n matrix A, its cofactor expansion along any row or any column is the same The proof of this theorem is beyond the scope of this course; however, its consequences are quite practical In terms of the example above, we could have calculated the expansion of A along row 2, row 3, column 1, or column 3; regardless, we would have gotten 24 as our answer each time We are finally ready to define the determinant function for any square matrix: Definition Let A be an n n matrix expansion of A along any row or column The determinant of A, denoted det A, is the cofactor With this definition in mind, we should note that we have already calculated the determinant of the matrix 1 3 1 A = 2 0 4 ; since its cofactor expansion is 24, we have det A = 24 As you may have guessed, cofactor expansion can be a rather tedious algorithm However, there are occasions in which the method is quite easy to use the key is to make smart choices about which rows or columns to choose in the expansion As indicated by the theorem, any time that we need to calculate a cofactor expansion, we are free to choose whichever column or row we would like to use in the expansion (the answer will always be the same! This is a fact that we can exploit in our computation 7

We have actually already seen an example of the way in which the expansion becomes easier: when we discussed the cofactor expansion of A = 1 3 1 2 0 4 along its second column, we found that the expansion was fairly simple, since the second entry of the column is 0 Because of this, we didn t have to go to the trouble of calculating C 22, which saved us a good bit of time The following example illustrates the way in which expanding wisely (ie, expanding rows or columns with lots of 0s can save us a great deal of time in making the determinant calculation Example Given A = 3 0 2 0 1 1 5 1 2i 0 0 0 1 3 2 7 find det A Since A is a 4 4 matrix, we have a good bit of calculation to do in order to find its determinant Since the determinant is just the cofactor expansion of A along any row or column, we should try to calculate the expansion in a way that will minimize arithmetic Upon inspecting the matrix, you may have noticed that the third row of A has three 0s more than any of the other columns or rows Because of this, we should choose this row for the expansion Thus our formula is det A = a 31 C 31 + a 32 C 32 + a 33 C 33 + a 34 C 34, However, since each of a 32, a 33, and a 34 is 0, the formula reduces to det A = a 31 C 31 Our next step is to calculate C 31, so we need the submatrix A 13 of A obtained by deleting row 3 and column 1: A = A 31 = 3 0 2 0 1 1 5 1 2i 0 0 0 1 3 2 7 The minor M 31 is the determinant of A 31, ie 0 2 0 M 31 = det 1 5 1 3 2 7 0 2 0 1 5 1 3 2 7 Of course, to calculate det A 31, we will need to go through another iteration of cofactor expansion Again, we should try to choose a row or column for the expansion that will minimize the 8

amount of work we have to do Inspecting A 31, it is clear that the first row should be our choice for the expansion; it contains two 0s, more than any other row or column Using b ij s to indicate entries of A 31 and D ij s to indicate the corresponding cofactors, the formula for the determinant of A 31 reduces from det A 31 = b 11 D 11 + b 12 D 12 + b 13 D 13 to det A 31 = b 12 D 12 To get the cofactor D 12 of A 31, we again start by finding the determinant of the submatrix ( 1 1 3 7 Since ( 1 1 det 3 7 = 1 7 1 3 = 4, the desired cofactor D 12 is Thus the determinant of A 31 is D 12 = ( 1 1+2 4 = 4 det A 31 = b 12 D 12 = 2 4 = 8 Of course, we calculated det A 31 to get the minor M 31 ; so and the corresponding cofactor is M 31 = det A 31 = 8, C 31 = ( 1 3+1 M 31 = 8 Since our formula for the determinant of A was and we know that a 31 = 2i and C 31 = 8, we have det A = a 31 C 31, det A = 16i 9

Determinants of Triangular and Diagonal Matrices The idea presented above for choosing rows and columns wisely in the cofactor expansion leads to a simple yet powerful observation about determinants of triangular and diagonal matrices: Theorem The determinant of a diagonal, upper triangular, or lower triangular matrix is the product of its diagonal entries Let s quickly think about why the theorem works, using the upper triangular matrix 3 1 1 2 A = 0 2 3 5 0 0 1 1 0 0 0 4 In order to find the determinant of A, it is clear that we should expand along the first column, since it contains mostly 0s Thus 2 3 5 det A = 3 det 0 1 1 0 0 4 To find the determinant in the line above, we again need a cofactor expansion, and once again it is clear that we should use the first column for the calculation: so 2 3 5 det A = 3 det 0 1 1 0 0 4 ( 1 1 = 3 2 det 0 4 Of course, this last determinant is easy to calculate, particularly so since its 2, 1 entry is 0; we have 2 3 5 det A = 3 det 0 1 1 0 0 4 ( 1 1 = 3 2 det 0 4 = 3 2 ( 1 4 0 1 = 3 2 ( 1 4 = 24, which is just the product of the diagonal entries 10