Every linear transformation of 2D or 3D space can be represented as a matrix. This means that rotations, reflections, scaling, and shearing can all be computed by a single matrix multiplication. Composite transformations (e.g. "rotate then reflect") are computed as matrix products — applied right to left.
Standard 2D Transformation Matrices
Transformation
Matrix
Rotation by θ (anticlockwise)
R(θ) = [[cosθ, −sinθ],[sinθ, cosθ]]
Rotation by θ (clockwise)
R(−θ) = [[cosθ, sinθ],[−sinθ, cosθ]]
Reflection in x-axis
[[1, 0],[0, −1]]
Reflection in y-axis
[[−1, 0],[0, 1]]
Reflection in y = x
[[0, 1],[1, 0]]
Reflection in y = −x
[[0, −1],[−1, 0]]
Scaling by factor k
[[k, 0],[0, k]] (det = k², area multiplied by k²)
Enlargement (kx, ly)
[[k, 0],[0, l]] (different scales in each direction)
Shear (x-direction)
[[1, k],[0, 1]] (det = 1, area preserved)
Shear (y-direction)
[[1, 0],[k, 1]] (det = 1, area preserved)
Projection onto x-axis
[[1, 0],[0, 0]] (singular — collapses y to 0)
📐
Area under transformation: If a shape has area A and is transformed by matrix M, the new area = |det(M)| × A. If det(M) < 0, the transformation also reverses orientation (like a reflection). This is why det(rotation) = cos²θ + sin²θ = 1 — rotations preserve area and orientation.
Worked Examples — Transformations
Ex 15
Find the image of point P(3, 1) under: (a) rotation of 90° anticlockwise about origin, (b) reflection in the line y = x
Part a — R(90°)
R(90°) = [[cos90°, −sin90°],[sin90°, cos90°]] = [[0,−1],[1,0]]. Image = [[0,−1],[1,0]] × [[3],[1]] = [[−1],[3]].
Part b — y=x
Reflection matrix = [[0,1],[1,0]]. Image = [[0,1],[1,0]] × [[3],[1]] = [[1],[3]].
Under 90° rotation: P′ = (−1, 3) · Under reflection y=x: P′ = (1, 3)
Ex 16
A triangle has vertices A(1,0), B(3,0), C(2,2). It is transformed by M = [[2,0],[0,3]]. Find the image vertices and the ratio of the new area to the original area.
Image of A
[[2,0],[0,3]] × [[1],[0]] = [[2],[0]] → A′ = (2, 0)
Image of B
[[2,0],[0,3]] × [[3],[0]] = [[6],[0]] → B′ = (6, 0)
Image of C
[[2,0],[0,3]] × [[2],[2]] = [[4],[6]] → C′ = (4, 6)
Area ratio
det(M) = (2)(3) − (0)(0) = 6. New area = |6| × original area. The triangle is enlarged by factor 6.
A′(2,0), B′(6,0), C′(4,6) · New area = 6 × original area
Ex 17
Find the matrix representing "rotate 90° anticlockwise, then reflect in the x-axis". Apply to point (2, 1).
Two matrices
Rotation R = [[0,−1],[1,0]]. Reflection F = [[1,0],[0,−1]].
Composite = FR
Apply right to left (rotation first, then reflection): FR = [[1,0],[0,−1]] × [[0,−1],[1,0]] = [[0,−1],[−1,0]]
Apply to (2,1)
[[0,−1],[−1,0]] × [[2],[1]] = [[0×2+(−1)×1],[−1×2+0×1]] = [[−1],[−2]]
Composite matrix = [[0,−1],[−1,0]] · Image of (2,1) is (−1, −2)