Rotation Matrix Explained with Worked Examples

The matrix that rotates points anticlockwise about the origin through angle is with rows and . Its determinant is 1.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Rotation matrix means

The columns of the matrix are the images of the unit vectors and . A rotation by sends to and to , 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 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.

How to use rotation matrix

  1. Substitute the angle into the matrix.
  2. Multiply the matrix by the column vector of the point.
  3. For a clockwise rotation use .
  4. Check that the length of the vector is unchanged.

Graph

Rotation of the unit square through 90° anticlockwise(1, 0)(0, 1)-2-1.5-1-0.500.511.52-2-1.5-1-0.500.511.52Rotation of the unit square through 90° anticlockwisexyGraph with x from -2 to 2 and y from -2 to 2. Shows unit square (5); after 90° rotation (5); point (1, 0) at (1, 0); point (0, 1) at (0, 1).

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 through anticlockwise.

Worked example
Answer
(0, 1)(0,\ 1)
  1. Matrix at 90°
  2. Multiply

Example 2: rotating (3, 4)

Rotate through anticlockwise.

Worked example
Answer
(−4, 3)(-4,\ 3)
  1. Apply the matrix

Example 3: a 45° rotation

Rotate through anticlockwise.

Worked example
Answer
(0, 2)(0,\ \sqrt2)
  1. cos 45° = sin 45° = 1/√2
  2. First component
  3. Second component

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).

  1. 0
  2. Check: ✓0

Image of (1, 0) by 60°

x′ = cos 60°.

  1. 0.5
  2. Check: ✓0.5

y′ Higher

sin 60°.

  1. 0.8660
  2. Check: ✓0.866

(2, 1) by 90° Higher

x′ = 2·0 − 1·1.

  1. −1
  2. 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

  1. R_θ = (cos −sin; sin cos).
  2. det = 1.
  3. Inverse = R_{−θ} = Rᵀ.
  4. Anticlockwise positive.
  5. 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.

Solve: …

Key terms

Rotation matrix
R_θ.
Anticlockwise
Positive direction.
Orthogonal matrix
RᵀR = I.
Determinant
1.
Image of i
First column.
Origin
Centre of rotation.

Frequently asked questions

What is the rotation matrix?

(cos θ −sin θ; sin θ cos θ).

Which direction?

Anticlockwise for positive θ.

What is its determinant?

1.

What is its inverse?

R_{−θ}, the transpose.

Which page covers reflections?

reflection matrix.

Which page covers 3D rotations?

3D rotation about the z-axis.

More in Vectors and matrices and the formula sheets.