Section 4.5. Matrix Inverses

Similar documents
Announcements Wednesday, October 04

Section 2.2: The Inverse of a Matrix

February 20 Math 3260 sec. 56 Spring 2018

Math 314H EXAM I. 1. (28 points) The row reduced echelon form of the augmented matrix for the system. is the matrix

MATH 2331 Linear Algebra. Section 2.1 Matrix Operations. Definition: A : m n, B : n p. Example: Compute AB, if possible.

Math 54 HW 4 solutions

Math 369 Exam #2 Practice Problem Solutions

MATH 152 Exam 1-Solutions 135 pts. Write your answers on separate paper. You do not need to copy the questions. Show your work!!!

MATH 2360 REVIEW PROBLEMS

Announcements Monday, October 29

Review Notes for Linear Algebra True or False Last Updated: February 22, 2010

Math 2174: Practice Midterm 1

Chapter 2 Notes, Linear Algebra 5e Lay

Review Let A, B, and C be matrices of the same size, and let r and s be scalars. Then

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

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

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

Solutions to Exam I MATH 304, section 6

Homework Set #8 Solutions

Chapter 3: Theory Review: Solutions Math 308 F Spring 2015

Final Examination 201-NYC-05 December and b =

Math 2940: Prelim 1 Practice Solutions

(c)

(a) only (ii) and (iv) (b) only (ii) and (iii) (c) only (i) and (ii) (d) only (iv) (e) only (i) and (iii)

1. Determine by inspection which of the following sets of vectors is linearly independent. 3 3.

MATH 1553, SPRING 2018 SAMPLE MIDTERM 2 (VERSION B), 1.7 THROUGH 2.9

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

2018 Fall 2210Q Section 013 Midterm Exam II Solution

Dimension. Eigenvalue and eigenvector

Summer Session Practice Final Exam

Math 1553 Introduction to Linear Algebra

MATH 1553, FALL 2018 SAMPLE MIDTERM 2: 3.5 THROUGH 4.4

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.

Math 217 Midterm 1. Winter Solutions. Question Points Score Total: 100

Linear Algebra Math 221

MAT 242 CHAPTER 4: SUBSPACES OF R n

MATH 20F: LINEAR ALGEBRA LECTURE B00 (T. KEMP)

MATH 221: SOLUTIONS TO SELECTED HOMEWORK PROBLEMS

Math Computation Test 1 September 26 th, 2016 Debate: Computation vs. Theory Whatever wins, it ll be Huuuge!

Chapter 3. Directions: For questions 1-11 mark each statement True or False. Justify each answer.

3.4 Elementary Matrices and Matrix Inverse

Announcements Wednesday, November 01

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

1. What is the determinant of the following matrix? a 1 a 2 4a 3 2a 2 b 1 b 2 4b 3 2b c 1. = 4, then det

Applied Matrix Algebra Lecture Notes Section 2.2. Gerald Höhn Department of Mathematics, Kansas State University

Warm-up. True or false? Baby proof. 2. The system of normal equations for A x = y has solutions iff A x = y has solutions

MATH 2210Q MIDTERM EXAM I PRACTICE PROBLEMS

Properties of Linear Transformations from R n to R m

Math 1B03/1ZC3 - Tutorial 2. Jan. 21st/24th, 2014

Miderm II Solutions To find the inverse we row-reduce the augumented matrix [I A]. In our case, we row reduce

YORK UNIVERSITY. Faculty of Science Department of Mathematics and Statistics MATH M Test #1. July 11, 2013 Solutions

18.06 Problem Set 3 Due Wednesday, 27 February 2008 at 4 pm in

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

Answers in blue. If you have questions or spot an error, let me know. 1. Find all matrices that commute with A =. 4 3

Kevin James. MTHSC 3110 Section 2.2 Inverses of Matrices

Math Final December 2006 C. Robinson

Solving a system by back-substitution, checking consistency of a system (no rows of the form

1 Last time: determinants

Math 215 HW #9 Solutions

Math 323 Exam 2 Sample Problems Solution Guide October 31, 2013

INVERSE OF A MATRIX [2.2]

Chapters 5 & 6: Theory Review: Solutions Math 308 F Spring 2015

Linear Algebra Exam 1 Spring 2007

Study Guide for Linear Algebra Exam 2

MATH 33A LECTURE 2 SOLUTIONS 1ST MIDTERM

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

Math 3C Lecture 20. John Douglas Moore

MTH 464: Computational Linear Algebra

Third Midterm Exam Name: Practice Problems November 11, Find a basis for the subspace spanned by the following vectors.

Glossary of Linear Algebra Terms. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Solutions to Math 51 First Exam April 21, 2011

1.4 Linear Transformation I

Math Linear Algebra Final Exam Review Sheet

Practice Final Exam. Solutions.

Problem # Max points possible Actual score Total 120

Matrix equation Ax = b

MATH 1553, JANKOWSKI MIDTERM 2, SPRING 2018, LECTURE A

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

Review Notes for Midterm #2

MODEL ANSWERS TO THE THIRD HOMEWORK

Chapter 2: Matrix Algebra

1 Last time: inverses

Math Camp II. Basic Linear Algebra. Yiqing Xu. Aug 26, 2014 MIT

MATH10212 Linear Algebra B Homework Week 5

22A-2 SUMMER 2014 LECTURE 5

This lecture is a review for the exam. The majority of the exam is on what we ve learned about rectangular matrices.

Math 54 Homework 3 Solutions 9/

Announcements Wednesday, November 01

All of my class notes can be found at

Signature. Printed Name. Math 312 Hour Exam 1 Jerry L. Kazdan March 5, :00 1:20

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

1. TRUE or FALSE. 2. Find the complete solution set to the system:

Midterm 1 Solutions Math Section 55 - Spring 2018 Instructor: Daren Cheng

DEPARTMENT OF MATHEMATICS

LINEAR ALGEBRA SUMMARY SHEET.

March 27 Math 3260 sec. 56 Spring 2018

DIAGONALIZATION. In order to see the implications of this definition, let us consider the following example Example 1. Consider the matrix

MATH 33A LECTURE 3 PRACTICE MIDTERM I

Solution Set 7, Fall '12

Topic 15 Notes Jeremy Orloff

Transcription:

Section 4.5 Matrix Inverses

The Definition of Inverse Recall: The multiplicative inverse (or reciprocal) of a nonzero number a is the number b such that ab = 1. We define the inverse of a matrix in almost the same way. Definition Let A be an n n square matrix. We say A is invertible (or nonsingular) if there is a matrix B of the same size, such that identity matrix AB = I n and BA = I 1 0 0 n. 0 1 0...... In this case, B is the inverse of A, and is written A 1... Example A = ( ) 2 1 1 1 B = ( ) 1 1. 1 2 0 0 1 I claim B = A 1. Check: ( ) ( ) ( ) 2 1 1 1 1 0 AB = = 1 1 1 2 0 1 ( ) ( ) ( ) 1 1 2 1 1 0 " BA = =. 1 2 1 1 0 1

Poll Poll Do there exist two matrices A and B such that AB is the identity, but BA is not? If so, find an example. (Both products have to make sense.) Yes, for instance: A = ( 1 0 ) 0 0 1 0 1 0 B = 0 1. 0 0 However If A and B are square matrices, then AB = I n if and only if BA = I n. So in this case you only have to check one.

Solving Linear Systems via Inverses Solving Ax = b by dividing by A Theorem If A is invertible, then Ax = b has exactly one solution for every b, namely: x = A 1 b. Why? Divide by A! Ax = b A 1 (Ax) = A 1 b (A 1 A)x = A 1 b I nx = A 1 b x = A 1 b. I nx = x for every x Important If A is invertible and you know its inverse, then the easiest way to solve Ax = b is by dividing by A : x = A 1 b. This is very convenient when you have to vary b!

Solving Linear Systems via Inverses Example Example Solve the system 2x 1 + 3x 2 + 2x 3 = 1 x 1 + 3x 3 = 1 2x 1 + 2x 2 + 3x 3 = 1 Answer: using x 1 2 3 2 x 2 = 1 0 3 x 3 2 2 3 1 2 3 2 1 0 3 2 2 3 1 6 5 9 = 3 2 4. 2 2 3 1 6 5 9 1 2 1 = 3 2 4 1 = 1. 1 2 2 3 1 1 The advantage of using inverses is it doesn t matter what s on the right-hand side of the = : 2x 1 + 3x 2 + 2x 3 = b 1 1 x 1 2 3 2 b 1 x 1 + 3x 3 = b 2 = x 2 = 1 0 3 b 2 2x 1 + 2x 2 + 3x 3 = b x 3 2 2 3 b 3 3 6b 1 5b 2 + 9b 3 = 3b 1 + 2b 2 4b 3. 2b 1 + 2b 2 3b 3

Some Facts Say A and B are invertible n n matrices. 1. A 1 is invertible and its inverse is (A 1 ) 1 = A. 2. AB is invertible and its inverse is (AB) 1 = A 1 B 1 B 1 A 1. Why? (B 1 A 1 )AB = B 1 (A 1 A)B = B 1 I nb = B 1 B = I n. 3. A T is invertible and (A T ) 1 = (A 1 ) T. Why? A T (A 1 ) T = (A 1 A) T = In T = I n. Question: If A, B, C are invertible n n matrices, what is the inverse of ABC? i. A 1 B 1 C 1 ii. B 1 A 1 C 1 iii. C 1 B 1 A 1 iv. C 1 A 1 B 1 Check: (ABC)(C 1 B 1 A 1 ) = AB(CC 1 )B 1 A 1 = A(BB 1 )A 1 = AA 1 = I n. In general, a product of invertible matrices is invertible, and the inverse is the product of the inverses, in the reverse order.

Computing A 1 The 2 2 case ( ) a b Let A =. The determinant of A is the number c d ( ) a b det(a) = det = ad bc. c d Facts: 1. If det(a) 0, then A is invertible and A 1 = 1 det(a) 2. If det(a) = 0, then A is not invertible. Why 1? ( ) ( ) a b d b = c d c a ( ) ad bc 0 = 0 ad bc So we get the identity by dividing by ad bc. ( d b c a ). ( ) ( ) d b a b c a c d Example ( ) 1 2 det = 1 4 2 3 = 2 3 4 ( ) 1 1 2 = 1 3 4 2 ( ) 4 2. 3 1

Computing A 1 In general Let A be an n n matrix. Here s how to compute A 1. 1. Row reduce the augmented matrix ( A I n ). 2. If the result has the form ( I n B ), then A is invertible and B = A 1. 3. Otherwise, A is not invertible. Example 1 0 4 A = 0 1 2 0 3 4 [interactive]

Computing A 1 Example 1 0 4 1 0 0 0 1 2 0 1 0 R 3 = R 3 + 3R 2 1 0 4 1 0 0 0 1 2 0 1 0 0 3 4 0 0 1 0 0 2 0 3 1 R 1 = R 1 2R 3 R 2 = R 2 R 3 1 0 0 1 6 2 0 1 0 0 2 1 0 0 2 0 3 1 R 3 = R 3 2 1 0 0 1 6 2 0 1 0 0 2 1 0 0 1 0 3/2 1/2 1 0 1 4 1 6 2 So 0 1 2 = 0 2 1. 0 3 4 0 3/2 1/2 Check: 1 0 4 1 6 2 1 0 0 0 1 2 0 2 1 = 0 1 0 " 0 3 4 0 3/2 1/2 0 0 1

Why Does This Work? We can think of the algorithm as simultaneously solving the equations 1 0 4 1 0 0 Ax 1 = e 1 : 0 1 2 0 1 0 0 3 4 0 0 1 1 0 4 1 0 0 Ax 2 = e 2 : 0 1 2 0 1 0 0 3 4 0 0 1 1 0 4 1 0 0 Ax 3 = e 3 : 0 1 2 0 1 0 0 3 4 0 0 1 Now note A 1 e i = A 1 (Ax i ) = x i, and x i is the ith column in the augmented part. Also A 1 e i is the ith column of A 1.

Invertible Transformations Definition A transformation T : R n R n is invertible if there exists another transformation U : R n R n such that T U(x) = x and U T (x) = x for all x in R n. In this case we say U is the inverse of T, and we write U = T 1. In other words, T (U(x)) = x, so T undoes U, and likewise U undoes T. Fact A transformation T is invertible if and only if it is both one-to-one and onto. If T is one-to-one and onto, this means for every y in R n, there is a unique x in R n such that T (x) = y. Then T 1 (y) = x.

Invertible Transformations Examples Let T = counterclockwise rotation in the plane by 45. What is T 1? T T 1 T 1 is clockwise rotation by 45. [interactive: T 1 T ] [interactive: T T 1 ] Let T = shrinking by a factor of 2/3 in the plane. What is T 1? T T 1 T 1 is stretching by 3/2. [interactive: T 1 T ] [interactive: T T 1 ] Let T = projection onto the x-axis. What is T 1? It is not invertible: you can t undo it.

Invertible Linear Transformations If T : R n R n is an invertible linear transformation with matrix A, then what is the matrix for T 1? Let B be the matrix for T 1. We know T T 1 has matrix AB, so for all x, Hence AB = I n, so B = A 1. ABx = T T 1 (x) = x. Fact If T is an invertible linear transformation with matrix A, then T 1 is an invertible linear transformation with matrix A 1.

Invertible Linear Transformations Examples Let T = counterclockwise rotation in the plane by 45. Its matrix is ( ) cos(45 ) sin(45 ) A = sin(45 ) cos(45 = 1 ( ) 1 1. ) 2 1 1 Then T 1 = counterclockwise rotation by 45. Its matrix is ( ) cos( 45 ) sin( 45 ) B = sin( 45 ) cos( 45 = 1 ( ) 1 1. ) 2 1 1 Check: AB = 1 ( ) ( ) ( ) 1 1 1 1 1 0 = 2 1 1 1 1 0 1 Let T = shrinking by a factor of 2/3 in the plane. Its matrix is ( ) 2/3 0 A = 0 2/3 Then T 1 = stretching by 3/2. Its matrix is ( ) 3/2 0 B = 0 3/2 ( ) ( ) 2/3 0 3/2 0 Check: AB = = 0 2/3 0 3/2 ( ) 1 0 0 1 " "

The Invertible Matrix Theorem A.K.A. The Really Big Theorem of Math 1553 The Invertible Matrix Theorem Let A be an n n matrix, and let T : R n R n be the linear transformation T (x) = Ax. The following statements are equivalent. 1. A is invertible. 2. T is invertible. 3. The reduced row echelon form of A is the identity matrix I n. 4. A has n pivots. 5. Ax = 0 has no solutions other than the trivial solution. 6. Nul(A) = {0}. 7. nullity (A) = 0. 8. The columns of A are linearly independent. 9. The columns of A form a basis for R n. 10. T is one-to-one. 11. Ax = b is consistent for all b in R n. 12. Ax = b has a unique solution for each b in R n. 13. The columns of A span R n. 14. Col A = R n. 15. dim Col A = n. 16. rank A = n. 17. T is onto. 18. There exists a matrix B such that AB = I n. 19. There exists a matrix B such that BA = I n. you really have to know these

The Invertible Matrix Theorem Summary There are two kinds of square matrices: 1. invertible (non-singular), and 2. non-invertible (singular). For invertible matrices, all statements of the Invertible Matrix Theorem are true. For non-invertible matrices, all statements of the Invertible Matrix Theorem are false. Strong recommendation: If you want to understand invertible matrices, go through all of the conditions of the IMT and try to figure out on your own (or at least with help from the book) why they re all equivalent. You know enough at this point to be able to reduce all of the statements to assertions about the pivots of a square matrix.

The Invertible Matrix Theorem Example Question: Is this matrix invertible? 1 2 1 A = 2 4 7 2 4 1 The second column is a multiple of the first, so the columns are linearly dependent. A does not satisfy condition (8) of the IMT, so it is not invertible.

The Invertible Matrix Theorem Another Example Problem: Let A be a 3 3 matrix such that 1 2 A 7 = A 0. 0 1 Show that the rank of A is at most 2. If we set 1 2 b = A 7 = A 0, 0 1 then Ax = b has multiple solutions, so it does not satisfy condition (12) of the IMT. Hence it also does not satisfy condition (16), so the rank is not 3. In any case the rank is at most 3, so it must be less than 3.

Summary The inverse of a square matrix A is a matrix A 1 such that AA 1 = I n (equivalently, A 1 A = I n). If A is invertible, then you can solve Ax = b by dividing by A : b = A 1 x. There is a unique solution x = A 1 b for every x. You compute A 1 (and whether A is invertible) by row reducing ( A ) I n. There s a trick for computing the inverse of a 2 2 matrix in terms of determinants. A linear transformation T is invertible if and only if its matrix A is invertible, in which case A 1 is the matrix for T 1. The Invertible Matrix theorem is a list of a zillion equivalent conditions for invertibility that you have to learn (and should understand, since it s well within what we ve covered in class so far).