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), a 2×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.
A transformation sends each point (the object) to a new point (its image). In this course, transformations have the form
(x′y′)=(acbd)(xy)+(ef)
The matrix does the reflecting, stretching, enlarging or rotating, and the vector (ef) 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) and (01):
(acbd)(10)=(ac),(acbd)(01)=(bd)
So to find the matrix of a transformation, work out where it sends (1,0) and (0,1), and write those images as the columns. That’s where every matrix in the table below comes from.
In the reflection in y=(tanθ)x, θ is the angle the mirror line makes with the positive x-axis. With θ=45∘ it gives the reflection in y=x, and with θ=0∘ the reflection in the x-axis. Angles are usually in degrees here; just make sure your GDC is in the mode you mean.
The triangle from Example 1 (blue) and its images (orange) under a reflection in y=x and a rotation of 90∘ anticlockwise.
To do transformation Afirst and then transformation B, multiply x by A first, then by B:
x′=B(Ax)=(BA)x
So the single matrix for ”A then B” is BA: 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 n times uses An; 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.
Triangle T has vertices A(1,1), B(4,1) and C(1,3). Find the image of T under:
(a) a reflection in the line y=x
(b) a rotation of 90∘ anticlockwise about the origin
Solution. Put the vertices in the columns of one matrix.
(a)
(0110)(114113)=(111431)
The image has vertices A′(1,1), B′(1,4), C′(3,1). Each point’s coordinates are swapped, as you’d expect for a reflection in y=x. A is on the mirror line, so it doesn’t move.
(b) With θ=90∘: cos90∘=0 and sin90∘=1, so the matrix is (01−10).
(01−10)(114113)=(−11−14−31)
The image has vertices A′(−1,1), B′(−1,4), C′(−3,1). The figure above shows both images.
Multiplying in the wrong order for a composition. ”A then B” is BA, not AB. 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θ in the top right turns points anticlockwise. Check with (1,0): rotating it 90∘ anticlockwise should give (0,1).
Using the line’s angle instead of double the angle. The reflection in y=(tanθ)x uses 2θ in its matrix. For y=x, θ=45∘ and 2θ=90∘, which correctly gives (0110).
Forgetting the absolute value for area. A reflection has det=−1, but areas can’t be negative. Area scale factor =∣detA∣; the sign only tells you about orientation.
Confusing a stretch with an enlargement. A stretch scales only one direction ((k001) multiplies areas by k). An enlargement scales both ((k00k) multiplies areas by k2).
Trying to translate with a 2 × 2 matrix. No 2×2 matrix can move the origin, so a translation must be added as a vector.
(c) The line y=−x makes an angle θ=−45∘ (or 135∘) with the x-axis, so 2θ=−90∘: (cos(−90∘)sin(−90∘)sin(−90∘)−cos(−90∘))=(0−1−10). Check: (1,0)→(0,−1) ✓.
3. (Warm-up) A shape with area 6 cm² is transformed by the matrix (32−14). Find the area of the image.
Solution
det=3(4)−(−1)(2)=12+2=14. Area of image =14×6=84 cm².
4. (Core) Describe fully the transformation given by each matrix.
(a) (0.60.8−0.80.6)
(b) (1000.5)
(c) (−300−3)
Solution
(a) This matches (cosθsinθ−sinθcosθ) with cosθ=0.6 and sinθ=0.8. Both are positive, so θ is acute: θ=cos−10.6=53.1∘ (3 s.f.). It’s a rotation of 53.1∘ anticlockwise about the origin. (Its determinant is 0.36+0.64=1, as for every rotation.)
(b) A vertical stretch with scale factor 0.5 (it halves every y-coordinate).
(c) An enlargement with scale factor −3, centre the origin. (Equivalently, an enlargement with scale factor 3 combined with a rotation of 180∘ about the origin.)
5. (Core) A horizontal stretch with scale factor 2 is followed by a rotation of 90∘ anticlockwise about the origin.
(a) Find the single matrix for this composition.
(b) Find the image of (3,1).
(c) Find the image of (3,1) if the transformations are done in the other order.
Solution
(a) Stretch S=(2001) first, so it goes on the right:
RS=(01−10)(2001)=(02−10)
(b) (02−10)(31)=(−16). Check step by step: the stretch gives (6,1), then the rotation gives (−1,6) ✓.
(c) SR=(2001)(01−10)=(01−20), and (01−20)(31)=(−23). A different image: the order matters.
6. (Core) Find the matrix for a reflection in the line y=2x, and the image of (5,0).
Solution
tanθ=2. Find cos2θ and sin2θ from θ=tan−12=63.43…∘, so 2θ=126.86…∘:
cos2θ=−0.6,sin2θ=0.8
(These are exact: cos2θ=1+tan2θ1−tan2θ=51−4 and sin2θ=1+tan2θ2tanθ=54.) The matrix is
(−0.60.80.80.6),(−0.60.80.80.6)(50)=(−34)
Check: the midpoint of (5,0) and (−3,4) is (1,2), which is on y=2x ✓, and both points are 5 units from the origin ✓.
7. (Core) A transformation is given by
(x′y′)=(21−11)(xy)+(3−1)
(a) Find the image of (1,2).
(b) The image of a point P is (4,4). Find P.
Solution
(a) (2−21+2)+(3−1)=(32). The image is (3,2).
(b) Undo the steps in reverse order: subtract the translation, then multiply by the inverse matrix.
(44)−(3−1)=(15)
det=2+1=3, so the inverse is 31(1−112), and
P=31(1−112)(15)=31(69)=(23)
So P=(2,3). Check: (4−32+3)+(3−1)=(44) ✓.
8. (Challenge) A rotation of 90∘ anticlockwise about the point C(2,1) can be done in three steps: translate by (−2−1) (moving C to the origin), rotate 90∘ anticlockwise about the origin, then translate by (21).
(a) Show that the rotation can be written as x′=Rx+(3−1), where R=(01−10).
(b) Find the image of (5,1), and explain why your answer makes sense.
Solution
(a) Following the three steps:
x′=R(x−(21))+(21)=Rx−R(21)+(21)
R(21)=(−12), so the vector is (21)−(−12)=(3−1). ✓
(b)
(01−10)(51)+(3−1)=(−15)+(3−1)=(24)
The image is (2,4). This makes sense: (5,1) is 3 units to the right of C(2,1), and a quarter turn anticlockwise about C puts it 3 units directly above C, at (2,4). (Also, C itself maps to R(21)+(3−1)=(21): the centre stays fixed ✓.)
9. (Challenge) The matrix M=(k12k) maps a shape of area 4 to an image of area 20, and preserves orientation. Find the possible values of k.
Solution
The area scale factor is 420=5, so ∣detM∣=5. Orientation is preserved, so detM>0, which means detM=5:
k2−2=5⇒k2=7⇒k=±7
(If the orientation had been reversed, we’d need k2−2=−5, so k2=−3, which has no real solutions.)