The document discusses using matrix multiplication to manipulate matrices. It provides an example of a matrix representing the number of TVs sold at different stores each day of the week. It shows how to use matrix multiplication to calculate the total number of TVs sold each week at each store and each day across all stores. The document also discusses using diagonal matrices to change parts of other matrices, like increasing one store's prices by 30% and giving another store a 50% discount.
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ย
Lesson 4 b special matrix multiplication
1.
2. Learning Intention and Success
Criteria
๏ Learning Intention: Students will understand how to
use matrix multiplication to manipulate matrices
๏ Success Criteria: You will be able sum the rows or
columns of a matrix, and multiply individual rows or
columns using matrix multiplication
3. Summation Matrices
๏ Often, it can be useful to add up the elements in each
row or column of a matrix.
๏ For example, if a matrix shows the number of items
sold each day at a variety of different stores, you may
want to create a matrix that shows the number of
total number of items sold at each store in a week.
๏ The secret lies in a list of 1โs
4. Adding rows
๏ Adding up rows:
๏ To add up the rows of a matrix ๐ด, we multiply ๐ด by ๐ถ, a
column matrix of 1โs (๐ด ร ๐ถ)
๏ Adding up columns:
๏ To add up the columns of a matrix ๐ต, we multiply ๐ , a
row matrix of 1โs, by ๐ต (๐ ร ๐ต)
5. Example
๏ Example: The matrix below represents the number of
TVs sold at three different electronic stores over a week
form Monday to Friday
๐ =
2 0 1 2 5
3 1 1 4 4
1 0 0 1 3
๐๐ก๐๐๐ ๐ด
๐๐ก๐๐๐ ๐ต
๐๐ก๐๐๐ ๐ถ
๏ How many TVs were sold at Store A on Wednesday?
๏ ๐ 1,3 = 1 TV
6. Example Continued
๐ =
2 0 1 2 5
3 1 1 4 4
1 0 0 1 3
๐๐ก๐๐๐ ๐ด
๐๐ก๐๐๐ ๐ต
๐๐ก๐๐๐ ๐ถ
๏ Write a matrix expression that will determine the number of TVs
sold all week at each location
2 0 1 2 5
3 1 1 4 4
1 0 0 1 3
ร
1
1
1
1
1
=
2 ร 1 + 0 ร 1 + 1 ร 1 + 2 ร 1 + 5 ร 1
7. Example Continued
๐ =
2 0 1 2 5
3 1 1 4 4
1 0 0 1 3
๐๐ก๐๐๐ ๐ด
๐๐ก๐๐๐ ๐ต
๐๐ก๐๐๐ ๐ถ
๏ Write a matrix expression that will determine the number of TVs
sold all week at each location
2 0 1 2 5
3 1 1 4 4
1 0 0 1 3
ร
1
1
1
1
1
=
10
13
5
8. Example Continued
๐ =
2 0 1 2 5
3 1 1 4 4
1 0 0 1 3
๐๐ก๐๐๐ ๐ด
๐๐ก๐๐๐ ๐ต
๐๐ก๐๐๐ ๐ถ
๏ Now, write a matrix calculation that will determine the number
of TVs sold each day of the week in total across the three stores.
1 1 1 ร
2 0 1 2 5
3 1 1 4 4
1 0 0 1 3
= 1 ร 2 + 1 ร 3 + 1 ร 1
9. Example Continued
๐ =
2 0 1 2 5
3 1 1 4 4
1 0 0 1 3
๐๐ก๐๐๐ ๐ด
๐๐ก๐๐๐ ๐ต
๐๐ก๐๐๐ ๐ถ
๏ Now, write a matrix calculation that will determine the number
of TVs sold each day of the week in total across the three stores.
1 1 1 ร
2 0 1 2 5
3 1 1 4 4
1 0 0 1 3
= 6 1 2 7 12
10. Changing Part of a Matrix
๏ Motivation: The matrix below represents the cost of
salad, chips and drinks at three local cafes.
๐๐๐๐๐ ๐ถโ๐๐๐ ๐ท๐๐๐๐
14.50 5.40 4.80
12.80 6.30 5.00
15.00 4.50 3.30
๐ถ๐๐๐ ๐ด
๐ถ๐๐๐ ๐ต
๐ถ๐๐๐ ๐ถ
๏ Say Cafรฉ A increases their all their prices by 30%. How
can we deal with this using matrix multiplication?
11. Changing Part of a Matrix
๏ We multiply by a diagonal matrix, ๐ท.
๏ The numbers along the leading diagonals represent
the multiplication factors for specific rows or columns
๏ For ๐ท ร ๐ด, we will be changing the rows of A
๏ For ๐ด ร ๐ท, we change the columns of A.
12. Example revisited
๐ด =
๐๐๐๐๐ ๐ถโ๐๐๐ ๐ท๐๐๐๐
14.50 5.40 4.80
12.80 6.30 5.00
15.00 4.50 3.30
๐ถ๐๐๐ ๐ด
๐ถ๐๐๐ ๐ต
๐ถ๐๐๐ ๐ถ
๏ Cafรฉ A increases their all their prices by 30%, and Cafรฉ
C has a half price sale. Show this using matrix
multiplication.
๏ Increase by 30% ๏ multiply by 1.3
๏ Decrease by 50% ๏ multiply by 0.5
13. Example revisited
๐ด =
๐๐๐๐๐ ๐ถโ๐๐๐ ๐ท๐๐๐๐
14.50 5.40 4.80
12.80 6.30 5.00
15.00 4.50 3.30
๐ถ๐๐๐ ๐ด
๐ถ๐๐๐ ๐ต
๐ถ๐๐๐ ๐ถ
๏ Cafรฉ A increases their all their prices by 30%, and Cafรฉ
C has a half price sale. Show this using matrix
multiplication.
๐ท =
1.30 0 0
0 1 0
0 0 0.50