The determinant. Motivation: area of parallelograms, volume of parallepipeds. Two vectors in R 2 : oriented area of a parallelogram

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

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

Properties of the Determinant Function

Linear Systems and Matrices

MATH 1210 Assignment 4 Solutions 16R-T1

SPRING OF 2008 D. DETERMINANTS

Math 313 (Linear Algebra) Exam 2 - Practice Exam

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

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

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

Determinants Chapter 3 of Lay

Elementary Matrices. which is obtained by multiplying the first row of I 3 by -1, and

This MUST hold matrix multiplication satisfies the distributive property.

Gaussian Elimination and Back Substitution

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

Determinants. Beifang Chen

Equality: Two matrices A and B are equal, i.e., A = B if A and B have the same order and the entries of A and B are the same.

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

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.

c c c c c c c c c c a 3x3 matrix C= has a determinant determined by

MATH 2030: EIGENVALUES AND EIGENVECTORS

Chapter 4. Determinants

II. Determinant Functions

1 Matrices and Systems of Linear Equations

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

Calculating determinants for larger matrices

Undergraduate Mathematical Economics Lecture 1

The Determinant: a Means to Calculate Volume

POLI270 - Linear Algebra

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

Chapter 2: Matrices and Linear Systems

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

Matrices and Linear Algebra

Online Exercises for Linear Algebra XM511

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

Matrix Operations: Determinant

MATH2210 Notebook 2 Spring 2018

MTH 464: Computational Linear Algebra

Therefore, A and B have the same characteristic polynomial and hence, the same eigenvalues.

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

Graduate Mathematical Economics Lecture 1

Chapter 2. Square matrices

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

Determinants An Introduction

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

A matrix A is invertible i det(a) 6= 0.

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane.

det(ka) = k n det A.

Lecture 2: Lattices and Bases

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

1 Last time: determinants

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

(b) If a multiple of one row of A is added to another row to produce B then det(b) =det(a).

Gaussian Elimination without/with Pivoting and Cholesky Decomposition

The Cross Product The cross product of v = (v 1,v 2,v 3 ) and w = (w 1,w 2,w 3 ) is

Evaluating Determinants by Row Reduction

Matrix Factorization and Analysis

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

NOTES FOR LINEAR ALGEBRA 133

Introduction to Matrices and Linear Systems Ch. 3

Matrices. Ellen Kulinsky

Lecture 10: Determinants and Cramer s Rule

2018 Fall 2210Q Section 013 Midterm Exam II Solution

Math 240 Calculus III

LS.1 Review of Linear Algebra

Math 102, Winter Final Exam Review. Chapter 1. Matrices and Gaussian Elimination

LINEAR ALGEBRA WITH APPLICATIONS

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

Lecture Summaries for Linear Algebra M51A

TOPIC III LINEAR ALGEBRA

Section 9.2: Matrices. Definition: A matrix A consists of a rectangular array of numbers, or elements, arranged in m rows and n columns.

(1) for all (2) for all and all

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

1300 Linear Algebra and Vector Geometry

Calculation in the special cases n = 2 and n = 3:

Matrices. Ellen Kulinsky

Section 1.6. M N = [a ij b ij ], (1.6.2)

2. Every linear system with the same number of equations as unknowns has a unique solution.


Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

Lectures on Linear Algebra for IT

The Determinant. Chapter Definition of the Determinant

Determinants by Cofactor Expansion (III)

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

Third Midterm Exam Name: Practice Problems November 11, Find a basis for the subspace spanned by the following vectors.

Math 520 Exam 2 Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008

9 Appendix. Determinants and Cramer s formula

Linear Systems of n equations for n unknowns

Fundamentals of Engineering Analysis (650163)

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

4. Determinants.

MH1200 Final 2014/2015

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

A Brief Outline of Math 355

5.6. PSEUDOINVERSES 101. A H w.

Math Bootcamp An p-dimensional vector is p numbers put together. Written as. x 1 x =. x p

Math 320, spring 2011 before the first midterm

Determinants: summary of main results

LECTURE 4: DETERMINANT (CHAPTER 2 IN THE BOOK)

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 )

Transcription:

The determinant Motivation: area of parallelograms, volume of parallepipeds Two vectors in R 2 : oriented area of a parallelogram Consider two vectors a (1),a (2) R 2 which are linearly independent We say a (1),a (2) have positive orientation if a (2) is the left of a (1) a (1),a (2) have negative orientation if a (2) is the right of a (1) The two vectors a (1),a (2) define the parallelogram consisting of the points c 1 a (1) + c 2 a (2) with c 1,c 2 0,1 We are interested in the oriented area D of the parallelogram: { area if a (1),a (2) have positive orientation D = area if a (1),a (2) have negative orientation We call this oriented area the determinant of the matrix A = a (1),a (2) R 2 2 : D = deta Note that we have the following properties: 1 0 1 det 0 1 = 1 2 deta = 0 a (1),a (2) are linearly dependent 3 det ca (1),a (2) = cdet a (1),a (2) for any scalar c R det a (1) + b (1),a (2) = deta (1),a (2) + detb (1),a (2) This means that the mapping deta (1),a (2) is a linear function of the first column a (1) By the same argument, the mapping deta (1),a (2) is a linear function of the second column a (2) (-2)a (1) a (2) a (1) det ( 2)a (1),a (2) = ( 2) det a (1),a (2) oriented area of yellow parallelogram = (-2)(oriented area of cyan parallelogram) det a (1) + b (1),a (2) = det a (1),a (2) + det b (1),a (2) area of yellow parallelogram = sum of areas of two cyan parallelograms

Three vectors in R 3 : oriented volume of a parallelepiped Consider three vectors a (1),a (2),a (3) R 3 which are linearly independent We say (somewhat imprecisely) a (1),a (2),a (3) have positive orientation if they are arranged according three finger rule (like thumb, index finger, middle finger of the right hand) a (1),a (2),a (3) have negative orientation if they are arranged in the opposite way (ie, a (1),a (2), a (3) have positive orientation) Three vectors a (1),a (2),a (3) R 3 form a parallelepiped consisting of the points c 1 a (1) +c 2 a (2) +c 3 a (3) with c 1,c 2,c 3 0,1 We are interested in the oriented volume D of the parallelepiped: { volume if a (1),a (2),a (3) have positive orientation D = volume if a (1),a (2),a (3) have negative orientation We call this oriented volume the determinant of the matrix A = a (1),a (2),a (3) R: D = det(a) Note that we have the following properties: 1 0 0 1 det 0 1 0 = 1 0 0 1 2 deta = 0 a (1),a (2),a (3) are linearly dependent 3 det ca (1),a (2),a (3) = cdet a (1),a (2),a (3) for any scalar c R det a (1) + b (1),a (2),a (3) = deta (1),a (2),a (3) + detb (1),a (2),a (3) This means that deta (1),a (2),a (3) is a linear function of the first column a (1) deta (1),a (2),a (3) is a linear function of the second column a (2) deta (1),a (2),a (3) is a linear function of the third column a (3) det ( 2)a (1),a (2),a (3) = ( 2) det a (1),a (2),a (3) oriented volume of yellow parallelepiped = (-2)(oriented volume of cyan parallelepiped) det a (1) + b (1),a (2),a (3) = det a (1),a (2),a (3) + det b (1),a (2),a (3) volume of yellow parallelepiped = sum of volumes of two cyan parallelepipeds

Abstract definition Consider the matrix A = a (1),,a (n) R n n We want to find a function deta with the following three properties 1 deti = 1 where I is the n n idenitity matrix 2 deta = 0 a (1),,a (n) are linearly dependent 3 det a (1),,a (n) is a linear function of a (1) is a linear function of a (n) Lemma 1 Assume the function det: R n n R satisfies (1), (2), (3), then we have for A R n n and c R deta (1),a (2),,a (n) = det a (1),a (2) + ca (1),a (3),,a (n) (1) det a (1),a (2),,a (n) = deta (2),a (1),a (3),,a (n) (2) Proof Note that deta (1),ca (1),a (3),,a (n) = 0 by property (3) Hence (1) follows from property (2) In order to prove (2) we use (writing just for a (3),,a (n) ) property (1) This means adding a multiple of one column to another column does not change the determinant swapping two columns changes the sign of the determinant It is still not clear whether we can we find such a function, or whether there are multiple such functions Theorem 1 There is a unique function det: R n n R which satisfies properties (1), (2), (3) Induction Proof of Theorem 1 Case n = 1 For a 1 1 matrix A = a 11 we have deta 11 (3) = a 11 det1 (1) = a 11 and this function deta 11 = a 11 satisfies properties (1), (2), (3) Induction step: assuming result for n 1 show result for n We assume that there is a unique function det: A (n 1) (n 1) R satisfying properties (1), (2), (3) We want to show that there is a unique function det: R n n R satisfying properties (1), (2), (3) Claim 1 For any function det: R n n R satisfying (1), (2), (3) there holds 0 a 11 a 1,n 1 0 a j 1,1 a j 1,n 1 a 11 a 1,n 1 det 1 0 0 = ( 1) j 1 det 0 a j,1 a j,n 1 a 1,n 1 a n 1,n 1 A 0 a n 1,1 a n 1,n 1 Ã

a 11 a 1,n 1 Proof The function det: R (n 1) (n 1 R, ( 1) j 1 detã satisfies properties (1), (2),(3): a 1,n 1 a n 1,n 1 Property (1): det(i) = ( 1) j 1 dete ( j),e (1),,e ( j 1),e ( j+1),,e (n) where e (k) denotes the kth column of the n n identity matrix We can change the matrix e ( j),e (1),,e ( j 1),e ( j+1),,e (n) with ( j 1) column interchanges to the n n identity matrix Hence we get from (2) and (1) that dete ( j),e (1),,e ( j 1),e ( j+1),,e (n) = ( 1) j 1 1 Property (2): The columns of the matrix à are linearly independent the columns of the matrix A are linearly independent Property (3): We obtain deta (1) + b (1),a (2),,a (n 1) = deta (1),a (2),,a (n 1) + detb (1),a (2),,a (n 1) since we have property (3) for det on R n n Since by the induction there is a unique function det: R n n R satisfying (1), (2), (3) we must have det = det Notation: For A R n n let A i j R (n 1) (n 1) denote the matrix with row i and column j removed Claim 2 For any function det: R n n R satisfying (1), (2), (3) there holds deta = a 11 deta 11 a 21 deta 21 + + ( 1) n 1 a n1 deta n,1 (3) Proof We can write the first column a (1) = a 11 e (1) + + a n1 e (n) By property (3) the function det is linear in the first column, hence deta = a 11 det e (1),a (2),,a (n) + + a n1 det e (n),a (2),,a (n) Consider the matrix e (1),a (2),,a (n) : If we subtract a 12 times column 1 from column 2,, subtract a 1n times column 1 1 0 0 0 a 22 a 2n from column n we obtain the matrix which must have the same determinant by (1) Therefore claim 1 0 a n2 a nn givesdet e (1),a (2),,a (n) = deta 11 We obtain in the same way det e ( j),a (2),,a (n) = ( 1) j 1 deta j1 Note that we have obtained a formula for computing the determinant of an n n matrix using determinants of (n 1) (n 1) matrices Therefore we have obtained a unique definition for deta: for n = 1: deta 11 = a 11 a11 a for n = 2: det 12 a 21 a 22 for n = 3: det Example: det a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 1 2 3 4 5 6 7 8 9 = a 11 deta 22 a 21 deta 12 = a 11 a 22 a 21 a 12 a22 a = a 11 det 23 a 32 a 33 (a 22 a 33 a 23 a 32 ) 5 6 = 1 det 8 9 45 48 2 3 4 det 8 9 a12 a a 21 det 13 a 32 a 33 } {{ } 18 24 (a 12 a 33 a 12 a 32 ) 2 3 +7 det 5 6 } {{ } 12 15 a12 a +a 31 det 13 a 22 a 23 (a 12 a 23 a 13 a 22 ) = ( 3) + 24 21 = 0

Note that for n = 3 we obtain a sum of 3! = 6 terms For n = 4 we obtain 4! = 24 terms For a matrix A R n n applying the recursion formula gives a sum of n! terms Unfortunately n! grows very rapidly with increasing n which makes it impractical to use this method for n > 3 Fortunately there is a more efficient way to compute the determinant: We can use column operations and column interchanges to reduce a matrix A to triangular form (in the same way we used row operations in Gaussian elimination): (here we show the pivot candidates in red) A = There are two cases: 0 0 0 0 0 0 0 0 0 0 =U 0 We end up with a triangular matrix U which has nonzero elements on the diagonal Each column interchange switches the sign of the determinant The column operations do not change the sign of the determinant By (3) we obtain detu = u 11 u 22 u nn If we used k column interchanges we obtain deta = ( 1) k u 11 u 22 u nn (4) Note: The algorithm breaks down in row j {1,,n} since all pivot candidates are zero In this case the matrix is singular and deta = 0 Since deta = deta (see below) we can just as well use the standard Gaussian elimination with row operations (instead of column operations), and (4) still holds (where U is the resulting upper triangular matrix, and k is the number of row interchanges during the elimination) Since Gaussian elimination takes 1 3 n3 + O(n 2 ) operations this method is much faster than the recursion formula which takes n! operations To finish the proof of Theorem 1 we must prove that our function det given by 3 really satisfies properties (1), (2), (3) for A R n n I skip this proof here Additional properties of the determinant Instead of column 1 we can use any column j for the recursion formula: (this follows since each swap of columns switches the sign of the determinant) deta = n i=1 ( 1) i+ j a i j deta i j (5) Instead of columns we can also use rows for the recursion formula: Using row i we obtain deta = n j=1 ( 1) i+ j a i j deta i j (6) Sketch of proof: For A R n n define deta := n j=1 ( 1)i+ j a 1 j deta i j We then show that deta satisfies properties (1), (2), (3) I skip the details here This formula shows that we have the following property: deta is a linear function of each row of the matrix Therefore it follows that deta := deta also satisfies properties (1), (2), (3) Hence we must have

Theorem 2 deta = deta The following result can be shown in a similar way: Theorem 3 For A,B R n n we have det(ab) = (deta) (detb) Proof For a fixed matrix B R n n let us define deta := det(ab)/det(b) We can then show that the function det: R n n R satisfies properties (1), (2), (3) I skip the details Theorem 4 Assume that A R n n is nonsingular Let b R n Then the linear system Ax = b has the solution x R n given by CRAMER s rule : x i = det a (1),,a (i 1),b,a (i+1),,a (n) deta M = A 1 has the elements Note: This uses A ji and not A i j!! M i j = ( 1)i+ j deta ji deta Proof Since Ax = b the columns A = a (1),,a (n) satisfy x 1 a (1) + + x n a (n) = b ( ) x 1 a (1) + + x i 1 a (i 1) + 1 x i a (i) b + x i+1 a (i+1) + + x n a (n) = 0 hence the matrix a (1),,a (i 1),x i a (i) b,a (i+1),,a (n) has linearly dependent columns and therefore determinant zero By property (3) for column i we therefore have 0 = x i det a (1),,a (n) det a (1),,a (i 1),b,a (i+1),,a (n) The columns of M = m (1),,m (n) satisfy Am ( j) = e ( j) where e ( j) is the jth column of the identity matrix Hence by Cramer s rule ( m ( j)) = m i j = det a (1),,a (i 1),e ( j),a (i+1),,a (n) i deta by using (5) with column i to find the determinant = ( 1)i+ j deta ji deta Note that these formulas are completely unpractical for n > 3 since deta consists n! terms If we use Gaussian elimination we can find x and A 1 using cn 3 + O(n 2 ) operations