A = , A 32 = n ( 1) i +j a i j det(a i j). (1) j=1

Similar documents
c i r i i=1 r 1 = [1, 2] r 2 = [0, 1] r 3 = [3, 4].

j=1 u 1jv 1j. 1/ 2 Lemma 1. An orthogonal set of vectors must be linearly independent.

Lecture Notes: Solving Linear Systems with Gauss Elimination

. The following is a 3 3 orthogonal matrix: 2/3 1/3 2/3 2/3 2/3 1/3 1/3 2/3 2/3

Lecture Notes: Eigenvalues and Eigenvectors. 1 Definitions. 2 Finding All Eigenvalues

Math 240 Calculus III

Lecture Notes: Matrix Inverse. 1 Inverse Definition. 2 Inverse Existence and Uniqueness

Linear Systems and Matrices

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

Evaluating Determinants by Row Reduction

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

Chapter 4. Determinants

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

Determinants Chapter 3 of Lay

Properties of the Determinant Function

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

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

det(ka) = k n det A.

Lecture 10: Determinants and Cramer s Rule

[ Here 21 is the dot product of (3, 1, 2, 5) with (2, 3, 1, 2), and 31 is the dot product of

Topic 15 Notes Jeremy Orloff

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

Linear Classification: Perceptron

Components and change of basis

Determinants An Introduction

Inverses and Determinants

Determinants and Scalar Multiplication


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

Algorithms to Compute Bases and the Rank of a Matrix

LS.1 Review of Linear Algebra

1 - Systems of Linear Equations

MATH 1210 Assignment 4 Solutions 16R-T1

II. Determinant Functions

Gaussian Elimination and Back Substitution

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

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

MATH 2030: EIGENVALUES AND EIGENVECTORS

Linear Algebra I Lecture 8

7.3. Determinants. Introduction. Prerequisites. Learning Outcomes

PH1105 Lecture Notes on Linear Algebra.

The Matrix-Tree Theorem

SPRING OF 2008 D. DETERMINANTS

Here are some additional properties of the determinant function.

Matrix Factorization and Analysis

5.6. PSEUDOINVERSES 101. A H w.

1111: Linear Algebra I

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

DETERMINANTS DEFINED BY ROW OPERATIONS

Finite Math - J-term Section Systems of Linear Equations in Two Variables Example 1. Solve the system

Numerical Linear Algebra Homework Assignment - Week 2

P = 1 F m(p ) = IP = P I = f(i) = QI = IQ = 1 F m(p ) = Q, so we are done.

Determinants by Cofactor Expansion (III)

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

Chapter 1: Systems of Linear Equations

ENGR-1100 Introduction to Engineering Analysis. Lecture 21

Linear Algebra 1 Exam 1 Solutions 6/12/3

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

Matrices and RRE Form

1 Last time: least-squares problems

Question: Given an n x n matrix A, how do we find its eigenvalues? Idea: Suppose c is an eigenvalue of A, then what is the determinant of A-cI?

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

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

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

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

(Inv) Computing Invariant Factors Math 683L (Summer 2003)

MAT 1332: CALCULUS FOR LIFE SCIENCES. Contents. 1. Review: Linear Algebra II Vectors and matrices Definition. 1.2.

Determine whether the following system has a trivial solution or non-trivial solution:

The Determinant: a Means to Calculate Volume

Linear Algebra M1 - FIB. Contents: 5. Matrices, systems of linear equations and determinants 6. Vector space 7. Linear maps 8.

Linear Classification: Linear Programming

Lectures on Linear Algebra for IT

Elementary Matrices. MATH 322, Linear Algebra I. J. Robert Buchanan. Spring Department of Mathematics

Lecture 1 and 2: Random Spanning Trees

Kevin James. MTHSC 3110 Section 2.2 Inverses of Matrices

Determinants: Elementary Row/Column Operations

MTH Linear Algebra. Study Guide. Dr. Tony Yee Department of Mathematics and Information Technology The Hong Kong Institute of Education

1 0 1, then use that decomposition to solve the least squares problem. 1 Ax = 2. q 1 = a 1 a 1 = 1. to find the intermediate result:

Chapter 3. Determinants and Eigenvalues

MTH 464: Computational Linear Algebra

x y B =. v u Note that the determinant of B is xu + yv = 1. Thus B is invertible, with inverse u y v x On the other hand, d BA = va + ub 2

Determinants: Uniqueness and more

Elementary Linear Algebra

a s 1.3 Matrix Multiplication. Know how to multiply two matrices and be able to write down the formula

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

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

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.

Homework 11/Solutions. (Section 6.8 Exercise 3). Which pairs of the following vector spaces are isomorphic?

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.

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

1 Matrices and Systems of Linear Equations

Lecture 6 & 7. Shuanglin Shao. September 16th and 18th, 2013

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

Graduate Mathematical Economics Lecture 1

Definition 2.3. We define addition and multiplication of matrices as follows.

LINEAR ALGEBRA REVIEW

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

Math Camp Lecture 4: Linear Algebra. Xiao Yu Wang. Aug 2010 MIT. Xiao Yu Wang (MIT) Math Camp /10 1 / 88

Determinant: 3.3 Properties of Determinants

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

Transcription:

Lecture Notes: Determinant of a Square Matrix Yufei Tao Department of Computer Science and Engineering Chinese University of Hong Kong taoyf@cse.cuhk.edu.hk 1 Determinant Definition Let A [a ij ] be an n n matrix (i.e., A is a square matrix). Given a pair of (i, j), we define A ij to be the (n 1) (n 1) matrix obtained by removing the i-th row and j-th column of A. For example, suppose that A Then: A 21 [ -1 2 ] [ 1 1, A 22-1 2 ] [ 1 1, A 32 3-2 ] We are now ready to define determinants: Definition 1. Let A [a ij ] be an n n matrix. If n 1, its determinant, denoted as det(a), equals a 11. If n > 1, we first choose an arbitrary i [1, n], and then define the determinant of A recursively as: det(a) ( 1) i +j a i j det(a i j). (1) j1 Besides det(a), we may also denote the determinant of A as A. Henceforth, if we apply (1) to compute det(a), we say that we expand A by row i. It is important to note that the value of det(a) does not depend on the choice of i. We omit the proof of this fact, but illustrate it in the following examples. Example 1 (Second-Order Determinants). In general, if A [a ij ] is a 2 2 matrix, then det(a) a 11 a 22 a 12 a 21. For instance: -1 2 2 2 1 ( 1) 5. We may verify the above by definition as follows. Choosing i 1, we get: -1 2 ( 1) 1+1 2 det(a 11 ) + ( 1) 1+2 1 det(a 12 ) 2 2 + ( 1) ( 1) 5. 1

Alternatively, choosing i 2, we get: -1 2 ( 1) 2+1 ( 1) det(a 21 ) + ( 1) 2+2 2 det(a 22 ) 1 1 + 2 2 5. Example 2 (Third-Order Determinants). Suppose that A Choosing i 1, we get: det(a) 1 0 2 1 2 2 3 2 1 2 + 1 3 0 1 1 1(0 2) 2(6 2) + 1( 3 0) 13. Alternatively, choosing i 2, we get: det(a) 3 1 2 + 0 1 1 1 2 ( 2) 1 2 1 1 ( 3)(4 + 1) + 0(2 + 1) + 2( 1 + 2) 13. 2 Properties of Determinants Expansion by a Column. Definition 1 allows us to compute the determinant of a matrix by row expansion. We may also achieve the same purpose by column expansion. Lemma 1. Let A [a ij ] be an n n matrix with n > 1. Choose an arbitrary j [1, n]. The determinant of A equals: det(a) ( 1) i+j a ij det(a ij ). The value of the above equation does not depend on the choice of j. i1 We omit the proof but illustrate the lemma with an example below. Henceforth, if we compute det(a) by the above lemma, we say that we expand A by column j. Example 3. Suppose that A 2

Choosing j 1, we get: det(a) 1 0 2 1 2 3 1 2 + ( 1) 0 2 1(0 2) 3(4 + 1) 1( 4 0) 13. Corollary 1. Let A be a square matrix. Then, det(a) det(a T ). Proof. Note that expanding A by column k is equivalent to expanding A T by row k. Corollary 2. If A has a zero row or a zero column, then det(a) 0. Proof. If A has a zero row, then det(a) 0 follows from expanding A by that row. The case where A has a zero column is similar. Determinant of a Row-Echelon Matrix. The next lemma shows that the determinant of a matrix in row-echelon form is simply the product of the values on the main diagonal. Lemma 2. Let A [a ij ] be an n n matrix in row-echelon form. Then, det(a) Π n i1 a ii. Proof. We can prove the lemma by induction. First, correctness is obvious for n 1. Assuming correctness for n t 1 (for t 2), consider n t. Expanding A by the first row gives: det(a) ( 1) 1+j a 1j det(a 1j ). (2) j1 From induction we know that det(a 11 ) Π n i2 a ii. Furthermore, for j > 1, det(a 1j ) 0 because the first column of A 1j contains all 0 s. It thus follows that (2) equals Π n i1 a ii. Determinants under Elementary Row Operations. Recalled that the elementary row operations on A are: Let A [a ij ] be an n n matrix. 1. Switch two rows of A. 2. Multiply all numbers of a row of A by the same non-zero value c. 3. Let r i and r j be two distinct row vectors of A. Update row r i to r i + r j. Next, we refer to the above as Operation 1, 2, and 3, respectively. Lemma 3. The determinant of A 1. should be multiplied by 1 after Operation 1; 2. should be multiplied by c after Operation 2; 3. has no change after Operation 3. 3

Proof. See appendix. The following corollary will be very useful: Corollary 3. Let r i and r j be two distinct row vectors of A. The determinant of A does not change after the following operation: Update row r i to r i + c r j, where c is a real value. Proof. We consider only c 0 (the case of c 0 is trivial). Let A be the array after applying the above operation. We can also obtain A by performing the next three operations: 1. Multiply the j-th row of A by c. Let A 1 be the array obtained. 2. Add the j-th row of A 1 into its i-th row. Let A 2 be the array obtained. 3. Multiply the j-th row of A 2 by 1/c. Let A 3 be the array obtained. Note that A 3 A. By Lemma 3, det(a 1 ) c det(a), det(a 2 ) det(a 1 ), and det(a 3 ) (1/c) det(a 3 ). Hence, det(a) det(a ). Let us illustrate Lemma 3 and Corollary 3 with an example. Example 4. 0-6 -5 Here is another derivation giving the same result: 0-6 -5 0-6 -5 0 0 13/6 0 0 13 13. 13. Corollary 4. If A has two identical rows or columns, then det(a) 0. Proof. We prove only the row case. Switching the two rows gets back the same matrix. However, by Lemma 3, the determinant of the matrix should be multiplied by 1. Therefore, we get det(a) det(a), meaning det(a) 0. Determinant under Matrix Multiplication. The following is a perhaps surprising property of determinants: Lemma 4. Let A, B be n n matrices. It holds that det(ab) det(a) det(b). 4

The proof is not required, but we will discuss it in a tutorial after we have learned the concept of matrix inversion. Example 5. - 0 0 1 1 1-2 0-0 0 1 1 1-2 0 13 3-1 1 2-8 7 0 4-6 -1 39. Relationships with Ranks. The lemma below relates determinants to ranks: Lemma 5. Let A be an n n matrix. A has rank n if and only if det(a) 0. Proof. We can first apply elementary row operations to convert A into row-echelon form A. Thus, A has rank n if and only if A has rank n. Since A is a square matrix, that it has rank n is equivalent to saying that all the numbers on its main diagonal are non-zero. Thus, by Lemma 2, we know that A has rank n if and only if det(a ) 0. Finally, by Lemma 3, det(a) 0 if and only if det(a ) 0. We thus complete the proof. Appendix: Proof of Lemma 3 The claims on Operations 1 and 2 are easy to prove; we leave the proofs to you as exercises. To prove the claim on Operation 3, we will leverage Corollary 4 (which holds as long as the claim on Operation 1 is true). Suppose that, after performing Operation 3 on A, we obtain a matrix A. Our goal is to show that det(a) det(a ). Let us define a new matrix B: B is the same as A, except that the i-th row of B is replaced by the j-th row of A. In other words, the i-th row of B is identical to the j-th row of B. det(b) 0. Next, we will focus on showing: Corollary 4 tells us that det(a ) det(a) + det(b) (3) which will indicate det(a) det(a ) and hence will complete the proof. Define a ik as the number at the i-th row and j-th column of A, and define a ik, b ik similarly with respect to A, B, respectively. Note that: a ik a ik + b ik 5

holds by the way A and B were obtained. In fact, (3) follows almost directly from the definition of determinants. Let us calculate det(a ) by expanding the matrix on row i: det(a ) ( 1) i+k a ik det(a ik) k1 ( 1) i+k (a ik + b ik ) det(a ik) k1 ( ) ( ) ( 1) i+k a ik det(a ik) + ( 1) i+k b ik det(a ik) k1 k1 ( ) ( ) ( 1) i+k a ik det(a ik ) + ( 1) i+k b ik det(b ik ) k1 det(a) + det(b). k1 6