Skip to content
Family Table Math
Auto

Matrix Transformations

Every time a video game turns a character or a design app flips an image, a computer is multiplying coordinates by a matrix. Writing a point as a column vector (xy)\begin{pmatrix} x \\ y \end{pmatrix}, a 2×22 \times 2 matrix can reflect it, stretch it, enlarge it or rotate it, and adding a vector translates it. This page builds the standard matrices, shows how to combine them (order matters!), and explains what the determinant tells you about area.

Points, images and the transformation rule

Section titled “Points, images and the transformation rule”

A transformation sends each point (the object) to a new point (its image). In this course, transformations have the form

(x′y′)=(abcd)(xy)+(ef)\begin{pmatrix} x' \\ y' \end{pmatrix} = \begin{pmatrix} a & b \\ c & d \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} + \begin{pmatrix} e \\ f \end{pmatrix}

The matrix does the reflecting, stretching, enlarging or rotating, and the vector (ef)\begin{pmatrix} e \\ f \end{pmatrix} does a translation. With no translation, the origin always maps to itself.

To transform a whole shape, put the coordinates of its vertices in the columns of one matrix and multiply once.

The columns of a matrix are the images of (10)\begin{pmatrix} 1 \\ 0 \end{pmatrix} and (01)\begin{pmatrix} 0 \\ 1 \end{pmatrix}:

(abcd)(10)=(ac),(abcd)(01)=(bd)\begin{pmatrix} a & b \\ c & d \end{pmatrix}\begin{pmatrix} 1 \\ 0 \end{pmatrix} = \begin{pmatrix} a \\ c \end{pmatrix}, \qquad \begin{pmatrix} a & b \\ c & d \end{pmatrix}\begin{pmatrix} 0 \\ 1 \end{pmatrix} = \begin{pmatrix} b \\ d \end{pmatrix}

So to find the matrix of a transformation, work out where it sends (1,0)(1, 0) and (0,1)(0, 1), and write those images as the columns. That’s where every matrix in the table below comes from.

TransformationMatrix
Reflection in the xx-axis(100−1)\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}
Reflection in the yy-axis(−1001)\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}
Reflection in y=xy = x(0110)\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}
Reflection in y=(tan⁡θ)xy = (\tan\theta)x(cos⁡2θsin⁡2θsin⁡2θ−cos⁡2θ)\begin{pmatrix} \cos 2\theta & \sin 2\theta \\ \sin 2\theta & -\cos 2\theta \end{pmatrix}
Horizontal stretch, scale factor kk(k001)\begin{pmatrix} k & 0 \\ 0 & 1 \end{pmatrix}
Vertical stretch, scale factor kk(100k)\begin{pmatrix} 1 & 0 \\ 0 & k \end{pmatrix}
Enlargement, scale factor kk, centre the origin(k00k)\begin{pmatrix} k & 0 \\ 0 & k \end{pmatrix}
Rotation by θ\theta anticlockwise about the origin(cos⁡θ−sin⁡θsin⁡θcos⁡θ)\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}
Rotation by θ\theta clockwise about the origin(cos⁡θsin⁡θ−sin⁡θcos⁡θ)\begin{pmatrix} \cos\theta & \sin\theta \\ -\sin\theta & \cos\theta \end{pmatrix}
Translation by (ef)\begin{pmatrix} e \\ f \end{pmatrix}add (ef)\begin{pmatrix} e \\ f \end{pmatrix}

In the reflection in y=(tan⁡θ)xy = (\tan\theta)x, θ\theta is the angle the mirror line makes with the positive xx-axis. With θ=45∘\theta = 45^\circ it gives the reflection in y=xy = x, and with θ=0∘\theta = 0^\circ the reflection in the xx-axis. Angles are usually in degrees here; just make sure your GDC is in the mode you mean.

A triangle reflected in y = x and rotated 90 degrees −4 −2 2 4 2 4 Reflection in y = x B(4, 1) B′(1, 4) y = x −4 −2 2 4 2 4 Rotation 90° anticlockwise B(4, 1) B′(−1, 4)
The triangle from Example 1 (blue) and its images (orange) under a reflection in y=xy = x and a rotation of 90∘90^\circ anticlockwise.

To do transformation AA first and then transformation BB, multiply x⃗\vec{x} by AA first, then by BB:

x⃗′=B(Ax⃗)=(BA)x⃗\vec{x}' = B(A\vec{x}) = (BA)\vec{x}

So the single matrix for ”AA then BB” is BABA: the first transformation goes on the right, next to the vector. Because matrix multiplication isn’t commutative, doing them in the other order usually gives a different result. Repeating the same transformation nn times uses AnA^n; applying a few transformations over and over like this is how some fractals are generated.

When a translation is involved, work step by step: apply each matrix or vector to the result of the step before.

Under the transformation with matrix AA, every area is multiplied by the same amount:

area of image=∣det⁡A∣×area of object\text{area of image} = |\det A| \times \text{area of object}
  • ∣det⁡A∣|\det A| is the area scale factor. Translations don’t change area at all.
  • If det⁡A>0\det A \gt 0, the image has the same orientation as the object (going round the vertices A, B, C anticlockwise stays anticlockwise).
  • If det⁡A<0\det A \lt 0, the orientation is reversed, as it is in a mirror. Every reflection has determinant −1-1.
  • Rotations have determinant cos⁡2θ+sin⁡2θ=1\cos^2\theta + \sin^2\theta = 1: they don’t change area or orientation.
  • If det⁡A=0\det A = 0, the whole plane is squashed onto a line (or a point), and the transformation can’t be undone.
The unit square and its image, a parallelogram of area 5 −1 1 2 3 4 −1 1 2 3 4 (2, 1) (3, 4) (1, 3) 1 area 5
The matrix with rows (2,1)(2, 1) and (1,3)(1, 3) has determinant 2⋅3−1⋅1=52 \cdot 3 - 1 \cdot 1 = 5, so it maps the unit square to a parallelogram of area 55.

Example 1: Reflecting and rotating a triangle

Section titled “Example 1: Reflecting and rotating a triangle”

Triangle TT has vertices A(1,1)A(1, 1), B(4,1)B(4, 1) and C(1,3)C(1, 3). Find the image of TT under:

  • (a) a reflection in the line y=xy = x
  • (b) a rotation of 90∘90^\circ anticlockwise about the origin

Solution. Put the vertices in the columns of one matrix.

(a)

(0110)(141113)=(113141)\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix} 1 & 4 & 1 \\ 1 & 1 & 3 \end{pmatrix} = \begin{pmatrix} 1 & 1 & 3 \\ 1 & 4 & 1 \end{pmatrix}

The image has vertices A′(1,1)A'(1, 1), B′(1,4)B'(1, 4), C′(3,1)C'(3, 1). Each point’s coordinates are swapped, as you’d expect for a reflection in y=xy = x. AA is on the mirror line, so it doesn’t move.

(b) With θ=90∘\theta = 90^\circ: cos⁡90∘=0\cos 90^\circ = 0 and sin⁡90∘=1\sin 90^\circ = 1, so the matrix is (0−110)\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}.

(0−110)(141113)=(−1−1−3141)\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix} 1 & 4 & 1 \\ 1 & 1 & 3 \end{pmatrix} = \begin{pmatrix} -1 & -1 & -3 \\ 1 & 4 & 1 \end{pmatrix}

The image has vertices A′(−1,1)A'(-1, 1), B′(−1,4)B'(-1, 4), C′(−3,1)C'(-3, 1). The figure above shows both images.

Find the matrix for a reflection in the line y=13xy = \dfrac{1}{\sqrt{3}}x, and find the images of P(2,0)P(2, 0) and Q(0,4)Q(0, 4).

Solution. The slope is tan⁡θ=13\tan\theta = \dfrac{1}{\sqrt{3}}, so θ=30∘\theta = 30^\circ and 2θ=60∘2\theta = 60^\circ:

(cos⁡60∘sin⁡60∘sin⁡60∘−cos⁡60∘)=(123232−12)\begin{pmatrix} \cos 60^\circ & \sin 60^\circ \\ \sin 60^\circ & -\cos 60^\circ \end{pmatrix} = \begin{pmatrix} \frac{1}{2} & \frac{\sqrt{3}}{2} \\ \frac{\sqrt{3}}{2} & -\frac{1}{2} \end{pmatrix}

Images:

(123232−12)(20)=(13),(123232−12)(04)=(23−2)\begin{pmatrix} \frac{1}{2} & \frac{\sqrt{3}}{2} \\ \frac{\sqrt{3}}{2} & -\frac{1}{2} \end{pmatrix}\begin{pmatrix} 2 \\ 0 \end{pmatrix} = \begin{pmatrix} 1 \\ \sqrt{3} \end{pmatrix}, \qquad \begin{pmatrix} \frac{1}{2} & \frac{\sqrt{3}}{2} \\ \frac{\sqrt{3}}{2} & -\frac{1}{2} \end{pmatrix}\begin{pmatrix} 0 \\ 4 \end{pmatrix} = \begin{pmatrix} 2\sqrt{3} \\ -2 \end{pmatrix}

So P′(1,3)≈(1,1.73)P'(1, \sqrt{3}) \approx (1, 1.73) and Q′(23,−2)≈(3.46,−2)Q'(2\sqrt{3}, -2) \approx (3.46, -2).

Check: a reflection keeps distances from the origin. ∣OP′∣=1+3=2=∣OP∣|OP'| = \sqrt{1 + 3} = 2 = |OP| ✓ and ∣OQ′∣=12+4=4=∣OQ∣|OQ'| = \sqrt{12 + 4} = 4 = |OQ| ✓.

Transformation XX is a reflection in the xx-axis and RR is a rotation of 90∘90^\circ anticlockwise about the origin.

  • (a) Find the single matrix for ”XX followed by RR”, and describe it.
  • (b) Find the single matrix for ”RR followed by XX”, and describe it.

Solution. X=(100−1)X = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix} and R=(0−110)R = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}.

(a) XX first, so it goes on the right:

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

This is a reflection in the line y=xy = x.

(b) RR first:

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

This sends (1,0)(1, 0) to (0,−1)(0, -1) and (0,1)(0, 1) to (−1,0)(-1, 0): a reflection in the line y=−xy = -x.

Same two transformations, different order, different result. (Both have determinant −1-1: a reflection combined with a rotation is a reflection.)

Triangle TT with vertices (1,1)(1, 1), (4,1)(4, 1) and (1,3)(1, 3) is transformed by

(x′y′)=(3112)(xy)+(1−2)\begin{pmatrix} x' \\ y' \end{pmatrix} = \begin{pmatrix} 3 & 1 \\ 1 & 2 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} + \begin{pmatrix} 1 \\ -2 \end{pmatrix}
  • (a) Find the vertices of the image.
  • (b) Find the area of the image, and say whether the orientation is preserved.

Solution.

(a)

(3112)(141113)+(111−2−2−2)=(4136367)+(111−2−2−2)=(5147145)\begin{pmatrix} 3 & 1 \\ 1 & 2 \end{pmatrix}\begin{pmatrix} 1 & 4 & 1 \\ 1 & 1 & 3 \end{pmatrix} + \begin{pmatrix} 1 & 1 & 1 \\ -2 & -2 & -2 \end{pmatrix} = \begin{pmatrix} 4 & 13 & 6 \\ 3 & 6 & 7 \end{pmatrix} + \begin{pmatrix} 1 & 1 & 1 \\ -2 & -2 & -2 \end{pmatrix} = \begin{pmatrix} 5 & 14 & 7 \\ 1 & 4 & 5 \end{pmatrix}

The image has vertices (5,1)(5, 1), (14,4)(14, 4) and (7,5)(7, 5).

(b) TT is a right triangle with legs 33 and 22, so its area is 12(3)(2)=3\dfrac{1}{2}(3)(2) = 3. The determinant is 3(2)−1(1)=53(2) - 1(1) = 5, and the translation doesn’t change area, so

area of image=∣5∣×3=15\text{area of image} = |5| \times 3 = 15

Since det⁡=5>0\det = 5 \gt 0, the orientation is preserved.

Multiplying in the wrong order for a composition. ”AA then BB” is BABA, not ABAB. The first transformation must sit next to the vector, on the right.

Mixing up the clockwise and anticlockwise rotation matrices. The standard rotation matrix with −sin⁡θ-\sin\theta in the top right turns points anticlockwise. Check with (1,0)(1, 0): rotating it 90∘90^\circ anticlockwise should give (0,1)(0, 1).

Using the line’s angle instead of double the angle. The reflection in y=(tan⁡θ)xy = (\tan\theta)x uses 2θ2\theta in its matrix. For y=xy = x, θ=45∘\theta = 45^\circ and 2θ=90∘2\theta = 90^\circ, which correctly gives (0110)\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}.

Forgetting the absolute value for area. A reflection has det⁡=−1\det = -1, but areas can’t be negative. Area scale factor =∣det⁡A∣= |\det A|; the sign only tells you about orientation.

Confusing a stretch with an enlargement. A stretch scales only one direction ((k001)\begin{pmatrix} k & 0 \\ 0 & 1 \end{pmatrix} multiplies areas by kk). An enlargement scales both ((k00k)\begin{pmatrix} k & 0 \\ 0 & k \end{pmatrix} multiplies areas by k2k^2).

Trying to translate with a 2 × 2 matrix. No 2×22 \times 2 matrix can move the origin, so a translation must be added as a vector.

1. (Warm-up) Find the image of the point (3,−2)(3, -2) under:

  • (a) a reflection in the yy-axis
  • (b) a rotation of 180∘180^\circ about the origin
  • (c) an enlargement with scale factor 22, centre the origin
Solution

(a) (−1001)(3−2)=(−3−2)\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}\begin{pmatrix} 3 \\ -2 \end{pmatrix} = \begin{pmatrix} -3 \\ -2 \end{pmatrix}

(b) cos⁡180∘=−1\cos 180^\circ = -1, sin⁡180∘=0\sin 180^\circ = 0: (−100−1)(3−2)=(−32)\begin{pmatrix} -1 & 0 \\ 0 & -1 \end{pmatrix}\begin{pmatrix} 3 \\ -2 \end{pmatrix} = \begin{pmatrix} -3 \\ 2 \end{pmatrix}

(c) (2002)(3−2)=(6−4)\begin{pmatrix} 2 & 0 \\ 0 & 2 \end{pmatrix}\begin{pmatrix} 3 \\ -2 \end{pmatrix} = \begin{pmatrix} 6 \\ -4 \end{pmatrix}

2. (Warm-up) Write down the matrix for each transformation.

  • (a) A vertical stretch with scale factor 33
  • (b) A rotation of 90∘90^\circ clockwise about the origin
  • (c) A reflection in the line y=−xy = -x
Solution

(a) (1003)\begin{pmatrix} 1 & 0 \\ 0 & 3 \end{pmatrix}

(b) cos⁡90∘=0\cos 90^\circ = 0, sin⁡90∘=1\sin 90^\circ = 1: (01−10)\begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}. Check: (1,0)→(0,−1)(1, 0) \to (0, -1), a quarter turn clockwise ✓.

(c) The line y=−xy = -x makes an angle θ=−45∘\theta = -45^\circ (or 135∘135^\circ) with the xx-axis, so 2θ=−90∘2\theta = -90^\circ: (cos⁡(−90∘)sin⁡(−90∘)sin⁡(−90∘)−cos⁡(−90∘))=(0−1−10)\begin{pmatrix} \cos(-90^\circ) & \sin(-90^\circ) \\ \sin(-90^\circ) & -\cos(-90^\circ) \end{pmatrix} = \begin{pmatrix} 0 & -1 \\ -1 & 0 \end{pmatrix}. Check: (1,0)→(0,−1)(1, 0) \to (0, -1) ✓.

3. (Warm-up) A shape with area 66 cm² is transformed by the matrix (3−124)\begin{pmatrix} 3 & -1 \\ 2 & 4 \end{pmatrix}. Find the area of the image.

Solution

det⁡=3(4)−(−1)(2)=12+2=14\det = 3(4) - (-1)(2) = 12 + 2 = 14. Area of image =14×6=84= 14 \times 6 = 84 cm².

4. (Core) Describe fully the transformation given by each matrix.

  • (a) (0.6−0.80.80.6)\begin{pmatrix} 0.6 & -0.8 \\ 0.8 & 0.6 \end{pmatrix}
  • (b) (1000.5)\begin{pmatrix} 1 & 0 \\ 0 & 0.5 \end{pmatrix}
  • (c) (−300−3)\begin{pmatrix} -3 & 0 \\ 0 & -3 \end{pmatrix}
Solution

(a) This matches (cos⁡θ−sin⁡θsin⁡θcos⁡θ)\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix} with cos⁡θ=0.6\cos\theta = 0.6 and sin⁡θ=0.8\sin\theta = 0.8. Both are positive, so θ\theta is acute: θ=cos⁡−10.6=53.1∘\theta = \cos^{-1} 0.6 = 53.1^\circ (3 s.f.). It’s a rotation of 53.1∘53.1^\circ anticlockwise about the origin. (Its determinant is 0.36+0.64=10.36 + 0.64 = 1, as for every rotation.)

(b) A vertical stretch with scale factor 0.50.5 (it halves every yy-coordinate).

(c) An enlargement with scale factor −3-3, centre the origin. (Equivalently, an enlargement with scale factor 33 combined with a rotation of 180∘180^\circ about the origin.)

5. (Core) A horizontal stretch with scale factor 22 is followed by a rotation of 90∘90^\circ anticlockwise about the origin.

  • (a) Find the single matrix for this composition.
  • (b) Find the image of (3,1)(3, 1).
  • (c) Find the image of (3,1)(3, 1) if the transformations are done in the other order.
Solution

(a) Stretch S=(2001)S = \begin{pmatrix} 2 & 0 \\ 0 & 1 \end{pmatrix} first, so it goes on the right:

RS=(0−110)(2001)=(0−120)RS = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix} 2 & 0 \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} 0 & -1 \\ 2 & 0 \end{pmatrix}

(b) (0−120)(31)=(−16)\begin{pmatrix} 0 & -1 \\ 2 & 0 \end{pmatrix}\begin{pmatrix} 3 \\ 1 \end{pmatrix} = \begin{pmatrix} -1 \\ 6 \end{pmatrix}. Check step by step: the stretch gives (6,1)(6, 1), then the rotation gives (−1,6)(-1, 6) ✓.

(c) SR=(2001)(0−110)=(0−210)SR = \begin{pmatrix} 2 & 0 \\ 0 & 1 \end{pmatrix}\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} 0 & -2 \\ 1 & 0 \end{pmatrix}, and (0−210)(31)=(−23)\begin{pmatrix} 0 & -2 \\ 1 & 0 \end{pmatrix}\begin{pmatrix} 3 \\ 1 \end{pmatrix} = \begin{pmatrix} -2 \\ 3 \end{pmatrix}. A different image: the order matters.

6. (Core) Find the matrix for a reflection in the line y=2xy = 2x, and the image of (5,0)(5, 0).

Solution

tan⁡θ=2\tan\theta = 2. Find cos⁡2θ\cos 2\theta and sin⁡2θ\sin 2\theta from θ=tan⁡−12=63.43…∘\theta = \tan^{-1} 2 = 63.43\ldots^\circ, so 2θ=126.86…∘2\theta = 126.86\ldots^\circ:

cos⁡2θ=−0.6,sin⁡2θ=0.8\cos 2\theta = -0.6, \qquad \sin 2\theta = 0.8

(These are exact: cos⁡2θ=1−tan⁡2θ1+tan⁡2θ=1−45\cos 2\theta = \dfrac{1 - \tan^2\theta}{1 + \tan^2\theta} = \dfrac{1 - 4}{5} and sin⁡2θ=2tan⁡θ1+tan⁡2θ=45\sin 2\theta = \dfrac{2\tan\theta}{1 + \tan^2\theta} = \dfrac{4}{5}.) The matrix is

(−0.60.80.80.6),(−0.60.80.80.6)(50)=(−34)\begin{pmatrix} -0.6 & 0.8 \\ 0.8 & 0.6 \end{pmatrix}, \qquad \begin{pmatrix} -0.6 & 0.8 \\ 0.8 & 0.6 \end{pmatrix}\begin{pmatrix} 5 \\ 0 \end{pmatrix} = \begin{pmatrix} -3 \\ 4 \end{pmatrix}

Check: the midpoint of (5,0)(5, 0) and (−3,4)(-3, 4) is (1,2)(1, 2), which is on y=2xy = 2x ✓, and both points are 55 units from the origin ✓.

7. (Core) A transformation is given by

(x′y′)=(2−111)(xy)+(3−1)\begin{pmatrix} x' \\ y' \end{pmatrix} = \begin{pmatrix} 2 & -1 \\ 1 & 1 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} + \begin{pmatrix} 3 \\ -1 \end{pmatrix}
  • (a) Find the image of (1,2)(1, 2).
  • (b) The image of a point PP is (4,4)(4, 4). Find PP.
Solution

(a) (2−21+2)+(3−1)=(32)\begin{pmatrix} 2 - 2 \\ 1 + 2 \end{pmatrix} + \begin{pmatrix} 3 \\ -1 \end{pmatrix} = \begin{pmatrix} 3 \\ 2 \end{pmatrix}. The image is (3,2)(3, 2).

(b) Undo the steps in reverse order: subtract the translation, then multiply by the inverse matrix.

(44)−(3−1)=(15)\begin{pmatrix} 4 \\ 4 \end{pmatrix} - \begin{pmatrix} 3 \\ -1 \end{pmatrix} = \begin{pmatrix} 1 \\ 5 \end{pmatrix}

det⁡=2+1=3\det = 2 + 1 = 3, so the inverse is 13(11−12)\dfrac{1}{3}\begin{pmatrix} 1 & 1 \\ -1 & 2 \end{pmatrix}, and

P=13(11−12)(15)=13(69)=(23)P = \frac{1}{3}\begin{pmatrix} 1 & 1 \\ -1 & 2 \end{pmatrix}\begin{pmatrix} 1 \\ 5 \end{pmatrix} = \frac{1}{3}\begin{pmatrix} 6 \\ 9 \end{pmatrix} = \begin{pmatrix} 2 \\ 3 \end{pmatrix}

So P=(2,3)P = (2, 3). Check: (4−32+3)+(3−1)=(44)\begin{pmatrix} 4 - 3 \\ 2 + 3 \end{pmatrix} + \begin{pmatrix} 3 \\ -1 \end{pmatrix} = \begin{pmatrix} 4 \\ 4 \end{pmatrix} ✓.

8. (Challenge) A rotation of 90∘90^\circ anticlockwise about the point C(2,1)C(2, 1) can be done in three steps: translate by (−2−1)\begin{pmatrix} -2 \\ -1 \end{pmatrix} (moving CC to the origin), rotate 90∘90^\circ anticlockwise about the origin, then translate by (21)\begin{pmatrix} 2 \\ 1 \end{pmatrix}.

  • (a) Show that the rotation can be written as x⃗′=Rx⃗+(3−1)\vec{x}' = R\vec{x} + \begin{pmatrix} 3 \\ -1 \end{pmatrix}, where R=(0−110)R = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}.
  • (b) Find the image of (5,1)(5, 1), and explain why your answer makes sense.
Solution

(a) Following the three steps:

x⃗′=R(x⃗−(21))+(21)=Rx⃗−R(21)+(21)\vec{x}' = R\left(\vec{x} - \begin{pmatrix} 2 \\ 1 \end{pmatrix}\right) + \begin{pmatrix} 2 \\ 1 \end{pmatrix} = R\vec{x} - R\begin{pmatrix} 2 \\ 1 \end{pmatrix} + \begin{pmatrix} 2 \\ 1 \end{pmatrix}

R(21)=(−12)R\begin{pmatrix} 2 \\ 1 \end{pmatrix} = \begin{pmatrix} -1 \\ 2 \end{pmatrix}, so the vector is (21)−(−12)=(3−1)\begin{pmatrix} 2 \\ 1 \end{pmatrix} - \begin{pmatrix} -1 \\ 2 \end{pmatrix} = \begin{pmatrix} 3 \\ -1 \end{pmatrix}. ✓

(b)

(0−110)(51)+(3−1)=(−15)+(3−1)=(24)\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix} 5 \\ 1 \end{pmatrix} + \begin{pmatrix} 3 \\ -1 \end{pmatrix} = \begin{pmatrix} -1 \\ 5 \end{pmatrix} + \begin{pmatrix} 3 \\ -1 \end{pmatrix} = \begin{pmatrix} 2 \\ 4 \end{pmatrix}

The image is (2,4)(2, 4). This makes sense: (5,1)(5, 1) is 33 units to the right of C(2,1)C(2, 1), and a quarter turn anticlockwise about CC puts it 33 units directly above CC, at (2,4)(2, 4). (Also, CC itself maps to R(21)+(3−1)=(21)R\begin{pmatrix} 2 \\ 1 \end{pmatrix} + \begin{pmatrix} 3 \\ -1 \end{pmatrix} = \begin{pmatrix} 2 \\ 1 \end{pmatrix}: the centre stays fixed ✓.)

9. (Challenge) The matrix M=(k21k)M = \begin{pmatrix} k & 2 \\ 1 & k \end{pmatrix} maps a shape of area 44 to an image of area 2020, and preserves orientation. Find the possible values of kk.

Solution

The area scale factor is 204=5\dfrac{20}{4} = 5, so ∣det⁡M∣=5|\det M| = 5. Orientation is preserved, so det⁡M>0\det M \gt 0, which means det⁡M=5\det M = 5:

k2−2=5⇒k2=7⇒k=±7k^2 - 2 = 5 \quad\Rightarrow\quad k^2 = 7 \quad\Rightarrow\quad k = \pm\sqrt{7}

(If the orientation had been reversed, we’d need k2−2=−5k^2 - 2 = -5, so k2=−3k^2 = -3, which has no real solutions.)

So k=7k = \sqrt{7} or k=−7k = -\sqrt{7} (≈±2.65\approx \pm 2.65).