Before you start
In lesson 4.4 you multiplied a row by a column: a family's 3 plates of mee rebus, 2 of nasi lemak and 1 of mee soto, at $4, $3 and $5 a plate, cost $23. A problem is built of such products.
Setting Up the Product
Most problems have two matrices: one of quantities (plates sold, games won, items in stock) and one of values (prices, points, profits). Their product multiplies each quantity by its value and adds them up.
Setting up and labelling a product
The things across the first matrix (its column labels) must be the things down the second (its row labels), in the same sequence.
The product's rows are the first matrix's rows, and its columns are the second matrix's columns.
Example 1: The Food Stall's Takings
The food stall of lesson 4.1 sold the plates in S on Monday and Tuesday. Mee rebus costs $4, nasi lemak $3 and mee soto $5. (a) Write the prices as a matrix P so that SP can be found, and evaluate SP. (b) State what the elements of SP represent. (c) Evaluate (1 1)SP and explain what it represents.
S=plates sold | | mee rebus | nasi lemak | mee soto | |
|---|
| Monday | | 45 | 30 | 25 | |
|---|
| Tuesday | 38 | 42 | 20 |
|---|
Solution
(a) The columns of S are the three dishes, so P must have the dishes as its rows, in the same sequence: a 3×1 column matrix. SP is (2×3)(3×1), which gives 2×1.
P= | | $ | |
|---|
| mee rebus | | 4 | |
|---|
| nasi lemak | 3 |
|---|
| mee soto | 5 |
|---|
SP= | 45 × 4 + 30 × 3 + 25 × 5 | |
| 38 × 4 + 42 × 3 + 20 × 5 |
= | 180 + 90 + 125 | |
| 152 + 126 + 100 |
= (b) Each row of S times the prices gives one day's takings: the rows of SP are the days, and its column is money in dollars.
(c) A row of ones in front adds the two elements:
(a) P and SP are below. (b) The elements of SP represent the amount of money, in dollars, collected by the stall on Monday ($395) and on Tuesday ($378). (c) (773): the total amount of money collected over the two days, $773.
Which Way Round?
Sometimes the quantities are written the other way round, with the items as the rows. Then the prices must go in front, as a row matrix, so that the things across the prices (the items) are the things down the quantities.
The other way round, the quantities times the prices, never gives the money collected. If the quantities have two or more columns, it cannot be found. If they have only one column, it can be found (a column times a row, as in lesson 4.4), but it is a square matrix, not the money collected: each element is one quantity times one price, nothing is added, and most elements pair an item with another item's price. Example 3 shows both.
A product can also be found and still mean nothing: if the prices are listed in a different sequence from the items, each quantity is multiplied by the wrong price. Always check that the labels match.
Example 3: Prices in Front
A bakery sold wholemeal, white and raisin loaves on Saturday and Sunday, as in T. The loaves cost $3.20, $2.80 and $4.50, as in the row matrix C. (a) Which of CT and TC can be found? (b) Evaluate it, and state what its elements represent. (c) On Saturday alone, the loaves sold are the column matrix U. Can CU and UC be found, and which gives the money collected?
T=loaves sold | | Saturday | Sunday | |
|---|
| wholemeal | | 40 | 35 | |
|---|
| white | 60 | 72 |
|---|
| raisin | 25 | 30 |
|---|
C=price in dollars | wholemeal | white | raisin | |
|---|
| 3.20 | 2.80 | 4.50 | |
U=loaves sold | | Saturday | |
|---|
| wholemeal | | 40 | |
|---|
| white | 60 |
|---|
| raisin | 25 |
|---|
Solution
(a) CT is (1×3)(3×2): the inner numbers agree, so it can be found, and it is 1×2. The things across C (the loaves) are the things down T, in the same sequence.
TCcannot be found: (3 × 2)(1 × 3), the first has 2 columns but the second has 1 row.
(b) Money keeps 2 decimal places throughout:
CT= | 3.20 × 40 + 2.80 × 60 + 4.50 × 25 | 3.20 × 35 + 2.80 × 72 + 4.50 × 30 | |
= | 128.00 + 168.00 + 112.50 | 112.00 + 201.60 + 135.00 | |
= CT= | Saturday | Sunday | |
|---|
| 408.50 | 448.60 | |
(c) CU is (1×3)(3×1), which gives 1×1: Saturday's money, as in (b). UC is (3×1)(1×3): it can be found too, and is 3×3.
UC= | 128.00 | 112.00 | 180.00 | |
| 192.00 | 168.00 | 270.00 |
| 80.00 | 70.00 | 112.50 |
Each element of UC is one number of loaves times one price, with nothing added. Row 1, column 2 is 40×2.80=112.00, wholemeal loaves times the price of a white loaf. The three from top left to bottom right (128.00, 168.00, 112.50) are the money from each kind of loaf, but they are not added: UC does not give the money collected.
(a) Only CT. (b) The elements of CT represent the amount of money, in dollars, collected from selling loaves on Saturday ($408.50) and on Sunday ($448.60). (c) Both can be found, but only CU = (408.50) gives the money collected, $408.50; UC is a 3×3 matrix that does not give the money collected.
An Examination Question
Examination questions run in steps: write down the matrix, write down a second matrix so that the product can be found, evaluate it, and say what it represents. The last step often puts a row of ones in front to add the answers.
Example 4: A Sports Shop
A sports shop has branches at Tampines and Jurong. In June, Tampines sold 12 footballs, 8 basketballs and 5 volleyballs; Jurong sold 15, 6 and 9. (a) Write down a 2×3 matrix J to represent this information. (b) A football costs $25, a basketball $32 and a volleyball $18. Write down a column matrix P such that JP can be found, and evaluate JP. (c) State what the elements of JP represent. (d) Evaluate (1 1)JP and explain what your answer represents.
Solution
(a) Rows the branches, columns the balls:
J=balls sold in June | | football | basketball | volleyball | |
|---|
| Tampines | | 12 | 8 | 5 | |
|---|
| Jurong | 15 | 6 | 9 |
|---|
(b) The rows of P are the balls, in the same sequence as the columns of J:
P= | | $ | |
|---|
| football | | 25 | |
|---|
| basketball | 32 |
|---|
| volleyball | 18 |
|---|
JP= | 12 × 25 + 8 × 32 + 5 × 18 | |
| 15 × 25 + 6 × 32 + 9 × 18 |
= | 300 + 256 + 90 | |
| 375 + 192 + 162 |
= (c) Each element is one branch's sales times the prices: money, in dollars, for that branch.
(d)
(a) J, and (b) P and JP, are below. (c) The elements of JP represent the amount of money, in dollars, collected from selling balls in June at Tampines ($646) and at Jurong ($729). (d) (1375): the total amount of money, $1375, collected by the two branches in June.
Combined Steps: Stock
Some problems need a step before the product: subtract the sales from the stock to find what is left, add two months' sales, or multiply a price matrix by a number (4.3). Do that step first, then multiply.
Example 5: The Value of the Stock Left
At the start of June the sports shop of Example 4 had 30 footballs, 20 basketballs and 15 volleyballs at Tampines, and 35, 18 and 20 at Jurong. (a) Write the stock at the start as a matrix K and find the matrix of balls left at the end of June. (b) Find the value, at the selling prices P, of the balls left at each branch.
Solution
(a) K has the same labels as J. What is left is the stock minus the sales, K − J:
K= | | football | basketball | volleyball | |
|---|
| Tampines | | 30 | 20 | 15 | |
|---|
| Jurong | 35 | 18 | 20 |
|---|
(b) Multiply the balls left by the prices. The columns of K − J are still the balls, in the same sequence as the rows of P:
(K−J)P== | 450 + 384 + 180 | |
| 500 + 384 + 198 |
= (a) K and K − J are below. (b) The elements of (K − J)P represent the value, in dollars, at the selling prices, of the balls left at the end of June at Tampines ($1014) and at Jurong ($1082).
Practice
Try each question before you open its solution. Give money in dollars, and say what each answer represents.
Question 1
A cinema sold 120 adult and 85 child tickets on Saturday, and 150 adult and 60 child tickets on Sunday. An adult ticket costs $12 and a child ticket $8. Write a 2×2 matrix N of tickets sold, with a row for each day, and a column matrix F of prices. Evaluate NF and state what its elements represent.
ShowHide solution
Rows of N: Saturday, Sunday. The rows of F are adult, child, so the columns of N must be adult, child, in the same sequence.
N= | | adult | child | |
|---|
| Saturday | | 120 | 85 | |
|---|
| Sunday | 150 | 60 |
|---|
NF= | 120 × 12 + 85 × 8 | |
| 150 × 12 + 60 × 8 |
== The elements of NF represent the amount of money, in dollars, collected from ticket sales on Saturday ($2120) and on Sunday ($2280).
Question 2
In a quiz of 25 questions, a right answer scores 4 marks, a wrong answer −1 mark and a question left blank 0. Hana had 18 right, 5 wrong and 2 blank; Irfan 15 right, 8 wrong and 2 blank; Jia Hui 20 right, 2 wrong and 3 blank. Use a product of two matrices to find each student's mark.
ShowHide solution
Results Q (rows the students; columns right, wrong, blank) and marks M (rows right, wrong, blank):
Q= | | right | wrong | blank | |
|---|
| Hana | | 18 | 5 | 2 | |
|---|
| Irfan | 15 | 8 | 2 |
|---|
| Jia Hui | 20 | 2 | 3 |
|---|
QM= | 18 × 4 + 5 × (−1) + 2 × 0 | |
| 15 × 4 + 8 × (−1) + 2 × 0 |
| 20 × 4 + 2 × (−1) + 3 × 0 |
= | 72 − 5 + 0 | |
| 60 − 8 + 0 |
| 80 − 2 + 0 |
= Each row of Q adds to 25, as it should. The wrong answers take marks away: Hana's 72−5=67.
Hana 67 marks, Irfan 52, Jia Hui 78
Question 3
A school canteen sold the fruit in G on Monday and Tuesday. A banana costs $0.60, an apple $0.80 and a pear $1.20. (a) Write the prices as a matrix H so that a product of H and G can be found, and say why the product the other way round cannot be found. (b) Evaluate the product, and state what its elements represent.
G=fruit sold | | Monday | Tuesday | |
|---|
| bananas | | 30 | 20 | |
|---|
| apples | 25 | 40 |
|---|
| pears | 10 | 15 |
|---|
ShowHide solution
(a) The fruit are the rows of G, so the prices go in front, as a row in the same sequence, and the product is HG: (1×3)(3×2) gives 1×2.
H=price in dollars | bananas | apples | pears | |
|---|
| 0.60 | 0.80 | 1.20 | |
The other way round, GH is (3×2)(1×3):
GHcannot be found: (3 × 2)(1 × 3), the first has 2 columns but the second has 1 row.
(b)
HG= | 0.60 × 30 + 0.80 × 25 + 1.20 × 10 | 0.60 × 20 + 0.80 × 40 + 1.20 × 15 | |
= | 18.00 + 20.00 + 12.00 | 12.00 + 32.00 + 18.00 | |
= (a) H is below; GH cannot be found, as G has 2 columns but H has 1 row. (b) HG is below. Its elements represent the amount of money, in dollars, collected from selling fruit on Monday ($50.00) and on Tuesday ($62.00).
Question 4
The sports shop of Example 4 makes a profit of $6 on a football, $8 on a basketball and $5 on a volleyball. (a) Using J from Example 4, find the profit made at each branch in June, and state what the elements represent. (b) Find the total profit.
ShowHide solution
(a) The profits as a column matrix Y, its rows the balls in the same sequence as the columns of J:
Y= | | $ | |
|---|
| football | | 6 | |
|---|
| basketball | 8 |
|---|
| volleyball | 5 |
|---|
JY= | 12 × 6 + 8 × 8 + 5 × 5 | |
| 15 × 6 + 6 × 8 + 9 × 5 |
== (b) Add the two elements with a row of ones:
(a) The elements represent the profit, in dollars, made from selling balls in June at Tampines ($161) and at Jurong ($183). (b) $344
Question 5
A florist has shops at Bishan and Bedok. At the start of a week Bishan had 50 roses and 40 lilies, and Bedok 60 roses and 30 lilies. During the week Bishan sold 35 roses and 22 lilies, and Bedok 41 roses and 25 lilies. A rose sells for $3 and a lily for $5. Using matrices, find the value, at the selling prices, of the flowers left at each shop at the end of the week.
ShowHide solution
Stock K and sales D (rows the shops; columns roses, lilies); prices V (rows roses, lilies).
The flowers left are worth $135 at Bishan and $82 at Bedok.
Question 6
In July the sports shop of Example 4 sold the balls in L. (a) Find the balls of each kind sold at each branch in June and July together. (b) Hence find the money collected at each branch over the two months, with J and P from Example 4.
L=balls sold in July | | football | basketball | volleyball | |
|---|
| Tampines | | 10 | 9 | 6 | |
|---|
| Jurong | 14 | 8 | 7 |
|---|
ShowHide solution
(a) Add first:
J+L= | 12 + 10 | 8 + 9 | 5 + 6 | |
| 15 + 14 | 6 + 8 | 9 + 7 |
= (b) Then multiply by the prices:
(J+L)P== | 550 + 544 + 198 | |
| 725 + 448 + 288 |
= (a) J + L is below. (b) $1292 was collected at Tampines and $1461 at Jurong in June and July.
Question 7
The sports shop raises every price in P by 10%. (a) Find the new price matrix, in dollars and cents. (b) Find the money the June sales J would have collected at the new prices.
ShowHide solution
(a) A 10% rise is 1.1 times every price (4.3). With the prices written in dollars and cents:
1.1P= | 1.1 × 25.00 | |
| 1.1 × 32.00 |
| 1.1 × 18.00 |
= (b) Call the new prices N, and multiply:
JN= | 330.00 + 281.60 + 99.00 | |
| 412.50 + 211.20 + 178.20 |
= Check: in Example 4 the June takings were $646 and $729, and 1.1×646=710.60, 1.1×729=801.90. The takings are 10% higher, as every price is.
(a) 1.1P is below. (b) $710.60 at Tampines and $801.90 at Jurong.
Question 8
For Example 4, Nadia lists the prices basketball first, then football, then volleyball, as the column matrix below, and works out J times it. (a) Can her product be found? If so, work it out. (b) Does it mean anything? Explain.
ShowHide solution
(a) It is (2×3)(3×1), so it can be found:
J= | 384 + 200 + 90 | |
| 480 + 150 + 162 |
= (b) The first column of J is footballs, but the first price is a basketball's: 12 footballs are multiplied by $32. The answer is a matrix but means nothing. The right product is JP:
(a) It can be found: it is below. (b) It means nothing: the prices are not in the same sequence as the columns of J.
Question 9
A bakery delivers to two cafés, at Novena and at Bugis. In one week the Novena café takes 40 croissants, 25 muffins and 30 scones, and the Bugis café 35 croissants, 40 muffins and 20 scones. A croissant costs $1.50, a muffin $2.20 and a scone $1.80. (a) Write down a 2×3 matrix D to represent the deliveries. (b) Write down a column matrix E such that DE can be found, and evaluate DE. (c) State what the elements of DE represent. (d) Evaluate (1 1)DE and explain what your answer represents.
ShowHide solution
(a) and (b): rows of D the cafés, columns the three items; the rows of E the items, in the same sequence.
D= | | croissants | muffins | scones | |
|---|
| Novena | | 40 | 25 | 30 | |
|---|
| Bugis | 35 | 40 | 20 |
|---|
E= | | $ | |
|---|
| croissants | | 1.50 | |
|---|
| muffins | 2.20 |
|---|
| scones | 1.80 |
|---|
DE= | 40 × 1.50 + 25 × 2.20 + 30 × 1.80 | |
| 35 × 1.50 + 40 × 2.20 + 20 × 1.80 |
= | 60.00 + 55.00 + 54.00 | |
| 52.50 + 88.00 + 36.00 |
= (d)
(a) D, and (b) E and DE, are below. (c) The elements of DE represent the amount of money, in dollars, the bakery collects for the week's deliveries to the Novena café ($169.00) and to the Bugis café ($176.50). (d) (345.50): the total amount of money, $345.50, collected for the week's deliveries to the two cafés.
Question 10
In Example 4, the elements of JP are 646 and 729. Siti says, "The elements of JP represent the number of balls sold at each branch." Ravi says, "646 is the money collected from footballs at Tampines." Explain what is wrong with each answer.
ShowHide solution
Siti: each element is numbers of balls times prices in dollars, added, so it is money, in dollars, not a number of balls. The elements represent the amount of money collected from selling balls in June at Tampines and at Jurong.
Ravi: 646 is row 1 of J times P, all three kinds of ball at Tampines: 12×25+8×32+5×18=300+256+90=646. The footballs alone bring in 12×25=300 dollars.
Siti: the elements are money, in dollars, not numbers of balls. Ravi: 646 is the money from all three kinds of ball at Tampines; the footballs alone bring in $300.