Skip to main content

A-level maths · ages 16 to 18 · ~20 min

Matrices and Rotations

Use matrices to rotate and move points, as a spacecraft does to keep track of which way it faces.

Try it

Matrices: rotating a vector in 2D

xyR(30°) =0.87-0.500.500.87θ = 30°v (2, 0)v′ (1.73, 1.00)
Original vector, v
(2, 0)
length |v| = 2.00
cos θ and sin θ
0.87, 0.50
for θ = 30°
New x′
1.73
x cos θ − y sin θ
New y′
1.00
x sin θ + y cos θ

v′ = R(30°) v: x′ = 2 × cos 30° − 0 × sin 30° = 1.73, and y′ = 2 × sin 30° + 0 × cos 30° = 1.00. Rotating changes the direction while keeping the length at 2.00.

Positive angles rotate anticlockwise about the origin (0, 0). Matrix entries and coordinates are rounded to 2 decimal places.

Mission 3: NavigateStep 4 of 6

Why this mission needs it: To point its antenna at Earth or its camera at a target, the flight computer multiplies coordinates by rotation matrices to turn the spacecraft in space.

The idea

v⃗′=R(θ)⋅v⃗\vec{v}' = R(\theta) \cdot \vec{v}
v⃗′\vec{v}'
Rotated vector, a column vector
Where the vector ends up after the rotation.
R(θ)R(\theta)
Rotation matrix, a 2 × 2 matrix
The matrix that turns every vector by the angle θ\theta anticlockwise about the origin. Its entries are sines and cosines of θ\theta.
v⃗\vec{v}
Original vector, a column vector
The position vector of the point before the rotation.

Grids of numbers

A matrix is a grid of numbers set out in rows and columns. You add two matrices of the same size by adding the numbers in matching positions, and multiply a matrix by a number by multiplying every entry.

Key point: A matrix with 2 rows and 2 columns is called a 2 × 2 matrix.

Multiplying matrices

To multiply two matrices, take a row of the first and a column of the second, multiply them in pairs and add. That gives one entry of the answer. Repeat for every row and column.

Key point: Swapping the order of two matrices usually changes the product.

Matrices move points

Multiply a 2 × 2 matrix by a point's position vector (the vector from the origin to the point) and you get a new point. Doing this to every point moves the whole plane. The rotation matrix R(θ)R(\theta) turns every point through the angle θ\theta anticlockwise about the origin. The first column of a matrix shows where (10)\begin{pmatrix} 1 \\ 0 \end{pmatrix} ends up and the second column shows where (01)\begin{pmatrix} 0 \\ 1 \end{pmatrix} ends up, so you can read off what a matrix does.

Key point: A rotation turns vectors without changing their length.

One transformation after another

To do one transformation and then another, multiply their matrices. The matrix written on the right acts first, because it is the one next to the vector.

Key point: Two transformations can be combined into a single matrix.

Where you’ll see this: A satellite's control system keeps track of which way the satellite is facing, a rotation in three dimensions, so that it can keep its solar panels turned towards the Sun and its antenna towards Earth.

Worked example

Rotate the vector v⃗=(20)\vec{v} = \begin{pmatrix} 2 \\ 0 \end{pmatrix} by 30∘30^\circ anticlockwise about the origin.

  1. 1Write down the rotation matrix: R(30∘)=(cos⁡30∘−sin⁡30∘sin⁡30∘cos⁡30∘)=(0.866−0.50.50.866)R(30^\circ) = \begin{pmatrix} \cos 30^\circ & -\sin 30^\circ \\ \sin 30^\circ & \cos 30^\circ \end{pmatrix} = \begin{pmatrix} 0.866 & -0.5 \\ 0.5 & 0.866 \end{pmatrix}.
  2. 2Top row times the vector: 0.866×2+(−0.5)×0=1.7320.866 \times 2 + (-0.5) \times 0 = 1.732.
  3. 3Bottom row times the vector: 0.5×2+0.866×0=10.5 \times 2 + 0.866 \times 0 = 1.
  4. 4Check the length: 1.7322+12=2\sqrt{1.732^2 + 1^2} = 2, the same as before. A rotation does not stretch.

Answerv⃗′≈(1.731)\vec{v}' \approx \begin{pmatrix} 1.73 \\ 1 \end{pmatrix}

Practice

Practise with the step-by-step quiz in the Try it panel. Each question is answered one step at a time, with fresh numbers every time, and the questions you miss come back for review.

Notes

Matrices

A matrix is a rectangular grid of numbers. A matrix with 2 rows and 3 columns is a 2×32 \times 3 matrix.

Adding, subtracting and multiplying by a number

Matrices of the same size are added or subtracted by combining the numbers in matching positions:

(2103)+(1−142)=(3045)\begin{pmatrix} 2 & 1 \\ 0 & 3 \end{pmatrix} + \begin{pmatrix} 1 & -1 \\ 4 & 2 \end{pmatrix} = \begin{pmatrix} 3 & 0 \\ 4 & 5 \end{pmatrix}

To multiply by a number (a scalar), multiply every entry: 3(102−1)=(306−3)3\begin{pmatrix} 1 & 0 \\ 2 & -1 \end{pmatrix} = \begin{pmatrix} 3 & 0 \\ 6 & -3 \end{pmatrix}.

Multiplying matrices

Two matrices can be multiplied when the first has as many columns as the second has rows: they are conformable. Each entry of the answer is a row of the first times a column of the second, multiplied in pairs and added:

(abcd)(efgh)=(ae+bgaf+bhce+dgcf+dh)\begin{pmatrix} a & b \\ c & d \end{pmatrix}\begin{pmatrix} e & f \\ g & h \end{pmatrix} = \begin{pmatrix} ae + bg & af + bh \\ ce + dg & cf + dh \end{pmatrix}

Order matters: in general AB\mathbf{AB} is not the same as BA\mathbf{BA}.

The identity matrix I=(1001)\mathbf{I} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} leaves anything it multiplies unchanged, like multiplying by 1.

Matrices as transformations

A 2×22 \times 2 matrix moves every point of the plane: multiply the matrix by the point's position vector. Some to know:

TransformationMatrix
Rotation by θ\theta anticlockwise about the origin(cos⁡θ−sin⁡θsin⁡θcos⁡θ)\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}
Reflection in the x-axis(100−1)\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}
Reflection in y=xy = x(0110)\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}
Enlargement, scale factor kk, centre the origin(k00k)\begin{pmatrix} k & 0 \\ 0 & k \end{pmatrix}

A quick way to find a matrix: its first column is where (10)\begin{pmatrix} 1 \\ 0 \end{pmatrix} goes, and its second column is where (01)\begin{pmatrix} 0 \\ 1 \end{pmatrix} goes.

One transformation after another

To do M\mathbf{M} first and then R\mathbf{R}, multiply RM\mathbf{RM}: the first transformation is on the right, next to the vector it acts on. Rotating 90° anticlockwise and then reflecting in the x-axis gives

(100−1)(0−110)=(0−1−10)\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} 0 & -1 \\ -1 & 0 \end{pmatrix}

which is a reflection in the line y=−xy = -x. Do the same two steps the other way round and you get a different matrix.

Turning a spacecraft

A spacecraft can keep track of which way it faces with a rotation matrix (many use a closely related tool called a quaternion). A star tracker, a camera that recognises patterns of stars, measures the directions of known stars along the spacecraft's own x, y and z directions. A rotation matrix converts those directions into fixed ones. Rotations do not change lengths or angles, so the angles between the stars come out the same either way.

Next on the journey

A rotation describes where a spacecraft points at one moment. But its position and speed change all the time. How do you find how fast something is changing at a single instant? That is the next lesson, on calculus.

Sources

The topics in these notes follow the Department for Education document below.

Where this fits in the curriculum(A-level further mathematics · 2 DfE statements)Show ▾

A-level further mathematics in the curriculum for England. The Department for Education says pupils should be taught to:

  • A-level further mathematics: Matrices

    “Add, subtract and multiply conformable matrices; multiply a matrix by a scalar”
  • A-level further mathematics: Matrices

    “Use matrices to represent linear transformations in 2-D; successive transformations”

Matrices are in further mathematics, not A-level mathematics.

Quoted from GCE AS and A level subject content for further mathematics (Department for Education, gov.uk), checked on 12 October 2026. This is the content every exam board has to cover. It is not one board’s specification, so use your own for exactly what is examined.

Tick it off once the practice questions make sense.

Next on this mission

Free to use, not free to run: if this lesson helped you, your child or your class, chip in towards hosting and new lessons, or help review a mission.

Chip in on Ko-fi

This lesson was written with AI assistance. Check formulas and figures against your textbook or exam board’s specification before relying on them in assessed work.

Spotted a mistake? Report a problem

Please do not include your name, email or anything else about yourself. We only need to know what is wrong. We use reports only to put mistakes right, and delete them after 30 days. Privacy