Matrices & Matrix Transformations

🔢 Maths Years 10–11 Higher

Matrix notation, addition and multiplication, determinants and inverses of 2×2 matrices, and using matrices for reflections, rotations and enlargements.

Open this lesson, with practice and a printable worksheet →

A matrix is just a rectangular grid of numbers, and it turns out to be one of the most useful ideas in maths: the same grid can store a list of coordinates, describe a reflection, or run a whole 3D animation frame in a video game. In geometry, a matrix is a compact machine for moving points around a plane — and once you can multiply matrices, reflecting, rotating and enlarging a shape (which you already met in g8 Transformations) becomes a single calculation instead of a drawing exercise.

Why this matters: matrices are the language behind computer graphics, robotics, encryption and Google's search-ranking algorithm — every rotation in a video game or CGI film is a matrix multiplication happening thousands of times a second. On the Extended paper, matrix questions are short but unforgiving: one slip in the row-times-column method or a sign error in an inverse loses the whole mark.

1. What a matrix is: order, rows and columns

A matrix is written inside big brackets. Its order is given as rows × columns — always rows first. The matrix A = [[2, 1], [3, 4]] has 2 rows and 2 columns, so it has order 2×2. A single column of numbers like [[3], [5]] is a column vector, order 2×1 — exactly the kind of object used to store a point's (x, y) coordinates.

MatrixRowsColumnsOrder
[[2, 1], [3, 4]]222×2
[[5], [ -2]]212×1 (column vector)
[[1, 0, 3]]131×3 (row vector)

2. Adding, subtracting and scalar multiplying

3. Multiplying matrices: row × column

Matrix multiplication is not "multiply matching entries" — it is the row-times-column method. To find the entry in row i, column j of the answer, take row i of the first matrix, take column j of the second matrix, multiply the pairs together and add.

A2134×B1023=42×1+1×2=4
Row 1 of A, [2, 1], pairs with column 1 of B, [1, 2]: (2×1) + (1×2) = 4, the top-left entry of AB.
Worked example: multiplying two 2×2 matrices. Let A = [[2, 1], [3, 4]] and B = [[1, 0], [2, 3]]. Find AB.
Top-left (row 1 of A · column 1 of B): (2×1) + (1×2) = 2 + 2 = 4.
Top-right (row 1 of A · column 2 of B): (2×0) + (1×3) = 0 + 3 = 3.
Bottom-left (row 2 of A · column 1 of B): (3×1) + (4×2) = 3 + 8 = 11.
Bottom-right (row 2 of A · column 2 of B): (3×0) + (4×3) = 0 + 12 = 12.
So AB = [[4, 3], [11, 12]].

The same method multiplies a 2×2 matrix by a 2×1 column vector — this is exactly how a transformation is applied to a point. [[1, 0], [0, -1]] × [[3], [2]]: top = (1×3)+(0×2) = 3, bottom = (0×3)+(-1×2) = -2, giving the point (3, -2).

4. The determinant and the inverse of a 2×2 matrix

For M = [[a, b], [c, d]], the determinant is det(M) = ad − bc, a single number that measures how much the matrix scales area (and whether it flips orientation). If det(M) = 0, the matrix has no inverse — it is called singular, because it squashes every point onto a line, so the transformation cannot be undone.

When det(M) ≠ 0, the inverse M-1 undoes M's transformation. The rule: swap the entries on the leading diagonal (a and d), negate the entries on the other diagonal (b and c), then divide every entry by the determinant:

M-1 = (1/det M) × [[d, -b], [-c, a]]

Put these steps in the correct order for finding the inverse of a 2×2 matrix:

  1. Calculate the determinant, ad − bc
  2. Check the determinant is not zero (otherwise there is no inverse)
  3. Swap a and d, and negate b and c
  4. Multiply every entry of the new matrix by 1/det
Worked example: finding an inverse. Find the inverse of M = [[3, 2], [1, 4]].
det(M) = (3×4) − (2×1) = 12 − 2 = 10.
Swap the diagonal (3 and 4) and negate the other diagonal (2 and 1): [[4, -2], [-1, 3]].
M-1 = (1/10) × [[4, -2], [-1, 3]] = [[0.4, -0.2], [-0.1, 0.3]].

5. Matrices as transformations — the g8 toolkit, rebuilt

In g8 Transformations you reflected, rotated and enlarged shapes by counting squares on a grid. Every one of those moves can instead be written as a 2×2 matrix that you multiply by each vertex's column vector (x, y):

TransformationMatrix
Reflection in the x-axis[[1, 0], [0, -1]]
Reflection in the y-axis[[-1, 0], [0, 1]]
Reflection in the line y = x[[0, 1], [1, 0]]
Rotation 90° anticlockwise about the origin[[0, -1], [1, 0]]
Rotation 180° about the origin[[-1, 0], [0, -1]]
Enlargement, scale factor k, centre origin[[k, 0], [0, k]]

Multiply the transformation matrix by a point's column vector to move it: reflecting (3, 2) in the x-axis with [[1, 0], [0, -1]] gives [[1×3+0×2], [0×3+(-1)×2]] = (3, -2) — exactly the mirror image you'd get counting squares in g8, just reached by calculation instead of a diagram. Notice the enlargement matrix's determinant is k²: an enlargement scale factor k scales area by k², which is exactly what the determinant measures.

Common exam mistake: matrix multiplication order matters — AB is not the same as BA in general, so always multiply in the order the question gives (transformation matrix first, point second, as MP). You can only multiply two matrices when the number of columns in the first equals the number of rows in the second (a 2×2 times a 2×1 works; a 2×1 times a 2×2 does not) — check the orders line up before you start.

Exam technique: write each matrix's order in small brackets next to it before you multiply, e.g. A(2×2) × B(2×1). If the inner numbers (2 and 2) don't match, the multiplication is impossible — and if they do match, the outer numbers tell you the order of the answer (here, 2×1) before you've calculated a single entry.

Get the printable worksheet →
← Exponential, Cubic & Reciprocal Graphs → Trigonometric Functions & Graphs
← Sasta Basta home All subjects