In O-Level E-Math, matrices are used to organise table data such as prices, quantities and hours worked, so that many calculations can be done at once. The topic is almost always examined as a multi-part real-world question about costs or quantities, so setting up and reading a matrix correctly is where the first marks are won.
These notes cover how to state the order of a matrix, read and interpret its elements, and add, subtract and multiply matrices. They also cover applying percentage changes and matching labels in cost and quantity problems. Zero matrices, identity matrices, determinants and inverses are not in the O-Level E-Math syllabus and are not covered.
What these notes cover
- •What is a matrix: rows, columns and elements
- •Order of a matrix and element notation aᵢⱼ
- •Row, column and square matrices
- •Equal matrices and finding unknowns
- •Displaying and reading data in a matrix
- •Adding and subtracting matrices
- •Multiplying a matrix by a scalar
- •Percentage changes as a scalar
- •Finding a change by subtraction
- •Multiplying two matrices: the compatibility rule and row into column
- •Matching labels in context
- •Worked examples, common mistakes and exam technique
Key definitions
- Matrix
- A rectangular array of numbers arranged in rows and columns, enclosed in brackets. Matrices are named with bold capital letters. When writing by hand, underline the letter instead.
- Element
- Each number in a matrix. The element in row i and column j of A is written aᵢⱼ. The first subscript is always the row.
- Order
- The size of a matrix. A matrix with m rows and n columns has order m × n, read “m by n”. Rows always come first.
- Row, column and square matrices
- A row matrix has exactly one row (1 × n). A column matrix has exactly one column (m × 1). A square matrix has the same number of rows as columns (n × n).
- Equal matrices
- Two matrices are equal only when they have the same order and every pair of corresponding elements (elements in the same position) is equal.
Key formulas
Order of a matrix
order = m × n
m is the number of rows and n is the number of columns. Read it as “m by n”. The × is never multiplied out, so a 2 × 3 matrix is not “of order 6”.
Addition and subtraction
Matrices are written row by row, with ; between rows. This only works when both matrices have the same order, and the answer keeps that order. A + B = B + A, but A − B ≠ B − A in general.
Scalar multiplication
The scalar k multiplies every element. This works for a matrix of any order, and the answer has the same order.
Percentage change as a scalar
Use r > 0 for an increase and r < 0 for a decrease. For example, 9% GST gives 1.09P and a 20% discount gives 0.8P. This applies only when every element changes by the same percentage.
Order of a product
(m × n)(n × p) → m × p
The product exists only if the inner numbers match, meaning the number of columns of the first matrix equals the number of rows of the second. The outer numbers give the order of the answer.
2 × 2 product
The element in row i, column j comes from row i of the first matrix multiplied into column j of the second. Multiply the pairs, then add. Learn the method, not the pattern of letters.
Worked example
A school bookshop sells two stationery bundles. Bundle A has 4 pens, 2 notebooks and 1 file. Bundle B has 6 pens, 3 notebooks and 2 files. A pen costs $1.20, a notebook costs $2.50 and a file costs $0.80. In one week the shop sells 30 of Bundle A and 20 of Bundle B. Use matrix multiplication to find the cost of each bundle and the shop’s total takings for the week.
- 1Write the quantities as Q = (4, 2, 1 ; 6, 3, 2), with rows Bundle A and Bundle B and columns pen, notebook and file, so Q is 2 × 3.
- 2Write the prices as the column matrix P = (1.20 ; 2.50 ; 0.80), with rows pen, notebook and file, so P is 3 × 1.
- 3Check orders and labels: QP is (2 × 3)(3 × 1) → 2 × 1, and the columns of Q (pen, notebook, file) match the rows of P, so QP gives the cost of each bundle.
- 4Multiply row into column: QP = (4(1.20) + 2(2.50) + 1(0.80) ; 6(1.20) + 3(2.50) + 2(0.80)) = (4.80 + 5.00 + 0.80 ; 7.20 + 7.50 + 1.60) = (10.60 ; 16.30).
- 5So one Bundle A costs $10.60 and one Bundle B costs $16.30.
- 6Put the sales in the 1 × 2 row matrix S = (30, 20), whose columns are Bundle A and Bundle B, so S(QP) is (1 × 2)(2 × 1) → 1 × 1.
- 7Calculate S(QP) = (30(10.60) + 20(16.30)) = (318 + 326) = (644), so the shop’s total takings for the week are $644.
Watch out: Do not reverse the order. PQ has orders (3 × 1)(2 × 3), and since 1 ≠ 2 it does not exist. The price label of P does not match the bundle labels of Q.
Common mistakes
Writing the order back to front or multiplying it out
Wrong: Calling (5, 0, −2 ; 1, 3, 7) a 3 × 2 matrix, or saying its order is 6.
Right: Count rows first, then columns. It has 2 rows and 3 columns, so its order is 2 × 3, read “2 by 3”. The × means “by” and is never multiplied out.
Sign slips when subtracting negatives
Wrong: In 2P − 3Q, writing the bottom-left element 4 − (−6) as 4 − 6 = −2.
Right: Put brackets round every negative element, then simplify: 4 − (−6) = 4 + 6 = 10.
Multiplying two matrices element by element
Wrong: For (1, 2 ; 3, 4)(2, 0 ; 1, 5), taking the top-left entry as 1 × 2 = 2.
Right: Multiply row into column. The top-left entry is 1 × 2 + 2 × 1 = 4, and the full product is (4, 10 ; 10, 20).
Questions students ask
How do you find the order of a matrix?
Count the rows first, then the columns. A matrix with m rows and n columns has order m × n, read “m by n”. The × is never multiplied out, so a matrix with 2 rows and 3 columns has order 2 × 3, not 6.
When can two matrices be multiplied?
The product AB exists only if the number of columns of A equals the number of rows of B. Write the orders side by side. If the inner pair matches, the outer pair gives the order of the answer, so (2 × 3)(3 × 1) → 2 × 1; if the inner pair does not match, the product does not exist.
Is AB the same as BA for matrices?
Not in general. Swapping the order can give a product with different elements, a product of a different order, or a product that does not exist at all. Treat “find PQ” and “find QP” as two different questions.
How do you add GST or a discount to a price matrix?
Multiply the price matrix by the scalar (1 + r ÷ 100): adding 9% GST gives 1.09P and a 20% discount gives 0.8P. Successive changes multiply, so a 20% discount followed by 9% GST gives 1.09 × 0.8P = 0.872P, not 0.89P. A single scalar only works when every element changes by the same percentage.
In the full PDF
- •Labelled matrix diagrams, including the price matrix for paint, detergent and alcohol and the row-into-column figure
- •Further worked examples: equal matrices with unknowns, combining operations, GST and a discount, bubble tea totals and changes, and café wage costs
- •A table showing which products exist and their orders, plus a table of percentage changes as scalars
- •Exam-style solutions marked with M1, A1 and B1 tags showing where examiners award marks
- •The remaining common mistakes and the full exam technique checklist
- •A summary of the five key takeaways for the topic