Lecture 8: Determinants I

Similar documents
Multiplying matrices by diagonal matrices is faster than usual matrix multiplication.

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

MAC Module 2 Systems of Linear Equations and Matrices II. Learning Objectives. Upon completing this module, you should be able to :

1 Determinants. 1.1 Determinant

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

Elementary maths for GMT

Determinants Chapter 3 of Lay

Linear Algebra and Vector Analysis MATH 1120

. =. a i1 x 1 + a i2 x 2 + a in x n = b i. a 11 a 12 a 1n a 21 a 22 a 1n. i1 a i2 a in

MATH 2030: EIGENVALUES AND EIGENVECTORS

Components and change of basis

Chapter 2. Square matrices

Chapter 2 Notes, Linear Algebra 5e Lay

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

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

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

1300 Linear Algebra and Vector Geometry

I = i 0,

LECTURES 14/15: LINEAR INDEPENDENCE AND BASES

Math 240 Calculus III

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

Lecture 10: Determinants and Cramer s Rule

Solving Ax = b w/ different b s: LU-Factorization

Determinant of a Matrix

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

Formula for the inverse matrix. Cramer s rule. Review: 3 3 determinants can be computed expanding by any row or column

Matrices. Chapter Definitions and Notations

ENGR-1100 Introduction to Engineering Analysis. Lecture 21

Methods for Solving Linear Systems Part 2

Linear Algebra I Lecture 8

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

Matrices. In this chapter: matrices, determinants. inverse matrix

Announcements Wednesday, October 25

MATRICES. a m,1 a m,n A =

Introduction to Matrices and Linear Systems Ch. 3

Math Computation Test 1 September 26 th, 2016 Debate: Computation vs. Theory Whatever wins, it ll be Huuuge!

Linear Algebra: Lecture notes from Kolman and Hill 9th edition.

Lesson 3. Inverse of Matrices by Determinants and Gauss-Jordan Method

A Review of Matrix Analysis

II. Determinant Functions

Linear Algebra. Matrices Operations. Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0.

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

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

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

Determinants of 2 2 Matrices

Linear Algebra I Lecture 10

7.6 The Inverse of a Square Matrix

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

Determinants: summary of main results

Topic 15 Notes Jeremy Orloff

Inverses and Determinants

Chapter 3. Determinants and Eigenvalues

1 Multiply Eq. E i by λ 0: (λe i ) (E i ) 2 Multiply Eq. E j by λ and add to Eq. E i : (E i + λe j ) (E i )

Cofactors and Laplace s expansion theorem

Things we can already do with matrices. Unit II - Matrix arithmetic. Defining the matrix product. Things that fail in matrix arithmetic

MATH 310, REVIEW SHEET 2

CHAPTER 8: Matrices and Determinants

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

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

Linear Systems and Matrices

Numerical Analysis Lecture Notes

Evaluating Determinants by Row Reduction

Chapter 2: Matrices and Linear Systems

Mathematics 13: Lecture 10

If A is a 4 6 matrix and B is a 6 3 matrix then the dimension of AB is A. 4 6 B. 6 6 C. 4 3 D. 3 4 E. Undefined

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

22m:033 Notes: 3.1 Introduction to Determinants

Math 123, Week 2: Matrix Operations, Inverses

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

MATH 213 Linear Algebra and ODEs Spring 2015 Study Sheet for Midterm Exam. Topics

Math 320, spring 2011 before the first midterm

Lectures on Linear Algebra for IT

Lecture Notes in Linear Algebra

1111: Linear Algebra I

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

Math 110 Linear Algebra Midterm 2 Review October 28, 2017

Chapter 4. Determinants

Notes on the Matrix-Tree theorem and Cayley s tree enumerator

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

MTH 464: Computational Linear Algebra

Math Linear Algebra Final Exam Review Sheet

Math 344 Lecture # Linear Systems

4 Elementary matrices, continued

Linear Algebra Section 2.6 : LU Decomposition Section 2.7 : Permutations and transposes Wednesday, February 13th Math 301 Week #4

Determinants: Elementary Row/Column Operations

Determinant: 3.3 Properties of Determinants

Chapter 5: Matrices. Daniel Chan. Semester UNSW. Daniel Chan (UNSW) Chapter 5: Matrices Semester / 33

Math 313 Chapter 1 Review

Lecture 1 Systems of Linear Equations and Matrices

Phys 201. Matrices and Determinants

Lecture 9: Elementary Matrices

MODEL ANSWERS TO THE THIRD HOMEWORK

5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns

Benjamin McKay. Linear Algebra

Elementary Linear Algebra

MTH 464: Computational Linear Algebra

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

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

MATH 323 Linear Algebra Lecture 6: Matrix algebra (continued). Determinants.

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

Transcription:

8-1 MATH 1B03/1ZC3 Winter 2019 Lecture 8: Determinants I Instructor: Dr Rushworth January 29th Determinants via cofactor expansion (from Chapter 2.1 of Anton-Rorres) Matrices encode information. Often we don t need all of the information contained in a matrix, and wish to extract a certain part of it. An example of this is trace of a matrix: given a square matrix A, the trace t r (A) is a number containing some information about A. A more important number we can extract from a matrix is the determinant. We have actually seen the determinant of a 2 2 matrix already: if [ ] a b A = c d then the determinant of A is det (A) = ad bc Recall that A is invertible if and only if ad bc 0. This result extends to square matrices of any size: a matrix is invertible if and only if it has non-zero determinant. For this and other reasons the determinant is an important quantity in linear algebra. We already know how to compute the determinant of 2 2 matrices, and we will use this to compute the determinant of larger matrices. Given an n n matrix, we compute its determinant in the following way: 1. break the matrix down into a collection of (n 1) (n 1) matrices 2. break those down further into (n 2) (n 2) matrices 3. keep breaking down until we produce a collection of 2 2 matrices

8-2 4. reassemble of the determinant of the n n matrix from the collection of 2 2 determinants (This is an example of mathematical induction.) Definition 8.1: Determinant Let A be a square matrix. The determinant of A is written det (A) or A. It is a number. Definition 8.2: Minors and Cofactors Let A be an n n matrix. Denote by A[i, j] the matrix formed from A by deleting the i -th row and the j -th column. The i j -th minor of A is the number The i j -th cofactor of A is the number M i, j det (A[i, j]). C i, j ( 1) i+j M i, j. Warning: do not confuse the minor M i, j with the notation (M ) i j for entries of a matrix. To find A[i, j], cover the i -th row and j -th column, then write down the remaining matrix. For example, if [ ] 1 2 3 A = 4 5 6 7 8 9 then A[2, 3] is found by considering and A = A[2, 3] = [ ] 1 2 3 4 5 6 7 8 9 [ ] 1 2 7 8

8-3 Example 8.3 [ ] 1 2 3 A = 4 5 6, A[1, 1] = 7 8 9 M 1,1 = det (A[1, 1]) ([ ]) 5 6 = det 8 9 = 45 48 = 3 [ ] 5 6 8 9, A[2, 3] = [ ] 1 2 7 8 M 2,3 = det (A[2, 3]) ([ ]) 1 2 = det 7 8 = 8 14 = 6 C 1,1 = ( 1) 1+1 M 1,1 = ( 1) 2 ( 3) = 3 C 2,3 = ( 1) 2+3 M 2,3 = ( 1) 5 ( 6) = 6 Note that there are more minors and cofactors of A to compute. 1 0 1 0 0 1 0 0 B = 0 1 1 1, B[4, 1] = 1 0 0 1 but we don t know how to compute M 4,1 yet. [ ] 0 1 0 1 0 0 1 1 1 Question 8.4 Compute the remaining minors and cofactors of A in the example above. Using minors and cofactors we can compute the determinant of matrices larger than 3 3. We are going to compute the determinant of larger matrices by computing lots of 2 2 determinants.

8-4 Fact 8.5: Cofactor expansion Let A = [a i j ] be an n n matrix, and C i, j its cofactors. Then det (A) can be found via cofactor expansion along the i -th row det (A) = n a ik C i,k k=1 = a i1 C i,1 + a i2 C i,2 + + a in C i,n or via cofactor expansion along the j -th column det (A) = n a k j C k, j k=1 = a 1j C 1, j + a 2j C 2, j + + a nj C n, j The idea: as A is n n, the cofactors C i, j are determinants of (n 1) (n 1) matrices. To compute these determinants, we apply cofactor expansion again, and obtain determinants of (n 2) (n 2) matrices. We keep applying cofactor expansion until we hit 2 2 determinants, which we know how to compute! Its important to note that it doesn t matter which row or column we expand along: we will always arrive at the same answer. Example 8.6 In the 3 3 case the formula for expansion along the i -th row is det (A) = a i1 C i,1 + a i2 C i,2 + a i3 C i,3 If we expand along the first row (so that i = 1) this becomes det (A) = a 11 C 1,1 + a 12 C 1,2 + a 13 C 1,3 Lets use this to compute det (A) for [ ] 1 2 3 A = 0 1 2 1 0 5

8-5 The formula becomes det (A) = 1( 1) 1+1 1 2 0 5 + 0 2 2( 1)1+2 1 5 + 0 1 3( 1)1+3 1 0 = ( 1) 2 5 + 2( 1) 3 ( 2) + 3( 1) 4 ( 1) = 5 + 4 3 = 6 Lets compute the determinant again, expanding along the 1-st column: det (A) = 1( 1) 1+1 1 2 0 5 + 2 3 0( 1)1+2 0 5 + 2 3 1( 1)1+3 1 2 = 5 + 1 = 6 What about a 4 4? We have to keep expanding. Expanding along the first row: det 1 0 1 0 0 2 1 1 2 1 1 1 0 2 1 =1( 1) 1+1 0 2 1 0 1 1 0 1 1 0 + 0 1 1 0( 1)1+2 1 2 1 0 1 0 0 2 1 + 1( 1) 1+3 1 0 1 0 1 0 + 0 2 1 0( 1)1+4 1 0 2 0 1 1 to complete this determinant we need to repeat the process on the remaining 3 3 matrices. The difficulty of computing matrix determinants grows very fast with the size of the matrix. In fact, the computation of the determinant of an n n matrix requires n! = n(n 1)(n 2) (2)(1) individual computations. For example, a 5 5 determinant requires 120 calculations, and a 6 6 determinant requires 720 calculations! This is an example of a task in linear algebra very well suited to computers, but not

8-6 so well suited to humans. Chequerboard pattern of signs There is a nice way of determining the signs ( 1) i+j in the cofactor expansion. The following chequerboard pattern of + and signs can be used to speed up calculations. + + + + + + + + This pattern extends to matrices of any size. Spotting nice rows and columns Another way to speed up the calculation of determinants is by spotting particularly nice rows and columns to expand along. In earlier examples we encountered terms like 0( 1) 2+3 1 0 3 2 which we could ignore (due to the 0). In general, we should always pick the row or column with the most 0 s as entries. Example 8.7 Let A = 2 0 0 1 1 1 0 1 4 1 2 5 1 0 0 2

8-7 Expanding along the 3-rd column: [ ] det (A) = 2det 2 0 1 1 1 1 1 0 2 ( ([ ])) 2 1 = 2 1det 1 2 = 2( 1(4 + 1)) = 10, then expand along 2-nd column (Note that we have used the chequerboard pattern of signs to speed up this calculation.) This trick can be used to prove the following fact. Fact 8.8: Determinant of a triangular matrix Let A = [a i j ] be a triangular square matrix (either upper or lower). Then det (A) = a 11 a 22 a nn i.e. it is the product of the diagonal entries. Proof: Assume that A is lower triangular (the proof for the upper triangular case is very similar). Then A = a 11 0 0 0 a 21 a 22 0 0.... a n1 a n2 0 a nn

8-8 Expanding about the 1-st row we obtain a 22 0 0 a det (A) = a 11 det 32 a 33 0... a n2 a n3 a nn a 33 0 0 a = a 11 a 22 det 43 a 44 0... a n3 a n4 a nn Repeatedly expanding about the first row, we obtain det (A) = a 11 a 22 a nn., and again Recall that a diagonal matrix is upper triangular, so that this fact allows us to quickly find the determinant of diagonal matrices, too. In particular we can use it to show that det (I n ) = 1. Example 8.9 Question: Compute the determinant of 1 8 12 3 17 0 7 41 2 0 A = 0 0 4 5 3 0 0 0 2 7 0 0 0 0 1 Answer: det (A) = 1 7 4 2 1 = 56, as A is triangular. Taking the transpose of a matrix does not change the determinant.

8-9 Fact 8.10: Determinant of the transpose Let A be a square matrix. Then det (A) = det (A T ) Proof: The columns of A are the rows of A T (and vice versa). We have seen that det (A) can be computed by expanding along any row or column, from which the result follows. Determinants via row reduction (from Chapter 2.2 of Anton-Rorres) Determinants are extremely important in the study of matrices, and it is therefore no surprise that multiple ways to compute them have been developed. In addition to cofactor expansion, we can compute the determinant of a matrix using elementary row operations. Fact 8.11 Let A be a square matrix. If A has a row or column of 0 s, then det (A) = 0. Proof: Simply use cofactor expansion along the row or column of 0 s. In addition to this fact, we also saw that the determinant of an upper triangular matrix was very easy to find (recall Theorem 8.8). In previous lectures we saw that we can convert any matrix into RREF using Gauss- Jordan elimination, and that a matrix in RREF is automatically upper triangular. Therefore, if we understand the affect of elementary row operations on the determinant, we will have another way to compute the determinant of a matrix.

8-10 Fact 8.12: Determinants via row reduction Let A and B be square matrices of the same size, related by exactly one elementary row operation. 1. If B is obtained from A by swapping two rows, then det (B) = det (A) E.g. a 11 a 12 a 13 a a 21 a 22 a 23 a 31 a 32 a 33 = 21 a 22 a 23 a 11 a 12 a 13 a 31 a 32 a 33 2. If B is obtained from A by multiplying a row by the scalar λ, then det (B) = λdet (A) E.g. λa 11 λa 12 λa 13 a a 21 a 22 a 23 a 31 a 32 a 33 = λ 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 3. If B is obtained from A by adding a multiple of one row to another row, then det (B) = det (A) E.g. a 11 a 12 a 13 a a 21 a 22 a 23 a 31 a 32 a 33 = 11 a 12 a 13 a 11 + a 21 a 12 + a 22 a 13 + a 23 a 31 a 32 a 33 Question 8.13 Prove these facts using cofactor expansion. The idea is to use elementary row operations to speed up calculation of the determinant, either by finding a row or column of 0 s, or by converting the matrix into an upper triangular matrix.

8-11 As was the case when we were using elementary row operations to solve SLEs, Gauss-Jordan elimination will always yield a solution: follow the recipe to convert the matrix into RREF, keeping track of how you are changing the determinant, and you will eventually arrive at an answer. However, if you can spot a faster way to produce a row or column of 0 s, or to produce an upper triangular matrix, do it. Example 8.14 Question: Compute the determinant of the following matrix using row reduction Answer: 0 1 2 1 2 3 1 0 5 R1 R2 A = [ 0 1 2 1 2 3 1 0 5 1 2 3 = 0 1 2 1 0 5 1 2 3 = 0 1 2 0 2 2 1 2 3 = 0 1 2 0 0 6 R1+R3 2R2+R3 ] = 6, as the matrix is upper triangular Question: Compute the determinant of the following matrix using row reduction B = [ 0 4 3 2 2 0 1 3 3 ]

8-12 Answer: 0 4 3 2 2 0 1 3 3 0 4 3 2 2 0 1 1 0 0 4 3 = 2 1 1 0 1 1 0 0 4 3 = 2 1 1 0 0 0 0 R1+R3 = R2+R3 = 0, as there is a row of 0 s Recall that det (A) = det (A T ) (we saw this in Theorem 8.10). We can use this fact to speed up computing the determinant via row reduction. Example 8.15 Question: Compute the determinant of the following matrix using row reduction A = 3 6 5 9 1 2 8 3 4 5 1 12 5 2 4 15

8-13 Answer: 3 6 5 9 1 2 8 3 4 5 1 12 5 2 4 15 take transpose = 3R1+R4 = 3 1 4 5 6 2 5 2 5 8 1 4 9 3 12 15 3 1 4 5 6 2 5 2 5 8 1 4 0 0 0 0 = 0, as there is a row of 0 s The following fact is also very useful to speed up determinant calculations. Fact 8.16 Let A be a square matrix. If A has a column which is a scalar multiple of another column, or a row which is a scalar multiple of another row. Then det (A) = 0. Question 8.17 Prove this fact. Suggested Problems Practice the material covered in this lecture by attempting the following questions from Chapter 2.1 of Anton-Rorres, starting on page 111 Questions 3, 17, 21, 25, 31, 36 and from Chapter 2.2, starting on page 117 Questions 9, 13, 17, 21, 26

True/False questions (a), (b), (c), (e) 8-14