The columns of the matrix are the images of the unit vectors(1,0) and (0,1). A rotation by θ sends (1,0) to (cosθ,sinθ) and (0,1) to (−sinθ,cosθ), which are the columns.
Rotations preserve lengths, angles and area, so the area scale factor is 1. The inverse of a rotation is the rotation through −θ, and two rotations combine by adding their angles, a simple case of a composite transformation.
In three dimensions the same idea gives the rotation about the z-axis. The matrix also matches multiplication by eiθ in Euler’s formula for complex numbers.
What is it used for?
The rotation matrix turns points about the origin through a given angle without changing lengths or areas.
Rotating shapes in computer graphics and games.
Finding the new coordinates of a point after a turn.
Understanding the link with complex numbers, where multiplying by eiθ is a rotation.
How to use rotation matrix
Substitute the angle into the matrix.
Multiply the matrix by the column vector of the point.
For a clockwise rotation use −θ.
Check that the length of the vector is unchanged.
Graph
The point (1, 0) goes to (0, 1) and (0, 1) goes to (−1, 0); the columns of the matrix are these images.
Worked examples
These examples are worked by hand, step by step, so you can compare your own working.
Example 1: a quarter turn
Rotate (1,0) through 90∘ anticlockwise.
Worked example
Answer
(0,1)
Matrix at 90°
(01−10)
Multiply
(01)
Example 2: rotating (3, 4)
Rotate (3,4) through 90∘ anticlockwise.
Worked example
Answer
(−4,3)
Apply the matrix
(0(3)−1(4)1(3)+0(4))
Example 3: a 45° rotation
Rotate (1,1) through 45∘ anticlockwise.
Worked example
Answer
(0,2)
cos 45° = sin 45° = 1/√2
First component
21(1)−21(1)=0
Second component
21(1)+21(1)=2
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
θ = 90°
R = (0 −1; 1 0)
cos 90° = 0.
θ = 60°, (1, 0)
image x = cos θ
0.5.
same
image y = sin θ
0.8660.
rotate (2, 1) by 90°
x′ = −y
−1.
Word problems
R_θ = (cos θ −sin θ; sin θ cos θ) rotates anticlockwise about the origin through θ. det R = 1 and R⁻¹ = R_{−θ}.
cos 90°
Entry (1,1).
0
Check: ✓0
Image of (1, 0) by 60°
x′ = cos 60°.
0.5
Check: ✓0.5
y′ Higher
sin 60°.
0.8660
Check: ✓0.866
(2, 1) by 90° Higher
x′ = 2·0 − 1·1.
−1
Check: y′ = 2 ✓-1
Common mistakes
Clockwise assumed
clockwise ✗
anticlockwise is positive ✓
Convention.
Sign of −sin θ
top-right +sin ✗
top-right −sin θ ✓
Matrix layout.
det R = −1
−1 ✗
+1 ✓
Rotation preserves orientation.
Rotating about a point other than the origin
origin formula ✗
translate first ✓
Origin only.
Exam tips
R_θ = (cos −sin; sin cos).
det = 1.
Inverse = R_{−θ} = Rᵀ.
Anticlockwise positive.
Columns are the images of i and j.
Practice questions
Try each one on paper, then open the answer. Use the solver above to see the full working.
1. x′ for (3, 0) rotated 90° ACW Foundation
0
2. y′ for (3, 0) rotated 90° ACW Foundation
3
3. x′ for (1, 1) rotated 45°, 4 dp Foundation
0
4. y′ for (1, 1) rotated 45°, 4 dp Higher
1.4142
5. x′ for (1, 0) rotated 30°, 4 dp Higher
0.866
6. det of R_θ for θ = 1 rad Higher
1
Practice generator
Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.