Linear algebra and differential equations (Math 54): Lecture 8

Similar documents
Linear algebra and differential equations (Math 54): Lecture 7

Determinants: Uniqueness and more

1300 Linear Algebra and Vector Geometry

det(ka) = k n det A.

Math Linear Algebra Final Exam Review Sheet

1 Last time: determinants

MATH 2030: EIGENVALUES AND EIGENVECTORS

REVIEW FOR EXAM II. The exam covers sections , the part of 3.7 on Markov chains, and

Topic 15 Notes Jeremy Orloff

Lecture Notes in Linear Algebra

Math 320, spring 2011 before the first midterm

Math Camp Notes: Linear Algebra I

Chapter 2. Square matrices

MH1200 Final 2014/2015

MATH 1210 Assignment 4 Solutions 16R-T1

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?

Determinants - Uniqueness and Properties

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 308 Midterm Answers and Comments July 18, Part A. Short answer questions

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

Honors Advanced Mathematics Determinants page 1

Determinants Chapter 3 of Lay


Math 240 Calculus III

CS 246 Review of Linear Algebra 01/17/19

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

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

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

Methods for Solving Linear Systems Part 2

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

Linear equations The first case of a linear equation you learn is in one variable, for instance:

Math 3C Lecture 20. John Douglas Moore

ENGR-1100 Introduction to Engineering Analysis. Lecture 21

Linear algebra and differential equations (Math 54): Lecture 10

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

ECON 186 Class Notes: Linear Algebra

We could express the left side as a sum of vectors and obtain the Vector Form of a Linear System: a 12 a x n. a m2

Calculus (Math 1A) Lecture 4

Calculus (Math 1A) Lecture 4

Linear algebra and differential equations (Math 54): Lecture 13

22m:033 Notes: 3.1 Introduction to Determinants

MA 527 first midterm review problems Hopefully final version as of October 2nd

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

Announcements Wednesday, October 25

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

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

Here are some additional properties of the determinant function.

MATH 310, REVIEW SHEET 2

Graduate Mathematical Economics Lecture 1

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

Name: MATH 3195 :: Fall 2011 :: Exam 2. No document, no calculator, 1h00. Explanations and justifications are expected for full credit.

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

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

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

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

1111: Linear Algebra I

MTH5112 Linear Algebra I MTH5212 Applied Linear Algebra (2017/2018)

MIDTERM 1 - SOLUTIONS

Matrix Factorization Reading: Lay 2.5

A Primer on Solving Systems of Linear Equations

Ex 3: 5.01,5.08,6.04,6.05,6.06,6.07,6.12

Introduction to Determinants

1 Determinants. 1.1 Determinant

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

1 Last time: inverses

Section 4.5. Matrix Inverses

Undergraduate Mathematical Economics Lecture 1

Determinants and Scalar Multiplication

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

LECTURES 14/15: LINEAR INDEPENDENCE AND BASES

Math Lecture 18 Notes

Linear Algebra: Linear Systems and Matrices - Quadratic Forms and Deniteness - Eigenvalues and Markov Chains

Properties of the Determinant Function

7.6 The Inverse of a Square Matrix

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

TOPIC III LINEAR ALGEBRA

MATH2210 Notebook 2 Spring 2018

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

Elementary maths for GMT

3 Fields, Elementary Matrices and Calculating Inverses

M. Matrices and Linear Algebra

Lecture 9: Elementary Matrices

EXAM. Exam #1. Math 2360, Second Summer Session, April 24, 2001 ANSWERS

Math 18, Linear Algebra, Lecture C00, Spring 2017 Review and Practice Problems for Final Exam

Lecture 8: Determinants I

5.3 Determinants and Cramer s Rule

Calculus (Math 1A) Lecture 5

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

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

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

Daily Update. Math 290: Elementary Linear Algebra Fall 2018

8 Square matrices continued: Determinants

Linear Systems and Matrices

Solutions to Final Exam 2011 (Total: 100 pts)

MTH 464: Computational Linear Algebra

Math Linear algebra, Spring Semester Dan Abramovich

Matrices. Ellen Kulinsky

Notes on Determinants and Matrix Inverse

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

Announcements Wednesday, November 01

Transcription:

Linear algebra and differential equations (Math 54): Lecture 8 Vivek Shende February 11, 2016

Hello and welcome to class! Last time We studied the formal properties of determinants, and how to compute them by row reduction. Today We ll see some more formulas involving the determinant minor expansion and Cramer s rule and discuss the interpretation of the determinant as a signed volume.

There is a midterm next time The only tools allowed for the midterm are pen or pencil. I will post a practice midterm later today. On the course website, you can also find a link to many midterms and practice midterms from this class in previous semesters. The midterm will be very similar to those, and very similar to the practice midterm.

There is a midterm next time I very strongly suggest that you try solving the practice midterms and previous midterms without first looking at the answers. It is very easy to trick yourself about how well you understand things if you just read the solutions.

Review: computing determinants by row reduction To compute the determinant of a matrix, row reduce it, and keep track of any row switches or rescalings of rows. At the end, multiply together: the inverses of the row rescaling factors the diagonal entries of the final echelon matrix ( 1) #rowswaps That s the determinant of the original matrix. This method is much much faster than summing all the terms.

Example Let s compute the determinant of this matrix 1 2 3 1 2 0 3 1 0 1 1 2 3 7 8 2 First, we row reduce, keeping track of rescalings and row switches

Example 1 2 3 1 2 0 3 1 0 1 1 2 3 7 8 2 1 2 3 1 0 1 1 1 0 1 1 2 0 4 3 3 1 2 3 1 0 1 1 1 0 0 7 7 0 0 0 1 1 2 3 1 0 4 3 3 0 1 1 2 0 1 1 1 1/7 1 2 3 1 0 1 1 1 0 0 0 1 0 0 7 7 1 2 3 1 0 1 1 1 0 0 1 1 0 0 0 1 1 1 So the determinant is ( 1) 2 ( 7) (1 1 1 1) = 7.

Try it yourself! Compute the determinant of this matrix: 3 1 2 1 1 1 0 2 2 3 1 2 0 1 2 3 Row reduce, keeping track of rescalings and row switches:

Try it yourself! 3 1 2 1 1 1 0 2 2 3 1 2 0 1 2 3 1 1 0 2 0 4 2 5 0 5 1 2 0 1 2 3 1 1 1 0 2 0 1 2 3 0 0 9 17 0 0 6 17 1 The determinant is 51. 1 1 0 2 3 1 2 1 2 3 1 2 0 1 2 3 1 1 0 2 0 1 2 3 0 5 1 2 0 4 2 5

Review: terms in the determinant In the 2x2 case: ] ] c [ a b d c [ a b d +ad bc

Review: terms in the determinant In the 3x3 case: a b c d e f g h i a b c d e f g h i a b c d e f g h i +aei +bfg +cdh a b c d e f g h i a b c d e f g h i a b c d e f g h i afh bdi ceg

Another perspective a b c d e f g h i a b c d e f g h i a b c d e f g h i +aei afh bdi + bfg +cdh ceg +a e h f i b d g f i +c d g e h no orange-green inversions one orange-green inversions two orange-green inversions

Minor expansion For a matrix A, I ll write A i j for the matrix formed by omitting row i and column j. For example, if A = a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 We have: A = a 11 a 22 a 23 a 32 a 33 a 12 a 21 a 23 a 31 a 33 + a 13 a 21 a 22 a 31 a 32 = a 11 A 1 1 a 12 A 1 2 + a 13 A 1 3

Minor expansion More generally, by the same argument, for a square n n matrix A with entry a i,j in row i and column j, for any k in 1,..., n, there is a minor expansion along the k th row A = n ( 1) j+k a kj A k j j=1 and a minor expansion along the k th column A = n ( 1) j+k a jk A j k j=1

The sign ( 1) row+column + + + + + + + + + + + + + + + + + +

Example Compute by minor expansion along the second row: 1 2 3 1 2 0 3 1 0 1 1 2 3 7 8 2

Example 1 2 3 1 2 0 3 1 0 1 1 2 3 7 8 2 = 2 3 1 2 3 1 2 0 3 1 0 1 1 2 3 7 8 2 1 2 3 1 2 0 3 1 0 1 1 2 3 7 8 2 + 0 + 1 1 2 3 1 2 0 3 1 0 1 1 2 3 7 8 2 1 2 3 1 2 0 3 1 0 1 1 2 3 7 8 2

Example 2 2 3 1 1 1 2 7 8 2 +0 1 3 1 0 1 2 3 8 2 3 1 2 1 0 1 2 3 7 2 +1 1 2 3 0 1 1 3 7 8 Now we minor-expand each of these 3 3 determinants. We ll use the second row for each (to catch the zero).

Example 2 3 1 1 1 2 7 8 2 = 1 3 1 8 2 + ( 1) 2 1 7 2 = 2 3 + 10 = 5 2 2 3 7 8 1 2 1 0 1 2 3 7 2 = 0 2 1 7 2 + 1 1 1 3 2 = 0 + 1 2 = 1 2 1 2 3 7 1 2 3 0 1 1 3 7 8 = 0 2 3 7 8 + 1 1 3 3 8 = 0 1 + 1 = 0 ( 1) 1 2 3 7

Example 2 2 3 1 1 1 2 7 8 2 +0 1 3 1 0 1 2 3 8 2 3 1 2 1 0 1 2 3 7 2 +1 1 2 3 0 1 1 3 7 8 ( 2 5) + (0?) + ( 3 1) + (1 0) = 7 That s the same as we got doing this the other way. Which was easier?

Try it yourself! Compute by minor expansion the determinant of the matrix. 3 1 2 1 1 1 0 2 2 3 1 2 0 1 2 3

A formula for the inverse A = a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 Adj(A) = A 1 1 A 2 1 A 3 1 A 1 2 A 2 2 A 3 2 A 1 3 A 2 3 A 3 3 A Adj(A) = a 11 A 1 1 a 12 A 1 2 + a 13 A 1 3 a 11 A 2 1 + a 12 A 2 2 a 13 A 2 3 a 11 A 3 1 a 12 A 3 2 + a 13 A 3 3 a 21 A 1 1 a 22 A 1 2 + a 23 A 1 3 a 21 A 2 1 + a 22 A 2 2 a 23 A 2 3 a 21 A 3 1 a 22 A 3 2 + a 23 A 3 3 a 31 A 1 1 a 32 A 1 2 + a 33 A 1 3 a 31 A 2 1 + a 32 A 2 2 a 33 A 2 3 a 31 A 3 1 a 32 A 3 2 + a 33 A 3 3 The diagonal terms, e.g., a 11 A 1 1 a 12 A 1 2 + a 13 A 1 3, are minor expansions of det(a).

A formula for the inverse A = a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 Adj(A) = A 1 1 A 2 1 A 3 1 A 1 2 A 2 2 A 3 2 A 1 3 A 2 3 A 3 3 Let s look at an off-diagonal term of A Adj(A), say a 21 A 1 1 a 22 A 1 2 + a 23 A 1 3 Expanding this out from the definition, a a 22 a 23 21 a 32 a 33 a 22 a 21 a 23 a 31 a 33 + a 23 a 22 a 23 a 32 a 33

A formula for the inverse The quantity a 21 a 22 a 23 a 32 a 33 a 22 a 21 a 23 a 31 a 33 + a 23 a 22 a 23 a 32 a 33 is the minor expansion of the determinant a 21 a 22 a 23 a 21 a 22 a 23 a 31 a 32 a 33 The matrix has a repeated row, so the determinant is zero! The same is true for all the off diagonal terms.

A formula for the inverse A = a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 Adj(A) = A 1 1 A 2 1 A 3 1 A 1 2 A 2 2 A 3 2 A 1 3 A 2 3 A 3 3 A Adj(A) = det(a) I = Adj(A) A This holds for any square matrix A, where Adj(A) ij = ( 1) i+j A j i The entry in row i, column j of Adj(A) is the determinant of the matrix formed by removing column i and row j of A, times ( 1) i+j.

Try it yourself! [ a b For the 2 2 matrix c d ], determine Adj(A), and verify A Adj(A) = det(a) I = Adj(A) A [ d b Adj(A) = c a ] [ a b c d ] [ d b c a ] [ ad bc ab + ba = cd dc cb + da ] [ 1 0 = (ad bc) 0 1 ]

Cramer s rule Consider a matrix equation Ax = b where A is square. Then det(a) x = (Adj(A) A)x = Adj(A) b Take the i th row of the column vector on both sides: det(a) x i = j Adj(A) ij b j = j ( 1) i+j A j i b j I.e., the minor expansion along the i th column of the determinant of the matrix formed by replacing the i th column of A by b.

Cramer s rule Consider a matrix equation Ax = b where A is square. Then if det(a) 0, x i = det(replace column i of A by b) det(a)

Never use these formulas to compute As we saw, taking the determinant of a 4 4 matrix by minor expansion was more difficult than by row reduction. It only gets worse as the size of the matrix grows. Likewise, row reduction beats computing Adj for inverting matrices, and beats Cramer s rule for solving systems.

Why learn these formulas at all? It s conceptually satisfying to know that, not only is there a procedure for solving systems or inverting matrices, there s in fact a closed form formula. The properties of the formula reveal facts about the solutions.

Integer inverses and solutions Say you have an invertible matrix M with integer entries. Does its inverse also have integer entries? It does, if and only det(m) = ±1. Observe det(m) det(m 1 ) = det(mm 1 ) = 1. The determinant of an integer matrix is always an integer it s made by additions and multiplications. If M 1 has integer entries, then det(m) and det(m 1 ) are two integers which multiply to 1, hence both ±1. Similarly, the Adj of an integer matrix is an integer: it s made by additions and multiplications. So, if det M = ±1, then M 1 = Adj(M)/ det M is an integer matrix as well.

Integer inverses and solutions Similarly, consider the equation Ax = b. Assume A is square and has integer entries b has integer entries det(a) = ±1 We saw that A 1 has integer entries, so the (unique) solution x = A 1 b also has integer entries.

Volumes You probably have an intuitive notion of what volume means: the amount of stuff that can fit inside something. For our purposes, the stuff is going to be cubes of a fixed side length: Volume(S) number of cubes that fit inside S To be more precise, Volume(S) = lim ɛ dim ɛ 0 number of cubes of side length ɛ that fit inside S By this we mean: for S R n, we overlay the ɛ-mesh grid on S, and count the number of cubes which fall completely inside.

Linear transformations and volumes Let T : R n R n be a linear transformation. Given a set X, we want to think about how the volumes of X and T (X ) compare. The key observation is that the number of cubes in X is the same as the number of T -transformed such cubes in T (X ).

Linear transformations and volumes Filling the transformed cubes with yet smaller regular cubes, and observing that the failure of these to pack correctly at the boundary is washed out as ɛ 0, we conclude: Volume(X ) Volume(T (X )) = Volume(cube) Volume(T (cube)) Rearranging, Volume(T (X )) = Volume(T (cube)) Volume(X ) But what s Volume(T (cube))?

Linear transformations and volumes Suppose now given two linear transformations, T, S : R n R n. We apply the formula Volume(T (X )) = Volume(T (cube)) Volume(X ) to the set X = S(cube): Volume(T (S(cube))) = Volume(T (cube)) Volume(S(cube))

Linear transformations and volumes In other words, the function V : linear transformations R T Volume(T (unit cube)) respects multiplication in the sense that V (T S) = V (T )V (S) Note also that V (Identity) = 1, and V (non invertible matrix) = 0.

Linear transformations and volumes Now consider any linear transformation T. If it s not invertible, V (T ) = 0. If it is invertible, then by row reduction we can expand it as a product of elementary matrices, T = E n E 1 Since volume scaling is multiplicative, V (T ) = V (E n ) V (E 1 )

Linear transformations and volumes It remains to understand volume scaling of elementary matrices. Rescaling a row stretching a coordinate rescales volume by the same factor: the volume of a box is the product of its side lengths, and we rescaled one of them. Switching two rows doesn t change volume at all we re just renaming the sides of the box. Adding a multiple of one row to another takes a box to a parallelopiped with the same base and the same height, so again doesn t change volume.

Determinants and volumes So for an elementary linear transformation, Volume(T (unit cube)) = det(t ) Volume scaling is multiplicative, so this holds for any linear transformation. Collecting these observations, for any linear transformation T : R n R n and any set X R n, Volume(T (X )) = det(t ) Volume(X )