Chapter 5. Determinants. Po-Ning Chen, Professor. Department of Electrical and Computer Engineering. National Chiao Tung University

Similar documents
MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

Notes on Determinant

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

LINEAR ALGEBRA. September 23, 2010

13 MATH FACTS a = The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions.

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

The Determinant: a Means to Calculate Volume

Math 115A HW4 Solutions University of California, Los Angeles. 5 2i 6 + 4i. (5 2i)7i (6 + 4i)( 3 + i) = 35i + 14 ( 22 6i) = i.

Linear Algebra Notes for Marsden and Tromba Vector Calculus

8 Square matrices continued: Determinants

The Characteristic Polynomial

MAT 200, Midterm Exam Solution. a. (5 points) Compute the determinant of the matrix A =

Lecture 2 Matrix Operations

Chapter 17. Orthogonal Matrices and Symmetries of Space

Lecture 4: Partitioned Matrices and Determinants

x = + x 2 + x

Similarity and Diagonalization. Similar Matrices

Matrix Algebra. Some Basic Matrix Laws. Before reading the text or the following notes glance at the following list of basic matrix algebra laws.

Applied Linear Algebra I Review page 1

Solving Linear Systems, Continued and The Inverse of a Matrix

Similar matrices and Jordan form

Unit 18 Determinants

Solution of Linear Systems

Eigenvalues and Eigenvectors

The Singular Value Decomposition in Symmetric (Löwdin) Orthogonalization and Data Compression

5.3 The Cross Product in R 3

University of Lille I PC first year list of exercises n 7. Review

Notes on Linear Algebra. Peter J. Cameron

Using row reduction to calculate the inverse and the determinant of a square matrix

x1 x 2 x 3 y 1 y 2 y 3 x 1 y 2 x 2 y 1 0.

1 Introduction to Matrices

Direct Methods for Solving Linear Systems. Matrix Factorization

Au = = = 3u. Aw = = = 2w. so the action of A on u and w is very easy to picture: it simply amounts to a stretching by 3 and 2, respectively.

Factorization Theorems

Section 1.1. Introduction to R n

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

Math 312 Homework 1 Solutions

Lecture L3 - Vectors, Matrices and Coordinate Transformations

Chapter 6. Orthogonality

1 Sets and Set Notation.

MATH APPLIED MATRIX THEORY

Section Inner Products and Norms

1 Determinants and the Solvability of Linear Systems

DETERMINANTS TERRY A. LORING

Linear Algebra: Determinants, Inverses, Rank

Recall the basic property of the transpose (for any A): v A t Aw = v w, v, w R n.

Math 215 HW #6 Solutions

4: EIGENVALUES, EIGENVECTORS, DIAGONALIZATION

Adding vectors We can do arithmetic with vectors. We ll start with vector addition and related operations. Suppose you have two vectors

Linear Algebra Review. Vectors

Orthogonal Projections

Lecture 3: Finding integer solutions to systems of linear equations

Operation Count; Numerical Linear Algebra

3. Let A and B be two n n orthogonal matrices. Then prove that AB and BA are both orthogonal matrices. Prove a similar result for unitary matrices.

NOTES ON LINEAR TRANSFORMATIONS

v w is orthogonal to both v and w. the three vectors v, w and v w form a right-handed set of vectors.

Solution to Homework 2

Inner products on R n, and more

Matrices 2. Solving Square Systems of Linear Equations; Inverse Matrices

DETERMINANTS IN THE KRONECKER PRODUCT OF MATRICES: THE INCIDENCE MATRIX OF A COMPLETE GRAPH

Introduction to Matrix Algebra

Solutions to Math 51 First Exam January 29, 2015

26. Determinants I. 1. Prehistory

DATA ANALYSIS II. Matrix Algorithms

LINEAR ALGEBRA W W L CHEN

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

Chapter 7. Permutation Groups

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

Data Mining: Algorithms and Applications Matrix Math Review

Lecture Notes 2: Matrices as Systems of Linear Equations

9 MATRICES AND TRANSFORMATIONS

Eigenvalues, Eigenvectors, Matrix Factoring, and Principal Components

SOLVING LINEAR SYSTEMS

Matrix algebra for beginners, Part I matrices, determinants, inverses

6. Cholesky factorization

CONTROLLABILITY. Chapter Reachable Set and Controllability. Suppose we have a linear system described by the state equation

7 Gaussian Elimination and LU Factorization

Matrices and Linear Algebra

Elementary Matrices and The LU Factorization

Unified Lecture # 4 Vectors

Section V.3: Dot Product

MAT188H1S Lec0101 Burbulla

Name: Section Registered In:

Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication).

MATH 423 Linear Algebra II Lecture 38: Generalized eigenvectors. Jordan canonical form (continued).

Orthogonal Bases and the QR Algorithm

Solving Systems of Linear Equations

MAT 242 Test 2 SOLUTIONS, FORM T

T ( a i x i ) = a i T (x i ).

1 VECTOR SPACES AND SUBSPACES

A Primer on Index Notation

Systems of Linear Equations

MATH 304 Linear Algebra Lecture 18: Rank and nullity of a matrix.

Inner product. Definition of inner product

Linear Algebra and TI 89

Lecture 1: Schur s Unitary Triangularization Theorem

Brief Introduction to Vectors and Matrices

Recall that two vectors in are perpendicular or orthogonal provided that their dot

Chapter 7. Matrices. Definition. An m n matrix is an array of numbers set out in m rows and n columns. Examples. (

Linear Algebra Done Wrong. Sergei Treil. Department of Mathematics, Brown University

Transcription:

Chapter 5 Determinants Po-Ning Chen, Professor Department of Electrical and Computer Engineering National Chiao Tung University Hsin Chu, Taiwan 30010, R.O.C.

5.1 The properties of determinants 5-1 Recall for Gauss-Jordan method and square A, Ax = b has a unique solution if all pivots are non-zero. Note: A set of numbers are non-zeros if, and only if, their product is non-zero! Ax = b has a unique solution if, and only if, the product of all pivots is non-zero. Hence, the product of all pivots is an important decisive factor for a linear equation Ax = b (or for a matrix A). Definition (Determinant): The determinant of a square matrix A, denoted by det(a), is equal to the product of all pivots, multiplying by ( 1) m, where m is the number of row exchanges preformed during the derivation of these pivots. Note: det(a) is sometimes denoted by A (This notation is identical to take the absolute value ); however, it needs to be pointed out that the latter notation may be a little misleading because it is possible that det(a) = A < 0.

5.1 The properties of determinants 5-2 Alternative calculations of det(a): Pivotformula: det(a) = product of all pivots (if no row exchanges are performed in the process of producing pivots) Leibniz formula: det(a) = n sgn(σ) σ P n i=1 a i,σ(i) where P n is the set of all permutation of (1, 2,...,n), and 1 if σ can be recovered to (1, 2,...,n)byevennumber sgn(σ) = of pair-wise switching 1 otherwise Example. det(a 3 3 ) = ( 1) 0 a 1,1 a 2,2 a 3,3 + ( 1) 1 a 1,1 a 2,3 a 3,2 + ( 1) 1 a 1,2 a 2,1 a 3,3 + ( 1) 2 a 1,2 a 2,3 a 3,1 + ( 1) 2 a 1,3 a 2,1 a 3,2 + ( 1) 1 a 1,3 a 2,2 a 3,1

5.1 The properties of determinants 5-3 Leibniz formula (continued): Each product in the Leibniz formula takes exactly one entry from each row (analogously, one entry from each column). So, there are n! products in the Leibniz formula. (There are n selections from the 1st row, (n 1) selections from the 2nd row, (n 2) selections from the 3rd row,...,etc.) Co-factor formula: n det(a) = a l,j C l,j where the co-factor C l,j is equal to ( 1) l+j multiplying the determinant of the matrix that results from A by removing the l-th row and the j-th column. j=1 The proofs of equivalences of these formulas will be given later. We will base on the Pivot formula (by its definition) to show ten fundamental properties of determinant.

5.1 Properties of determinant 5-4 Ten properties listed in the textbook (first only proved for row operations; their validity for column operations will be given in Property 10) 1. Unit determinant for identity matrix. (Hint: By Pivot formula or by definition.) 2. Sign reversal by row/column switch. (Hint: By Pivot formula.) By Pivot formula, a row switch matrix à of A simply resultes in different permutation matrix P to satisfy PA = P à = LU. The property follows since P gives one more row exchange during the LU decomposition.

5.1 Properties of determinant 5-5 3. Linearity with respect to any row/column. (Hint: By Pivot formula.) ([ ]) ([ ]) t a1,1 t a Multiplication: det 1,2 a1,1 a = t det 1,2 a 2,1 a 2,2 a 2,1 a 2,2 Addition: ([ ]) ([ ]) ([ ]) a1,1 + a det 1,1 a 1,2 + a 1,2 a1,1 a = det 1,2 a +det 1,1 a 1,2 a 2,1 a 2,2 a 2,1 a 2,2 a 2,1 a 2,2 Note: det(t A) =t n det(a) t det(a) fort 1. As an additional note, [ ] [ ] [ ] a1,1 a t 1,2 t a1,1 t a = 1,2 t a1,1 t a 1,2. a 2,1 a 2,2 t a 2,1 t a 2,2 a 2,1 a 2,2 Recall that when the rows of A are edges of a box, the absolute value of det(a) gives the volume of the box! So, extending each edge by t-fold will increase the volume by t n -fold.

5.1 Properties of determinant 5-6 4. Two equivalent rows/columns make zero determinant. Can be proved by Property 2 since det(a) = det(a) implies det(a) =0. 5. Subtracting one row (column) by a multiple of the other row (column) makes no change on determinant. This property can be proved by Properties 3 and 4. ([ ]) ([ ]) ([ ]) a1,1 + t a det 2,1 a 1,2 + t a 2,2 a1,1 a = det 2,2 a2,1 a +t det 2,2 a 2,1 a 2,2 a 1,2 a 2,2 a 2,1 a 2,2 }{{} =0 So the Guass-Jordan method (or more specifically, forward elimination) will not change the determinant. 6. Zero rows/columns give zero determinant. This property can be proved by Property 3. ([ ]) ([ ]) 0 a1,1 0 a det 1,2 a1,1 a =0 det 1,2 a 2,1 a 2,2 a 2,1 a 2,2

5.1 Properties of determinant 5-7 7. Determinant of a triangular matrix is the product of diagonal terms. This property holds by Pivot formula or by definition. Also, from Property 5, we know that the forward elimination can be used to determine the determinant as n det(a) =det(u) = u i,i. Note: If there are odd number of row exchanges performed during forward elimination, then det(a) = det(u). i=1

5.1 Properties of determinant 5-8 8. det(a) 0 if, and only if, A is invertible. This property follows from det(a) = det(u), i.e., from the discussion in Property 7. Equivalently, we can state that det(a) = 0 if, and only if, A is singular (or non-invertible).

5.1 Properties of determinant 5-9 9. det(ab) =det(a) det(b) Proof: We first show that det(eb)=det(e) det(b) for any elementary matrix E, where an elementary matrix is one that performs 1) row-pair combination (i.e., new row j =oldrowj c j,i row i), 2) multiplying one row (i.e., new row j = c j,j old row j), and 3) row switching. As a result, the E that makes valid det(eb) =det(e) det(b) canbe obtained from the identity matrix I by 1) replacing (j, i)th element by c j,i ; (Property 5) 2) replacing (j, j)th element by c j,j ; (Property 3: Multiplication with t = c j,j ) 3) switching the respective two rows. (Property 2) Now suppose one of det(a) anddet(b) is zero. So, by Property 8, one of A and B is not invertible, so is AB; thus,det(ab) =det(a)det(b) =0.

5.1 Properties of determinant 5-10 Proof (cont): Now suppose both det(a) anddet(b) are not zero. Then, by Gauss- Jordan method (or rref), we can respectively decompose A and B into A = E 1 E 2 E k and B = E 1E 2 E k. (Exercise: What is rref(a) ifdet(a) 0?) As a result, det(ab) = det(e 1 E 2 E k E 1E 2 E k ) = det(e 1 )det(e 2 ) det(e k )det(e 1)det(E 2) det(e k ) = det(e 1 E 2 E k ) det(e 1 E 2 E k ) = det(a) det(b). Note: The formal proof above is exactly what has stated in the textbook (that gives the idea behind the proof in an informal way).

5.1 Properties of determinant 5-11 10. det(a) =det(a T ) This property can be proved by A = E 1 E 2 E k and det(e j )=det(ej T ) for every j.

5.1 A powerful tool: Elementary matrix 5-12 The elementary matrix E can be obtained from the identity matrix I by 1) replacing (j, i)th element by c j,i ; In such case, det(e) = 1. (Proved by Property 5) 2) replacing (j, j)th element by c j,j ; In such case, det(e) =c j,j. (Proved by Property 3: Multiplication with t = c j,j ) 3) switching the respective two rows. In such case, det(e) = 1. (Proved by Property 2) So, det(a) =det(e 1 )det(e 2 ) det(e k )=(+1) #1 ( 1) #3 n j=1 c j,j

5.1 Eigenvalues 5-13 Problems 22 and 23: (Problem 22, Section 5.1) From ad bc, find the determinant of A and A 1 and A λi: [ ] 2 1 A = and A 1 = 1 [ ] [ ] 2 1 2 λ 1 and A λi = 1 2 3 2 2 1 2 λ Which two numbers λ lead to det(a λi) = 0? Write down the matrix A λi for each of those numbers λ it should not be invertible. [ ] 4 1 (Problem 23, Section 5.1) From A = find A 2 and A 1 and A λi and 2 3 their determinants. Which two numbers λ lead to det(a λi) =0? The eigenvalues of a matrix A is the solutions λ of det(a λi) =0. This is important because for these λ s, there exists a non-zero vector v such that Av = λv. Equivalently, there exists a non-zero vector satisfying (A λi)v =0. Vector v is usually referred to as the eigenvector associated with eigenvalue λ.

5.1 Co-factor 5-14 Problem 30 (also, Problem 27 in Section 5.2): (Problem 30, Section 5.1) (Calculus question) Show that the partial derivatives of ln(deta) givea 1! [ ] f/ a f/ c f(a, b, c, d) =ln(ad bc) leads to. f/ b f/ d (Problem 27, Section 5.2) (A calculus question) Show that the derivative of deta with respect to a 1,1 is the cofactor C 1,1. The other entries are fixed we are only changing a 1,1. Let s look at the clue of the answers of these two problems first. We will come back to give a formal proof about cofactor matrix can be used to provide the inverse of A later in Section 5.2.

5.1 Co-factor 5-15 Can the Co-factor matrix be used to provide the inverse of a matrix A? Direct answer: Yes. ln det(a) ln det(a) a C 1,1 C 2,1 C 1,1 a 2,1 n,1 A 1 1 ln det(a) ln det(a) C = 1,2 C 2,2 C n,2 det(a)...... = a 1,2 a 2,2...... C 1,n C 2,n C n,n ln det(a) a 2,n ln det(a) a 1,n ln det(a) a n,1 ln det(a) a n,2 ln det(a) a n,n where the first equality (blue-colored part) is directly given without proof, and the second equality follows from the co-factor formula below. Co-factor formula: det(a) = n a i,j C i,j where the co-factor C i,j is equal to ( 1) i+j multiplying the determinant of the matrix that results from A by removing the i-th row and the j-th column. j=1

5.1 Co-factor 5-16 Problem 11 in Section 5.2: (Problem 11, Section 5.2) Find all cofactors and put them into cofactor matrices C, D. FindAC AC T and detb. [ ] 1 2 3 a b A = B = 4 5 6. c d 7 0 0 Puzzle asked in the solution: detb = 21 and detd =( 21) 2. Why? See the next page. C 1,1 C 1,n C =..... is called the cofactor matrix of A. C n,1 C n,n C T is called the adjugate matrix of A, denoted by adj(a). So, A 1 1 = det(a) CT. Hence in Problem 11, AC T = det(a) I but AC = det(a) A(A 1 ) T. The solution given on page 535 of the textbook for C should be C T.

5.2 Inverse and co-factors 5-17 Lemma: Suppose A is invertible. Then, AC T = det(a)i. Proof: By following the co-factor formula, the diagonal terms of AC T are all det(a). When inner-producting the jth row (a j,1,a j,2,...,a j,n ) with the co-factors of ith row (C i,1,c i,2,...,c i,n ), where i j, we can replace the ith row by the j-th row to form a new matrix A,andthen,det(A )=0sincetworows are equal. Then the co-factors of i-th row of A are exactly the same as the co-factors of i-th row of A,andthei-th row of A is (a j,1,a j,2,...,a j,n ). Hence, det(a ) = a i,1c i,1 + a i,2c i,2 + + a i,nc i,n = a j,1 C i,1 + a j,2 C i,2 + + a j,n C i,n =0. For example, when n = 3, the lemma says a 1,1 a 1,2 a 1,3 C 1,1 C 2,1 C 3,1 det(a) 0 0 a 2,1 a 2,2 a 2,3 C 1,2 C 2,2 C 3,2 = 0 det(a) 0 a 3,1 a 3,2 a 3,3 C 1,3 C 2,3 C 3,3 0 0 det(a) This answers the puzzle in Problem 11, Section 5.2.

5.2 Pivots and submatrices 5-18 An interesting property based on the pivot formula: Define A 1 = [ a 1,1 ], Ak = a 1,1 a 1,k....., A n = a k,1 a k,k a 1,1 a 1,k a 1,n...... a k,1 a k,k........ a n,1 a n,n Suppose the LU decomposition of A n gives pivots from forward elimination without row exchanges: 1 0 0 0 d 1 u 1,2 u 1,3 u 1,n l 2,1 1 0 0 0 d 2 u 2,3 d 2,n A n = l 3,1 l 3,2 1 0 0 0 d 3 d 3,n.............. l n,1 l n,2 l n,3 1 0 0 0 d n Then, det(a k )=d 1 d 2 d k. Idea behind the proof: Pivot d k only depends on those elements in A k.

det 5.2 Leibniz formula revisited 5-19 In Section 5.1, we define and prove ten properties of determinants based on the Pivot formula. We now show that the Pivot formula is equivalent to the Leibniz formula by these properties. det(a) = n sgn(σ) a i,σ(i). σ P n By Property 3, a 1,1 a 1,2 a 1,3 det a 2,1 a 2,2 a 2,3 a 3,1 a 3,2 a 3,3 a 1,1 0 0 0 a 1,2 0 0 0 a 1,3 = det a 2,1 a 2,2 a 2,3 +det a 2,1 a 2,2 a 2,3 + det a 2,1 a 2,2 a 2,3 } a 3,1 a 3,2 {{ a 3,3 } a 3,1 a 3,2 a 3,3 a 3,1 a 3,2 a 3,3 ([ ]) a 1,1 0 0 a1,1 0 0 a 2,1 0 0 +det 0 a 2,2 0 +det a 1,1 0 0 0 0 a 2,3 a 3,1 a 3,2 a 3,3 a 3,1 a 3,2 a 3,3 a 3,1 a 3,2 a 3,3 }{{} ([ ]) a 1,1 0 0 a1,1 0 0 det 0 0 a 2,3 +det +det a 3,1 0 0 0 0 a 2,3 0 a 3,2 0 i=1 a 1,1 0 0 0 0 a 2,3 0 0 a 3,3

5.2 Leibniz formula revisited 5-20 = a 1,1 0 0 0 a 1,2 0 0 0 a 1,3 = det 0 a 2,2 0 + det 0 0 a 2,3 + det a 2,1 0 0 0 0 a 3,3 a 3,1 0 0 0 a 3,2 0 a 1,1 0 0 0 a 1,2 0 0 0 a 1,3 + det 0 0 a 2,3 + det a 2,1 0 0 + det 0 a 2,2 0 0 a 3,2 0 0 0 a 3,3 a 3,1 0 0 1 0 0 0 1 0 0 0 1 = a 1,1 a 2,2 a 3,3 det 0 1 0 + a 1,2 a 2,3 a 3,1 det 0 0 1 + a 1,3 a 2,1 a 3,2 det 1 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0 1 0 0 0 1 + a 1,1 a 2,3 a 3,2 det 0 0 1 + a 1,2 a 2,1 a 3,3 det 1 0 0 + a 1,3 a 2,2 a 3,1 det 0 1 0 0 1 0 0 0 1 1 0 0 = a 1,1 a 2,2 a 3,3 + a 1,2 a 2,3 a 3,1 + a 1,3 a 2,1 a 3,2 a 1,1 a 2,3 a 3,2 a 1,2 a 2,1 a 3,3 a 1,3 a 2,2 a 3,1

5.2 Leibniz formula revisited 5-21 The usefulness of the Leibniz formula can be seen in the below example. (So, it is called the big formula in the textbook.) 0 1 0 0 1 0 1 0 Example. Find the determinant of A = 0 1 0 1. 0 0 1 0 Solution. The Leibniz formula needs to choose exactly one element from each row. The elements chosen from the remaining rows cannot be located at the same columns as the ones that have been chosen (because the Leibniz formula also needs to choose exactly one element from each column). So, the only nonzero elements at the 1st and 4th rows need to be chosen (otherwise the product will be zero); so, 0 1 0 0 1 0 det(a) =det 0 1 =sgn(2, 1, 4, 3) a 1,2a 2,1 a 3,4 a 4,3 =1. 0 0 1 0

5.2 Co-factor formula revisited 5-22 The co-factor formula can be proved by the Leibniz formula. Co-factor formula: det(a) = n a l,j C l,j where the co-factor C l,j is equal to ( 1) l+j multiplying the determinant of the matrix that results from A by removing the l-th row and the j-th column. det(a 3 3 ) = ( 1) 0 a 1,1 a 2,2 a 3,3 + ( 1) 1 a 1,1 a 2,3 a 3,2 + ( 1) 1 a 1,2 a 2,1 a 3,3 j=1 +( 1) 2 a 1,2 a 2,3 a 3,1 + ( 1) 2 a 1,3 a 2,1 a 3,2 + ( 1) 1 a 1,3 a 2,2 a 3,1 = sgn(1, 2, 3)a 1,1 a 2,2 a 3,3 + sgn(1, 3, 2)a 1,1 a 2,3 a 3,2 + sgn(2, 1, 3)a 1,2 a 2,1 a 3,3 +sgn(2, 3, 1)a 1,2 a 2,3 a 3,1 + sgn(3, 1, 2)a 1,3 a 2,1 a 3,2 + sgn(3, 2, 1)a 1,3 a 2,2 a 3,1 = a 2,1 (sgn(2, 1, 3)a 1,2 a 3,3 + sgn(3, 1, 2)a 1,3 a 3,2 ) +a 2,2 (sgn(1, 2, 3)a 1,1 a 3,3 + sgn(3, 2, 1)a 1,3 a 3,1 ) +a 2,3 (sgn(1, 3, 2)a 1,1 a 3,2 + sgn(2, 3, 1)a 1,2 a 3,1 ) = a 2,1 ( 1) 2+1 (sgn(2, 3)a 1,2 a 3,3 + sgn(3, 2)a 1,3 a 3,2 ) +a 2,2 ( 1) 2+2 (sgn(1, 3)a 1,1 a 3,3 + sgn(3, 1)a 1,3 a 3,1 ) +a 2,3 ( 1) 2+3 (sgn(1, 2)a 1,1 a 3,2 + sgn(2, 1)a 1,2 a 3,1 ) = a 2,1 C 2,1 + a 2,2 C 2,2 + a 2,3 C 2,3

5.2 Co-factor formula revisited 5-23 det(a) = σ P n sgn(σ(1),σ(2),,σ(n)) = = n j=1 a l,j σ P n :σ(l)=j n a l,j ( 1) l+j j=1 n i=1 a i,σ(i) n sgn(σ(1),,σ(l),,σ(n)) a }{{} i,σ(i) =j i=1,i l sgn(σ(1),,σ(l 1),σ(l +1),,σ(n)) σ P n :σ(l)=j n i=1,i l a i,σ(i) } {{ } C l,j Example. Find the determinant of A = 0 a 1,2 0 0 a 2,1 0 a 2,3 0 0 a 3,2 0 a 3,4. 0 0 a 4,3 0

5.2 Co-factor formula revisited 5-24 Solution. 0 a 1,2 0 0 a det(a) = det 2,1 0 a 2,3 0 0 a 3,2 0 a 3,4 0 0 a 4,3 0 a 2,1 a 2,3 0 a 2,1 a 2,3 0 = a 1,2 ( 1) 1+2 det 0 0 a 3,4 = a 1,2 det 0 0 a 3,4 0 a 4,3 0 0 a 4,3 0 ([ ]) a2,1 a = a 1,2 a 3,4 det 2,3 = a 0 a 1,2 a 3,4 a 2,1 a 4,3 4,3 Correction: Problem 14 : The matrices in Problem 15 (should be Problem 13). Problem 18 : Go back to B n to Problem 14 (should be Problem 17).

5.2 Co-factor formula revisited 5-25 (Problem 13, Section 5.2) The n by n determinant C n has 1 s above and below the main diagonal: C 1 = 0 C 2 = 0 1 0 1 0 0 1 0 0 1 0 C 3 = 1 0 1 1 0 1 0 C 4 =. 0 1 0 0 1 0 1 0 0 1 0 (a) What are these determinants C 1, C 2, C 3, C 4?Hint:ReduceC 4 to C 2. (b) By cofactors find the relation between C n and C n 1 and C n 2.FindC 10. (Problem 14, Section 5.2) The matrices in Problem 15 13 have 1 s just above and below the main diagonal. Going down the matrix, which order of columns (if any) gives all 1 s? Explain why that permutation is even for n =4, 8, 12,... and odd for = 2, 6, 10,...Then C n =0(oddn) C n =1(n =4, 8,...) C n = 1 (n =2, 6,...). Hint: Permute the red-color 1 s above. They give the only non-zero term in the Leibniz formula.

5.2 Co-factor formula revisited 5-26 (Problem 17, Section 5.2) The matrix B n is the 1, 2, 1 matrix A n except that b 1,1 =1insteadofa 1,1 = 2. Using cofactors of the last row of B 4 show that B 4 =2 B 3 B 2 =1. B 4 = 1 1 1 2 1 1 2 1 1 2 1 1 B 3 = 1 2 1 1 2 B 2 = [ 1 ] 1 1 2 The recursion B n =2 B n 1 B n 2 is satisfied when every B n =1. This recursion is the same as for the A s in Example 6. The difference is in the starting values 1, 1, 1 for the determinants of sizes n =1, 2, 3. B n = 1 1 0 1 A n 1 0 = (Problem 18, Section 5.2) Go back to B n in Problem 14 17. It is the same as A n except for b 1,1 = 1. So use linearity in the first row, where [ 1 1 0 ] equals [ 2 1 0 ] minus [ 1 0 0 ] : 2 1 0 1 0 0 1 1 A n 1 A n 1 0 0 Linearity gives B n = A n A n 1. Hint: B n =1and A n = n +1.

5.3 Crammer s rules, inverses, and volumns 5-27 Now we know how to compute A 1 by the co-factors when A is a square matrix and det(a) 0. C 1,1 C 2,1 C n,1 A 1 1 C = 1,2 C 2,2 C n,2 det(a)...... C 1,n C 2,n C n,n WecanthengobacktosolveAx = b by this inverse, i.e., x = A 1 b. Cramer however provides a different solutions based on determinants under the condition that det(a) 0.

5.3 Key idea of Cramer s rule 5-28 x 1 Let x = x 2 be the solution of Ax = b. x 3 Then we can easily prove that a 1,1 a 1,2 a 1,3 x 1 0 0 a 2,1 a 2,2 a 2,3 x 2 1 0 a 3,1 a 3,2 a 3,3 x 3 0 1 a 1,1 a 1,2 a 1,3 x 1 a 1,1 a 1,2 a 1,3 0 a 1,1 a 1,2 a 1,3 0 = a 2,1 a 2,2 a 2,3 x 2, a 2,1 a 2,2 a 2,3 1, a 2,1 a 2,2 a 2,3 0 a 3,1 a 3,2 a 3,3 x 3 a 3,1 a 3,2 a 3,3 0 a 3,1 a 3,2 a 3,3 1 b 1 a 1,2 a 1,3 = b 2 a 2,2 a 2,3 b 3 a 3,2 a 3,3

5.3 Key idea of Cramer s rule 5-29 Then by the product rule, x 1 0 0 b 1 a 1,2 a 1,3 det(a) det x 2 1 0 = det(a) x 1 = det b 2 a 2,2 a 2,3 x 3 0 1 b 3 a 3,2 a 3,3 We finally obtain Similarly, x 2 = det det x 1 = a 1,1 b 1 a 1,3 a 2,1 b 2 a 2,3 a 3,1 b 3 a 3,3 a 1,1 a 1,2 a 1,3 a 2,1 a 2,2 a 2,3 a 3,1 a 3,2 a 3,3 det det b 1 a 1,2 a 1,3 b 2 a 2,2 a 2,3 b 3 a 3,2 a 3,3 a 1,1 a 1,2 a 1,3 a 2,1 a 2,2 a 2,3 a 3,1 a 3,2 a 3,3 and x 3 = det det a 1,1 a 1,2 b 1 a 2,1 a 2,2 b 2 a 3,1 a 3,2 b 3 a 1,1 a 1,2 a 1,3 a 2,1 a 2,2 a 2,3 a 3,1 a 3,2 a 3,3

5.3 Areas, volumes and determinants 5-30 Recall that all properties of determinants are derived from the first three properties. 1. Unit determinant for identity matrix. (Hint: By Pivot formula or by definition.) 2. Sign reversal by row/column switch. (Hint: By Pivot formula.) 3. Linearity with respect to any row/column. (Hint: By Pivot formula.) ([ ]) ([ ]) ta1,1 ta Multiplication: det 1,2 a1,1 a = t det 1,2 a 2,1 a 2,2 a 2,1 a 2,2 Addition: ([ ]) ([ ]) ([ ]) a1,1 + a det 1,1 a 1,2 + a 1,2 a1,1 a = det 1,2 a +det 1,1 a 1,2 a 2,1 a 2,2 a 2,1 a 2,2 a 2,1 a 2,2 As it turns out, all functions that satisfy these three properties should have the same value.

5.3 Areas, volumes and determinants 5-31 Example. Area of a parallelogram. Solution. It is a function of two vectors v and w. 1. Unit area for perpendicular unit vectors. f(v, w) =1 if v = w =1andv w =0. 2. Area remained unchanged by vector switch. f(v, w) =f(w, v). 3. Linearity with respect to any vector. Multiplication: f(t v, w) =t f(v, w). Addition: f(v + v, w) =f(v, w)+f(v, w). (See the next page.) As it turns out, for two-dimensional vectors v and w, ([ ]) f(v, w) = v det T. w T

5.3 Areas, volumes and determinants 5-32 (x 3,y 3 ) w v v (x 1,y 1 ) (x 2,y 2 ) Three points (x 1,y 1 ), (x 2,y 2 )and(x 3,y 3 ) also decide a parallelogram. Then the area of the parallelogram is ([ ]) f(v, w) = det x2 x 1 y 2 y 1 = x 3 x 1 y 3 y 1 x 1 y 1 1 det x 2 y 2 1 x 3 y 3 1.

5.3 Areas, volumes and determinants 5-33 Similarly, for three-dimensional vectors u, v and w, u T f(u, v, w) = det v T w T is the volume of the box spanned by the three vectors. Again, the volume of the box decided by four vertices (x 1,y 1,z 1 ), (x 2,y 2,z 2 ), (x 3,y 3,z 3 )and(x 4,y 4,z 4 ) can be written as x 2 x 1 y 2 y 1 z 2 z 1 x 1 y 1 z 1 1 f(u, v, w) = det x 3 x 1 y 3 y 1 z 3 z 1 x 4 x 1 y 4 x 1 z 4 z 1 = x det 2 y 2 z 2 1. x 3 y 3 z 3 1 x 4 y 4 z 4 1 Note that the determinant formula does not in any case simplify the calculation of the area and volume. It is just interesting to have some alternative expression so that we can take advantage of it in some special case.

5.3 Areas, volumes and determinants 5-34 How to find the area of the parallelogram spanned by two (n-dimensional) vectors v and w, wheren>2? It might have no determinant formula. But we know we can apply, e.g., Property 5, to yield that f(v, w) =f(v, w av) such that v (w av) = 0 (i.e., a = v w/ v 2 ). w av w w bv v (So all three parallelograms, i.e., the black one, the blue one and the red one, have thesamearea!) Then, f(v, w) =f(v, w av) = v w av = v w v w v v 2.

5.3 Jocobian: An application of area computation 5-35 Example. Application of determinant computation. In calculus, we can transform to and from the 2-dimensional (x, y)-axis to the polar (r, θ)-axis with { x(r, θ) =r cos(θ) y(r, θ) =r sin(θ) Linear approximation gives { x(r + r, θ + θ) x(r, θ)+ x(r,θ) r y(r + r, θ + θ) y(r, θ)+ y(r,θ) r r + x(r,θ) θ θ r + y(r,θ) θ θ This approximation is accurate when r and θ get smaller. So [ ] x y = [ ] x(r + r, θ + θ) x(r, θ) y(r + r, θ + θ) y(r, θ) [ x(r,θ) r y(r,θ) r x(r,θ) θ y(r,θ) θ ] } {{ } J(r,θ) [ ] r θ = J(r, θ) [ ] r θ

5.3 Jocobian: An application of area computation 5-36 Now for the area of the (very small) parallelogram spanned by (x 1,y 1 ), (x 2,y 2 ) and (x 3,y 3 ), we have [ ] [ ] x2 x 1 x 3 x 1 r2 r J(r, θ) 1 r 3 r 1 y 2 y 1 y 3 y 1 θ 2 θ 1 θ 3 θ 1 This gives the important result that for infinitesimal x and y (equivalently, r and θ), ([ da x,y = det x2 x 1 x 3 x 1 y 2 y 1 y 3 y 1]) ([ = det(j(r, θ)) det r2 r 1 r 3 r 1 θ 2 θ 1 θ 3 θ 1]) = det(j(r, θ)) da r,θ.

5.3 Cross product 5-37 For two vectors v and w, wehavedefinedtheinner product and the outer product respectively as inner product: v w = w T v and outer product :v w = vw T for which the outputs are respectively a scaler and an n n matrix. Now we introduce a third product: cross produdct for which the output is a vector. i j k v w det v 1 v 2 v 3 w 1 w 2 w 3 where ([ ]) ([ ]) ([ ]) v2 v det 3 v1 v i det 3 v1 v j + det 2 k, w 2 w 3 w 1 w 3 w 1 w 2 1 0 0 i = 0, j = 1, and k = 0. 0 0 1

5.3 Cross product 5-38 You have noticed that the cross product for 3-dimensional vectors is defined based on co-factors. This is no coincidence as the idea of the cross product is to output a vector that is orthogonal to both v and w. v (v w) ([ ]) ([ ]) ([ ]) v2 v = det 3 v1 v v i det 3 v1 v v j + det 2 v k w 2 w 3 w 1 w 3 w 1 w 2 ([ ]) ([ ]) ([ ]) v2 v = det 3 v1 v v w 2 w 1 det 3 v1 v v 3 w 1 w 2 + det 2 v 3 w 1 w 3 2 v 1 v 2 v 3 = det v 1 v 2 v 3 =0 w 1 w 2 w 3 An extension definition for the cross product of higher dimensional vectors is based on similar idea (to output a proper vector that is orthogonal to the original two), but will be more complicated (in choosing what we mean by proper. )

5.3 Cross product and area 5-39 proper = the length of the vector should be the area spanned by the original two. Example. Area of a parallelogram spanned by two 3-dimensional vectors v and w. 1. Unit area for perpendicular unit vectors. v w =1 if v = w =1andv w =0. Proof: v w 2 = (v 2 w 3 + v 3 w 2 ) 2 +(v 1 w 3 + v 3 w 1 ) 2 +(v 1 w 2 + v 2 w 1 ) 2 = (v1 2 + v2 2 + v3)(w 2 1 2 + w2 2 + w3) 2 (v 1 w 1 + v 2 w 2 + v 3 w 3 ) 2 = v 2 w 2 (v w) 2 =1. 2. Area remained unchanged by vector switch. v w = w v. 3. Linearity with respect to any vector. Multiplication: (t v) w = t (v w). Addition: (v + v ) w = v w + v w.

5.3 Cross product and area 5-40 As it turns out, for three-dimensional vectors v and w, Hence (as also can be known from area(v, w) = v w. v w 2 = v 2 w 2 (v w) 2 = v 2 w 2 v 2 w 2 cos 2 (θ) ) we have v w = v w sin(θ). 5.3 Cross product and right-hand rule Right-hand rule for cross product: v w points to the thumb when right hand fingers curl from v to w.

5.3 Triple product 5-41 Now we know inner product, outer product, cross product; let s introduce another product of vectors in the literature. Definition (Triple product): The triple product of three vectors is defined as (u v) w For 3-dimensional vectors, (u v) w = u 1 u 2 u 3 v 1 v 2 v 3 w 1 w 2 w 3 gives the volume of the box spanned by u, v and w.

5.3 A potential way to derive the nullspace 5-42 Lemma: Suppose A is not invertible. Then, AC T = all-zero matrix where C is the cofactor matrix. Proof: The off-diagonal terms are zero by the same proof to show AC T = det(a)i for invertible A. The proof is completed by noting that the diagonal terms are equal to det(a) =0.

5.3 A potential way to derive the nullspace 5-43 This seems to give an alternative way to derive the null space of A, i.e, all solutions to satisfy Ax = 0. However, when A n n has rank no greater than (n 2), we have C i,j =0 for every i and j. So, this alternative method fails. This method works only when A n n has rank (n 1). Then, it is guaranteed that at least one column in C T is non-zero.

5.3 Remarks 5-44 Problem 40. Jacobi s formula. d det(a) =trace dx ( adj(a) da ) dx (Problem 40, Section 5.3) Suppose A is a 5 by 5 matrix. Its entries in row 1 multiply determinants (cofactors) in row 2 5 to give the determinant. Can you guess Jacobi formula for deta using 2 by 2 determinants from rows 1-2 times 3 by 3 determinants from rows 3 5? Test your formula on the 1, 2, 1 tridiagonal matrix that has determinant = 6. Example of Jacobi s formula. A = [ 2x 2 x x 1 ] = det(a) =x 2. adj(a) = transpose of cofactor matrix = [ ] d 4x 1 dx A = 1 0 adj(a) da dx = [ 1 x x 2x 2 ][ ] [ ] 4x 1 3x 1 = 1 0 2x 2 x d det(a) = 2x = 3x +( x) =trace dx [ ] 1 x x 2x 2 ( adj(a) da dx )

5.3 Remarks 5-45 The Jacobi s formula can be used to confirm the co-factor formula of the determinant. ( d det(a) = trace adj(a) da ) da i,j da i,j 0 0 0 ( C 1,1 C 2,1 C n,1... ) C = trace 1,2 C 2,2 C n,2. 1 0......... C 1,n C 2,n C n,n 0 0 0 }{{} 1in(i,j)th entry 0 C i,1 0 ( 0. 0 ) = trace 0 C i,j 0 = C i,j 0. 0 0 C i,n 0 }{{} jth column

5.3 Remarks 5-46 We can again apply the Jacobi s formula on C i,j.withk iand l j, d C i,j = C (i,k),(j,l) da k,l where C (i,k),(j,l) is ( 1) k +l multiplying the determinant M (i,k),(j,l) of (n 2) (n 2) submatrix of A with i, k rows and k, l columns removed, where { { k k k < i and l j l < j k 1 k>i j 1 l>j. So for k>iand l>j..... a det(a) = det i,j a i,l a k,j a k,l..... = + a i,j a k,l ( 1) i+j ( 1) (k 1)+(l 1) M (i,k),(j,l) + a i,l a k,j ( 1) i+l ( 1) k+(j 1) M (i,k),(j,l) + ([ ]) ai,j a = + det i,l ( 1) i+j+k+l M a k,j a (i,k),(j,l) + k,l n n ([ ]) ai,j a = det i,l ( 1) i+j+k+l M (i,k),(j,l), an extension of the cofactor formula. j=1 l=j+1 a k,j a k,l

5.3 Remarks 5-47 Problem 41. Cauchy-Binet formula. det (A m n B n m )= [m] det(a m [m] ) det(b [m] m ) where A m [m] is the submatrix of A with only m columns selected from A, and B [m] m is the submatrix of B with only m rows selected from B. The summation is carried out over all possible selections. There are ( n m) of them. (Problem 41, Section 5.3) The 2 by 2 matrix AB = (2 by 3)(3 by 2) has a Cauchy- Binet formula for detab: detab = sum of (2 by 2 determinants in A)(2 by 2 determinants in B) (a) Guess which 2 by 2 determinants to use from A and B. (b) Test your formula when the rows of A are 1, 2, 3and1, 4, 7withB = A T.

5.3 Remarks 5-48 Example. A = Solution. [ ] 1 2 3 1 4 7 and B = A T. [ ] 1 det(ab) = det 1 2 3 1 2 4 = det 1 4 7 3 7 ([ ]) ([ ]) 1 2 1 1 det(a 2 [2] ) det(b [2] 2 ) = det det 1 4 2 4 [2] ([ ]) ([ ]) 1 3 1 1 +det det + det 1 7 3 7 = 2 2+4 4+2 2=24 ([ ]) 14 30 30 66 =24 ([ ]) 2 3 det 4 7 ([ ]) 2 4 3 7