Geometric Transformations with Matrices
Key Terms
- Transformation matrix
- A matrix M maps a point (x, y) to its image by computing M [[x],[y]] = [[x′],[y′]].
- Rotation by θ anticlockwise
- R(θ) = [[cosθ, −sinθ], [sinθ, cosθ]].
- Reflection in x-axis
- [[1, 0], [0, −1]]; in y-axis: [[−1, 0], [0, 1]]; in y = x: [[0, 1], [1, 0]]; in y = −x: [[0, −1], [−1, 0]].
- Dilation
- Uniform dilation by k: [[k, 0], [0, k]]; different factors: [[k, 0], [0, m]].
- Composition order
- To apply T1 then T2, the composite matrix is T2T1 (right-hand matrix is applied FIRST).
- Inverse transformation
- The inverse matrix undoes the transformation: applying M−1 maps the image back to the original.
Standard Transformation Matrices
Rotation by θ anticlockwise about the origin: R(θ) = [[cosθ, −sinθ], [sinθ, cosθ]]
Reflection in the x-axis: [[1, 0], [0, −1]]
Reflection in the y-axis: [[−1, 0], [0, 1]]
Reflection in y = x: [[0, 1], [1, 0]]
Reflection in y = −x: [[0, −1], [−1, 0]]
Dilation by factor k from the origin: [[k, 0], [0, k]]
Dilation by k in x, m in y: [[k, 0], [0, m]]
Applying a transformation: Multiply the transformation matrix by the position vector [[x], [y]] to get the image [[x′], [y′]].
Composition: To apply T1 then T2, compute T2T1[[x],[y]] (note reversed order).
Worked Example 1 — Rotation by 90°
Find the image of the point (3, 1) under a rotation of 90° anticlockwise about the origin.
R(90°) = [[cos90°, −sin90°], [sin90°, cos90°]] = [[0, −1], [1, 0]]
Image: [[0,−1],[1,0]] [[3],[1]] = [[0(3)+(−1)(1)],[1(3)+0(1)]] = [[−1],[3]]
The image is (−1, 3). Check: rotating (3,1) by 90° should give a point in Q2 with the same distance from the origin (√10), and (−1,3) has modulus √10 ✓
Worked Example 2 — Composition of Transformations
Find the composite transformation matrix for: first reflect in the y-axis, then rotate 90° anticlockwise.
T1 (reflect in y-axis) = [[−1,0],[0,1]]
T2 (rotate 90°) = [[0,−1],[1,0]]
Composite = T2T1 = [[0,−1],[1,0]] [[−1,0],[0,1]] = [[0,−1],[−1,0]]
This composite is the reflection in y = −x.
Linear Transformations of the Plane
Every 2×2 matrix A defines a linear transformation of the plane: it maps each point (x, y) to a new point (x′, y′) via the rule [[x′],[y′]] = A[[x],[y]]. The transformation is linear because it preserves straight lines through the origin, and maps the origin to itself. This makes 2×2 matrices the perfect tool for describing rotations, reflections, dilations, and shears — the building blocks of geometric transformation.
The key insight is that a linear transformation is completely determined by where it sends the two standard basis vectors e1 = [[1],[0]] and e2 = [[0],[1]]. The first column of A is the image of e1, and the second column is the image of e2. This means that to find the matrix for any transformation, you just need to track what happens to (1,0) and (0,1).
Rotation Matrices
To rotate anticlockwise by angle θ about the origin, the matrix is R(θ) = [[cosθ, −sinθ], [sinθ, cosθ]]. You can derive this by tracking e1 = (1,0) and e2 = (0,1): rotating (1,0) by θ gives (cosθ, sinθ), which forms the first column; rotating (0,1) by θ gives (−sinθ, cosθ), which forms the second column.
Key special cases: R(90°) = [[0,−1],[1,0]]; R(180°) = [[−1,0],[0,−1]]; R(270°) = [[0,1],[−1,0]]; R(360°) = I. Notice that det(R(θ)) = cos²θ + sin²θ = 1, confirming that rotation preserves area and orientation.
Reflection Matrices
Reflections reverse orientation, so their determinant is always −1. The reflection in the x-axis sends (x,y) to (x,−y), giving matrix [[1,0],[0,−1]]. The reflection in the y-axis sends (x,y) to (−x,y): matrix [[−1,0],[0,1]]. The reflection in y = x swaps coordinates: (x,y) → (y,x), giving [[0,1],[1,0]].
Reflections are their own inverses: reflecting twice returns to the original. Algebraically, this means M² = I for any reflection matrix M, which you can verify directly. Geometrically, it means reflecting twice is the identity transformation.
Dilation Matrices
A dilation by factor k from the origin scales all distances by k. Its matrix is [[k,0],[0,k]] = kI. The determinant is k², confirming that areas are scaled by k² (a square of side 1 becomes a square of side k, with area k²). If k = −1, the dilation is the same as a 180° rotation.
Non-uniform scaling uses [[k,0],[0,m]] to scale by k in the x-direction and m in the y-direction. Such transformations are commonly used in computer graphics to stretch or compress images.
Composing Transformations
When we apply transformation T1 followed by T2, the overall effect is described by the matrix product T2T1. The right-to-left order of matrix multiplication mirrors the right-to-left reading of function composition: in f(g(x)), we apply g first then f. So to apply T1 first, it goes on the right.
This non-commutativity of composition has real geometric consequences: rotating then reflecting generally gives a different result from reflecting then rotating. One order may give a reflection in a different line, or a rotation by a different angle. The matrix product captures this precisely.
The determinant of a composition equals the product of the individual determinants: det(T2T1) = det(T2)det(T1). So if you compose two rotations (det = 1 each), the result has det = 1 and is also a rotation. If you compose two reflections (det = −1 each), the result has det = 1 and is a rotation!
Mastery Practice
-
Fluency
Q1 — Applying a Rotation Matrix
Find the image of (4, −2) under a rotation of 90° anticlockwise about the origin.
-
Fluency
Q2 — Reflection in the x-axis
Find the image of each point under reflection in the x-axis: (a) (3, 5) (b) (−2, 4) (c) (0, −7)
-
Fluency
Q3 — Dilation Matrix
A dilation by factor 3 is applied to the triangle with vertices A(1,0), B(2,1), C(0,2). Find the image vertices.
-
Fluency
Q4 — Rotation by 45°
Find the exact image of (2, 0) under a 45° anticlockwise rotation about the origin.
-
Understanding
Q5 — Identifying Transformations from Matrices
Identify the geometric transformation for each matrix: (a) [[0,1],[1,0]] (b) [[−1,0],[0,−1]] (c) [[2,0],[0,1]]
-
Understanding
Q6 — Composition of Transformations
Find the composite transformation matrix for: first rotate 90° anticlockwise, then reflect in the x-axis. Apply it to the point (1, 2).
-
Understanding
Q7 — Area Scale Factor
A unit square (vertices at (0,0), (1,0), (1,1), (0,1)) is transformed by A = [[2, 1], [0, 3]]. Find the area of the image parallelogram.
-
Understanding
Q8 — Finding the Matrix for a Reflection in y = −x
Derive the matrix for reflection in the line y = −x by finding the images of (1,0) and (0,1). Verify by applying the matrix to the point (3, −2).
-
Problem Solving
Q9 — Two Reflections = One Rotation
Show that reflecting in the x-axis then in the y-axis is equivalent to a rotation of 180°. Write the composite matrix and verify with the point (2, 5).
-
Problem Solving
Q10 — Finding the Angle of Rotation from a Matrix
The matrix [[cosθ, −sinθ],[sinθ, cosθ]] maps (1, 0) to (1/2, √3/2). Find θ and hence find the image of the point (0, 4) under this rotation.