Lesson 12 – 2 Multiplication of Matrices

Slides:



Advertisements
Similar presentations
4.1 Introduction to Matrices
Advertisements

12.2 Multiplication of Matrices. Matrix Multiplication The product of two matrices, A m×p and B p×n, is the matrix AB with dimensions m × n. Any element.
Finding the Inverse of a Matrix
12.1 Addition of Matrices. Matrix: is any rectangular array of numbers written within brackets; represented by a capital letter; classified by its dimensions.
MATRICES MATRIX OPERATIONS. About Matrices  A matrix is a rectangular arrangement of numbers in rows and columns. Rows run horizontally and columns run.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Algebra 2: Lesson 5 Using Matrices to Organize Data and Solve Problems.
MATRICES Adapted from presentation found on the internet. Thank you to the creator of the original presentation!
Basic Operations MultiplicationDeterminants Cramer’s RuleIdentityInverses Solving Systems of equations APPENDIX.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Ch X 2 Matrices, Determinants, and Inverses.
Unit 6 : Matrices.
Unit 3: Matrices.
4.4 Identify and Inverse Matrices Algebra 2. Learning Target I can find and use inverse matrix.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
Multiplying Matrices Algebra 2—Section 3.6. Recall: Scalar Multiplication - each element in a matrix is multiplied by a constant. Multiplying one matrix.
Sec 4.1 Matrices.
4-3 Matrix Multiplication Objectives: To multiply by a scalar To multiply two matrices.
CS 450: COMPUTER GRAPHICS TRANSFORMATIONS SPRING 2015 DR. MICHAEL J. REALE.
Linear System of Simultaneous Equations Warm UP First precinct: 6 arrests last week equally divided between felonies and misdemeanors. Second precinct:
Unit 3: Matrices. Matrix: A rectangular arrangement of data into rows and columns, identified by capital letters. Matrix Dimensions: Number of rows, m,
12-2 MATRIX MULTIPLICATION MULTIPLY MATRICES BY USING SCALAR AND MATRIX MULTIPLICATION.
MATRICES. Introduction Matrix algebra has several uses in economics as well as other fields of study. One important application of Matrices is that it.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
13.3 Product of a Scalar and a Matrix.  In matrix algebra, a real number is often called a.  To multiply a matrix by a scalar, you multiply each entry.
Ch. 12 Vocabulary 1.) matrix 2.) element 3.) scalar 4.) scalar multiplication.
MATRICES MATRIX Multiplication. Warm-up Subtract (don’t forget to KCC):
10.4 Matrix Algebra. 1. Matrix Notation A matrix is an array of numbers. Definition Definition: The Dimension of a matrix is m x n “m by n” where m =
College Algebra Chapter 6 Matrices and Determinants and Applications
Downhill product – Uphill product.
MTH108 Business Math I Lecture 20.
Lesson 43: Working with Matrices: Multiplication
Multiplying Matrices.
Chapter 7 Matrix Mathematics
Finding the Inverse of a Matrix
Matrix Operations Monday, August 06, 2018.
Matrix Operations Add and Subtract Matrices Multiply Matrices
Multiplying Matrices Algebra 2—Section 3.6.
Matrix Operations SpringSemester 2017.
Warm Up Use scalar multiplication to evaluate the following:
Multiplying Matrices.
Warm-up a. Solve for k: 13 −5
Matrix Algebra.
MATRICES MATRIX OPERATIONS.
Multiplying Matrices.
MATRICES MATRIX OPERATIONS.
Unit 3: Matrices
Matrix Multiplication
Objectives Multiply two matrices.
Multiplying Matrices.
Matrix Algebra.
Dimensions matching Rows times Columns
Multiplication of Matrices
12.1 Addition of Matrices.
3.6 Multiply Matrices.
Lesson 12 – 4 Inverses of Matrices
1.8 Matrices.
MATRICES MATRIX OPERATIONS.
MATRICES MATRIX OPERATIONS.
Lesson 4: Inverses of Matrices (part 1)
Matrix Operations Ms. Olifer.
Matrix Operations SpringSemester 2017.
1.8 Matrices.
Multiplying Matrices.
3.5 Perform Basic Matrix Operations Algebra II.
Multiplying Matrices.
Multiplying Matrices.
L4-5/L4-6 Objective: Students will be able to evaluate determinants of matrices.
Presentation transcript:

Lesson 12 – 2 Multiplication of Matrices Pre-calculus

Learning Objective To solve quadratic systems

Matrix Matrix Multiplication The product of two matrices, 𝐴 𝑚 𝑥 𝑝 and 𝐵 𝑝 𝑥 𝑛 , is the matrix 𝐴𝐵 with dimensions 𝑚 𝑥 𝑛. Any element in the 𝑖 𝑡ℎ row and 𝑗 𝑡ℎ column of this product matrix is the sum of the products of the corresponding elements of the 𝑖 𝑡ℎ row of 𝐴 and the 𝑗 𝑡ℎ column of 𝐵 Don’t Write. You have it! When you multiply matrices, they need to be conformable, for multiplication. Yes, write it Extra  This means: # of columns in 1st matrix = # of rows in 2nd matrix

Matrix 𝑎 𝑏 𝑐 𝑑 𝑒 𝑓 ∙ 𝑎 𝑏 𝑐 𝑑 𝑒 𝑓 2 x 3 3 x 2 MUST MATCH TO MULTIPLY Multiplying Matrices – order MATTERS Matrix 𝑎 𝑏 𝑐 𝑑 𝑒 𝑓 ∙ 𝑎 𝑏 𝑐 𝑑 𝑒 𝑓 2 x 3 3 x 2 MUST MATCH TO MULTIPLY Answer will be a 2 x 2

Matrix 𝑎 𝑏 𝑐 𝑑 𝑒 𝑓 ∙ 𝑎 𝑏 𝑐 𝑑 3 x 2 2 x 2 MUST MATCH TO MULTIPLY 𝑎 𝑏 𝑐 𝑑 𝑒 𝑓 ∙ 𝑎 𝑏 𝑐 𝑑 3 x 2 2 x 2 MUST MATCH TO MULTIPLY Answer will be a 3 x 2

Matrix 𝑎 𝑏 𝑐 𝑑 𝑒 𝑓 ∙ 𝑎 𝑏 𝑐 𝑑 𝑒 𝑓 2 x 3 2 x 3 𝑎 𝑏 𝑐 𝑑 𝑒 𝑓 ∙ 𝑎 𝑏 𝑐 𝑑 𝑒 𝑓 2 x 3 2 x 3 Don’t match, CANNOT MULTIPLY

Matrix 1. Find 𝐴𝐵: 𝐴= 4 5 7 2 1 3 and 𝐵= 2 3 5 6 3 x 2 2 x 2 match dimensions of product 3 × 2 This is the first row, first column so we take 1st row of A × 1st column of B write yourself how to get this element 𝑎 𝑑 𝑏 𝑒 𝑐 𝑓 4 2 +5(5) 4 3 +5(6) 7 2 +2(5) 7 3 +2(6) 1 2 +3(5) 1 3 +3(6) 𝐴𝐵= 33 42 24 33 17 21

2. Find 𝐴 2 : 𝐴= 4 5 7 2 1 3 Matrix 𝐴 2 = 4 5 7 2 1 3 4 5 7 2 1 3 =𝑢𝑛𝑑𝑒𝑓𝑖𝑛𝑒𝑑 3 x 2 3 x 2 Wait! You Can’t!

Matrix We can solve for unknown elements in a matrix equation 3. Solve for x & y 3 1 −2 0 𝑥 4 −4 5𝑦 = 2 −3 −4 −8 3x – 4 = 2 12 + 5y = –3 x = 2 y = –3

Matrix The Identity Matrix The identity matrix is the equivalent to the algebraic 1. Multiplying by it does not change the original. Yes, write it  𝐼 3 𝑥 3 = 1 0 0 0 1 0 0 0 1 𝐼 2 𝑥 2 = 1 0 0 1 Pattern: 1’s along the diagonal & 0’s everywhere else *If the product of two matrices is 𝐼, then they are inverses of each other. You can also multiply by a 0 matrix to get a 0 matrix.

Matrix Properties of Matrix Multiplication for Square Matrices If 𝐴, 𝐵, 𝑎𝑛𝑑 𝐶 are 𝑛 𝑥 𝑛 matrices, then 𝐴𝐵 is an 𝑛 𝑥 𝑛 matrix Closure Don’t Write. You have it! 𝐴𝐵 𝐶=𝐴(𝐵𝐶) Associative 𝐼 𝑛 𝑥 𝑛 𝐴=𝐴 𝐼 𝑛 𝑥 𝑛 =𝐴 Multiplicative Identity 𝑂 𝑛 𝑥 𝑛 𝐴=𝐴 𝑂 𝑛 𝑥 𝑛 = 𝑂 𝑛 𝑥 𝑛 Multiplicative Property of the Zero Matrix 𝐴 −1 is the multiplicative inverse of 𝐴 if 𝐴 −1 is defined and 𝐴 𝐴 −1 = 𝐴 −1 𝐴= 𝐼 𝑛 𝑥 𝑛 Multiplicative Inverse

Matrix Properties of Matrix Multiplication for Square Matrices If 𝐴, 𝐵, 𝑎𝑛𝑑 𝐶 are 𝑛 𝑥 𝑛 matrices, then Don’t Write. You have it! 𝐴 𝐵+𝐶 =𝐴𝐵+𝐴𝐶 Distributive Properties 𝐵+𝐶 𝐴=𝐵𝐴+𝐶𝐴 What properties are not here?? Yes, write it Extra  When we “store” information in matrices, we may have to transpose them (switch rows & columns) to make them conformable for multiplication. Per 3 Per 4 Boys Girls Ex. 𝐴= 𝐵𝑜𝑦𝑠 𝐺𝑖𝑟𝑙𝑠 18 20 17 14 𝐴′= 𝑃𝑒𝑟 3 𝑃𝑒𝑟 4 18 17 20 14 It’s still the same!

Matrix Don’t Write. You have it! Cost Yes, write it  4. A fruit stand owner packages fruit in three different ways for gift packages. Economy package, E, has 6 apples, 3 oranges, and 3 pears. Standard package, S has 5 apples, 4 oranges, and 4 pears. Luxury package, L, has 6 types of each fruit. The costs are $0.50 for an apple, $1.10 for an orange, and $0.80 for a pear. What is the total cost of preparing each package of fruit? Matrix Don’t Write. You have it! Cost Apple Orange Pear 𝐴=𝑐𝑜𝑠𝑡 [ $0.50 $1.10 $0.80 ] Yes, write it  Number of Items Apple Orange Pear 𝐵= 𝐸 𝑆 𝐿 6 3 3 5 4 4 6 6 6

Matrix Cost Apple Orange Pear 𝐴=𝑐𝑜𝑠𝑡 [ $0.50 $1.10 $0.80 ] Number of Items Apple Orange Pear 𝐵= 𝐸 𝑆 𝐿 6 3 3 5 4 4 6 6 6 If we multiply in this state … the labels don’t match up Cost per fruit package per fruit Cost per fruit fruit per package

𝐴 𝐵 𝑡 = $0.50 $1.10 $0.80 6 5 6 3 4 6 3 4 6 Matrix E S L =cost $8.70 $10.10 $14.40

Assignment Pg. 608 #1, 3, 5, 8, 15, 16, 18, 19, 20, 29, 31, 34, 41, 42

Lesson 12 – 2 Multiplication of Matrices Pre-calculuS SUPPLEMENTAL NOTES

Multiplying Matrices 5. 𝐴= 2 8 −3 0 and 𝐵= −2 −8 3 0 find 𝐴𝐵 2 8 −3 0 −2 −8 3 0 = 2 −2 +8(3) 2 −8 +8(0) −3 −2 +0(3) −3 −8 +0(0) = 2 −2 +8(3) 2 −8 +8(0) −3 −2 +0(3) = 2 −2 +8(3) 2 −8 +8(0) = 2 −2 +8(3) = 20 −16 6 24

Multiplying Matrices 6. 𝐴= 2 −1 3 4 and 𝐵= −3 1 0 2 find 𝐴𝐵 2 −1 3 4 −3 1 0 2 = 2 −3 +(−1)(0) 2 1 +(−1)(2) 3 −3 +4(0) 3 1 +4(2) = 2 −3 +(−1)(0) 2 1 +(−1)(2) 3 −3 +4(0) = 2 −3 +(−1)(0) 2 1 +(−1)(2) = 2 −3 +(−1)(0) = −6 0 −9 11

Multiplying Matrices 7. 𝐴= 2 −1 3 4 and 𝐵= −3 1 0 2 find 𝐵𝐴 −3 1 0 2 2 −1 3 4 = −3 2+(1)(3) −3 (−1)+(1)(4) 0 2 +2(3) 0 −1 +2(4) = −3 2+(1)(3) −3 (−1)+(1)(4) 0 2 +2(3) = −3 2+(1)(3) = −3 2+(1)(3) −3 (−1)+(1)(4) = −3 7 6 8 ***NOT the same as AB (#6)!!!!

Multiplying Matrices 8. −1 1 1 4 −3 5 (1 x 2)(2 x 2) = 1 x 2 8. −1 1 1 4 −3 5 (1 x 2)(2 x 2) = 1 x 2 = −1 1 +1(−3) −1 4 +1(5) = −1 1 +1(−3) = −4 1

Multiplying Matrices 9. 1 4 −3 5 −1 1 (2 x 2)(1 x 2) Can’t multiply!

Multiplying Matrices 10. −1 −2 0 2 3 1 −1 2 −3 2 0 1 (3 x 2)(2 x 3) 10. −1 −2 0 2 3 1 −1 2 −3 2 0 1 (3 x 2)(2 x 3) = 3 x 3 = −1 −1 +(−2)(2) −1 2 +(−2)(0) −1 −3 +(−2)(1) 0 −1 +2(2) 0 2 +2(0) 0 −3 +2(1) = −1 −1 +(−2)(2) −1 2 +(−2)(0) −1 −3 +(−2)(1) 0 −1 +2(2) 0 2 +2(0) 0 −3 +2(1) 3 −1 +1(2) = −1 −1 +(−2)(2) −1 2 +(−2)(0) −1 −3 +(−2)(1) 0 −1 +2(2) 0 2 +2(0) = −1 −1 +(−2)(2) −1 2 +(−2)(0) −1 −3 +(−2)(1) 0 −1 +2(2) 0 2 +2(0) 0 −3 +2(1) 3 −1 +1(2) 3 2 +1(0) 3 −3 +1(1) = −1 −1 +(−2)(2) −1 2 +(−2)(0) −1 −3 +(−2)(1) 0 −1 +2(2) 0 2 +2(0) 0 −3 +2(1) 3 −1 +1(2) 3 2 +1(0) = −1 −1 +(−2)(2) −1 2 +(−2)(0) −1 −3 +(−2)(1) = −1 −1 +(−2)(2) −1 2 +(−2)(0) −1 −3 +(−2)(1) 0 −1 +2(2) = −1 −1 +(−2)(2) −1 2 +(−2)(0) = −1 −1 +(−2)(2) = −3 −2 1 4 0 2 −1 6 −8

Multiplying Matrices 11. −1 2 −3 2 0 1 −1 −2 0 2 3 1 (2 x 3)(3 x 2) 11. −1 2 −3 2 0 1 −1 −2 0 2 3 1 (2 x 3)(3 x 2) = 2 x 2 = −1 −1 +2 0 +(−3)(3) = −1 −1 +2 0 +(−3)(3) −1 −2 +2 2 +(−3)(1) = −1 −1 +2 0 +(−3)(3) −1 −2 +2 2 +(−3)(1) 2 −1 +0 0 +1(3) = −1 −1 +2 0 +(−3)(3) −1 −2 +2 2 +(−3)(1) 2 −1 +0 0 +1(3) 2 −2 +0 2 +1(1) = −8 3 1 −3