Chapter 4 Matrices
Chapter 4 Matrices
4
Matrices
Chapter questions
What is a matrix?
How is the order of a matrix defined?
How are the positions of the elements of a matrix specified?
What are the rules for adding and subtracting matrices?
How do we multiply a matrix by a scalar?
What is the method for multiplying a matrix by another matrix?
What are transition matrices and how do we apply them?
What are inverse matrices and how can they be used to solve
equations?
How can your CAS calculator be used to do matrix operations?
A matrix is a rectangular group of numbers, set out in rows and columns. A matrix
(plural matrices) can be used to store information, solve sets of simultaneous equations
or be used in various applications. We will explore some of these applications while
learning the basic theory of matrices.
Matrices can be used to store and display information, for example, the sales of a market
stall that operates on Friday and Saturday are recorded in matrix A.
Rows Columns
Friday’s sales are listed in row 1. The number of shirts sold is listed in column 1.
Saturday’s sales are listed in row 2. The number of pairs of jeans sold is listed in column 2.
The number of belts sold is listed in column 3.
Order of a matrix
The order (or size) of a matrix is written as: number of rows × number of columns.
The number of rows is always given first, then the number of columns. For example, the
order of matrix A in the market stall example above is 2 × 3; that is, 2 rows × 3 columns.
It is called a ‘two by three’ matrix.
Elements of a matrix
The numbers within a matrix are called its elements.
Matrices are usually named using capital letters, such as A, B, C. The corresponding
lowercase letter with subscripts is used to denote an element of a matrix.
An element of a matrix
ai j is the element in row i, column j of matrix A.
Matrix B shows the number of boys and girls in Years 10 to 12 at a particular school.
Boys Girls
Year 10 57 63
B = Year 11 48 54
Year 12 39 45
Explanation Solution
a Count the rows, count the columns. The order of matrix B is 3 × 2.
b The element b1 2 is in row 1 and There are 63 girls in Year 10.
column 2. This is where the Year 10
row meets the Girls column.
c Year 12 is row 3. Girls are column 2. b3 2 gives the number of Year 12 girls.
d The sum of the Boys column gives the The total number of boys is 144.
total number of boys.
e The sum of the Year 11 row gives the There are 102 students in Year 11.
total number of students in Year 11.
Matrix C shows the number of men and women working in three different departments
of an organisation.
Men Women
Finance 21 32
C = Legal 11 18
Sales 62 41
Hint 1 Determine the number of rows and columns to find the order.
Hint 2 Remember that rows come before columns.
Hint 3 To find the totals, add up all the relevant numbers from a row or a column.
Row matrices
A row matrix has a single row of elements. Shirts Jeans Belts
In matrix A, the Friday sales from the market Friday 6 8 4
stall can be represented as a 1 × 3 row matrix.
Column matrices
A column matrix has a single column of elements.
In matrix A, the sales of jeans from the market Jeans
Friday 8
stall can be represented as a 2 × 1 column
Saturday 7
matrix.
Square matrices
In square matrices, the number of rows equals the number of columns.
Here are three examples.
0 4 3
5 4
[9] 4 1 6
1×1
6 2 3 6 7
2×2
3×3
A square matrix is symmetric if all elements in the matrix can be swapped, as follows:
ai j = a ji . The third square matrix above is an example of a symmetric matrix.
Section Summary
A matrix is a rectangular array of numbers, set out in rows and columns within
square brackets. The rows are horizontal; the columns are vertical.
The order (size) of a matrix is the number of rows × the number of columns.
The element ai j is the number in row i and column j of the matrix.
A row matrix has a single row of elements.
A column matrix has a single column of elements.
A square matrix has an equal number of rows and columns.
Exercise 4A
Building understanding
1 Consider the following matrix:
3 4 12 1
A =
0 7 9 10
a State the number of rows in matrix A.
b State the number of columns in matrix A.
c State the order of matrix A.
d State the number of elements in matrix A.
2 Students in Year 11 were surveyed about whether they played a musical instrument
or sport. The results were recorded in matrix S .
Music Sport
Girls 38 53
S = Boys 45
36
Developing understanding
Example 1 3 Matrix C is shown on the right. 2 4 16 7
a Write down the order of matrix C. C = 6 8 9 3
b State the value of: 5 6 10 1
i c1 3 ii c2 4 iii c3 1
c Write down the sum of the elements in row 3.
d Write down the sum of the elements in
column 2.
Testing understanding
11 Given the information provided, construct a matrix, B, to show the number of pies
and sausage rolls sold by two bakeries last Saturday.
• Row 1 represents Bakery 1 and row 2 represents Bakery 2.
• Column 1 shows the number of pies, and column 2 shows the number of sausage
rolls.
• Bakery 2 sold 165 pies and 181 sausage rolls.
• Bakery 1 sold 30 more pies than Bakery 2.
• Bakery 1 sold 40 fewer sausage rolls than Bakery 2.
12 A group of Year 11 students were surveyed about their preferred activity on a school
trip. The results were entered into the following matrix, but unfortunately, some of
the data was missing.
Ski Mountain bike Hike Kayak
Boys 28 ... 29 . . .
S = Girls . . .
83 ... 31
Matrices of the same order can be added or subtracted by following a simple rule.
Explanation Solution
2 4 9 8
a 1 Write the addition. +
5 1 9 −1
2 + 9 4 + 8
2 Add the elements that are in the =
5 + 9 1 + (−1)
same positions.
11 12
3 Evaluate each element. =
14 0
7 3 4 2
b 1 Write the subtraction. 2 8 − −1 9
1 0 3 7
7 − 4 3 − 2 3 1
2 Subtract the elements that are in the = 2 − (−1) 8 − 9 = 3 −1
same positions, and evaluate each 1−3 0−7 −2 −7
element.
Just as in standard arithmetic, adding or subtracting a zero matrix does not make any change
to the original matrix. For example:
2 3 0 0 2 3 5 0 5
+ = − =
1 4 0 0 1 4 6 0 6
Subtracting any matrix from itself gives a zero matrix. For example:
9 4 8 − 9 4 8 = 0 0 0
Section Summary
Matrices of the same order can be added by adding elements in the same position.
Matrices of the same order can be subtracted by subtracting the elements in the
same position.
A zero matrix is any matrix where every element is zero.
Exercise 4B
Building understanding
1 Which of the following matrices can be added together?
9 −5 3 6 14 6 4 −2
A = B = C =
D =
−3 3 1 −3 8 8 1 9
5 6 9 6
5 13 −7
E = 12 2 F = G = −4 8 H = −8 3
8 −2 6
10 2
7 −2 2 1
Developing understanding
Example 2 4 Complete the following addition and subtraction of matrices.
4 3 5 7 8 6 −1 2 3 5 0 0
a +
b
+
c
+
0 2 6 1 9 3 4 0 7 0 0 0
9 0 8 6 5 2 7 4 3 6
d − e −
f
−
8 0 2 9 1 3 5 1 2 −8
g 4 2 + 8 5 h 7 −5 − 7 −5 i 4 −3 + −4 3
6 Two people conducted a telephone poll, surveying voters about their voting intentions.
The results for each person’s survey are given in matrix form.
Sample 1:
Liberal Labor Independent Greens
Men 19 21 7 3
Women 18 17 11 4
Sample 2:
Liberal Labor Independent Greens
Men 24 21 3 2
Women 19 20 6 5
7 Three sports stores do a stocktake at the start of each month. The results for
January and February are recorded in matrix form.
January:
Basketballs Netballs Cricket balls Footballs
Store 1 32 10 82 41
Store 2 29 17 75 44
Store 3 22 12 103 61
February:
Basketballs Netballs Cricket balls Footballs
Store 1 26 10 25 26
Store 2 12 12 21 31
Store 3 22 5 30 18
Write a matrix showing the overall change in the stock levels from January
to February.
8 The weights and heights of four people were recorded and then checked again
one year later.
2024 results:
Arlo Beni Cal Dane
Weight (kg) 32 44 59 56
Height (cm) 145 155 160 164
2025 results:
Arlo Beni Cal Dane
Weight (kg) 38 52 57 63
Height (cm) 150 163 167 170
a Write the matrix that gives the changes in each person’s weight and height
after one year.
b Who gained the most weight?
c Which person had the greatest height increase?
Testing understanding
9 Find the values of a, b, c and d in the following matrix addition.
3 11 a b 7 11
+ =
5 −1 c d 2 8
11 The number of kicks, goals and handballs for three footballers was recorded for the
first three rounds of the AFL football season. Unfortunately, some numbers were
missing. Use the information below to complete the matrices.
Round 1: Round 2:
Round 3: Totals:
4C Scalar multiplication
Learning intentions
To be able to perform scalar multiplication.
To be able to apply scalar multiplication with addition and subtraction of matrices.
Explanation Solution
5 1 5 1 5 1
1 If A = , then 3A = 3
.
3A = 3
−3 0 −3 0 −3 0
3 × 5 3 × 1
2 Multiply each number in the matrix =
3 × −3 3×0
by 3.
15 3
3 Evaluate each element. =
−9 0
Scalar multiplication can also be used in conjunction with addition and subtraction
of matrices.
Explanation Solution
1 1 0 1
1 Write 2A − 3B in expanded matrix 2A − 3B = 2 × − 3 ×
0 1 1 0
form.
2 2 0 3
2 Multiply the elements in A by 2 and the = −
0 2 3 0
elements in B by 3.
2 − 0 2 − 3
3 Subtract the elements in corresponding =
0−3 2−0
positions and evaluate.
2 −1
=
−3 2
ISBN 978-1-009-11034-1 © Peter Jones et al 2023 Cambridge University Press
Photocopying is restricted under law and this material must not be transferred to another party.
4C Scalar multiplication 233
The manager wishes to double the enrolments in each course. Construct a matrix showing
the new enrolments for men and women in each course.
Explanation Solution
1 Each element in the matrix is
70 20 80
multiplied by 2. 2 ×
10 50 60
2 × 70 2 × 20 2 × 80
=
2 × 10 2 × 50 2 × 60
A popular burger chain has the following prices for its products, as shown in this matrix.
Hamburger Chips Can of Softdrink
Sydney 13 4.50 3
Melbourne 12 5 2.50
The manager wishes to know how much to charge after 10% GST is added, which she
knows is the same as multiplying the matrix by 1.1. Show this in a matrix.
Steps
1 Press c>New Document>Add Calculator.
2 Enter the matrices A and B into your calculator.
6 3
A + B =
6 5
−2 −9
A − B =
4 9
18 −27
9A =
45 63
d To calculate 15A − 11B, type 15A − 11B and
then press · to evaluate.
−14 −111
15A − 11B =
64 127
Steps
1 Enter the matrices A and B
into your calculator.
a To calculate A + B, type
6 3
A + B and then press A + B =
to evaluate. 6 5
b To calculate A − B, type −2 −9
A − B =
A − B and then press
4 9
to evaluate.
18 −27
c To calculate 9A, type 9A 9A =
45 63
and then press to
evaluate. −14 −111
15A − 11B =
d To calculate 15A − 11B, 64 127
type 15A − 11B and
then press to
evaluate.
Section Summary
Scalar multiplication is the multiplication of a matrix by a number (the scalar).
When multiplying by a scalar, each element of the matrix is multiplied by the scalar
(number).
Skill-
sheet Exercise 4C
Building understanding
1 Evaluate: 2 Complete the following:
3 × 2 3 × −1 −6 7 5 × −6 . . . × . . .
5 =
3×8 3×7 3 −2 5 × 3 ... × ...
Developing understanding
Example 3 4 Calculate the values of the following.
7 −1 0 −2 16 −3 1.5 0
a 2
b 5
c −4 d 1.5
4 9 5 7 1.5 3.5 −2 5
−2 1 4 6 0
e 36 7 f 6 g h −1 3 6 −8
5 2 0 3 1
The chemical plant needs to make 3 litres of each product for a customer.
a Perform scalar multiplication to find the total amount of each chemical required to
make 3 litres of each product.
b Determine the total amount of chemical B required to make 3 litres of each product.
9 The expenses arising from costs and wages for each section of three department stores:
A, B and C, are shown in the Costs matrix. The Sales matrix shows the money from the
sale of goods in each section of the three stores. Figures represent the nearest million
dollars.
Costs: Sales:
Clothing Furniture Electronics Clothing Furniture Electronics
A 12 10 15 A 18 12 24
B 11 8 17 B 16 9 26
C 15 14 7 C 19 13 12
a Write a matrix showing the profits in each section of each store.
b If 30% tax must be paid on profits, show the amount of tax that must be paid by
each section of each store. No tax needs to be paid for a section that has made a loss.
10 Zoe competed in the gymnastics rings and parallel bars events in a three-day
gymnastics tournament. A win was recorded as 1 and a loss as 0. The three column
matrices show the results for Saturday, Sunday and Monday.
Sat Sun Mon
Gymnastics rings 1 1 1
Parallel bars 0 1 1
a Create a 2 × 1 column matrix which records her total wins for each of the two
types of events.
b Zoe received $50 for each win. Create a 2 × 1 matrix which records her total
prize money for each of the two types of events.
Testing understanding
11 Consider the following matrices:
−3 15
6 3 15 −7 −18
A = B = C = 14 −1 D =
−2 14
8 0
2
−1 8
Determine if the following are defined, and if so, evaluate the answer.
a 5A − 2B b C − 2D c 2B − D
4D Matrix multiplication
Learning intentions
To be able to determine if matrix multiplication is possible for two matrices.
To be able to determine the order of the resulting matrix formed under matrix
multiplication.
To be able to perform matrix multiplication by hand.
To be able to perform matrix multiplication using a CAS calculator.
We want to make a matrix, S, that shows the value of the sales made by each person.
$
Fatima sold: 7 Books at $20 + 4 Puzzles at $30. Fatima 7 × 20 + 4 × 30
S =
Gaia sold: 5 Books at $20 + 6 Puzzles at $30. Gaia 5 × 20 + 6 × 30
The steps used in this example follow the algorithm for the matrix multiplication of N × P.
As we move across the first row of matrix N, we N × P
move down the column of matrix P, adding the
7 4 20 7 × 20 + 4 × 30
products of the pairs of numbers as we go. =
5 6 30
Then we move across the second row of matrix
7 4 20 7 × 20 + 4 × 30
N and down the column of matrix P, adding the =
5 6 30 5 × 20 + 6 × 30
products of the pairs of numbers as we go.
140 + 120
=
100 + 180
$
260 Fatima
=
280 Gaia
Matrix multiplication
For matrix multiplication to be defined: order of 1st matrix order of 2nd matrix
m×n n×p
must be the same
For the earlier example of the books and order of 1st matrix order of 2nd matrix
puzzles sales: 2×2 2×1
the same
For the earlier example of the books and order of 1st matrix order of 2nd matrix
puzzles sales: 2 2 2 1
order of answer
2 1
a AB b BA c CD
Explanation Solution
a AB
A B
1 Write the order of each matrix. 3×2 2×1
2 The inside numbers are the same. Matrix multiplication is defined for A × B.
3 The outside numbers give the order The order of the product, AB, is 3 × 1.
of A × B.
b BA
1 Write the order of each matrix. B A
2×1 3×2
2 The inside numbers are not the same. Multiplication is not defined for B × A.
c CD
1 Write the order of each matrix. C D
1×3 3×1
2 The inside numbers are the same. Multiplication is defined for C × D.
3 The outside numbers give the order The order of the product, CD, is 1 × 1.
of C × D.
Some people think of the matrix multiplication of A × B using a run and dive description.
Matrix multiplication of A × B
The run and dive description of matrix multiplication is to add the products of the pairs
made as you:
run along the first row of A and dive down the first column of B,
repeat running along the first row of A and diving down the next column of B until
all columns of B have been used,
now start running along the next row of A and repeat diving down each column
of B, entering your results in a new row,
repeat this routine until all rows of A have been used.
This procedure can be very tedious and error prone, so we will only do simple cases
by hand. A CAS calculator will generally be used to do matrix multiplication.
Explanation Solution
a AB
1 Move across the first row of A and
5 2 5 × 8 + 2 × 9
down the column of B, adding the 8
4
6 =
products of the pairs. 9
1 3
2 Move across the second row of A
5 2 5 × 8 + 2 × 9
8
and down the column of B, adding
6 = 4 × 8 + 6 × 9
the products of the pairs. 4
9
1 3
3 Move across the third row of A and
5 2 5 × 8 + 2 × 9
down the column of B, adding the
8
4
6 = 4 × 8 + 6 × 9
products of the pairs.
9
1 3 1×8+3×9
40 + 18
4 Tidy up by doing some arithmetic. = 32 + 54
8 + 27
58
5 Write your answer. So A × B = 86
35
b CD
8
1 Move across the row of C and down 2 4 7 6 = 2 × 8 + 4 × 6 + 7 × 5
the column of D, adding the products
5
of the pairs.
2 Tidy up by doing some arithmetic. = [16 + 24 + 35]
3 Write your answer. So C × D = [75]
Hint 1 Move across the first row of A and down the first column of B, adding the
products of pairs to find the entry for c11 .
Hint 2 Move across the first row of A and down the second column of B, adding the
products of pairs to find the entry for c12 .
Hint 3 Continue to find the other entries in the same way.
Hint 4 Tidy up by doing some arithmetic.
Hint 5 State the final answer.
In the previous example, AB BA. Usually, when we reverse the order of the matrices
in matrix multiplication, we get a different answer. This differs from ordinary arithmetic,
where multiplication gives the same answer when the terms are reversed, for example,
3 × 4 = 4 × 3.
Matrix multiplication
Remember: In general, matrix multiplication is not commutative. That is: AB BA.
Matrix powers
Now that we can multiply matrices, we can also determine the power of a matrix. This is
an important tool that will be useful when we meet communication and dominance matrices
later in the next section and transition matrices later in the chapter.
Just as we define:
22 as 2 × 2,
23 as 2 × 2 × 2,
24 as 2 × 2 × 2 × 2 and so on,
we define the various powers of matrices as:
A2 as A × A,
A3 as A × A × A,
A4 as A × A × A × A and so on.
Only square matrices can be raised to a power.
Explanation Solution
1 Write down the matrices.
3 1 −2 −3
A = , B =
4 −1 3 5
2 Enter the matrices A and B into your
3 1 3 1
calculator. → a
4 −1 4 −1
−2 −3 −2 −3
→ b
3 5 3 5
Note: For CAS calculators, you must use a multiplication sign between a and b2 in the last example,
otherwise it will be read as variable (ab)2 .
Identity matrix
A special type of square matrix is called the identity matrix.
Identity matrix
The identity matrix (which is known by the letter I) is a square matrix of any size with
1s along the leading diagonal and 0s in all the other positions. For example,
1 0 0 0
1 0 0
1 0 0 1 0 0
[1] 0 1 0
0 1 0 0 1 0
0 0 1
0 0 0 1
When the identity matrix, I, is multiplied by a matrix, for example, matrix A, the answer
is A. For matrix A, AI = A = IA, meaning that the identity matrix multiplied by another
matrix acts in the same way as the number 1 multiplied by another number. Thus, the
identity matrix is a multiplicative identity element.
Explanation Solution
−3 9 1 0
A = and I =
.
2 −7 0 1
a Find AI. b Find IA.
Section Summary
Matrix multiplication is the process of multiplying a matrix by another matrix.
The entry for bi j is found by adding the products of the pairs from row i and column j.
For a 2 × 2 matrix:
a b e f ae + bg a f + bh
=
c d g h ce + dg c f + dh
For example,
3 2 4 7 3 × 4 + 2 × 0 3 × 7 + 2 × 6
=
−1 5 0 6 −1 × 4 + 5 × 0 −1 × 7 + 5 × 6
An identity matrix is a square matrix with 1s along the leading diagonal and 0s
in all other positions. The identity matrix behaves like the number 1 in arithmetic.
Any matrix multiplied by I remains unchanged. That is, for matrix A, AI = A = IA.
Skill-
sheet Exercise 4D
Building understanding
1 Complete the following:
2 −5 6 2 × · · · + (−5) × . . .
× =
3 1 7 3 × ··· + 1 × ...
2 Determine the order of each matrix, and decide if the two matrices can be multiplied.
−6 4
−3 −7 2
A = and B = 11 8
5 9 −4
−1 −3
3 Determine the order of the resulting matrix when matrix A and matrix B are multiplied
together to form AB.
−2 6 1
20 −6 2 1
8 −12 6
0
A = and B = 5 8 −1
0
5 6
7 −9 3 2
1 4 3
Developing understanding
1 3
6 2 5
Example 6 5 For the following matrices: A =
B = C = 0 8
3 1 4
2 −5
decide whether the matrix multiplication in each question below is defined.
If matrix multiplication is defined, give the order of the answer matrix.
a AB b BA c CB d BC
e AA f BB g AC h CA
6 Write the orders of each pair of matrices and decide if matrix multiplication is defined.
1
6 0
a 3 4 b 1 1 0 c 0 1 1 1
5
1 0
1
3 0 1
d 8 −2 −1 e 1 1 0 1 f 1 1 0 1 1
4
1
0
1
Example 7 7 Perform the following matrix multiplications by hand, using the rule for multiplying
matrices.
4 23 8 47 3 5 2 4
a
b
c
1 6 5 5 9 2 1 8 −2 −3
7 4
8 31 0 1 1
d e 1 0 f 3 2
5 2 0 1 1 9
6 1
Testing understanding
11 Consider the following list of matrices.
7
8 4 0
A = 3 B = C = −1 0 6 and D =
−5 −1 2
−2
Identify which matrices can be multiplied together, and determine the order of the
resulting matrix.
13 Two matrices were multiplied together to give a third matrix, as shown below.
−6 3 a b −27 −30
=
−2 5 c d −37 −18
Find the values of a, b, c and d to identify the second matrix.
Explanation Solution
1 Write down the matrix and use the rule: det(A) = 5 × 6 − 2 × 3 = 24
det(A)=a × d − b × c.
det(B) = (−3) × (−2) − 7 × 2 = −8
2 Evaluate.
While we would typically use a calculator to find the inverse of a matrix, we can find the
inverse of a 2 × 2 matrix by hand, using the determinant.
The rule shows that the inverse of a matrix cannot be found if the determinant of the matrix
is equal to zero.
Solving simultaneous equations using matrices
Matrices can be used to solve simultaneous equations. If we have two equations in terms of
x and y, we can write them out in matrix form and then use a CAS calculator to solve them.
Explanation Solution
1 Write each side of the equation as a
8x + 2y 46
matrix. =
5x − 3y 19
2 Write the left-hand side of the matrix
8 2 x 46
equation as the product of two =
5 −3 y 19
matrices.
Steps
1 The two simultaneous equations can be represented by the matrix 5x + 2y 21
equation shown. =
7x + 3y 29
2 The left-hand side of the matrix equation in step 1 can be written 5 2 x 21
=
as the product of two matrices.
7 3 y 29
3 Name the matrices as shown. Matrix X contains the solutions A×X =C
to the simultaneous equations.
4 Enter matrix A and matrix C.
5 2 5 2
→ a
7 3 7 3
21 21
→ c
29 29
x 5
7 Write matrix X. X = =
y −2
8 Write the solutions to the equations. So x = 5 and y = −2.
9 Substitute the values for x and y into
the equations to check if they are
correct.
Section Summary
The inverse matrix, A−1 , of matrix A is defined such that A × A−1 = I.
Simultaneous equations can be solved by writing the equations in matrix form,
A × X = C, and then solved to find X: X = A−1C. Use a CAS calculator for this step.
Skill-
sheet Exercise 4E
Building understanding
1 True or false: If A × B = I, then B is the inverse of matrix A.
2 Confirm that D is the inverse of C by using your CAS calculator to find CD for:
3 2 2 −1
C =
and D =
5 4 −2.5 1.5
Developing understanding
4 Use your CAS calculator to find the inverse of each matrix. Check by showing that
AA−1 = I for each matrix.
5 7 9 4 2 9 4 7
a
b
c
d
2 3 4 2 1 4 2 3
1 1 0 3 2 1 1 0 −5 0 1 2
e 0 1 1 f 0 1 4 g 0 3 8 h 0 2 0
1 0 1 2 0 2 1 2 0 2 0 1
5 Use your CAS calculator and the matrices shown below to find the following:
3 −1 −7 2 −4 9 0 8
A =
B =
C =
D =
4 5 3 1 6 8 4 −1
Example 10 6 Calculate the determinant for each of the matrices in the previous question.
7 Use your CAS calculator and the matrices shown below to find the following:
−1 7 5 6
A =
B =
4 0 −3 2
c 7x − 2y = −31 d 6x + 5y = 38
−3x + 2x = −1 9x + 3y = 66
9 Use matrix methods on your CAS calculator to solve the following simultaneous
equations.
a 3x + 2y = 12 b 4x + 3y = 10
5x + y = 13 x + 2y = 5
c 4x − 3y = 10 d 8x + 3y = 50
3x + y = 1 5x + 2y = 32
e 6x + 7y = 68 f 6x − 5y = −27
4x + 5y = 46 7x + 4y = −2
Testing understanding
10 Evaluate A × (AA−1 ) × (A−1 A) × A−1 for
6 2
A =
5 −1
12 Use matrix multiplication to find the inverse matrices below, by first finding the values
of a, b, c and d.
a b
−1 7 a b 1 0 a b 5 −6 1 0
= =
3 8 c d 0 1 c d 11 4 0 1
A network is a set of objects which are connected together. Examples of networks include
towns which may be connected by roads, or people who may be connected by knowing
one another. Networks can be illustrated by network diagrams where the objects are points
(vertices) and the connections are lines (edges).
The network diagram on the right shows road connections between three towns,
A, B and C.
a Use a matrix to represent the road connections. Each element B
A
should describe the number of ways to travel directly from
one town to another.
b What information is given by the sum of the elements in
column B? C
Explanation Solution
a As there are three towns: A, B and C,
use a 3 × 3 matrix to show the direct connections.
There are 0 roads directly connecting any town A B C
to itself. So enter 0 in row A, column A, and so
0 A
on. 0 B
Note: If there were a road directly connecting town A to 0 C
itself, it would be a loop from A back to A, and 1 would
be added to that element in the matrix.
b The second column, B, shows the number of The sum of the second column,
roads directly connected to town B. B, is the total number of roads
directly connected to town B.
1+0+2=3
The network diagram on the right shows the road connections between four towns,
A, B, C and D.
a Use a matrix to represent the road connections. Each B
A
element should describe the number of ways to travel
directly from one town to another.
b What information is given by the sum of the elements in
column D?
C
D
Hint 1 Determine how many rows and columns should be in the matrix.
Hint 2 If there is no road between two towns, place a 0 in the corresponding entry.
If there is one road, place a 1.
Hint 3 Sum up the numbers in the second column. Think about what each entry
represents so that you can understand what the sum of the column represents.
A particular type of network is a social network where the objects are individuals, and the
connections between them indicate that they communicate with each other.
Diagrams can be used to show the communication links between people in a social network.
A line between two people in a diagram indicates that there is a direct communication link
between the people in the network. This is represented by a ‘1’ in the associated matrix.
The absence of a line between two people in a network indicates that they cannot
communicate with each other directly. This is shown by a ‘0’ in the associated matrix.
When people communicate directly with each other, we say that there is a ‘one step’
communication link. When people can communicate indirectly with each other via
another person, we say that there is a ‘two-step’ communication link.
Consider the communication matrix, S, representing the network shown below.
A B
A B C D
0 1 1 0 A
1 0 0 1 B
S =
1 0 0 1 C
0 1 1 0 D
C D
For example, this tells us that A can communicate with D through two different people.
Looking at the network above, we can see that A can communicate with D through B (ABD)
or through C (ACD). We can also see that A can communicate with themselves through two
different people: B (ABA) or with C (ACA). It also tells us that A cannot communicate with
B through one other person.
The matrix S 3 would give the three-step communications between people, which is the
number of ways of communicating with someone via two people.
The matrix method of investigating communications can be applied to friendships, travel
between towns and other types of two-way connections.
Solution
a V S K P
0 1 1 0 V
1 0 1 1 S
N =
1 1 0 1 K
0 1 1 0 P
Reading from column S and row K, a 1 indicates that Steven communicates with
Kathy. The number 0 is used where there is no communication, for example,
between Vicki and Paul.
b The symmetry occurs because the communication is two-way. For example, Vicki
communicates with Steven and Steven communicates with Vicki.
c The sum of a column gives the total number of people that a given person can
communicate with.
For example, Kathy can communicate with: 1 + 1 + 0 + 1 = 3 people.
d V S K P
2 1 1 2 V
1
3 2 1 S
N 2 =
1 2 3 1 K
2 1 1 2 P
e Reading down the K column to the S row, there are 2 two-step communications
between Kathy and Steven. These can be found in the arrows diagram.
Kathy → Vicki → Steven
Kathy → Paul → Steven
f There are three ways Steven can communicate with himself via another person.
Steven → Vicki → Steven
Steven → Kathy → Steven
Steven → Paul → Steven
For example, using the first case above, Steven might ring Vicki and ask her to ring
him back later to remind him of an appointment.
ISBN 978-1-009-11034-1 © Peter Jones et al 2023 Cambridge University Press
Photocopying is restricted under law and this material must not be transferred to another party.
260 Chapter 4 Matrices
Now try this 13 Using matrices to model the communication links in a social
network (Example 13)
the matrix.
c What information is given by the sum of a column or a row?
d Find the matrix A2 , the square of A.
e Using the matrix A2 , find how many ways that Matt can communicate with Kate,
and write the connections.
Hint 1 Determine how many rows and columns should be in the matrix.
Hint 2 If there is no communication between individuals, then place a zero.
If two individuals communicate directly, then place a 1.
Hint 3 To square a matrix, multiply the matrix by itself.
Section Summary
A matrix can model communication or connection between two or more towns
or people. Connection matrices are always square matrices.
Matrices and matrix techniques can be used to model and analyse the properties
of road, communication and other real-world networks.
Exercise 4F
Building understanding
Consider the following network of roads between five towns.
A B
2 Which two towns are directly connected to each other by two roads?
Developing understanding
Example 12 4 The road networks below show roads connecting towns.
a In each case, use a matrix to record the number of ways of travelling directly from
one town to another.
i A ii A iii A
C
B
B C B
iv A v A B vi A
B
C B
C
C
b What does the sum of the second column of each matrix represent?
5 The matrices shown below record the number of ways of going directly from one town
to another.
a In each case, represent each matrix with a road network between towns A, B and C.
i A B C ii A B C
0 1 1 A 0 1 1 A
1
0 0 B 1
0 1 B
1
0 0 C 1 1 0 C
iii A B C iv A B C
0 1 2 A 0 2 2 A
1 2
0 0 B 0 0 B
2 2
0 0 C 0 0 C
b State the information that is given by the sum of the first column in the matrices
of part a.
6 The network diagram opposite has lines showing which people from the four people,
A, B, C and D, have met.
a Represent the network using a matrix. Use 0 when two B
A
people have not met and 1 when they have met.
b How can the matrix be used to tell who has met the
most people?
c Who has met the most number of people?
d Who has met the fewest number of people? C
D
8 Write the matrix for each communication diagram. Use the number 1 when direct
communication between two people exists and 0 for no direct communication.
a A B b D E c J K
C
G F M L
9 Road connections between towns are recorded in the matrices below. The letters
represent towns. The number 1 indicates that there is a road directly connecting the
two towns. The number 0 indicates that there is no road directly connecting the two
towns.
Draw a diagram corresponding to each matrix showing the roads connecting the towns.
a A B C b P Q R S c T U V W
0
0 0 1 A 1 0 1 P 0 0 1 1 T
1
0
0 1 B 0 1 0 Q 0 0 1 0 U
1 1 0 C 0 1 0 1 R 1 1 0 1 V
1 0 1 0 S 1 0 1 0 W
Gorges are shown in the diagram. The first letter of each town H
is used.
G
a Use a matrix, R, to represent the road connections. Label the columns and rows
in alphabetical order using the first letter of each town’s name. Write 1 when two
towns are directly connected by a road and write 0 if they are not connected.
b What does the sum of column F reveal about the town Fields?
c i Find R2 .
ii How many ways are there to travel from Fields to a town via another town?
Include ways of starting and ending at Fields.
iii List the possible ways of part ii.
Testing understanding
12 Communication between five people is shown below:
Annabelle Beth
Dora Evangeline
Christy
13 The Hampden football league is made up of ten teams: North Warrnambool (N), South
Warrnambool (S ), Warrnambool (W), Hamilton (H), Camperdown (Ca), Cobden (Co),
Portland (Pl), Port Fairy (PF), Terang (T ) and Koroit (K).
The first three rounds were as follows:
1 N vs. S , W vs. H, Ca vs. Co, Pl vs. PF, T vs. K
2 N vs. W, S vs. Ca, Co vs. Pl, PF vs. T , K vs. H
3 N vs H, S vs. Co, W vs. Pl, PF vs. K, T vs. Ca
Given this information:
a Construct a matrix, labelling each row and column with each team. Place a 1 in the
matrix if the two teams play each other in the first three rounds and a 0 if they do
not play each other.
b State the sum of each row and each column.
c What would the sum of row 6 be after 8 rounds of football?
d What should the matrix look like at the end of round 9?
e What happens to the matrix in round 10?
Suppose that in a certain town you have two choices of activity each Saturday night: going
to the movies (M) or staying at home (H). Suppose further that it has been established that:
20% of people who go to the movies this Saturday will go again next Saturday
(and hence, 80% of people who go to the movies this Saturday will stay home next
Saturday).
40% of people who stay home this Saturday will go to the movies next Saturday
(and hence, 60% of people who stay home this Saturday will stay home again next
Saturday.)
The diagram below describes this information.
80%
20% M S 60%
40%
The information can also be summarised in a matrix as shown below. Note that the
percentages have been written as decimals.
this Saturday
M S
0.2 0.4 M
next Saturday
0.8 0.6 S
An amusement park has two rides for pre-school children. These are the Ferris wheel (F)
and the Merry-go-round (M). After each ride, children can choose which ride they want
to go on next. The park observes the following:
70% of children on the Ferris wheel will go on the Ferris wheel again.
40% of children on the Merry-go-round will go on the Merry-go-round again.
a Find the percentage of children on the Ferris wheel who will go on the Merry-go-
round next time.
b Find the percentage of children on the Merry-go-round who will go on the Ferris
wheel next time.
c Construct a transition matrix that describes the transition from one step to the next
for this situation.
Explanation Solution
a Children on the Ferris wheel either go on the Ferris wheel 30% of children will go
again or the Merry-go-round. Thus, the percentages must on the Merry-go-round
add up to 100%. next time.
b Children on the Merry-go-round either go on the Merry- 60% of children will go
go-round again or the Ferris wheel. Thus, the percentages on the Ferris wheel next
must add up to 100%. time.
c Set up the transition matrix with F and M representing the
Ferris wheel and Merry-go-round. this ride
The first column represents the percentages (written as F M
decimals) for children currently on the Ferris wheel, so 0.7 0.6 F
0.3 0.4 M next ride
place 0.7 and 0.3 in these positions.
The second column represents the percentages for
children currently on the Merry-go-round, so place 0.6
and 0.4 in these positions.
An observant sales assistant has noted whether customers buy hot food (H) or cold food
(C) in the store for lunch. They notice that:
80% of customers who buy hot food for lunch will buy hot food again the next day.
60% of customers who buy cold food for lunch will buy cold food again the next day.
Construct a transition matrix that describes the percentages of customers choosing hot
or cold food for lunch from one day to the next.
Hint 1 Calculate the percentage of people buying cold food tomorrow who purchased
hot food today.
Hint 2 Calculate the percentage of people buying hot food tomorrow who purchased
cold food today.
Hint 3 Set up a transition matrix with labels H and C for the rows and columns.
Fill in the percentages - remember that 80% should be written as 0.8.
40%
Using this information alone, a number of predictions can be made.
For example, if 200 people go to the movies this week, the transition matrix predicts that:
20% or 40 of these people will go to the movies next week (0.2 × 200 = 40)
80% or 160 of these people will stay at home next week (0.8 × 200 = 160)
Further, if 150 people stayed at home this week, the transition matrix predicts that:
40% or 60 of these people will go to the movies next week (0.4 × 150 = 60)
60% or 90 of these people will stay at home next week (0.6 × 150 = 90)
Thus, we can predict that if 200 people went to the movies this week, and 150 stayed home,
then the number of people going to the movies next week is 0.2 × 200 + 0.4 × 150 = 100,
and the number of people who stay home next week is 0.8 × 200 + 0.6 × 150 = 250.
The following transition matrix, T , and its transition diagram can be used to describe
the movement of children between a Ferris wheel and a Merry-go-round.
this ride
F M 20%
0.8 0.3 F
T = next ride 80% F M 70%
0.2 0.7 M
30%
Explanation Solution
a You should read from the first column
of the transition matrix.
i Consider the first row. 80%
ii Consider the second row. 20%
b You should read from the first column
of the transition matrix.
i Since 80% of children on the Ferris 0.8 × 140 = 112
wheel are expected to go on the We expect 112 children from the Ferris
Ferris wheel next time, then we wheel to go on the Ferris wheel next time.
multiply 0.8 by the number of
children on the Ferris wheel.
ii Since 20% of children on the Ferris 0.2 × 140 = 28
wheel are expected to go on the We expect 28 children from the Ferris
Merry-go-round next time, then wheel to go on the Merry-go-round next
we multiply 0.2 by the number of time.
children on the Ferris wheel.
c Since 30% of children on the Merry- 0.3 × 80 = 24
go-round are expected to go on the 112 + 24 = 136
Ferris wheel next time, we multiply We predict that 136 students will go on the
0.3 by the number of children on the Ferris wheel next time.
Merry-go-round. This is added to our
answer from above.
ISBN 978-1-009-11034-1 © Peter Jones et al 2023 Cambridge University Press
Photocopying is restricted under law and this material must not be transferred to another party.
4G 4G Introduction to transition matrices 269
The following transition matrix, T , and its transition diagram can be used to describe
customers choosing between a hot and a cold meal, given their previous choice.
today
H C 10%
0.9 0.4 H
T = tomorrow 90% H C 60%
0.1 0.6 C
40%
a Of the customers who purchased hot food today, what percentage of people do you
expect to buy hot meals and cold meals tomorrow?
b If the store sold 400 hot meals on one day, how many of those who purchased hot
meals do you expect to purchase hot meals the next day?
c If the store sold 400 hot meals and 500 cold meals on one day, how many hot meals
in total do you expect them to sell the next day?
Section Summary
A transition matrix is always a square matrix.
An important feature of a transition matrix is that each column total of the proportions
(or percentages) must equal 1 (100%).
Exercise 4G
Building understanding
1 Consider the following matrix.
this time
A B
0.8 0.3 A
T = next time
B
2 An amusement park has two rides: a Ferris wheel and a Merry-go-round. Experience
has shown that:
60% of children on the Ferris wheel go on the Ferris wheel again.
50% of children on the Merry-go-round go on the Merry-go-round again.
a What percentage of children on the Ferris wheel go on the Merry-go-round next
time?
b What percentage of children on the Merry-go-round go on the Ferris wheel next
time?
Using the transition matrix above, if the initial population at two different locations,
A and B, is 50 people each:
a How many people at location A are predicted to stay at location A next period?
b How many people at location B are predicted to move to location A next period?
c How many people are predicted to be at location A at the start of the next period?
Developing understanding
Example 14 4 The local football club kiosk sells pies and dim sims. They observe that:
60% of customers who buy a pie, choose to buy a pie next week.
80% of customers who buy dim sims, choose to buy dim sims next week.
Find the percentage of customers who:
a bought a pie this week who are predicted to buy dim sims next week.
b bought dim sims this week who are predicted to buy a pie next week.
c Construct a transition matrix that describes the transition between the two foods.
5 A new resident to an area is trying to work out
the weather patterns. They observe:
it rains 70% of the time tomorrow if it
rains today.
it rains 60% of the time tomorrow if it
does not rain today.
a Find the percentage of the time that it will:
i not rain tomorrow if it rained today.
ii not rain tomorrow if it did not rain today.
b Construct a transition matrix that describes
the transition between raining and not
raining.
6 The following diagram describes the transition between two states, A and B.
15%
85% A B 55%
45%
Example 15 7 The following matrix, T , is used to describe the daily pattern of morning coffee orders
at a cafe, where L represents a latte and F represents a flat white. On Monday, the cafe
sells 160 lattes and 100 flat whites.
Monday
L F
0.75 0.4 L
T = Tuesday
0.25 0.6 F
a What percentage of customers who buy a latte on Monday are predicted to buy a:
i latte on Tuesday?
ii flat white on Tuesday?
b If the cafe sells 160 lattes on Monday, how many of the people who buy a latte
on Monday are predicted to buy a latte on Tuesday?
c If the cafe sells 160 lattes on Monday, how many of the people who buy a latte
on Monday are predicted to buy a flat white on Tuesday?
d If the cafe sells 160 lattes and 100 flat whites on Monday, in total, how many people
are predicted to buy a latte on Tuesday?
e If the cafe sells 160 lattes and 100 flat whites on Monday, in total, how many people
are predicted to buy a flat white on Tuesday?
today
T L
0.9 0.7 T
Q = tomorrow
0.1 0.3 L
a How many students who were on time on Monday are predicted to be on time
on Tuesday?
b How many students who were late on Monday are predicted to be on time on
Tuesday?
c In total, how many students do you expect to be on time on Tuesday?
d In total, how many students do you expect to be late on Tuesday?
Testing understanding
9 The following diagram describes the transition between three states:
X, Y and Z. Complete the following transition matrix to represent this diagram.
60%
Y this time
40% X Y Z
10%
30%
20
0.4 0.5 X
%
20%
40% X Z 30% 0.6 Y next time
Z
0.2
50%
Consider the earlier example of going to the movies or staying home. We can now ask
questions about the number of people we expect to be at the movies after 1 week, 2 weeks
and so on.
This type of problem is similar to those considered in financial modelling. For example,
if $3000 is invested at 5% per annum, how much will we have after 1 year, 2 years,
3 years etc?
In the same way that financial problems were solved using a recurrence relation to model
the change in growth of value in an investment or loan over time, a recurrence relation can
be formed using matrices which can model the change in the number of people choosing
to go to the movies from week to week.
The starting point for this example is a matrix that tells us how many people initially go
to the movies and how many stay at home. This is called the initial state matrix and is
denoted S 0 .
200
S 0 =
150
To find the number of people who go to the movies after 1 week, we use the transition
matrix, T , to generate the next state matrix in the sequence, S 1 , as follows:
S1 = TS0
0.2 0.4 200 0.2 × 200 + 0.4 × 150
= =
0.8 0.6 150 0.8 × 200 + 0.6 × 150
100
=
250
Thus, after one week, we predict that 100 people will go to the movies and 250 people will
stay home.
A similar calculation can be performed to find out how many people we predict will go
to the movies and will stay home after two weeks.
0.2 0.4 100 0.2 × 100 + 0.4 × 250 120
S 2 = =
=
0.8 0.6 250 0.8 × 100 + 0.6 × 250 230
where T is the transition matrix and S n is the state matrix after n applications of the
transition matrix, T , or in practical situations, n time intervals.
Children at a fair can either go on the Ferris wheel or the Merry-go-round. At the start,
140 children went on the Ferris wheel and 80 children went on the Merry-go-round.
Use the recurrence relation:
S 0 = initial value, S n+1 = T S n
where:
140 0.8 0.3
S 0 =
and T =
80 0.2 0.7
to predict the number of children on the Ferris wheel and Merry-go-round after 1 turn
and after 3 turns.
Explanation Solution
0.8 0.3 140 136
1 Use the rule: S n+1 = T S n , to predict the S 1 = T S 0 =
=
number of children on the Ferris wheel 0.2 0.7 80 84
and Merry-go-round after one turn, Thus, we predict that 136 children will go
by forming the product S 1 = T S 0 and on the Ferris wheel and 84 will go on the
evaluating. Merry-go-round.
2 To predict the number of children on 0.8 0.3 136 134
S 2 = T S 1 =
=
the Ferris wheel and Merry-go-round
0.2 0.7 84 86
after three turns, first calculate the
number after two turns and then three. 0.8 0.3 134 133
S 3 = T S 2 = =
0.2 0.7 86 87
A cafe keeps track of the percentage of people who purchase hot food and cold food
each day. On the first day, 400 hot meals and 500 cold meals are chosen.
Use the recurrence relation:
S 0 = initial value S n+1 = T S n
where:
400 0.9 0.4
S 0 = and T =
500 0.1 0.6
to predict how many people chose a hot or cold meal after 1 day or after 3 days.
Hint 1 Use S 1 = T S 0 , to find the number of hot and cold meals after 1 day.
Hint 2 Use the recurrence relation to find the number of hot and cold meals after 2 days,
so you can then find the number after 3 days.
Using the recurrence relation, the population state matrix for the two towns after one year is:
0.85 0.05 10 000 10 250
S 1 = T S 0 =
=
0.15 0.95 35 000 34 750
After two years:
0.85 0.05 10 250 10 450
S 2 = T S 1 =
=
0.15 0.95 34 750 34 550
Thus, S 2 = T × (T S 0 ) = T 2 S 0 , so the rule for finding the population after n years is:
S n = T nS 0.
Example 17 Using matrices to model and analyse population growth and decay
A study was conducted to investigate the change in the populations of Geelong (G)
and Ballarat (B) due to movement of people between the two cities.
At the start of the study, the populations of Geelong and Ballarat were respectively
250 000 and 100 000 people. Using a matrix approach to model future changes, the
initial state matrix is:
250 000
S 0 =
110 000
The transition matrix that can be used to chart the population movements between the
two cities from year to year is:
0.9 0.15
T =
0.1 0.85
a Using the recursion rule: S n+1 = T S n , predict the population of Geelong after one
year.
b Using the recursion rule: S n+1 = T S n , predict the population of Geelong after two,
three and four years.
c Using the rule: S n = T n S 0 , predict Geelong’s population after 20, 30 and 40 years.
d What do you notice about the predicted population of Geelong? What do you think
will happen beyond 40 years?
Explanation Solution
a Calculate: S 1 = T S 0 , and read off the 241 500
S 1 =
top line. 118 500
The predicted population after one year in
Geelong is 241 500.
b Use the rule: S n+1 = T S n , and then After two years: 235 125
read off the top line. After three years: 230 344
After four years: 226 758
c Use the rule: S n = T n S 0 , and then read After twenty years: 216 108
off the top line. After thirty years: 216 006
After forty years: 216 000
d Consider what is happening to the Over time, the predicted population
population over time - is it increasing in Geelong is declining. Initially, the
or decreasing? Is it approaching a population is falling rapidly from 250 000
particular value? to 235 125 in one year, but then appears to
stabilise at around 216 000 people.
Now try this 17 Using matrices to model and analyse population growth and
decay (Example 17)
A study of the relative growth in duck populations at two nesting sites, A and B, is to be
analysed using matrix methods.
At the start of the study, there were 8000 ducks at site A and 10 000 ducks at site B.
For these populations, the initial population state matrix is:
8000
S 0 =
10 000
Over time, ducks move from one site to the other site. The transition matrix that can be
used to describe this movement is:
0.7 0.2
T =
0.3 0.8
a What is the predicted population in each location after one, two and three years?
b What is the predicted population in each site after twenty, thirty and forty years?
c What do you notice about the predicted population, and what do you think will happen
beyond forty years?
From the Geelong and Ballarat population example above, the long-run populations of the
two cities become stable and do not change from one year to the next. This does not mean
that nobody is moving between the two cities, rather that the number of people moving from
Geelong to Ballarat and Ballarat to Geelong is equal. We can see this by calculating the
expected number of people moving between each city when n = 41(meaning 41 years). In
the example, the population of Geelong when n = 40 was 216 000, and the population of
Ballarat was 144 000. When n = 41, the number of people moving from Geelong to Ballarat
will be:
0.1 × 216 000 = 21 600
The number of people moving from Ballarat to Geelong will be:
0.15 × 144 000 = 21 600
Since these two numbers are equal, we refer to this as the steady state or the
equilibrium state.
Section Summary
A transition matrix, T , is a square matrix which represents the transition (movement)
from one state in a sequence to the next state in a sequence.
A state matrix, S n , is a column matrix which lists the numbers in each state after
n time periods.
The recurrence relation:
S 0 = initial state matrix S n+1 = T × S n
can be used to generate a sequence of state matrices, S 0 , S 1 , S 2 , . . . , where successive
states only depend on their immediate predecessor.
An explicit rule for finding S n is: S n = T n S 0 , where T is the transition matrix and
S 0 is the initial state matrix.
Skill-
sheet Exercise 4H
Building understanding
1 A factory has a large number of machines. The machines can be in one of two states:
operating (O) and broken (B). Broken machines can be repaired and go back into
operation, and operating machines can break down. Construct an initial state matrix
if there are initially 100 machines in operation and 25 broken machines.
Example 16 2 Consider the following matrices defining the number of students in a year level who
get above a C on their maths test and those who get a C or lower, and the transition
matrix for the next period. Assume getting above a C is listed first.
60 0.85 0.1
S 0 = T =
140 0.15 0.9
How many students do you expect to get above a C on the next maths test?
200 0.1 0.8
3 For the initial state matrix, S 0 = and the transition matrix, T = :
100 0.9 0.2
a use the recursion relation: S 0 = initial state matrix, S n+1 = T S n , to determine:
S 1 , S 2 and S 3
b determine the value of T 2
c use the rule: S n = T n S 0 , to determine S 7 .
Developing understanding
Example 17 4 A small town has two fish and chip shops (Bill’s Barnacles and Sally’s Seafood), and
local residents choose which shop to use each week. Consider the following matrices
defining the initial customers and a transition matrix that describes the movement
between the two shops each week.
5 In a football club, players can either be available to play or are injured. 90% of players
who are available in one week are available the next week, while 40% of injured
players are available to play the next week.
a Construct a fully labelled transition matrix to describe this situation, where available
players are listed first. Call the matrix T .
b The club has a total of 50 players on their list, all of whom are initially available.
Construct a column matrix, S 0 , that describes this situation.
c Using T and S 0 , how many players do you expect will be available after one week?
d In the long run, how many players do you expect the club to have on its injury list
each week?
6 A local town produces a weekly newspaper. Residents can either read the newspaper
(R) or ignore the newspaper (I).
In a given week:
80% of people who read the paper will read it next week.
20% of people who read the paper will ignore it next week.
25% of people who ignore the paper will read it next week.
75% of people who ignore the paper will ignore it next week.
a Construct a fully labelled transition matrix to describe the situation, where reading
the paper is listed first. Call the matrix T .
b Initially, 4000 residents read the paper and 2000 residents ignore it. Write down
a column matrix to describe the situation. Call the matrix S 0 .
c How many of the residents who read the paper this week do we expect to read
it next week? How many of those do we expect to ignore it next week?
d How many of the residents who ignore the paper this week do we expect to read
it next week? How many of those do we expect to ignore it next week?
e How many residents do we expect to read the paper after 6 weeks?
f In the long term, how many residents of the town do we expect to read the paper
each week? How many residents do we expect to ignore the paper each week?
Testing understanding
8 A juice bar sells three types of juices: 55%
Banana Bonanza, Mango Magic and Radical
M
Raspberry. The patterns of daily customers 20%
15% 30%
are recorded as shown in the diagram.
20
10%
%
70% B R 60%
20%
a Construct an appropriately labelled 3 by 3 transition matrix to describe this
situation. Call the matrix T .
b On Monday, 300 people buy Banana Bonanza, 200 buy Mango Magic and 50 buy
Radical Raspberry. Construct a column matrix, S 0 , that describes this situation.
c Using matrix multiplication, calculate the number of each type of juice that you
expect the store to sell on Tuesday.
d The store is concerned about stock levels. Calculate the total number of each type of
drink that you expect the store to sell in the first week from Monday (based on S 0 )
through to the following Sunday.
e In the long run, how many of each juice do you expect the store will sell each day?
4I Applications of matrices
Learning intentions
To be able to use matrix multiplication to solve application problems.
To be able to use row and column matrices to extract information from matrices.
Data represented in matrix form can be multiplied to produce new useful information.
Freddy and George’s store has a sales promotion. One free cinema ticket is given with
each DVD purchased. Two cinema tickets are given with the purchase of each game.
The number of DVDs and games sold by Freddy and George is given in matrix S.
The selling price of a DVD and a game, together with the number of free tickets, is given
by matrix P.
DVDs Games $ Tickets
Freddy 7 4 DVDs 20 1
S= P=
George 5 6 Games 30 2
Explanation Solution
Complete the matrix DVDs Games $ T ickets
multiplication, S × P.
Freddy 7 4 DVDs 20 1
×
George 5 6 Games 30 2
$ Tickets
Freddy 7 × 20 + 4 × 30 7 × 1 + 4 × 2
=
George 5 × 20 + 6 × 30 5 × 1 + 6 × 2
$ T ickets
Freddy 260 15
=
George 280 17
Interpret the matrix. Freddy had sales of $260 and gave out 15
tickets.
George had sales of $280 and gave out 17
tickets.
Jacky and Peter’s store has a special sales promotion. One free prize ticket is given with
each drink purchased. Two prize tickets are given with the purchase of each hamburger.
The number of drinks and hamburgers sold by Jacky and Peter are given in matrix S.
The selling price of a drink and hamburger, together with the number of free prize tickets,
is given by matrix P.
Drinks Hamburgers $ Tickets
Jacky 3 10 Drinks 4 1
S = Peter 6
P=
8 Hamburgers 12 2
Three rangers completed their monthly park surveys of feral animal sightings, as shown
in Matrix S.
cats dogs foxes rabbits
1
Aaron 27 9 34
59
1
S = Barry 18 15 10 89
A = 1 1 1 B =
Chloe 35 6 46 29 1
1
a Evaluate S × B.
b What information about matrix S is given in the product S × B?
c Evaluate A × S.
d What information about matrix S is given in the product A × S?
Explanation Solution
1
27 9 34 59
1
a Matrix multiplication of a 3 × 4 and a S × B = 18 15 10 89 ×
1
4 × 1 matrix produces a 3 × 1 matrix. 35 6 46 29
1
27 + 9 + 34 + 59 129
= 18 + 15 + 10 + 89 = 132
35 + 6 + 46 + 29 116
b Look at the second last step in the Each row of SB gives the sum of the rows
working of S × B. in S. Namely, the total sightings made by
each ranger.
27 9 34 59
c Matrix multiplication of a 1 × 3 and a A × S = 1 1 1 × 18 15 10 89
3 × 4 matrix produces a 1 × 4 matrix. 35 6 46 29
A × S = 27+18+35 9+15+6 34+10+46 59+89+29
= 80 30 90 177
d In the second last step of part c, we Each column of AS gives the sum of the
see that each element is the sum of the columns in S, which gives the sum of the
sightings for each type of animal. sightings of each type of animal.
Now try this 19 Using row and column matrices to extract information
(Example 19)
Four students recorded the number of minutes they spent watching television each
weekday and recorded their times in matrix T.
Mon Tue Wed Thur Fri
1
Beth 45 25 80 0 140
1
Zara 0 20 0 20 120
T= A = 1 1 1 1 B = 1
Aria 30 30 0 30 110
Wanda 40 0 0 20 120 1
1
a Evaluate T × B.
b What information about matrix T is given in the product, T × B?
c Evaluate A × T.
d What information about matrix T is given in the product, A × T?
Section Summary
Matrices can be used to store information. Matrix multiplication can allow key
information from matrices to be extracted.
Exercise 4I
Building understanding
1 Joe and Stephen sell cans of softdrink and bottles of water at the senior school
fair. The number of cans and bottles are given in matrix D, and the prices of cans
and bottles are given in matrix P.
Cans Bottles $
Joe 214 103 Cans 3
D= P=
Stephen 162 189 Bottles 2
Developing understanding
Example 18 2 The matrix below shows the number of milkshakes and sandwiches that Helen had
for lunch one week. The number of kilojoules (kJ) present in each food is given in
the second matrix.
kJ
Milkshakes Sandwiches
Milkshakes 1400
Helen 2 3
Sandwiches 1000
Use matrix multiplication to calculate how many kilojoules Helen had for lunch over
the week.
3 Consider the following two matrices, where the first matrix shows the number of cars
and bicycles owned by two families and the second matrix records the wheels and seats
for cars and bicycles.
Cars Bicycles Wheels Seats
Smith 2 3 Car 4 5
Jones 1 4 Bicycle 2 1
Use matrix multiplication to find a matrix that gives the numbers of wheels and seats
owned by each family.
4 Eve played a game of darts. The parts of the dartboard that she hit during one game
are recorded in matrix H. The bull’s eye is a small area in the centre of the dartboard.
The points scored for hitting different regions of the dartboard are shown in matrix P.
Points
20 Bull’s eye
P = 5 Inner region
1 Outer region
Use matrix multiplication to find a matrix giving her score for the game.
6 Han’s stall at the football made the sales shown in the table.
Tubs of chips Pasties Pies Sausage rolls
90 84 112 73
The selling prices were: chips $4, pastie $5, pie $5 and a sausage roll $3.
a Record the numbers of each product sold in a row matrix.
b Write the selling prices in a column matrix.
c Find the total value of the sales by using matrix multiplication of the row and
column matrices found in parts a and b.
Example 19 7 The number of study hours completed by three students over four days is shown
in matrix H.
Mon Tues Wed Thur
Issie 2 3 2 3
H = Jack 1 4 0 2
Kaiya 3 4 3 2
Using matrix multiplication with a suitable row or column matrix, complete the
following.
a Produce a matrix showing the total study hours for each student.
b Hence, find a matrix with the average hours of study for each student.
c Obtain a matrix with the total number of hours studied on each night of the week.
d Hence, find a matrix with the average number of hours studied each night. Round
your answers to one decimal place.
T1 T2 T3 T4 T5
Ellie 87 91 94 86 88
Felix 93 76 89 62 95
R=
Gavin 73 61 58 54 83
Hannah 66 79 83 90 91
Testing understanding
9 Scalar multiplication occurs when a number multiplies a matrix. For a 2 × 2 matrix
it has the general form:
a b ka kb
k =
c d kc kd
k 0
Suggest why the matrix is called a scalar matrix.
0 k
10 The mobile phone bills of Anna, Boyd and Charlie for the four quarters of 2022
are recorded in matrix P.
Q1 Q2 Q3 Q4
0
Anna 47 43 52 61
0
P = Boyd 56 50 64 49 E =
1
Charlie 39 41 44 51
0
a Find P × E, and comment on the result of that matrix multiplication.
b State the matrix, F, needed to extract the second quarter, Q2, costs.
To find the four quarterly costs on Charlie’s phone bill, another matrix is required.
c What will be the order of the matrix that displays Charlie’s quarterly costs?
d State the order of a matrix, G, that when it multiplies a 3 × 4, gives a
1 × 4 matrix as the result? Should matrix G pre-multiply (GP) or post-multiply
(PG) matrix P?
e Suggest a suitable matrix G that will multiply matrix P and produce a matrix of
Charlie’s quarterly phone bills. Check that it works.
Matrix A matrix is a rectangular array of numbers set out in rows and columns
Assign- within square brackets. The rows are horizontal; the columns are
ment
vertical.
Elements of a The elements of a matrix are the numbers within it. The position of an
matrix element is given by its row and column in the matrix. Element ai j is in
row i and column j. The row is always given first.
Equal matrices Two matrices are equal when they have the same numbers in the same
positions. They need to have the same order.
Adding matrices Matrices of the same order can be added by adding numbers in the same
positions.
Zero matrix, O A zero matrix is any matrix with zeroes in every position.
Review
Identity matrix, I An identity matrix, I, behaves like the number 1 in arithmetic.
Any matrix multiplied by I remains unchanged. For 2 × 2 matrices,
1 0
I =
0 1
where AI = A = IA.
Matrix multiplication by the identity matrix is commutative.
Inverse matrix, When any matrix, A, is multiplied by its inverse matrix, A−1, the
A−1 answer is I, the identity matrix. That is:
A × A−1 = I
Skills checklist
Download this checklist from the Interactive Textbook, then print it and fill it out to check
Check- your skills.
list
7 −2 5
10 0 4
−8 12 3
57 63 19
48 54 6
B = 39 45 22
37 59 31
42 22 19
2 4 9 8
+
5 1 9 −1
7 3
0 2 1 0 0 0
2 8
−1 0 0 1 0 0
1 0
Review
4C 6 I can apply scalar multiplication with addition and subtraction of matrices.
5 3 2 −1
e.g. If A = and B = , then find 2A + 3B.
−2 0 0 1
3 7 5
A = B =
−2 −3 9
4D 8 I can determine the order of the resulting matrix formed under matrix
multiplication.
e.g. Determine the order of the answer matrix for the following matrix multiplication:
9 −11 7 −6 2 −2
8 3 4 −3 1 5
5 2
1 9
−1 0 3
−4 −5 0
1 4
12 −3
6 −11 3 7 1 5
0 8 −2 8 4 −6
10 −2
C
D
Review
4G 17 I can interpret a transition matrix.
e.g. The following transition matrix, T , can be used to describe whether customers
bring their shopping bags to the supermarket (S ) or leave them at home (H), based
on their behaviour last week.
This week
S H
0.8 0.3 S
T = Next week
0.2 0.7 H
If 150 people took their bags for their weekly shop, and 90 people left their bags at
home this week, how many people do you expect to bring their own shopping bags
next week?
4I 21 I can use row and column matrices to extract specific information from
matrices.
e.g. On Saturday, Jack’s coffee van sold 98 cups of coffee and 25 cups of tea.
On Sunday, he sold 85 cups of coffee and 31 cups of tea. The price of coffee is $4
and the price of a cup of tea is $3. Construct a matrix for his sales. Using matrix
multiplication with a suitable row or column matrix, produce a matrix showing the
total number of drinks he sold each day.
Multiple-choice questions
Use the matrix, F, in Questions 1 and 2.
4 8 6
F =
5 1 7
3 Three students were asked the number of electronic devices their family owned.
The results are shown in this matrix.
TVs DVD Players Laptops
Caroline 4 3 2
Delia 1 0 5
Emir 2 1 3
4 The matrix below gives the numbers of roads directly connecting one town to another.
The total number of roads directly connecting town E to other towns is
D E F
0 2 1 D
2 0 3 E
1 3 0 F
A 0 B 2 C 3 D 5 E 12
A 2 B 3 C 4 D 6 E 18
Review
Use matrices M and N in Questions 6 to 10.
7 6 5 −2
M = N =
4 3 1 0
6 The matrix M + N is
12 8 12 4 12 4 12 4 12 4
A B
C
D
E
5 3 4 3 4 0 5 3 5 0
7 The matrix M − N is
2 8 2 4 2 4 2 8 2 8
A B
C
D
E
3 0 3 0 3 3 3 3 4 3
8 The matrix N − N is
0 0 5 −2 −5 2
A 0 B 0 C D E
0 0 1 0 −1 0
9 The matrix 2N is
10 −4 7 0 10 −4 10 −2 10 −4
A B
C D
E
2 0 3 2 1 0 2 0 2 2
10 The matrix 2M + N is
14 10 14 6 24 8 19 14 19 10
A B
C D E
7 5 7 5 10 6 9 6 9 6
Short-answer questions
4 If the order of a matrix, B, was 4 × 1, what would be the order of the matrix resulting
from AB?
5 Roads are shown joining towns P, Q and R. Use a matrix to record the number of roads
directly connecting one town to another town.
P
R
Review
Written-response questions
1 Farms A and B have their livestock numbers recorded in the matrix shown.
Cattle Pigs Sheep
Farm A 420 50 100
Farm B 300 40 220
a How many pigs are on Farm B?
b What is the total number of sheep on both farms?
c Which farm has the largest total number of livestock?
2 A bakery recorded the sales for Shop A and Shop B of cakes, pies and rolls in a
Sales matrix, S. The prices were recorded in the Prices matrix, P.
$
Cakes Pies Rolls
Cakes 3
S = A 12 25 18
P = Pies 2
B 15 21 16
Rolls 1
a How many pies were sold by Shop B?
b What is the selling price of pies?
c Calculate the matrix product SP.
d What information is contained in matrix SP?
e Which shop had the largest income from its sales? How much were its takings?
5 Supermarkets sell eggs in cartons of 12, apples in packets of 8 and yoghurt tubs in
sets of 4. This is represented by matrix A. The cost for each type of packet is given
by matrix B.
$
Eggs Apples Yoghurt Eggs 8
A = Items per packet 12 8 4 B = Apples 6
Yoghurt 5
The sales of each type of packet are given by matrix C as a column matrix and by
matrix D as a row matrix.
Packets
Eggs 100 Eggs Apples Yoghurt
C = Apples 50 D = Packets 100 50 30
Yoghurt 30
Choose the appropriate matrices and use matrix multiplication to find:
a the total number of items sold (counting each egg, apple or yoghurt tub as an item)
b the total value of all sales.
6 We are told that 2 apples and 3 bananas cost $6. This can be represented by the
equation 2x + 3y = 6, where x represents the cost of an apple and y the cost of a
banana.
a Write an equation for: 6 apples and 5 bananas cost $14.
b With your equation and the equation given, use matrix methods on your CAS
calculator to find the cost of an apple and the cost of a banana.