Math 3191 Applied Linear Algebra

Similar documents
Math 3191 Applied Linear Algebra

Math 2331 Linear Algebra

Matrix operations Linear Algebra with Computer Science Application

Fall Inverse of a matrix. Institute: UC San Diego. Authors: Alexander Knop

Math 4377/6308 Advanced Linear Algebra

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

ICS 6N Computational Linear Algebra Matrix Algebra

A FIRST COURSE IN LINEAR ALGEBRA. An Open Text by Ken Kuttler. Matrix Arithmetic

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

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

Undergraduate Mathematical Economics Lecture 1

Math 4377/6308 Advanced Linear Algebra

Elementary maths for GMT

7.6 The Inverse of a Square Matrix

Section 12.4 Algebra of Matrices

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

Graduate Mathematical Economics Lecture 1

Linear Algebra and Matrix Inversion

Matrix Arithmetic. j=1

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

Kevin James. MTHSC 3110 Section 2.1 Matrix Operations

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

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

Linear Equations in Linear Algebra

Inverting Matrices. 1 Properties of Transpose. 2 Matrix Algebra. P. Danziger 3.2, 3.3

Chapter 2. Ma 322 Fall Ma 322. Sept 23-27

Math 60. Rumbos Spring Solutions to Assignment #17

MTH 464: Computational Linear Algebra

Matrix Algebra 2.1 MATRIX OPERATIONS Pearson Education, Inc.

Matrix Arithmetic. a 11 a. A + B = + a m1 a mn. + b. a 11 + b 11 a 1n + b 1n = a m1. b m1 b mn. and scalar multiplication for matrices via.

Math 3191 Applied Linear Algebra

Math 3191 Applied Linear Algebra

Introduction. Vectors and Matrices. Vectors [1] Vectors [2]

3.4 Elementary Matrices and Matrix Inverse

Mon Feb Matrix algebra and matrix inverses. Announcements: Warm-up Exercise:

Matrix & Linear Algebra

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

Elementary Row Operations on Matrices

MATRICES AND MATRIX OPERATIONS

Linear Algebra The Inverse of a Matrix

CS100: DISCRETE STRUCTURES. Lecture 3 Matrices Ch 3 Pages:

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

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

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

MATH2210 Notebook 2 Spring 2018

February 20 Math 3260 sec. 56 Spring 2018

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.

Section 2.2: The Inverse of a Matrix

Math 3191 Applied Linear Algebra

2.1 Matrices. 3 5 Solve for the variables in the following matrix equation.

Math 313 Chapter 1 Review

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

6-2 Matrix Multiplication, Inverses and Determinants

7.5 Operations with Matrices. Copyright Cengage Learning. All rights reserved.

Linear Systems and Matrices

Kevin James. MTHSC 3110 Section 2.2 Inverses of Matrices

Components and change of basis

Lectures on Linear Algebra for IT

Two matrices of the same size are added by adding their corresponding entries =.

Matrix Algebra. Learning Objectives. Size of Matrix

Linear Algebra Practice Problems

Introduction to Determinants

Systems of Linear Equations and Matrices

Math 3191 Applied Linear Algebra

Announcements Wednesday, October 04

Lecture 3: Matrix and Matrix Operations

Matrix Algebra & Elementary Matrices

E k E k 1 E 2 E 1 A = B

Mon Feb Matrix inverses, the elementary matrix approach overview of skipped section 2.5. Announcements: Warm-up Exercise:

MA 138 Calculus 2 with Life Science Applications Matrices (Section 9.2)

Math 220 F11 Lecture Notes

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

Linear Algebra. The analysis of many models in the social sciences reduces to the study of systems of equations.

Math 1553 Introduction to Linear Algebra

INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW MATRICES

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

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

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 4377/6308 Advanced Linear Algebra

MAT 2037 LINEAR ALGEBRA I web:

Chapter 3. Determinants and Eigenvalues

Review : Powers of a matrix

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

Math Linear Algebra Final Exam Review Sheet

Linear Algebra V = T = ( 4 3 ).

POLI270 - Linear Algebra

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Solutions to Exam I MATH 304, section 6

MATH 304 Linear Algebra Lecture 10: Linear independence. Wronskian.

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

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

CLASS 12 ALGEBRA OF MATRICES

is a 3 4 matrix. It has 3 rows and 4 columns. The first row is the horizontal row [ ]

ORIE 6300 Mathematical Programming I August 25, Recitation 1

Math 3C Lecture 20. John Douglas Moore

If A is a 4 6 matrix and B is a 6 3 matrix then the dimension of AB is A. 4 6 B. 6 6 C. 4 3 D. 3 4 E. Undefined

The matrix will only be consistent if the last entry of row three is 0, meaning 2b 3 + b 2 b 1 = 0.

Lecture 3 Linear Algebra Background

Numerical Linear Algebra Homework Assignment - Week 2

Transcription:

Math 191 Applied Linear Algebra Lecture 8: Inverse of a Matrix Stephen Billups University of Colorado at Denver Math 191Applied Linear Algebra p.1/0

Announcements We will not make it to section. tonight, so... You do not need to turn in problems from sec.. for Tuesday. The quiz on Tuesday will not cover problems from section. Reminder Exam 1 will be Sept.. Math 191Applied Linear Algebra p./0

Outline Discuss Quiz and HWK Finish Sec..1 Matrix Operations. Sec.., Inverse of a Matrix. Math 191Applied Linear Algebra p./0

Section.1: Review: Matrix Notation. A ij or a ij = entry in i-th row, j-th column of A. [a ij ] = matrix, whose ij-th entry is a ij. Matrix Operations. Matrix addition and scalar multiplication just like vector addition and scalar multiplication. A + B = [A ij + B ij ], ca = [ca ij ]. Matrix multiplication defined so that (AB)x = A(Bx). Two ways to calculate AB: i) by definition, ii) Row-column rule. Compatible Dimensions. Math 191Applied Linear Algebra p./0

Tonight Practice multiplying matrices. Properties of matrix multiplication. Powers of a matrix Transpose of a matrix. Math 191Applied Linear Algebra p.5/0

Practice Let A = 1. (AB) 11 = 1 0 0 1 h 5 and B = i 1 1 0 5. 5 =.. (AB) 1 =.. AB = 5.. BA =. Math 191Applied Linear Algebra p./0

Properties of Matrix Multiplication THEOREM Let A be m n and let B and C have sizes for which the indicated sums and products are defined. a. A (BC) = (AB)C (associative law of multiplication) b. A (B + C) = AB + AC (left - distributive law) c. (B + C) A = BA + CA (right-distributive law) d. r(ab) = (ra)b = A(rB) for any scalar r e. I m A = A = AI n (identity for matrix multiplication) Math 191Applied Linear Algebra p./0

WARNINGS Properties above are analogous to properties of real numbers. But NOT ALL real number properties correspond to matrix properties. 1. It is not the case that AB always equal BA. (see Example, page 11). Even if AB = AC, then B may not equal C. (see Exercise 10, page 11). It is possible for AB = 0 even if A 0 and B 0. (see Exercise 1, page 11) Math 191Applied Linear Algebra p.8/0

Powers of A A k = A A }{{} k EXAMPLE: [ ] [ ] [ 1 = [ ] [ ] 1 0 = 1 0 [ = ] [ 1 0 ] 1 0 1 8 ] Math 191Applied Linear Algebra p.9/0

Transpose If A is m n, the transpose of A is the n m matrix, denoted by A T, whose columns are formed from the corresponding rows of A. EXAMPLE: A = 1 5 8 9 8 5 = A T = 1 8 5 9 5 8 Math 191Applied Linear Algebra p.10/0

EXAMPLE: Let A = [ 1 0 0 1 A T B T and B T A T. ], B = 1 0 1. Compute AB, (AB) T, Solution: [ AB = 1 0 0 1 ] 1 0 1 (AB) T = = [ ] [ ] Math 191Applied Linear Algebra p.11/0

Solution, (cont.) A T B T = B T A T = [ 1 0 0 1 [ 1 0 1 1 0 1 ] 1 0 0 1 ] = = 10 0 1 [ ] Math 191Applied Linear Algebra p.1/0

THEOREM Let A and B denote matrices whose sizes are appropriate for the following sums and products. a. ( A T ) T = A (I.e., the transpose of A T is A) b. (A + B) T = A T + B T c. For any scalar r, (ra) T = ra T d. (AB) T = B T A T (I.e. the transpose of a product of matrices equals the product of their transposes in reverse order. ) Math 191Applied Linear Algebra p.1/0

EXAMPLE: Prove that (ABC) T =. Solution: By Theorem d, (ABC) T = ((AB) C) T = C T ( ) T = C T ( ) =. Math 191Applied Linear Algebra p.1/0

Sec.: The Inverse of a Matrix The inverse of a real number a is denoted by a 1. For example, 1 = 1/ and 1 = 1 = 1 An n n matrix A is said to be invertible if there is an n n matrix C satisfying CA = AC = I n where I n is the n n identity matrix. We call C the inverse of A. FACT If A is invertible, then the inverse is unique. Proof: Assume B and C are both inverses of A. Then B = BI = B ( ) = ( ) = I = C. So the inverse is unique since any two inverses coincide. Math 191Applied Linear Algebra p.15/0

Notation and Terminology The inverse of A is usually denoted by A 1. We have AA 1 = A 1 A = I n Not all n n matrices are invertible. A matrix that is not invertible is sometimes called a singular matrix. An invertible matrix is called a nonsingular matrix. Memory Trick: There is only a single real number that is not invertible (namely zero), so non-invertible numbers are singular. Interesting Fact: Almost all matrices are invertible. Math 191Applied Linear Algebra p.1/0

Theorem Let A = a b c d 5. If ad bc 0, then A is invertible and A 1 = 1 ad bc d b c a 5. If ad bc = 0, then A is not invertible. Assume A is any invertible matrix and we wish to solve Ax = b. Then Ax = b and so Ix = or x =. Suppose w is also a solution to Ax = b. Then Aw = b and Aw = b which means w =A 1 b. So, w =A 1 b, which is in fact the same solution. Math 191Applied Linear Algebra p.1/0

Theorem 5 We have proved the following result: Theorem 5 If A is an invertible n n matrix, then for each b in R n, the equation Ax = b has the unique solution x = A 1 b. EXAMPLE: A = Solution: A 1 = [ 5 1 1 15 x =A 1 b = [ [ ] 5 5, b = [ 1 ] ] [ ] ] =. [ = 5 [ ] ]. Math 191Applied Linear Algebra p.18/0

Theorem Suppose A and B are invertible. Then the following results hold: a. A 1 is invertible and `A 1 1 = A (i.e. A is the inverse of A 1 ). b. AB is invertible and (AB) 1 = B 1 A 1 c. A T is invertible and `A T 1 `A 1 T = Partial proof of part b: (AB) `B 1 A 1 = A ( ) A 1 = A ( ) A 1 = =. Similarly, one can show that `B 1 A 1 (AB) = I. Math 191Applied Linear Algebra p.19/0

More Matrices... Theorem, part b can be generalized to three or more invertible matrices: (ABC) 1 =. Proof: (ABC) 1 = ((AB) C) 1 = C 1 ( ) 1 = C 1 ( ) =. Math 191Applied Linear Algebra p.0/0

Elementary Matrices To calculate inverses of larger than matrices, we first need to look at elementary matrices. Definiton: An elementary matrix is one that is obtained by performing a single elementary row operation on an identity matrix. EX: Let E 1 = 0 0 5, E = 0 0 1 0 0 1 and E are elementary matrices. Why? 5, E = 0 1 5. E 1, E, Math 191Applied Linear Algebra p.1/0

Multiplying by an Elementary Matrix Let A = E 1 A = a b c d e f g h i 0 0 0 0 1. a b c d e f g h i = Describe the effect multiplying by E 1 had on A. Math 191Applied Linear Algebra p./0

Effect of Multiplying by Elementary Matrix If an elementary row operation is performed on an m n matrix A, the resulting matrix can be written as EA, where the m m matrix E is created by performing the same row operations on I m. Examples: E A = 0 0 1 5 a b c d e f g h i 5 = a b c g h i d e f 5 E A = 0 1 5 a b c d e f g h i 5 = a b c d e f a + g b + h c + i 5 Math 191Applied Linear Algebra p./0

Inverses of Elementary Matrices Elementary matrices are invertible because row operations are reversible. To determine the inverse of an elementary matrix E, determine the elementary row operation needed to transform E back into I and apply this operation to I to find the inverse. For example, E = E = 0 1 0 0 1 E 1 = E 1 = Math 191Applied Linear Algebra p./0

Inverting A with Elementary Matrices Example: Let A = E 1 A = E (E 1 A) = 0 0 0 0 1 E (E E 1 A) = 1 0 5 0 0 1 0 1 1 0 5 5 5. Then 5 = 0 1 0 1 5 = 0 1 5 = 5 0 1 0 0 1 5 5 Math 191Applied Linear Algebra p.5/0

So Then multiplying on the right by A 1, we get E E E 1 A = I. So E E E 1 A = I. E E E 1 I = A 1 E E E 1 I = 0 1 5 0 0 1 5 0 0 0 0 1 5 I = 0 1 5 0 1 5 = 0 1 5 0 0 1 0 0 5 = 0 0 1 0 5 Math 191Applied Linear Algebra p./0

The elementary row operations that row reduce A to I n are the same elementary row operations that transform I n into A 1. Theorem An n n matrix A is invertible if and only if A is row equivalent to I n, and in this case, any sequence of elementary row operations that reduces A to I n will also transform I n to A 1. Math 191Applied Linear Algebra p./0

Algorithm for finding A 1 Place A and I side-by-side to form an augmented matrix [A I]. Then perform row operations on this matrix (which will produce identical operations on A and I). So by Theorem :[A I] will row reduce to ˆI A 1 (or A is not invertible). EXAMPLE: Find the inverse of A = 0 0 0 1 5, if it exists. Solution:[A I] = 0 0 1 0 0 0 1 5 1 0 0 0 0 1 0 0 1 1 0 5 So A 1 = 1 0 0 0 0 1 1 0 5 Math 191Applied Linear Algebra p.8/0

Bad Example Find the inverse of A = Solution: [A I] = 1 1 5 1 8 5. 1 1 5 1 8 0 0 1 5 1 0 1 1 1 0 0 1 0 1 5 1 0 1 1 1 0 0 0 0 1 1 5 What went wrong? A is. Math 191Applied Linear Algebra p.9/0

Order of multiplication is important! EXAMPLE Suppose A,B,C, and D are invertible n n matrices and A = B(D I n )C. Solve for D in terms of A, B, C and D. Solution: A = B(D I n )C D I n = B 1 AC 1 D I n + = B 1 AC 1 + D = Math 191Applied Linear Algebra p.0/0