impera Open Impera

A levels Further Mathematics · Core pure

Matrices and transformations

1Matrix basics

A matrix is a rectangular array of numbers. Its order is rows × columns: $\begin{pmatrix} 1 & 2 & 0 \\ 3 & -1 & 4 \end{pmatrix}$ is $2 \times 3$.

  • Add or subtract matrices of the same order, element by element.
  • Multiply by a scalar by multiplying every element.
  • Matrix multiplication $AB$ is possible when the number of columns of $A$ equals the number of rows of $B$. Each element is a row of $A$ times a column of $B$.
Worked example

Multiplying

  1. $\begin{pmatrix} 2 & 1 \\ 3 & 4 \end{pmatrix}\begin{pmatrix} 1 & 0 \\ -2 & 5 \end{pmatrix} = \begin{pmatrix} 2 - 2 & 0 + 5 \\ 3 - 8 & 0 + 20 \end{pmatrix} = \begin{pmatrix} 0 & 5 \\ -5 & 20 \end{pmatrix}$.

Matrix multiplication is not commutative: in general $AB \neq BA$. It is associative: $(AB)C = A(BC)$.

The identity matrix $I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$ satisfies $AI = IA = A$.

Check yourself

Can a 2×3 matrix be multiplied by a 3×4 matrix?

  • Yes, giving a 2×4 matrix

  • Yes, giving a 4×2 matrix

  • No

  • Yes, giving a 3×3 matrix

Show the answer

Yes, giving a 2×4 matrix

The inner numbers match.

2Determinants and inverses

The determinant of $A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}$ is $\det A = ad - bc$.

If $\det A \neq 0$, the inverse is

$$A^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}$$

If $\det A = 0$, $A$ is singular and has no inverse.

Worked example

An inverse

  1. $A = \begin{pmatrix} 2 & 1 \\ 3 & 4 \end{pmatrix}$: $\det A = 8 - 3 = 5$.
  2. $A^{-1} = \frac{1}{5}\begin{pmatrix} 4 & -1 \\ -3 & 2 \end{pmatrix}$.

Useful fact: $(AB)^{-1} = B^{-1}A^{-1}$ (note the reversed order).

For a $3 \times 3$ matrix, expand along the top row:

$$\det\begin{pmatrix} a & b & c \\ d & e & f \\ g & h & i \end{pmatrix} = a(ei - fh) - b(di - fg) + c(dh - eg)$$

Check yourself

What is the determinant of [[3, 2], [6, 4]]?

  • 24

  • −24

  • 12

  • 0

Show the answer

0

12 − 12, so the matrix is singular.

3Linear transformations

A $2 \times 2$ matrix represents a linear transformation of the plane. The origin is always fixed.

To find a matrix: the first column is the image of $\begin{pmatrix} 1 \\ 0 \end{pmatrix}$; the second column is the image of $\begin{pmatrix} 0 \\ 1 \end{pmatrix}$.

Standard matrices:

  • Rotation $\theta$ anticlockwise about $O$: $\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}$
  • Reflection in $y = x$: $\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$; in the $x$-axis: $\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}$
  • Enlargement scale factor $k$: $\begin{pmatrix} k & 0 \\ 0 & k \end{pmatrix}$
  • Stretch parallel to the $x$-axis, factor $k$: $\begin{pmatrix} k & 0 \\ 0 & 1 \end{pmatrix}$

The unit square (blue) maps to a parallelogram (red). The columns of M are the images of (1, 0) and (0, 1), and the area is multiplied by det M = 5.

Check yourself

Which matrix rotates points 90° anticlockwise about O?

  • [[0, 1], [−1, 0]]

  • [[0, −1], [1, 0]]

  • [[−1, 0], [0, −1]]

  • [[1, 0], [0, −1]]

Show the answer

[[0, −1], [1, 0]]

cos 90° = 0, sin 90° = 1.

4Combining transformations and area

The transformation "$A$ followed by $B$" has matrix $BA$: the first transformation is on the right.

The determinant is the area scale factor:

  • $|\det A|$ is how much areas are multiplied;
  • a negative determinant means the orientation is reversed (as in a reflection).
Worked example

Area

  1. $M = \begin{pmatrix} 3 & 1 \\ 1 & 2 \end{pmatrix}$, $\det M = 5$.
  2. A triangle of area 4 maps to a triangle of area 20.
Worked example

Combining

  1. Reflect in the $x$-axis ($P$), then rotate $90^\circ$ anticlockwise ($Q$).
  2. Combined: $QP = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix} = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$: a reflection in $y = x$.
Check yourself

Transformation A is followed by B. What is the single matrix?

  • A⁻¹B

  • A + B

  • AB

  • BA

Show the answer

BA

The first transformation goes on the right.

5Invariant points and lines

An invariant point maps to itself: $M\mathbf{x} = \mathbf{x}$.

An invariant line maps to itself (each point may move along the line). A line of invariant points is one where every point stays fixed.

Worked example

Invariant lines through O

  1. $M = \begin{pmatrix} 3 & 1 \\ 0 & 2 \end{pmatrix}$. Try the line $y = mx$: the point $(x, mx)$ maps to $(3x + mx, 2mx)$.
  2. For this to lie on $y = mx$: $2mx = m(3 + m)x$, so $m^2 + m = 0$.
  3. $m = 0$ or $m = -1$: the invariant lines are $y = 0$ and $y = -x$.

For a reflection, the mirror line is a line of invariant points. For a rotation (not $0^\circ$ or $360^\circ$), only the origin is invariant.

Check yourself

What is the line of invariant points for a reflection in y = x?

  • y = −x

  • The x-axis

  • y = x

  • There is none

Show the answer

y = x

Points on the mirror do not move.

6Matrices and simultaneous equations

Simultaneous equations can be written as $A\mathbf{x} = \mathbf{b}$, so $\mathbf{x} = A^{-1}\mathbf{b}$ if $A$ is non-singular.

Worked example

Solving

  1. $2x + y = 7$ and $3x + 4y = 18$: $A = \begin{pmatrix} 2 & 1 \\ 3 & 4 \end{pmatrix}$.
  2. $\mathbf{x} = \frac{1}{5}\begin{pmatrix} 4 & -1 \\ -3 & 2 \end{pmatrix}\begin{pmatrix} 7 \\ 18 \end{pmatrix} = \frac{1}{5}\begin{pmatrix} 10 \\ 15 \end{pmatrix} = \begin{pmatrix} 2 \\ 3 \end{pmatrix}$.

With three unknowns, each equation is a plane. If the $3 \times 3$ matrix is non-singular, the three planes meet at a single point. If it is singular, the planes may form a sheaf (meeting in a line), a prism (no common point), or be parallel.

Worked example

A 3×3 determinant

  1. $\det\begin{pmatrix} 1 & 2 & 0 \\ 3 & -1 & 1 \\ 2 & 0 & 4 \end{pmatrix} = 1(-4 - 0) - 2(12 - 2) + 0 = -24$.
  2. Non-zero, so the three planes meet at a unique point.
Check yourself

What does a singular 3×3 matrix tell you about three planes?

  • They do not meet at a single unique point

  • They are perpendicular

  • They are all the same plane

  • They meet at exactly one point

Show the answer

They do not meet at a single unique point

They form a sheaf, a prism, or are parallel.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera