SGSchoolKaki
Loading...
E-Math notes · Chapter 9

Matrices: O-Level E-Math Notes

A matrix is a table of numbers that you can calculate with. By the end of this chapter you can display data as a matrix, read what it says, multiply it by a number, add and subtract matrices, multiply two matrices, and use all of this to solve shopping and sales problems.

Your outcome tracker0 / 6
Let's go! Tick an outcome once you can pass its exam check. Saved on this device.
Chapter
9
Figure 1 · Diagram for Example 9.8
Bottles of mineral water sold each dayBar chart of the number of bottles sold on each day; the matrix is read from the bar heights0204060Number soldMon35Tue28Wed42Thu31Fri50
4 outcomes · 28 worked examples · every step shown ✦
Display and order

The order of a matrix is rows × columns, in that order.

Interpreting data

The element in row i, column j answers: what does row i say about column j?

Scalar multiplication

k × matrix: every element gets multiplied by k.

By the end of this chapter
  • Display information in a matrix of any order, and state its order.
  • Interpret the data in a given matrix.
  • Multiply a matrix by a scalar.
  • Calculate the sum, the difference and (where defined) the product of two matrices, and solve problems with them.
Start here

Maths In Real Life

Two situations where a matrix does the bookkeeping. The scene pictures are made separately; the matrices are drawn on top by script so they match the problem exactly.

A hawker stall counter with chicken rice, laksa and wanton noodles, with the number matrices for plates sold and prices drawn over the picture
Q and PSat: 40, 25, 15 dishesSun: 32, 30, 20 dishesPrices: $4.50, $3.50, $5.00
Maths In Real Life 1

The hawker stall's takings

A stall owner can keep track of what was sold and what it is worth by storing the day's numbers in a matrix, then multiplying by the price list.

At a hawker stall, the numbers of plates of chicken rice, laksa and wanton noodles sold on Saturday (row 1) and Sunday (row 2) are Q=(402515323020)\displaystyle \mathbf{Q} = {\small \begin{pmatrix} 40 & 25 & 15 \\ 32 & 30 & 20 \end{pmatrix}} The prices in dollars are P=(4.503.505.00)\displaystyle \mathbf{P} = \begin{pmatrix} 4.50 \\ 3.50 \\ 5.00 \end{pmatrix} (invented prices). Find QP\mathbf{QP} to the nearest cent and say which day earned more.

Show full solutionHide solution
Colour keyround, estimate or compare
2×3 times 3×1 ⇒ 2×1\displaystyle 2 \times 3 \ \text{times} \ 3 \times 1 \ \Rightarrow \ 2 \times 1
columns of A = rows of B: one takings total for each day
QP=(342.50349.00)\displaystyle \mathbf{QP} = \begin{pmatrix} 342.50 \\ 349.00 \end{pmatrix}
Saturday took 342.50 dollars and Sunday took 349.00 dollars, so Sunday earned more.
compare the two totals
Final answer
QP=(342.50349.00)\mathbf{QP} = \begin{pmatrix} 342.50 \\ 349.00 \end{pmatrix}; Sunday earned more.
A bubble tea kiosk counter with three cups, with the sales matrices added and multiplied by the price matrix drawn over the picture
A, C and POutlet 1: 2 0 1 and 1 2 0Outlet 2: 1 3 2 and 2 1 1Prices: $1.50 $1.00 $2.50
Maths In Real Life 2

Two weekends of bubble tea

Combining two weekends of orders by adding matrices, then pricing the total in one multiplication, avoids doing the same calculation twice.

A bubble-tea kiosk records how many cups of classic, fruit and milk-foam tea are ordered at two outlets (rows) on two weekends: A=(241015183022)\displaystyle \mathbf{A} = {\small \begin{pmatrix} 24 & 10 & 15 \\ 18 & 30 & 22 \end{pmatrix}} and C=(201612261418)\displaystyle \mathbf{C} = {\small \begin{pmatrix} 20 & 16 & 12 \\ 26 & 14 & 18 \end{pmatrix}} (numbers of cups). The prices in dollars are P=(1.501.002.50)\displaystyle \mathbf{P} = \begin{pmatrix} 1.50 \\ 1.00 \\ 2.50 \end{pmatrix} (invented). Find the total takings for each outlet over both weekends, to the nearest cent.

Show full solutionHide solution
A+C=(442627444440)\displaystyle \mathbf{A} + \mathbf{C} = {\small \begin{pmatrix} 44 & 26 & 27 \\ 44 & 44 & 40 \end{pmatrix}}
same order: both weekends added first
(A+C)P=(159.50210.00)\displaystyle (\mathbf{A} + \mathbf{C})\mathbf{P} = \begin{pmatrix} 159.50 \\ 210.00 \end{pmatrix}
cups times dollars per cup gives dollars
Final answer
(159.50210.00)\begin{pmatrix} 159.50 \\ 210.00 \end{pmatrix}: outlet 1 took 159.50 dollars and outlet 2 took 210.00 dollars.
Supports N9.1 · N9.2

Display information as a matrix; order and types

A matrix is a rectangular block of numbers arranged in rows (across) and columns (down) and written inside curved brackets. Each number is an element. Matrices store a whole table of data so you can work on all of it at once.

The Core Idea

The order of a matrix is rows × columns, in that order.

A matrix with 2 rows and 3 columns has order 2×32 \times 3 (say "two by three"). A 3×23 \times 2 matrix is a different shape.

Case table 1: types of matrix you must recognise
TypeWhat it looks likeExampleOrder
Row matrixone row only(4−17)\begin{pmatrix} 4 & -1 & 7 \end{pmatrix}1×31 \times 3
Column matrixone column only(29)\begin{pmatrix} 2 \\ 9 \end{pmatrix}2×12 \times 1
Square matrixas many rows as columns(30−25)\begin{pmatrix} 3 & 0 \\ -2 & 5 \end{pmatrix}2×22 \times 2
Identity matrix I\mathbf{I}square, with 1 on the leading diagonal and 0 everywhere else(1001)\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}2×22 \times 2
Null (zero) matrix O\mathbf{O}every element is 0(000000)\begin{pmatrix} 0 & 0 & 0 \\ 0 & 0 & 0 \end{pmatrix}2×32 \times 3
SGSchoolKaki Tip

Rows run across like rows of seats in a cinema; columns run down like the columns of a building. Rows always come first: "rows × columns".

Think About It
Is a 2×32 \times 3 matrix the same as a 3×23 \times 2 matrix that holds the same six numbers?
Show the worked answerHide the worked answer
Colour keyround, estimate or compare
The first is 2 rows by 3 columns; the second is 3 rows by 2 columns.
compare the orders first
Equal matrices need the same order and the same element in every position.
the rule for equal matrices
Final answerNo. The orders differ, so the matrices are different even though they hold the same numbers.
SGSchoolKaki Tip

Do not write the columns first. A matrix with 3 rows and 2 columns is 3×23 \times 2, not 2×32 \times 3.

Example 9.1

State the order

State the order of each matrix.

  • (i)A=(14−2035)\displaystyle A = {\small \begin{pmatrix} 1 & 4 & -2 \\ 0 & 3 & 5 \end{pmatrix}}
  • (ii)B=(7−12)\displaystyle B = \begin{pmatrix} 7 \\ -1 \\ 2 \end{pmatrix}
  • (iii)C=(40−38)\displaystyle C = {\small \begin{pmatrix} 4 & 0 & -3 & 8 \end{pmatrix}}
  • (iv)D=(251−6)\displaystyle D = \begin{pmatrix} 2 & 5 \\ 1 & -6 \end{pmatrix}
Show solutionHide solution
Colour keyexpand, rewrite, substitute or solve
(i)
Count the rows (they run across) and the columns (they run down).
rows first, then columns
A: 2 rows, 3 columns\displaystyle A: \ 2 \text{ rows}, \ 3 \text{ columns}
order=2×3\displaystyle \text{order} = 2 \times 3
write the order as rows × columns
(ii)
Count the rows (they run across) and the columns (they run down).
rows first, then columns
B: 3 rows, 1 column\displaystyle B: \ 3 \text{ rows}, \ 1 \text{ column}
order=3×1\displaystyle \text{order} = 3 \times 1
write the order as rows × columns
(iii)
Count the rows (they run across) and the columns (they run down).
rows first, then columns
C: 1 row, 4 columns\displaystyle C: \ 1 \text{ row}, \ 4 \text{ columns}
order=1×4\displaystyle \text{order} = 1 \times 4
write the order as rows × columns
(iv)
Count the rows (they run across) and the columns (they run down).
rows first, then columns
D: 2 rows, 2 columns\displaystyle D: \ 2 \text{ rows}, \ 2 \text{ columns}
order=2×2\displaystyle \text{order} = 2 \times 2
write the order as rows × columns
Final answer
(i)Order of AA is 2×32 \times 3.
(ii)Order of BB is 3×13 \times 1.
(iii)Order of CC is 1×41 \times 4.
(iv)Order of DD is 2×22 \times 2.
Example 9.2

Display data as a matrix

In a class test, Mei Ling scored 72 for Maths and 65 for Science; Raj scored 58 for Maths and 81 for Science; Hui Min scored 90 for Maths and 77 for Science. Write the marks as a matrix M\mathbf{M} with one row for each student (in the order given) and one column for each subject (Maths first).

  • (i)Write down the matrix M\mathbf{M}.
  • (ii)State the order of M\mathbf{M}.
  • (iii)What does the number in row 2, column 2 stand for?
Show solutionHide solution
(i)
One row per student, so the matrix has as many rows as there are students.
decide what the rows and columns mean first
M=(726558819077)\displaystyle \mathbf{M} = \begin{pmatrix} 72 & 65 \\ 58 & 81 \\ 90 & 77 \end{pmatrix}
keep the order of the students and the order of the subjects
(ii)
3 rows, 2 columns\displaystyle 3 \text{ rows}, \ 2 \text{ columns}
order=3×2\displaystyle \text{order} = 3 \times 2
(iii)
Row 2 is Raj; column 2 is Science.
read the row label, then the column label
Final answer
(i)M=(726558819077)\mathbf{M} = \begin{pmatrix} 72 & 65 \\ 58 & 81 \\ 90 & 77 \end{pmatrix}
(ii)3×23 \times 2
(iii)Raj's mark for Science, which is 8181.
Example 9.3

Finding and locating an element

P=(5−28160−493)\displaystyle \mathbf{P} = {\small \begin{pmatrix} 5 & -2 & 8 \\ 1 & 6 & 0 \\ -4 & 9 & 3 \end{pmatrix}}

  • (i)Write down the element in row 2, column 3.
  • (ii)Write down the element in row 3, column 1.
  • (iii)In which row and column is the element 99?
Show solutionHide solution
(i)
Go down to row 2, then across to column 3.
row first, column second
element=0\displaystyle \text{element} = 0
(ii)
Go down to row 3, then across to column 1.
row first, column second
element=−4\displaystyle \text{element} = -4
(iii)
Look for 99: it is in row 3 and column 2.
Final answer
(i)00
(ii)−4-4
(iii)Row 3, column 2.
Example 9.4

Which type of matrix?

Say whether each matrix is a row matrix, a column matrix, a square matrix, an identity matrix or a null matrix. Some matrices are more than one type.

  • (i)A=(1001)\displaystyle A = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}
  • (ii)B=(000)\displaystyle B = {\small \begin{pmatrix} 0 & 0 & 0 \end{pmatrix}}
  • (iii)C=(520)\displaystyle C = \begin{pmatrix} 5 \\ 2 \\ 0 \end{pmatrix}
  • (iv)D=(2−134)\displaystyle D = \begin{pmatrix} 2 & -1 \\ 3 & 4 \end{pmatrix}
Show solutionHide solution
(i)
Check the order first, then look at the entries.
order=2×2\displaystyle \text{order} = 2 \times 2
Every entry on the leading diagonal (top left to bottom right) is 1 and every other entry is 0.
this is what makes it an identity matrix
(ii)
Check the order first, then look at the entries.
order=1×3\displaystyle \text{order} = 1 \times 3
Every entry is 0.
all zeros means a null (zero) matrix
(iii)
Check the order first, then look at the entries.
order=3×1\displaystyle \text{order} = 3 \times 1
(iv)
Check the order first, then look at the entries.
order=2×2\displaystyle \text{order} = 2 \times 2
Final answer
(i)AA is a square matrix, an identity matrix.
(ii)BB is a row matrix, a null matrix.
(iii)CC is a column matrix.
(iv)DD is a square matrix.
Example 9.5

Equal matrices: finding unknown entries

(2x+13y−35)=(9325)\displaystyle \begin{pmatrix} 2x + 1 & 3 \\ y - 3 & 5 \end{pmatrix} = \begin{pmatrix} 9 & 3 \\ 2 & 5 \end{pmatrix} Find the values of xx and yy.

Show solutionHide solution
Colour keyadd, subtract, multiply, divide or simplifyround, estimate or compare
(2x+13y−35)=(9325)\displaystyle \begin{pmatrix} 2x + 1 & 3 \\ y - 3 & 5 \end{pmatrix} = \begin{pmatrix} 9 & 3 \\ 2 & 5 \end{pmatrix}
equal matrices: same order, and every matching pair of entries is equal
Compare the matching entries one at a time.
compare entry by entry
2x+1=9\displaystyle 2x + 1 = 9
2x=9−1=8\displaystyle 2x = 9 - 1 = 8
move the number to the other side
x=4\displaystyle x = 4
divide by the coefficient
y−3=2\displaystyle y - 3 = 2
y=2+3=5\displaystyle y = 2 + 3 = 5
move the number to the other side
Final answer
x=4x = 4 and y=5y = 5
Supports N9.2 · N9.1

Interpreting the data in a matrix

A matrix is only useful if you know what its rows and columns mean. Every matrix in a problem comes with labels, such as "rows are the shops, columns are the products". Once you know the labels, each element is a fact you can read off.

The Core Idea

The element in row i, column j answers: what does row i say about column j?

Say the row label first, then the column label, then the number. For example: "stall B, chicken rice: 24 portions" is one element.

SGSchoolKaki Tip

Adding along a row gives a total for that row's label. Adding down a column gives a total for that column's label.

Think About It
A matrix of sales has the shops as rows and the products as columns. If you added down a column, what would the total tell you?
Show the worked answerHide the worked answer
A column belongs to one product, and each entry in it is one shop's sales of that product.
read the labels
Final answerThe total number of that one product sold by all the shops together.
Example 9.6

Interpreting a data matrix

A canteen records the drinks sold on Monday and on Tuesday in the matrix Q=(345241284763)\displaystyle \mathbf{Q} = {\small \begin{pmatrix} 34 & 52 & 41 \\ 28 & 47 & 63 \end{pmatrix}} The rows are the days (Monday first) and the columns are the drinks in the order tea, coffee, Milo.

  • (i)State the order of Q\mathbf{Q}.
  • (ii)What does the element in row 2, column 3 tell us?
  • (iii)Which drink sold the most on Monday?
  • (iv)How many drinks were sold altogether on Tuesday?
Show solutionHide solution
Colour keyadd, subtract, multiply, divide or simplify
(i)
2×3\displaystyle 2 \times 3
two days (rows) and three drinks (columns)
(ii)
Row 2 is Tuesday and column 3 is Milo.
Q23=63\displaystyle \mathbf{Q}_{23} = 63
(iii)
Compare the entries of row 1: 3434, 5252, 4141.
the largest entry in the row
largest entry=52\displaystyle \text{largest entry} = 52
(iv)
28+47+63=138\displaystyle 28 + 47 + 63 = 138
add along row 2
Final answer
(i)2×32 \times 3
(ii)On Tuesday, 6363 cups of Milo were sold.
(iii)coffee (5252 cups).
(iv)138138 drinks.
Example 9.7

Totals from rows and columns

Three food stalls recorded how many portions of fried rice, laksa and wanton noodles they sold in one lunch hour: S=(283519422133173926)\displaystyle \mathbf{S} = {\small \begin{pmatrix} 28 & 35 & 19 \\ 42 & 21 & 33 \\ 17 & 39 & 26 \end{pmatrix}} Rows are the stalls A, B, C in that order; columns are the items in the order given.

  • (i)How many portions did stall B sell altogether?
  • (ii)How many portions of wanton noodles were sold by the three stalls together?
  • (iii)Which stall sold the most portions, and how many?
Show solutionHide solution
Colour keyadd, subtract, multiply, divide or simplifyround, estimate or compare
(i)
42+21+33=96\displaystyle 42 + 21 + 33 = 96
add across the row of that stall
(ii)
19+33+26=78\displaystyle 19 + 33 + 26 = 78
add down the column of that item
(iii)
Row totals: A 8282, B 9696, C 8282.
compare the three row totals
Final answer
(i)9696 portions.
(ii)7878 portions.
(iii)Stall B, with 9696 portions.
Bottles of mineral water sold each dayBar chart of the number of bottles sold on each day; the matrix is read from the bar heights0204060Number soldMon35Tue28Wed42Thu31Fri50
Diagram for Example 9.8
Example 9.8

From a bar chart to a matrix

The bar chart shows the number of bottles of mineral water sold at a school kiosk on each day of a week.

  • (i)Write the sales as a column matrix N\mathbf{N}, one row per day in the order shown.
  • (ii)Say what the entry in row 3 of N\mathbf{N} means, and state the order of N\mathbf{N}.
  • (iii)Which day had the greatest sales, and what was the total for the week shown?
Show solutionHide solution
Colour keyadd, subtract, multiply, divide or simplify
(i)
Read each bar height and put the values in a column, in the same order as the days.
a column matrix because there is one value per day
N=(3528423150)\displaystyle \mathbf{N} = \begin{pmatrix} 35 \\ 28 \\ 42 \\ 31 \\ 50 \end{pmatrix}
(ii)
Row 3 is Wed: 42 bottles were sold on that day.
order=5×1\displaystyle \text{order} = 5 \times 1
(iii)
greatest=50\displaystyle \text{greatest} = 50
35+28+42+31+50=186\displaystyle 35 + 28 + 42 + 31 + 50 = 186
add all the entries
Final answer
(i)N=(3528423150)\mathbf{N} = \begin{pmatrix} 35 \\ 28 \\ 42 \\ 31 \\ 50 \end{pmatrix}
(ii)Row 3 is the 42 bottles sold on Wed; the order is 5×15 \times 1.
(iii)Fri (5050 bottles); total 186186 bottles.
Supports N9.3

Multiplying a matrix by a scalar

A scalar is an ordinary number. To multiply a matrix by a scalar kk, multiply every element by kk. The order of the matrix does not change.

The Core Idea

k × matrix: every element gets multiplied by k.

If k=2k = 2, each element is doubled. If k=−1k = -1, each element changes sign. If k=0k = 0, you get the null matrix of the same order.

SGSchoolKaki Tip

Write each element's multiplication first (for example 3×(−4)3 \times (-4)), then the answer. It stops sign mistakes.

SGSchoolKaki Tip

A scalar multiplies EVERY element, not just the first row or the first element.

Think About It
What happens to a matrix when you multiply it by 00?
Show the worked answerHide the worked answer
Each element is multiplied by 0, and anything times 0 is 0.
apply the rule to every element
Final answerEvery element becomes zero, so you get the null matrix of the same order.
Example 9.9

Multiplying by a positive scalar

A=(2−104)\displaystyle \mathbf{A} = \begin{pmatrix} 2 & -1 \\ 0 & 4 \end{pmatrix} Find 3A3\mathbf{A}.

Show solutionHide solution
Colour keyadd, subtract, multiply, divide or simplify
Multiply every element of A\mathbf{A} by 3.
a scalar multiplies EVERY element
3A=(3×23×(−1)3×03×4)\displaystyle 3\mathbf{A} = {\scriptsize \begin{pmatrix} 3 \times 2 & 3 \times (-1) \\ 3 \times 0 & 3 \times 4 \end{pmatrix}}
3A=(6−3012)\displaystyle 3\mathbf{A} = \begin{pmatrix} 6 & -3 \\ 0 & 12 \end{pmatrix}
work out each product
Final answer
3A=(6−3012)3\mathbf{A} = \begin{pmatrix} 6 & -3 \\ 0 & 12 \end{pmatrix}
Example 9.10

Negative and fractional scalars

B=(3−450)C=(3−452)\displaystyle \begin{gathered} \mathbf{B} = \begin{pmatrix} 3 & -4 \\ 5 & 0 \end{pmatrix} \\ \mathbf{C} = \begin{pmatrix} 3 & -4 \\ 5 & 2 \end{pmatrix} \end{gathered} Find (i) (−2)B(-2)\mathbf{B} and (ii) 12C\frac{1}{2}\mathbf{C}.

  • (i)(−2)B(-2)\mathbf{B}
  • (ii)12C\frac{1}{2}\mathbf{C} (fractions are fine)
Show solutionHide solution
Colour keyexpand, rewrite, substitute or solve
(i)
A negative scalar changes the sign of every element.
negative × negative = positive
(−2)B=((−2)×3(−2)×(−4)(−2)×5(−2)×0)\displaystyle (-2)\mathbf{B} = {\scriptsize \begin{pmatrix} (-2) \times 3 & (-2) \times (-4) \\ (-2) \times 5 & (-2) \times 0 \end{pmatrix}}
(−2)B=(−68−100)\displaystyle (-2)\mathbf{B} = \begin{pmatrix} -6 & 8 \\ -10 & 0 \end{pmatrix}
(ii)
A fraction scalar multiplies each element in the same way.
write the answer as fractions
12C=(12×312×(−4)12×512×2)\displaystyle \frac{1}{2}\mathbf{C} = {\scriptsize \begin{pmatrix} \frac{1}{2} \times 3 & \frac{1}{2} \times (-4) \\ \frac{1}{2} \times 5 & \frac{1}{2} \times 2 \end{pmatrix}}
12C=(32−2521)\displaystyle \frac{1}{2}\mathbf{C} = \begin{pmatrix} \frac{3}{2} & -2 \\ \frac{5}{2} & 1 \end{pmatrix}
Final answer
(i)(−68−100)\begin{pmatrix} -6 & 8 \\ -10 & 0 \end{pmatrix}
(ii)(32−2521)\begin{pmatrix} \frac{3}{2} & -2 \\ \frac{5}{2} & 1 \end{pmatrix}
Example 9.11

Finding the scalar

A=(2−143)B=(6−312q)\displaystyle \begin{gathered} \mathbf{A} = \begin{pmatrix} 2 & -1 \\ 4 & 3 \end{pmatrix} \\ \mathbf{B} = \begin{pmatrix} 6 & -3 \\ 12 & q \end{pmatrix} \end{gathered} Given that B=kA\mathbf{B} = k\mathbf{A}, find kk and the value of qq.

Show solutionHide solution
Compare the first elements: 2k=62k = 6.
pick an entry where both matrices are known
k=6÷2=3\displaystyle k = 6 \div 2 = 3
q=k×3=3×3=9\displaystyle q = k \times 3 = 3 \times 3 = 9
use the same k for the unknown entry
Final answer
k=3k = 3, q=9q = 9
Example 9.12

A scalar in a real situation: a sale

A shop lists the prices (in dollars) of a notebook, a pen set and a bag as the matrix P=(4.503.206.80)\displaystyle \mathbf{P} = \begin{pmatrix} 4.50 & 3.20 & 6.80 \end{pmatrix} During a sale every price is reduced by 20%20\%. (This is invented shop data.) Write the sale prices as kPk\mathbf{P}, state kk, and work out the new matrix. Give each price to the nearest cent.

Show solutionHide solution
Colour keyadd, subtract, multiply, divide or simplify
A reduction of 20%20\% leaves 80%80\% of the price.
100% minus the discount
k=80÷100=0.8\displaystyle k = 80 \div 100 = 0.8
kP=0.8×(4.503.206.80)=(3.602.565.44)\displaystyle k\mathbf{P} = 0.8 \times \begin{pmatrix} 4.50 & 3.20 & 6.80 \end{pmatrix} = \begin{pmatrix} 3.60 & 2.56 & 5.44 \end{pmatrix}
multiply every price by k
Final answer
k=0.8k = 0.8; sale prices (in dollars) =(3.602.565.44)= \begin{pmatrix} 3.60 & 2.56 & 5.44 \end{pmatrix}
Locked · Chapter 9

You've read the free 32%. Unlock the rest of Chapter 9.

Still to read in this chapter:

  • Sum and difference
  • Product of matrices
  • Matrix problems
  • Formula panel
  • Exercise

$9 one-time · all 19 chapters · no subscription

Worked examples, formulas and exam checks.
The whole E-Math syllabus.

Premium members get all 19 chapters included.

Notes version 1.0 · Last updated 3 Nov 2026 · Chapter 9 of 19