Physics 116A Determinants

Similar documents
7.3. Determinants. Introduction. Prerequisites. Learning Outcomes

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

MATRIX DETERMINANTS. 1 Reminder Definition and components of a matrix

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

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

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

sum of squared error.

Chapter 3. Determinants and Eigenvalues

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

Inverses and Determinants

Conceptual Questions for Review

Chapter 4. Determinants

Linear Algebra and Vector Analysis MATH 1120

Lecture Notes 1: Matrix Algebra Part C: Pivoting and Matrix Decomposition

Linear Systems and Matrices

Chapter 2. Square matrices

Elementary maths for GMT

II. Determinant Functions

Notes on Determinants and Matrix Inverse

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

9 Appendix. Determinants and Cramer s formula

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 )

Lecture 7: Vectors and Matrices II Introduction to Matrices (See Sections, 3.3, 3.6, 3.7 and 3.9 in Boas)

Linear Algebraic Equations

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

Evaluating Determinants by Row Reduction

Linear Algebra. Carleton DeTar February 27, 2017

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

Section 5.3 Systems of Linear Equations: Determinants

Determinants: summary of main results

Determinants - Uniqueness and Properties

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

Matrices Gaussian elimination Determinants. Graphics 2009/2010, period 1. Lecture 4: matrices

Some Notes on Linear Algebra

1111: Linear Algebra I

1 Determinants. 1.1 Determinant

1 Matrices and Systems of Linear Equations

DETERMINANTS 1. def. (ijk) = (ik)(ij).

Determinants. Chia-Ping Chen. Linear Algebra. Professor Department of Computer Science and Engineering National Sun Yat-sen University 1/40

DETERMINANTS, COFACTORS, AND INVERSES

4. Determinants.

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

Math Lecture 26 : The Properties of Determinants

Vectors and matrices: matrices (Version 2) This is a very brief summary of my lecture notes.

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

Introduction to Determinants

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

The Determinant: a Means to Calculate Volume

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

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

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

CHAPTER 1 MATRICES SECTION 1.1 MATRIX ALGEBRA. matrices Configurations like π 6 1/2

Matrices and Determinants

MATH 2030: EIGENVALUES AND EIGENVECTORS

Introduction to Matrices and Linear Systems Ch. 3

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

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

Fundamentals of Engineering Analysis (650163)

Determinants in detail

ENGR-1100 Introduction to Engineering Analysis. Lecture 21

Lectures on Linear Algebra for IT

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

Direct Methods for Solving Linear Systems. Simon Fraser University Surrey Campus MACM 316 Spring 2005 Instructor: Ha Le

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

NOTES ON LINEAR ALGEBRA. 1. Determinants

UNIT 1 DETERMINANTS 1.0 INTRODUCTION 1.1 OBJECTIVES. Structure

25. Strassen s Fast Multiplication of Matrices Algorithm and Spreadsheet Matrix Multiplications

3 Matrix Algebra. 3.1 Operations on matrices

Matrix Arithmetic. j=1

Topic 15 Notes Jeremy Orloff

Topics. Vectors (column matrices): Vector addition and scalar multiplication The matrix of a linear function y Ax The elements of a matrix A : A ij

2 Constructions of manifolds. (Solutions)

Lecture 2e Row Echelon Form (pages 73-74)

Announcements Wednesday, October 25

Determinant of a Matrix

Chapter 7. Linear Algebra: Matrices, Vectors,

Math Lecture 27 : Calculating Determinants

5.3 Determinants and Cramer s Rule

Matrices. Chapter Definitions and Notations

n n matrices The system of m linear equations in n variables x 1, x 2,..., x n can be written as a matrix equation by Ax = b, or in full

Exercise Sketch these lines and find their intersection.

Chapter 1: Systems of Linear Equations

The System of Linear Equations. Direct Methods. Xiaozhou Li.

Examples of linear systems and explanation of the term linear. is also a solution to this equation.

Algebra & Trig. I. For example, the system. x y 2 z. may be represented by the augmented matrix

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

THE ADJOINT OF A MATRIX The transpose of this matrix is called the adjoint of A That is, C C n1 C 22.. adj A. C n C nn.

Elementary Linear Algebra

CHAPTER 6. Direct Methods for Solving Linear Systems

Properties of the Determinant Function

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.

Review from Bootcamp: Linear Algebra

Finite Mathematics Chapter 2. where a, b, c, d, h, and k are real numbers and neither a and b nor c and d are both zero.

A Review of Matrix Analysis

1 Dirac Notation for Vector Spaces

Components and change of basis

Quiz ) Locate your 1 st order neighbors. 1) Simplify. Name Hometown. Name Hometown. Name Hometown.

= 1 and 2 1. T =, and so det A b d

Linear Systems of n equations for n unknowns

Lecture 10: Determinants and Cramer s Rule

Transcription:

Physics 116A Determinants Peter Young (Dated: February 5, 2014) I. DEFINITION The determinant is an important property of a square n n matrix. Such a matrix, A say, has n 2 elements, a ij, and is written as the square array a 11 a 12 a 1n a A = 21 a 22 a 2n...... (1). a n1 a n2 a nn The determinant is a single number which is a function of the a ij. It is written as det(a) and to indicate the elements in it one replaces the curved brackets around the matrix array in Eq. (1) by straight vertical lines, i.e. a 11 a 12 a 1n a det(a) = 21 a 22 a 2n...... (2). a n1 a n2 a nn The determinant is defined by det(a) = ǫ i1 i 2 i n a 1i1 a 2i2 a nin, (3) i 1,i 2,,i n where the i 1,i 2,,i n are a permutation of the numbers from 1 to n, the sum is over all n! permutations, and 0, if any two of the i l are equal, ǫ i1 i 2 i n = 1, if i 1,i 2,,i n is an even permutation of 1,2,,n, 1, if i 1,i 2,,i n is an odd permutation of 1,2,,n. (4) For example, for n = 2 we have ǫ 11 = ǫ 22 = 0, ǫ 12 = 1, ǫ 21 = 1, (5)

2 so det(a) = a 11 a 22 a 12 a 21. (6) For n = 3 we have ǫ 123 = ǫ 231 = ǫ 312 = 1, ǫ 132 = ǫ 213 = ǫ 321 = 1, all other ǫ ijk = 0, (7) so det(a) = a 11 a 22 a 33 +a 12 a 23 a 31 +a 13 a 21 a 32 a 11 a 23 a 32 a 12 a 21 a 33 a 13 a 22 a 31. (8) II. COFACTOR EXPANSION Equation (3) is not the most convenient way to evaluate the determinant in practice. To discuss another way to evaluate a determinant and to describe its properties, it is useful to define the minor and cofactor as follows. The ij -th element of the matrix of minors, which we will call M ij, is the determinant of the (n 1) (n 1) matrix formed by eliminating the i-th row and j-the column of A. The corresponding cofactor C ij is given in terms of the minor by C ij = ( 1) i+j M ij. (9) The alternating signs in the last expression can be represented as a matrix of the following form (for n = 3) + + +, (10) + + i.e. the sign of the 11 element is positive and the sign alternates as one goes along a row or column. The determinant can be obtained by expanding along a row. This means we choose a row, i say, and sum the product a ij C ij over all columns j in that row, i.e. n det(a) = a ij C ij (i fixed). (11) j=1

3 Alternatively, one can expand along a column, k say, using n det(a) = a jk C jk (k fixed). (12) j=1 From the basic definition in Eq. (3) one can show that the same result is obtained from Eq. (11) for any row i, and from Eq. (12) for any column k, and that these definitions agree with Eq. (3). As an example consider the following 3 3 matrix: 1 2 2 A = 0 1 0. (13) 2 1 6 It is best to expand along the second row since it has two zeros. This gives 1 2 det(a) = (+)( 1) 2 6, (14) where the determinant is that of the matrix obtained from A in Eq. (13) by omitting the second row and second column. We then easily get det(a) = ( 1)[(1)(6) (2)(2)] = 2, (15) where we used the explicit expression for the determinant of a 2 2 matrix in Eq, (6). However, this method of evaluating a determinant is very inefficient except for small n. To see why, let us compute how many multiplications are required. For an n n matrix there are n multiplications involved in Eq. (11) or (12). However, each cofactor is itself a determinant of a square matrix of size n 1 which involves n 1 multiplications to express it, using Eq. (11) or (12), in terms of determinants of size n 2. Continuing in this way, the number of multiplications is n (n 1) (n 2) 4 3 n 2 where n 2 is the number of multiplications to evaluate a 2 2 determinant. From the explicit expression in Eq. (6) we have n 2 = 2. Hence the number of multiplications needed to evaluate a determinant by a cofactor expansion is Nmult cof (n) = n!. (16) As we shall verify, the factorial grows enormously fast so this approach to evaluating determinants is useless for numerical work except for n extremely small.

4 III. PROPERTIES OF DETERMINANTS AND ROW AND COLUMN REDUCTION Fortunately, determinants have several remarkable properties which we can exploit to find a much more efficient algorithm to evaluate them. These properties, which can be derived from the basic definition in Eq. (3), are: The determinant is unchanged if the rows and columns are exchanged (i.e. if we form the transpose of the matrix). The determinant is zero if any two rows, or any two columns, are equal. The determinant changes sign if any two rows, or any two columns, are interchanged. If every element in a single row or column is multiplied by a constant k, the determinant is multiplied by k. (Important.) The determinant is unchanged if a multiple of a row is added to another row, or a multiple of a column is added to another column. The last property can be used to put a lot of zeros into the elements of a determinant to greatly simplify its evaluation. The method is best explained by doing an example. Let us determine 4 3 0 1 9 7 2 3 D =. (17) 4 0 2 1 3 1 4 0 The first stage is to form linear combinations of rows or columns to make all entries but one equal to zero along a particular row or column. Since the third row already has one zero, we will choose this one. We focus on one of the non-zero entries in this row (the technical term for this element is the pivot ). For the sake of argument we choose the fourth column for which the pivot element (row 3 column 4) has value 1. We then add or subtract a multiple of column 4 to the other columns to make their entry in the third row equal to zero. Denoting column k by C (k) and row i by R (i) we have C (1) C (1) 4C (4), C (2) C (2), (18) C (3) C (3) 2C (4).

5 These changes can be summarized by the replacement ( ) a3j a ij a ij a i4, (i = 1,2,3,4, j = 1,2,3), (19) a 34 which ensures that the new values of a 3j (j = 1,2,3) are all zero. Note that the pivot element, a 34, is in the denominator of Eq. (19) so the pivot must be chosen to be one of the non-zero elements in the third row. Equation (19) obviously generalizes to determinants of arbitrary size n, to any row k which is being reduced, and to any (non-zero) pivot element kl, with the result a ij a ij ( akj a kl ) a il, (i = 1,,n, j = 1,,l 1,l+1,,n). (20) Equation (20) does row reduction, i.e. it puts zeros in all elements of a row except one (the pivot). One can similarly do column reduction, which is described by a formula like Eq. (20) but with rows and columns interchanged. I emphasize that these transformations do not change the value of the determinant. Hence we have 0 3 2 1 0 3 2 3 7 4 3 D = = ( )(1) 3 7 4, (21) 0 0 0 1 3 1 4 3 1 4 0 where expanding along the third row immediately reduces the size of the determinant by one, as shown in the last expression. Next we reduce the size of the determinant again. The transformation R (3) R (3) +R (2) (22) puts a zero in the 31 element and, by nice coincidence, also in the 33 element, so we have 0 3 2 0 2 D = ( 1) 3 7 4 = ( 1)( 6) = (6)[(0)( 4) ( 2)( 3)] = 36. (23) 3 4 0 6 0 This process of evaluating a determinant by successively reducing its size by forming linear combinations of rows and columns to put zeros in all positions but one in a row or column is called row and column reduction. Let us determine how many multiplications are involved in it. To reduce the determinant from n n to (n 1) (n 1) we have to apply Eq. (19) n(n 1) times since it is carried out for every row

6 i, and for every column j except one. The procedure is then repeated to reduce the determinant of size (n 1) (n 1) to size (n 2) (n 2), which requires (n 1)(n 2) applications of Eq. (19). This process continues until we have a 2 2 determinant which requires two multiplications to evaluate. Hence n 1 mult (n) = n(n 1)+(n 1)(n 2)+ +3 2+2 1 = (k +1)k N rcred = 1 ( n 3 n ), (24) 3 k=1 where we have used the standard results that m k = 1m(m+1), 2 k=1 m k=1 k 2 = 1 6m(m+1)(2m+1). (25) The crucial point is that, according to Eq. (24), the number of operations for row and column reduction only increases like the cube of n. Except for very small n, this is vastly better than the factorial n increase of the cofactor expansion shown in Eq. (16), as the following numerical example will show. IV. NUMERICS Let s consider the very modest size, n = 25. According to Eq. (24), row and column reduction requires 5,200 operations. Assuming that our computer will do 10 8 operations per second the time needed is about 50µsec. By contrast, according to Eq. (16), the cofactor expansion requires 50! 1.55 10 25 operations, which will take about 1.55 10 17 sec. This is roughly the age of the universe since the universe is about 1.37 10 10 years old and there are about 3 10 7 seconds in a year. We conclude that cofactor expansion is useless for numerical evaluation of determinants (except for n really small).