Download presentation
Presentation is loading. Please wait.
Published bySabina Sims Modified over 8 years ago
1
14.2 Matrix Multiplication OBJ: To find the product of two matrices
2
4 X 3 3 X 5 4 X 5 A B AB M ULTIPLYING T WO M ATRICES 4 rows 3 columns 3 rows 5 columns
3
4 X 3 3 X 5 4 X 5 M ULTIPLYING T WO M ATRICES 4 rows 5 columns 4 rows 5 columns A B AB
4
If A is a 4 X 3 matrix and B is a 3 X 5 matrix, then the product AB is a 4 X 5 matrix. M ULTIPLYING T WO M ATRICES
5
Matrices A and B can be multiplied only if the number of columns of A equal the number of rows of B. EX: Find the matrix product -32 120 04 3-52 1-1 _____________________________ [ ]
6
EX: Let A = [ 2 -1 3 ] and B = 5-1 0-4 -2 7 Is BA defined? Explain._____________ ______________________
7
Show that (AB) t = B t A t B t A t = AB = [ 2 -1 3 ] 5 -1 0 -4 -2 7 _____________________ AB = [ ] B t A t = (AB) t =
8
Finding the Product of Two Matrices – 23 1– 4 60 – 13– 24– 13– 24 Find AB ifA =and B = Use a similar procedure to write the other entries of the product. Because A is a 3 X 2 matrix and B is a 2 X 2 matrix, the product AB is defined and is a 3 X 2 matrix. To write the entry in the first row and first column of AB, multiply corresponding entries in the first row of A and the first column of B. Then add. S OLUTION
9
(– 2)(– 1) + (3)(– 2)(– 2)(3) + (3)(4) (1)(– 1) + (– 4)(– 2)(1)(3) + (– 4)(4) (6)(– 1) + (0)(– 2)(6)(3) + (0)(4) 3 X 2 2 X 2 3 X 2 A B AB – 23 1– 4 60 – 13– 24– 13– 24 Finding the Product of Two Matrices
10
3 X 2 2 X 2 3 X 2 A B AB Finding the Product of Two Matrices (– 2)(– 1) + (3)(– 2)(– 2)(3) + (3)(4) (1)(– 1) + (– 4)(– 2)(1)(3) + (– 4)(4) (6)(– 1) + (0)(– 2)(6)(3) + (0)(4) – 23 1– 4 60 – 13– 24– 13– 24
11
3 X 2 2 X 2 3 X 2 A B AB Finding the Product of Two Matrices (– 2)(– 1) + (3)(– 2)(– 2)(3) + (3)(4) (1)(– 1) + (– 4)(– 2)(1)(3) + (– 4)(4) (6)(– 1) + (0)(– 2)(6)(3) + (0)(4) – 23 1– 4 60 – 13– 24– 13– 24
12
3 X 2 2 X 2 3 X 2 A B AB Finding the Product of Two Matrices – 46 7– 13 – 618 (– 2)(– 1) + (3)(– 2)(– 2)(3) + (3)(4) (1)(– 1) + (– 4)(– 2)(1)(3) + (– 4)(4) (6)(– 1) + (0)(– 2)(6)(3) + (0)(4)
13
EX: Machine I and Machine II produce items X, Y, Z at the hourly rate given in matrix H. Matrix D gives the number of hours each machine runs during the week. H = D = IIIMTWThF X32I88877 Y54II61012119 Z12
14
a. Give the dimensions of H, D, and HD. ________________________ b. Find HD. What information does HD give? M T W Th F [ ] ________________________ c. How many Y items are produced on Monday? How many Z items are produced on Thursday? _________________________ Notice that in Example 2 the product H 3x2. D2x5 is a 3 x 5 matrix. However, the product D2x5. H3x2 is not defined because there are more elements in each row of D than there are in each column of H _
15
EX: The juniors at Adams High School held a two day bake sale to raise money for a class trip. Cupcakes, cookies, and pies were sold for $0.40, $0.25, $4.00 respectively. The first day 84 cupcakes, 210 cookies, and 27 pies were sold. The second day, 95 cupcakes, 184 cookies, and 17 pies were sold. Display this information in matrix form. Then use matrix multiplication to find the amount of money raised each day and altogether.
16
Using Matrices to Calculate the Total Sales CLASS TRIP The juniors at Adam’s High School held a two-day bake sale to raise money for a class trip. Each cupcake costs $0.40, each cookie costs $0.25, and each pie costs $4.00. Use matrix multiplication to find the total amount of money raised each day and altogether. 1 st Day 84 cupcakes 210 cookies 27 pies 2 nd Day 95 cupcakes 184 cookies 17 pies
17
Using Matrices to Calculate the Total Sales Write the bake sale items and costs per item in matrix form. Use matrix multiplication to find the total sales. Set up matrices so that columns of the bake sale items matrix match rows of the cost matrix. 1 st Day 2 nd Day CookiesPiesCupcakes Pies Cookies Cupcakes 0.40 0.25 4.00 84 95 210 184 27 17 BAKE SALE ITEMS C OST Dollars S OLUTION
18
Using Matrices to Calculate the Total Sales Total money raised each day can be obtained by multiplying the bake sale items matrix by the cost per item matrix. The bake sale item matrix is 2 X 3 and the cost per item matrix is 3 X 1. Their product is a 2 X 1 matrix..40.25 4.00 84 95 210 184 27 17 = 84(.40) + 210(.25) + 27(4) 95(.40) + 184(.25) + 17(4) = 194.1 152
19
The labels of the product are: Second Day First Day T OTAL Sales Dollars 194.1 152 The junior class raised 346.10 for their class trip. Using Matrices to Calculate the Total Sales
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.