LA lecture 4: linear eq. systems, (inverses,) determinants

Similar documents
Components and change of basis

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

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

MTH 464: Computational Linear Algebra

Graduate Mathematical Economics Lecture 1

Lecture 8: Determinants I

MATRICES. a m,1 a m,n A =

Evaluating Determinants by Row Reduction

System of Linear Equations

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

Math 240 Calculus III

Elementary maths for GMT

1300 Linear Algebra and Vector Geometry

ENGR-1100 Introduction to Engineering Analysis. Lecture 21

Math 4A Notes. Written by Victoria Kala Last updated June 11, 2017

Undergraduate Mathematical Economics Lecture 1

Determinants of 2 2 Matrices

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

Linear Equations in Linear Algebra

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

1 Last time: determinants

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

UNIT 1 DETERMINANTS 1.0 INTRODUCTION 1.1 OBJECTIVES. Structure

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

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

Math 4377/6308 Advanced Linear Algebra

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

Matrix Algebra 2.1 MATRIX OPERATIONS Pearson Education, Inc.

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

Determinant: 3.2 Evaluation of Determinant with Elementary

Matrix Operations: Determinant

Determinants by Cofactor Expansion (III)

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

Announcements Wednesday, October 25

MATH 310, REVIEW SHEET 2

MTH 464: Computational Linear Algebra

MAC Module 2 Systems of Linear Equations and Matrices II. Learning Objectives. Upon completing this module, you should be able to :

Determinants and Scalar Multiplication

4. Determinants.

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

Math Linear Algebra Final Exam Review Sheet

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

Determinants Chapter 3 of Lay

Homework Set #8 Solutions

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

SAMPLE OF THE STUDY MATERIAL PART OF CHAPTER 1 Introduction to Linear Algebra

CHAPTER 8: Matrices and Determinants

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

Introduction to Determinants

Math 3C Lecture 20. John Douglas Moore

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

Fundamentals of Engineering Analysis (650163)

Chapter 1: Linear Equations

Determinants: Uniqueness and more

7.6 The Inverse of a Square Matrix

SAMPLE OF THE STUDY MATERIAL PART OF CHAPTER 1 Introduction to Linear Algebra

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

MATH 213 Linear Algebra and ODEs Spring 2015 Study Sheet for Midterm Exam. Topics

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

Eigenvalues and Eigenvectors

Matrix & Linear Algebra

Linear Systems and Matrices

MAC Learning Objectives. Learning Objectives (Cont.) Module 10 System of Equations and Inequalities II

Chapter 3. Determinants and Eigenvalues

SOLVING LINEAR SYSTEMS

Properties of the Determinant Function

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

Elementary Linear Algebra

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

Chapter 2. Square matrices

9 Appendix. Determinants and Cramer s formula

Review of Linear Algebra

Chapter 3 - From Gaussian Elimination to LU Factorization

Gaussian Elimination and Back Substitution

Determinants: summary of main results

22m:033 Notes: 3.1 Introduction to Determinants

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

Matrix Algebra. Matrix Algebra. Chapter 8 - S&B

II. Determinant Functions

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:

Chapter 1: Linear Equations

Linear Algebra March 16, 2019

Linear Algebra and Matrix Inversion

Math 54 Homework 3 Solutions 9/

Linear Algebra. Solving Linear Systems. Copyright 2005, W.R. Winfrey

A 2. =... = c c N. 's arise from the three types of elementary row operations. If rref A = I its determinant is 1, and A = c 1

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.

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

1 Counting spanning trees: A determinantal formula

MATRICES AND MATRIX OPERATIONS

Differential Equations and Linear Algebra C. Henry Edwards David E. Penney Third Edition

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

DETERMINANTS. , x 2 = a 11b 2 a 21 b 1

EE731 Lecture Notes: Matrix Computations for Signal Processing

MATH 3511 Lecture 1. Solving Linear Systems 1

Chapter 2: Matrices and Linear Systems

Volume in n Dimensions

Chapter 2: Matrix Algebra

Eigenvalues and Eigenvectors

Transcription:

LA lecture 4: linear eq. systems, (inverses,) determinants Yesterday: ˆ Linear equation systems Theory Gaussian elimination To follow today: ˆ Gaussian elimination leftovers ˆ A bit about the inverse: Definition If A has an inverse, call it A 1, then the equation system AX = B has precisely one solution, X = A 1 B. We can calculate A 1 by eliminating (A I) down to (I M)... or by a formula involving determinants. ˆ Determinants, then. Definition [loosely what you need to know] Properties Two ways to calculate. Post-lecture update: Bugfix extravaganza. 1

LA lecture 4: Gaussian elimination leftovers [End of previous slideset, see that one.] 2

LA lecture 4: The inverse Back to the scalar equation αx = β: ˆ If α 1 exists, then the only solution is α 1 β. ˆ That α 1 we often write 1/α: we can divide by numbers. ˆ Matrices: cannot divide, but sometimes we have an A 1 and can multiply. Definition: Given A. If there exists M such that MA = AM = I, then we call M the inverse of A and write A 1 = M. ˆ A must necessarily be square. M must be of same order. ˆ Fact: A cannot have more than one inverse. ˆ Fact: If A is square, then you need only check one of AM = I or MA = I, because then the other holds automatically: For n n matrices, AM = I holds if and only if MA = I (Not at all obvious! True because n <...) 3

LA lecture 4: The inverse Once we point out that A is square, we need only calculate one of the products. Examples: ( ) 1 ( ) 1 2 4 2 Example: Show that = t for some t R. 3 4 3 1 ( ) ( ) ( ) 1 2 4 2 2 0 Solution: Multiply: t = t = 2tI. 3 4 3 1 0 2 True when t = 1/2. ( ) ( ) 4 2 1 2 Or, just as good: 1 2 = I. 3 1 3 4 ( ) 1 ( ) a b 1 d b Example: If ad bc 0, then = c d ad bc c a (Fact: If ad bc = 0, then no inverse exists. For later: ad bc is the determinant of ( a b c d ).) 4

LA lecture 4: The inverse Once we point out that A is square... cont d: Fact: If A is square, then solving AX = I for X, yields X = A 1 if it exists (and no solution if it doesn t.)) Why? Solving, we do get X such that AX = I iff that exists. Then we do not need to verify that XA = I. (Since A is square.) Furthermore: Fact: A matrix A has an inverse iff A is square AND has nonzero determinant 5

LA lecture 4: The determinant... what and...? What? A special function that takes a square (n n) matrix as input, and returns a number. History: used for linear eq. systems before matrices! Nine Chapters of Mathematical Art, China, 200 BCE... Does that number mean anything? It has an area/volume/ hypervolume interpretation you do not need to worry about. For the curious: diagram next page. More important in this course: if A has nonzero determinant, then A 1 exists and the system Ax = b (which is n equations in n unknowns) obeys the counting rule. 6

LA lecture 4: The determinant: geometry (OPTIONAL!) Geometry (OPTIONAL). If it helps your intuition or curiosity: The determinant of A equals ± the n-dimensional hypervolume of the n-dim. parallelogram spanned by the columns of A. Or by the rows of A. Illustration, n = 2 and n = 3: Determinant = ± the area, resp. the volume Source: Wikibooks Linear Algebra/Determinants as Size Functions, diagrams derived by Nicholas Longo from Jim Hefferon s open-source linear algebra book, license: CC-BY-SA-2.5. A square matrix A has an inverse as long as that hypervolume does not collapse to zero: n = 2 as long as the columns are not on the same line. n = 3: as long as the columns are not in the same plane. Etc. 7

LA lecture 4: The determinant Notation: det A or A or bar delimiters : a b ( a c d for det c Beware, it is not an absolute value and could be negative. ) b. d How to define? There are n! = n(n 1) 2 1 ways to select n elements with precisely one from each row and column. For each selection, multiply the elements. Switch sign on half the products, and add up. The sign switching follows this rule: ˆ The selection of all the main diagonal elements: do not switch. ˆ Every time two rows are interchanged: switch sign. Example: 2 2 and 3 3, the NE/SW diagonal. Resp.: ( ) and. Would be the main diagonal if the 1st and last row were interchanged. Precisely one interchange precisely one sign switch. Put a negative in front. 8

LA lecture 4: The determinant You will likely not use the definition except a very few cases: ˆ 1 1: From the definition, the determinant is the element. (Again: Not any absolute value! Not even writing the bars here...) ˆ 2 2: From the definition, a b c d = ad bc. Maybe also for the following, although they will also follow from the rules to follow next slides: ˆ 3 3: Here you can also read it from the book. Or: Sarrus rule (only valid for 3 3, not to be covered here). ˆ Triangular matrices: upper (resp. lower) triangular all zeroes below (resp. above) the main diagonal: Determinant = the product of the main diagonal elements. (Why? Every other selection of precisely one element from each row/col., contains a zero.) 9

LA lecture 4: The determinant. Cofactors The cofactor C ij of element (i, j) of A, is formed by ˆ Deleting row i and column j from A (that is, the row and column of said element) ˆ Calculating the determinant of the rest ((n 1) (n 1)) ˆ Multiplying by ( 1) i+j. 3 9 2 Example: The cofactor C 23 of element (2, 3) of 1 5 7 is (note how nothing magenta appears): 11 4 7 ( 1) 5 3 9 11 4 = (12 ( 99)) = 111. + + +... + +... The ( 1) i+j : chessboard + + +... + +....... 10

LA lecture 4: The determinant. Cofactor expansion: Fact: For any i = 1,... n, we have A = a i1 C i1 +... + a in C in. IOW, we can calculate the determinant as follows: ˆ Pick one row number i (and stick to it!) ˆ For each element in the row, multiply it by its cofactor ˆ Add up. This is called cofactor expansion along the ith row. 3 9 2 Example: 2 5 1 11 4 7 along the 2nd row: 2C 21 + 5C 22 + ( 1)C 23 Need C 21 = ( 1) 2+1 9 2 4 7 = (63 ( 8)) = 71 and C 22 = [you go ahead!]: ( 1) 2+2 3 2 11 7 = 1 and C 23 = [from previous slide] = 111 Answer: 2 ( 71) + 5 ( 1) 1 ( 111) = 36. 11

LA lecture 4: The determinant. Cofactor expansion: Fact: For any j = 1,... n, we have A = a 1j C 1j +... + a nj C nj. That is cofactor expansion along the jth column. 3 9 2 1 Example: 2 5 1 0 11 4 7 0 along the 4th column. 0 0 1 1 2 5 1 3 9 2 1 ( 1) 1+4 11 4 7 +0 + 0 + 1 ( 1) 4+4 2 5 1 0 0 1 11 4 7 }{{}}{{} expand along 3rd row = 36, prev. slide = 2 5 11 4 36 = 8 + 55 36 = 27 You can choose which row or which column. If there is one with a lot of zeroes, if often pays off to choose that one. (Although,...) 12

LA lecture 4: The determinant. Rules. For n n matrices, the following rules apply: (i) Cofactor expansion applies along any row/column. (ii) If one row/column is zero, the determinant is zero. (iii) A = A. (iv) If you scale one row by α, then you scale the determinant by α. Same with column. (v) Interchange two rows of A, and you switch sign on the determinant (but keep the absolute value!). Same with two columns. But do not try to interchange a row with a column! (vi) The determinant does not change if a scaling α of a row is added to a different row. Same with column. So if two rows are proportional, then A = 0. Or if two columns are proportional. But not a row and a column. (vii) AB = A B. Beware that both must be square, not just the product. 13

LA lecture 4: The determinant. Rules: Warnings Note: There is no simple rule for A + B. Exercises: What is ti n? What is ta? Beware the common error! Answers: t n resp. t n A. Why? Scaling just one row by t will scale the determinant by t; and, scaling the entire matrix scaling every one of them. For n n matrices, there are n rows. 14

LA lecture 4: The determinant. Elementary row operations Recall that in Gaussian elimination, we had three operations on rows. On determinants, they do the following: ˆ Interchange two rows: switches sign. ˆ Scale a row: scales the determinant. ˆ Add a scaling of a row to another: no change. 222 333 444 2 3 4 Example: 555 666 777 = 111 111 1111 5 6 7 1111 2222 3333 1 2 3 2 3 4 + 1 1 1 and 5 6 7 + = 4 4 4 = 0 1 2 3 1 1 1 2 3 Exam: You can be asked, e.g. Calculate this without using cofactor expansion. 15

LA lecture 4: The determinant. Elementary column operations For determinants we can also do the same operations on columns. But do not apply column operations to equation systems! 1 + 2 + 1/11 1/11 22 33 14 2 3 14 2 1 12 Example: 55 66 13 = 11 2 5 6 13 = 121 5 4 8 11 22 1 1 2 1 1 0 0 which by cofactor expansion (along what, you think?) equals = 121 1 12 4 8 = 121 4 1 3 1 2 (WHY?). Answer: 484. (Worried that you might be asked to calculate this w/o cofactor expansion? Not this one, for then you would in the end need to apply the definition on a 3 3, and... but previous slide: an easy zero. Or we could ask that for something that ends up in β αi.) 16