Finite Math B Chapter 2 MATRICES 1 Chapter 2 – Part 2 MATRICES A: Augmented Matrices and Row Operations (Lessons 2.2 pg 68 - 70) Augmented Matrices Suppose you are given a system of equations such as: The system can be written as a matrix: 2 1 1 2x y z 2 x 3y 2z 1 x yz 2 1 3 1 1 2 1 2 1 2 To separate the coefficients of the variables from the constants after the equals signs, we draw in a vertical line in the matrix. This is called an augmented matrix. Example 1: Write an augmented matrix for each system of equations. Do not solve. a) 3 x 4 y 2 8x y 4 c) 2 x 3 y 5 z 12 3x 4 z 15 x yz 5 b) 5 x 25 x 4 y 10 Example 2: Write the system of equations associated with each augmented matrix. a) 1 2 3 6 3 10 b) 3 2 0 1 1 4 0 5 9 10 1 8 Finite Math B Chapter 2 MATRICES 2 (example 2 continued…. Write the system of equations associated with each augmented matrix) 1 c) 0 0 0 1 0 0 0 1 3 5 4 1 d) 0 0 1 4 5 In algebra, our goal when faced with a system of equations is to find a solution for x, y, and z that makes the system of equations true. Note that when you see this pattern: 1 0 0 0 1 0 0 0 1 #1 #2 #3 x #1 You end up with y #2 z #3 (1’s on main diagonal, 0’s elsewhere, constants last column) Row Operations We will be using “Row Operations” to manipulate matrices to help us solve systems of equations. What you are allowed to do: 1. INTERCHANGE TWO ROWS 2. MULTIPLY THE ELEMENTS OF A ROW BY A NONZERO REAL NUMBER 3. ADD A NONZERO MULTIPLE OF THE ELEMENTS OF ONE ROW TO THE CORRESPONDING ELEMENTS OF A NONZERO MULTIPLE OF SOME OTHER ROW. Example 3: Use the indicated row operations to change each matrix. a) Interchange R1 with R2. 0 4 2 1 1 1 1 2 6 6 0 9 Finite Math B Chapter 2 MATRICES (Example 3 continued: Use the indicated row operation to change each matrix) b) Replace R3 by 1 3 R3 . 1 3 2 1 0 1 1 2 6 6 3 9 c) Replace R2 with (-2)R1 +R2 3 6 1 1 5 3 4 1 0 2 4 5 d) Replace R3 with (-3)R2 + 5R3 3 0 0 1 5 3 4 1 0 2 4 5 e) Replace R1 with (-2)R3 + 3R1 1 0 0 0 5 0 4 7 6 7 2 24 f) Replace R2 with (-7)R3 + 6R2 1 0 0 0 5 0 4 7 6 7 2 24 g) Replace R2 with (-1)R1 +4R2 4 1 6 3 3 7 1 7 2 4 6 2 3 Finite Math B Chapter 2 MATRICES 4 B: Gauss-Jordan Method for Solving Systems of Equations (Lesson 2.2 , textbook pg 70 – 80) x y 5 z 6 3 x 3 y z 10 x 3y 2z 5 Problem: Find the solution to a system of equations like Strategy: 1. Write the system of equations as an augmented matrix 2. Use Row Operations to transform the matrix into a matrix with whole numbers on the main diagonal, but 0’s elsewhere. 3. Use Row Operations to transform the matrix into an “identity” matrix. (1’s on diagonal, 0’s elsewhere) 4. Final solution = numbers in the “answer” column of the matrix. Example: 1 0 3 1 0 1 5 Example: Meaning: 1 0 0 4 0 1 0 2 0 0 1 3 Meaning: Make it happen: GAUSS-JORDAN Your Goal: 1 0 0 # 1 0 # 0 1 # or 0 1 0 # 0 0 1 # Using legal row operations: 2x2 System Clear Col 1 Clear Col 2 # # # 0 # # 3x3 System Clear Col 1 # # # # 0 # # # 0 # # # # 0 # 0 # # Create 1’s Main Diag. 1 0 # 0 1 # Clear Col 2 Clear Col 3 Create 1’s Main Diag. # 0 # # 0 # # # 0 0 # # # 0 0 # 0 # 0 # 0 0 # # 1 0 0 # 0 1 0 # 0 0 1 # Finite Math B Chapter 2 MATRICES Example 1 : Use the Gauss-Jordan Method to solve each system of equations a) 2 x 4 y 2 3 x 5 y 0 b) 3x 4 y 1 5 x 2 y 19 c) x 2 y 2 3 x 6 y 5 5 Finite Math B Chapter 2 MATRICES (Example 1 continued): Use the Gauss-Jordan Method to solve each system of equations d) x yz 3 2x 3y 7z 0 x 3 y 2 z 17 6 Finite Math B Chapter 2 MATRICES (Example 1 Continued): Use the Gauss-Jordan Method to solve each system of equations 2x 5 y 4z 8 e) 2x 2z 4 x 2 y z 2 7 Finite Math B Chapter 2 MATRICES (Example 1 Continued): Use the Gauss-Jordan Method to solve each system of equations f) x y 5 z 6 3 x 3 y z 10 x 3y 2z 5 8 Finite Math B Chapter 2 MATRICES 9 C: Matrix Inverses (Lessons 2.5 pg 107-111) Additive Inverse Vs Multiplicative Inverse For numbers, algebraic expressions, and matrices “zero” or the “zero matrix” plays the role of the Additive Identity. The sum of a value and the additive identity is the original value, unchanged. 144 0 3 5 0 0 6 2 0 0 3 x 0 If A and B are additive inverses then their sum gives you the additive inverse value, then A + B = 0 Examples of Additive Inverses: 144 + =0 -3x + =0 3 5 6 2 + 0 0 = 0 0 For numbers and algebraic expressions, 1 plays the role of the Multiplicative Identity. For matrices, the “Identity Matrix” is the Multiplicative Identity. The product of the a value and the multiplicative identity is the original value, unchanged. 3 5 1 0 6 2 0 1 3 x 1 = 144 x 1 = If A and B are Multiplicative Inverses then their product gives you the multiplicative inverse value, then A x B = 1 Examples of Multiplicative Inverses: 144 x =1 3x =1 3 5 6 2 ???? 1 0 = 0 1 Finding a multiplicative inverse for a matrix is more challenging than just reciprocating each value in the matrix due to the unique ROWS x COLUMNS requirement of multiplying matrices. Finite Math B Chapter 2 MATRICES 10 Terminology/Facts Only a square matrix can have a multiplicative inverse. If A is your given matrix, then A1 is the multiplicative matrix. I is the identity matrix. The identity matrix I is a square matrix with 1’s on the main diagonal and 0’s elsewhere A A1 I A I A Example 1: Decide whether the given matrices are inverses of each other. (Check to see if their product is the identity matrix I ) 2 1 3 1 and a) 5 3 5 2 2 6 1 2 and b) 2 4 2 4 1 3 3 7 3 3 1 4 3 and 1 1 0 c) 1 3 4 1 0 1 Finding the Multiplicative Inverse of a Matrix A I Step 2: Perform row operations to get the matrix in the form I B if possible. Step 3: Matrix B is A1 Step 1: Form an augmented matrix that looks like Finite Math B Chapter 2 MATRICES Example 2: Find the multiplicative inverse of each matrix a) 1 1 2 0 b) 3 1 5 2 1 3 c) 2 6 11 Finite Math B Chapter 2 MATRICES (Example 2 continued) : Find the multiplicative inverse of each matrix d) 1 1 1 4 5 0 0 1 3 1 2 3 e) 3 2 1 1 0 1 12 Finite Math B Chapter 2 MATRICES D: Using Matrix Inverses to Solve Systems of Equations (Lessons 2.5 pg 111-115) Any system of equations can be written as AX B where A the square coefficient matrix X the column matrix of the variables B the matrix of constants Example: 2 x 5 y 15 x 4y 9 Solving A System of Equations Using the Inverse Method 1. Find the A1 , the inverse of the coefficient matrix 2. Multiply A1 B 3. Check your answers Example 1: Solve each system of equations by using the inverse of the coefficient matrix. a) 2 x 5 y 15 x 4y 9 13 Finite Math B Chapter 2 MATRICES 14 (Example 1 Continued): Solve each system of equations by using the inverse of the coefficient matrix. b) 2 x 7 y 14 3x 4 y 8 x y z 1 c) 4 x 5 y 2 y 3z 3 We already found the inverse of this matrix in exercise 2d on page 12. Go back and copy that answer here: Finite Math B Chapter 2 MATRICES 15 (Example 1 continued): Solve each system of equations by using the inverse of the coefficient matrix. x 2 z 1 d) y z 5 x y 8