Multiplying a Matrix by a Number
How to multiply a matrix by a number (a scalar): every element is multiplied. Negative and fractional numbers, 2A − 3B, unknowns, and price rises, discounts and averages as multiples of a matrix.
Before you start
In lesson 4.2 you added matrices of the same order element by element, so A + A doubles every element of A.
In Secondary 1 you saw that a percentage change is a multiplier: "10% more than" a quantity is 110% of it, and a discount of 20% leaves 80% of the price to pay. So a price of $2.40 after a 20% discount is , that is, $1.92.
Every Element Is Multiplied
A number times a matrix
To multiply a matrix A by a number , multiply every element of A by . The answer is written , with the number in front.
The order does not change: has the same order as A.
A number that multiplies a matrix in this way is called a scalar.
This agrees with addition: A + A doubles every element, and so does 2A. A negative number changes every sign; −A means , and A + (−A) = O.
Example 1: Whole, Negative and Fractional Numbers
Find (a) 2A, and show that it equals A + A; (b) −3A; (c) half of the matrix in (c).
| 3 | −1 | ||
| 0 | 4 |
(c)
| 4 | 6 | ||
| −2 | 10 |
Solution
(a) Multiply every element by 2:
| 2 × 3 | 2 × (−1) | ||
| 2 × 0 | 2 × 4 |
| 6 | −2 | ||
| 0 | 8 |
| 6 | −2 | ||
| 0 | 8 |
(b) Multiply every element by −3. A negative times a negative is positive: .
| (−3) × 3 | (−3) × (−1) | ||
| (−3) × 0 | (−3) × 4 |
| −9 | 3 | ||
| 0 | −12 |
(c) Half of a matrix is times it:
| 4 | 6 | ||
| −2 | 10 |
| 12 × 4 | 12 × 6 | ||
| 12 × (−2) | 12 × 10 |
| 2 | 3 | ||
| −1 | 5 |
Each answer is , the order of the matrix multiplied:
| 6 | −2 | ||
| 0 | 8 |
| −9 | 3 | ||
| 0 | −12 |
| 4 | 6 | ||
| −2 | 10 |
| 2 | 3 | ||
| −1 | 5 |
Multiples Added and Subtracted
To work out an expression such as 2A − 3B, multiply first, as with numbers: work out 2A and 3B, then subtract element by element (4.2).
Example 2: 2A − 3B
With A from Example 1 and B below, find 2A − 3B.
| 3 | −1 | ||
| 0 | 4 |
| 1 | 2 | ||
| −2 | 5 |
Solution
First the two multiples:
| 6 | −2 | ||
| 0 | 8 |
| 3 × 1 | 3 × 2 | ||
| 3 × (−2) | 3 × 5 |
| 3 | 6 | ||
| −6 | 15 |
Then subtract. Every element of 3B is taken away, signs and all: .
| 6 | −2 | ||
| 0 | 8 |
| 3 | 6 | ||
| −6 | 15 |
| 6 − 3 | −2 − 6 | ||
| 0 − (−6) | 8 − 15 |
| 3 | −8 | ||
| 6 | −7 |
The answer:
| 3 | −8 | ||
| 6 | −7 |
Unknowns
An unknown element is found as before: work out the left-hand side element by element and equate corresponding elements.
An unknown scalar in is found from a pair whose element in A is not 0, and must then be checked with every other pair: the same has to work for all of them.
Example 3: Unknown Elements and an Unknown Scalar
(a) Find and . (b) Find .
(a)
| x | 3 | ||
| −1 | y |
| 4 | 1 | ||
| 5 | −2 |
| 10 | 7 | ||
| 3 | 4 |
(b)
| 2 | −3 | ||
| 1 | 4 |
| −6 | 9 | ||
| −3 | −12 |
Solution
(a) Multiply first, then add:
| x | 3 | ||
| −1 | y |
| 4 | 1 | ||
| 5 | −2 |
| 2x | 6 | ||
| −2 | 2y |
| 4 | 1 | ||
| 5 | −2 |
| 2x + 4 | 6 + 1 | ||
| −2 + 5 | 2y + (−2) |
| 2x + 4 | 7 | ||
| 3 | 2y − 2 |
| 10 | 7 | ||
| 3 | 4 |
Row 1, column 1: , so and . Row 2, column 2: , so and .
Check the other two: and .
(b) Every element of the left-hand side is times an element:
| 2 | −3 | ||
| 1 | 4 |
| 2k | −3k | ||
| k | 4k |
| −6 | 9 | ||
| −3 | −12 |
Row 1, column 1: , so .
Check every other element with : , , . All agree.
(a) , (b)
Price Rises, Discounts and Averages
A percentage change multiplies every price by the same multiplier (Secondary 1). So when every price in a price matrix P rises by 10%, the new prices are 1.1P; after a 20% discount they are 0.8P.
Note that 1.1P multiplies every element by 1.1. It is not "add 1.1 to every element".
Example 4: A Price Matrix
A stationery shop has branches at Jurong East and Woodlands. The matrix P gives the price, in dollars, of a pen, a notebook and a pencil case at each branch. (a) Every price rises by 10%. Find the new price matrix. (b) Instead, the shop holds a sale with 20% off every price. Find the sale prices, and say what the element in row 2, column 2 means.
| pen | notebook | pencil case | |||
|---|---|---|---|---|---|
| Jurong East | 2.40 | 3.50 | 12.00 | ||
| Woodlands | 2.20 | 3.80 | 11.50 |
Solution
(a) A 10% rise makes each price 110% of itself, so multiply every element by 1.1. Prices stay in dollars and cents, to 2 decimal places:
| 1.1 × 2.40 | 1.1 × 3.50 | 1.1 × 12.00 | ||
| 1.1 × 2.20 | 1.1 × 3.80 | 1.1 × 11.50 |
| 2.64 | 3.85 | 13.20 | ||
| 2.42 | 4.18 | 12.65 |
(b) 20% off leaves 80% of each price: multiply by 0.8.
| 0.8 × 2.40 | 0.8 × 3.50 | 0.8 × 12.00 | ||
| 0.8 × 2.20 | 0.8 × 3.80 | 0.8 × 11.50 |
| 1.92 | 2.80 | 9.60 | ||
| 1.76 | 3.04 | 9.20 |
Row 2 is Woodlands and column 2 is a notebook: in the sale a notebook at the Woodlands branch costs $3.04 (it was $3.80).
(a) 1.1P and (b) 0.8P are below. In (b), 3.04 is the sale price of a notebook at the Woodlands branch, $3.04.
(a)
| 2.64 | 3.85 | 13.20 | ||
| 2.42 | 4.18 | 12.65 |
(b)
| 1.92 | 2.80 | 9.60 | ||
| 1.76 | 3.04 | 9.20 |
An average is a multiple too
The average of two matrices of the same order is half their sum, : add them, then multiply by . An average need not be a whole number, even when the matrices count whole things.
Common Mistakes
- Multiplying only one row, or only one element. Every element is multiplied.
- Signs: , not .
- In 2A − 3B, losing a sign: subtracting a negative element of 3B adds it, as in .
- Reading 1.1P as P with 1.1 added to every element. It is every element multiplied by 1.1.
- Finding from one pair of elements and not checking the others.
Practice
Try each question before you open its solution. Questions 6, 7 and 10 are word problems.
Question 1
Find 3A, −2A, A and 1.5A.
| 4 | −2 | ||
| 6 | 10 |
ShowHide solution
| 3 × 4 | 3 × (−2) | ||
| 3 × 6 | 3 × 10 |
| 12 | −6 | ||
| 18 | 30 |
| (−2) × 4 | (−2) × (−2) | ||
| (−2) × 6 | (−2) × 10 |
| −8 | 4 | ||
| −12 | −20 |
| 12 × 4 | 12 × (−2) | ||
| 12 × 6 | 12 × 10 |
| 2 | −1 | ||
| 3 | 5 |
| 1.5 × 4 | 1.5 × (−2) | ||
| 1.5 × 6 | 1.5 × 10 |
| 6 | −3 | ||
| 9 | 15 |
1.5A is also A + A: , and so on.
Each has the order :
| 12 | −6 | ||
| 18 | 30 |
| −8 | 4 | ||
| −12 | −20 |
| 2 | −1 | ||
| 3 | 5 |
| 6 | −3 | ||
| 9 | 15 |
Question 2
Find 3A − 2B.
| 2 | 0 | ||
| −1 | 4 |
| 1 | −3 | ||
| 2 | 5 |
ShowHide solution
| 6 | 0 | ||
| −3 | 12 |
| 2 | −6 | ||
| 4 | 10 |
| 6 | 0 | ||
| −3 | 12 |
| 2 | −6 | ||
| 4 | 10 |
| 6 − 2 | 0 − (−6) | ||
| −3 − 4 | 12 − 10 |
| 4 | 6 | ||
| −7 | 2 |
The answer:
| 4 | 6 | ||
| −7 | 2 |
Question 3
Find in (a) and in (b).
(a)
| 3 | −1 | ||
| 0 | 2 |
| −6 | 2 | ||
| 0 | −4 |
(b)
| 4 | ||
| −6 |
| −2 | ||
| 3 |
ShowHide solution
(a) Row 1, column 1: , so . Check: , , .
(b) Row 1: , so . Check row 2: .
(a) (b)
Question 4
Find and .
| x | −1 | ||
| 2 | y |
| 1 | 4 | ||
| −5 | 2 |
| 13 | 1 | ||
| 1 | −4 |
ShowHide solution
| x | −1 | ||
| 2 | y |
| 1 | 4 | ||
| −5 | 2 |
| 3x | −3 | ||
| 6 | 3y |
| 1 | 4 | ||
| −5 | 2 |
| 3x + 1 | 1 | ||
| 1 | 3y + 2 |
| 13 | 1 | ||
| 1 | −4 |
Row 1, column 1: , so and . Row 2, column 2: , so and .
Check: and .
,
Question 5
Find the matrix X for which 2X + A = B.
| 3 | −2 | ||
| 5 | 6 |
| 9 | 4 | ||
| 1 | −2 |
ShowHide solution
As with numbers: take A from both sides, 2X = B − A; then halve, X = (B − A).
| 9 − 3 | 4 − (−2) | ||
| 1 − 5 | −2 − 6 |
| 6 | 6 | ||
| −4 | −8 |
| 6 | 6 | ||
| −4 | −8 |
| 3 | 3 | ||
| −2 | −4 |
| 6 | 6 | ||
| −4 | −8 |
| 3 | −2 | ||
| 5 | 6 |
| 9 | 4 | ||
| 1 | −2 |
The last line is the check: putting X back gives B.
The matrix X:
| 3 | 3 | ||
| −2 | −4 |
Question 6
In lesson 4.2, a bubble tea shop's cups sold at its Bugis and Serangoon outlets were A on Saturday and B on Sunday. Find the average number of cups of each size sold per day at each outlet over the weekend, . Why can an element of the answer end in .5?
| small | medium | large | |||
|---|---|---|---|---|---|
| Bugis | 52 | 80 | 35 | ||
| Serangoon | 47 | 66 | 41 |
| small | medium | large | |||
|---|---|---|---|---|---|
| Bugis | 61 | 95 | 40 | ||
| Serangoon | 58 | 72 | 50 |
ShowHide solution
Add, then halve:
| 113 | 175 | 75 | ||
| 105 | 138 | 91 |
| 56.5 | 87.5 | 37.5 | ||
| 52.5 | 69 | 45.5 |
An average is a total shared equally, so it need not be a whole number of cups: the Bugis outlet sold small cups over the two days, an average of 56.5 a day. When the total is odd, the average ends in .5.
The average cups sold per day:
| 56.5 | 87.5 | 37.5 | ||
| 52.5 | 69 | 45.5 |
Question 7
A cinema's ticket prices, in dollars, are given by T (rows: weekday, weekend; columns: adult, child). (a) The prices rise by 10%. Find the new prices, and say what the element in row 2, column 2 of your answer means. (b) A school group gets 20% off the old prices. Find the prices it pays.
| adult | child | |||
|---|---|---|---|---|
| weekday | 12.00 | 8.00 | ||
| weekend | 14.50 | 9.50 |
ShowHide solution
(a) Multiply every element by 1.1:
| 1.1 × 12.00 | 1.1 × 8.00 | ||
| 1.1 × 14.50 | 1.1 × 9.50 |
| 13.20 | 8.80 | ||
| 15.95 | 10.45 |
Row 2, column 2: a child's ticket at the weekend now costs $10.45.
(b) 20% off leaves 80%: multiply by 0.8.
| 0.8 × 12.00 | 0.8 × 8.00 | ||
| 0.8 × 14.50 | 0.8 × 9.50 |
| 9.60 | 6.40 | ||
| 11.60 | 7.60 |
(a) 1.1T is below; a weekend child's ticket now costs $10.45. (b) 0.8T is below.
(a)
| 13.20 | 8.80 | ||
| 15.95 | 10.45 |
(b)
| 9.60 | 6.40 | ||
| 11.60 | 7.60 |
Question 8
Write the matrix as 3 times a matrix whose elements are whole numbers.
| 6 | 9 | ||
| 12 | −3 |
ShowHide solution
Divide every element by 3, and write the 3 in front:
| 6 | 9 | ||
| 12 | −3 |
| 2 | 3 | ||
| 4 | −1 |
Check by multiplying back: , , , .
As 3 times a matrix:
| 6 | 9 | ||
| 12 | −3 |
| 2 | 3 | ||
| 4 | −1 |
Question 9
(a) Mei Ling writes that 3 times the matrix in (a) has 6 and 3 in row 1 and 4 and −5 in row 2. Find her mistake. (b) With A and B from Example 2, Arif works out 2A − 3B as 2(A − 3B). Is this the same? Show it.
(a)
| 2 | 1 | ||
| 4 | −5 |
ShowHide solution
(a) She multiplied only the first row. Every element must be multiplied:
| 2 | 1 | ||
| 4 | −5 |
| 3 × 2 | 3 × 1 | ||
| 3 × 4 | 3 × (−5) |
| 6 | 3 | ||
| 12 | −15 |
(b) 2A − 3B is Example 2's answer:
| 3 | −8 | ||
| 6 | −7 |
In 2(A − 3B) the 2 multiplies the whole bracket, so 3B is doubled as well. Work out the bracket first, then double it:
| 3 | −1 | ||
| 0 | 4 |
| 3 | 6 | ||
| −6 | 15 |
| 3 − 3 | −1 − 6 | ||
| 0 − (−6) | 4 − 15 |
| 0 | −7 | ||
| 6 | −11 |
| 0 | −7 | ||
| 6 | −11 |
| 0 | −14 | ||
| 12 | −22 |
(a) Only the first row was multiplied. (b) No: the two matrices below differ.
(b)
| 3 | −8 | ||
| 6 | −7 |
| 0 | −14 | ||
| 12 | −22 |
Question 10
The matrix M gives three pupils' marks, out of 50, in two tests. (a) Find the matrix of their marks as percentages. (b) What does the element in row 3, column 1 of your answer mean?
| Test 1 | Test 2 | |||
|---|---|---|---|---|
| Ali | 38 | 45 | ||
| Bala | 41 | 29 | ||
| Chen | 47 | 36 |
ShowHide solution
(a) A mark out of 50 is turned into a percentage by multiplying it by . So the percentages are 2M:
| Test 1 | Test 2 | |||
|---|---|---|---|---|
| Ali | 76 | 90 | ||
| Bala | 82 | 58 | ||
| Chen | 94 | 72 |
(b) Row 3 is Chen and column 1 is Test 1: Chen scored 94% in Test 1 ().
(a) 2M is below. (b) Chen scored 94% in Test 1.
(a)
| 76 | 90 | ||
| 82 | 58 | ||
| 94 | 72 |
Key Points
- : multiply every element of A by the number , written in front. The order does not change.
- 2A = A + A; −A has every sign changed, and A + (−A) = O.
- Work out 2A − 3B by finding 2A and 3B first, then subtracting.
- Find unknown elements by equating corresponding elements. Find from one pair (not one with a 0 in it), then check it with every other pair.
- A 10% rise is 1.1P and a 20% discount 0.8P; the average of A and B is .