Mathematics Topic

Combining Two Transformations as One Matrix

  1. Read notes
  2. Flashcards
  3. Quiz
  4. Confident

Study focus - 3 things

  1. If transformation A is done first and B second, the single matrix is the product BA: the matrix of the first move sits next to the point, on the right
  2. The order matters: BA and AB are usually different matrices, so reflecting then rotating is a different job from rotating then reflecting
  3. Name the single transformation only when the product matches a standard matrix (a reflection in an axis or in y = x or y = -x, a rotation about the origin, or an enlargement from the origin)

Visual notes

Triangle ABC and its image after reflection in the x-axis then a quarter turn
A grid from -1 to 6 on both axes. Triangle ABC has A(1, 3), B(5, 1) and C(5, 4). Reflecting it in the x-axis and then turning the result 90 degrees anticlockwise about the origin gives the same image as one reflection in the dashed line y = x: A'(3, 1), B'(1, 5) and C'(4, 5).

Reflecting in the x-axis and then turning 90° anticlockwise sends A(1, 3) to (1, -3) and then to (3, 1); one reflection in y = x does the same job in one step.

Triangle PQR and its image after reflections in the y-axis and then the x-axis
A grid from -6 to 6 on both axes. Triangle PQR has P(2, 1), Q(5, 2) and R(3, 4). Reflecting it in the y-axis and then in the x-axis gives the same image as a half-turn about the origin: P'(-2, -1), Q'(-5, -2) and R'(-3, -4). The centre of the half-turn is marked at the origin.

The y-axis reflection sends P(2, 1) to (-2, 1), and the x-axis reflection then sends that to (-2, -1), which is where a half-turn about the origin sends P.

Section 1One matrix for two moves

Suppose a point P is moved by a first transformation with matrix A, and the image is then moved by a second transformation with matrix B. After the first move the point is at A × P. The second move acts on that, giving B × (A × P). Matrices can be grouped either way when they are multiplied, so B × (A × P) = (B × A) × P. This means that the two moves together are a single transformation whose matrix is the product BA. All the matrices here are 2 by 2 and keep the origin fixed, so BA is again a 2 by 2 matrix.

Section 2Why the order looks backwards

In the product BA the matrix of the move done FIRST (A) is on the right, next to the point, and the matrix of the move done second (B) is on its left. Read a product from the point outwards: the matrix touching the point acts first. So 'reflect in the x-axis, then rotate 90° anticlockwise' has single matrix (rotation matrix) × (reflection matrix). If you write the matrices in the order you say the words, you get the single matrix for the reverse job. Linear algebra texts state the same rule: the matrix for 'first one map, then the other' is the later map's matrix times the earlier map's matrix.

Section 3The order matters

Take the reflection in the y-axis, [[-1, 0], [0, 1]], and the reflection in the line y = x, [[0, 1], [1, 0]]. Reflect in the y-axis first and then in y = x: [[0, 1], [1, 0]] × [[-1, 0], [0, 1]] = [[0, 1], [-1, 0]]. Reverse the order: [[-1, 0], [0, 1]] × [[0, 1], [1, 0]] = [[0, -1], [1, 0]]. The answers are different matrices, so they are different transformations (the first is a quarter turn clockwise, the second a quarter turn anticlockwise). Try the point (2, 1): starting with the y-axis reflection gives (-2, 1) and then (1, -2); starting with the reflection in y = x gives (1, 2) and then (-1, 2). The images are different, so the order must be followed exactly as the question states it.

Section 4Pairs that give the same answer either way

Some pairs do not care about the order. Two rotations about the origin give the same result in either order (90° then 180° is the same as 180° then 90°). The reflection in the x-axis and the reflection in the y-axis give a half-turn in either order. An enlargement with centre the origin and scale factor k has matrix [[k, 0], [0, k]], which is just k times the identity, so it can be done before or after any other transformation in this topic with the same single matrix. Do not assume this for other pairs, such as a reflection with a rotation: always keep the order given.

Section 5Results worth knowing, and naming the single transformation

With the origin fixed: the same reflection done twice is the identity [[1, 0], [0, 1]] (no change); two quarter turns the same way make a half-turn [[-1, 0], [0, -1]]; a quarter turn one way followed by a quarter turn the other way is the identity; enlargements multiply their scale factors, so scale factor 2 then scale factor 3 is scale factor 6. To name a product, read its columns: column 1 is where (1, 0) goes and column 2 is where (0, 1) goes. If they match a standard matrix, name it and give its mirror line, angle and direction, or scale factor. If the product matches no standard matrix (for example [[0, -3], [3, 0]], an enlargement and a turn together), do not name it: give the matrix.

Section 6Using the combined matrix

To find the image of a point, multiply the single matrix by the point written as a column. To transform a whole shape, put the vertices side by side as the columns of a matrix V and work out (BA) × V once. Check by doing the two moves one at a time: the answer must be the same. Watch the wording: 'A followed by B', 'A then B' and 'B after A' all mean A is done first. The origin stays where it is under every matrix in this topic, so the combined transformation also fixes the origin.

Examples

Triangle ABC has vertices A(1, 3), B(5, 1) and C(5, 4). It is reflected in the x-axis, and the image is then rotated 90° anticlockwise about the origin. (a) Find the single matrix for the two transformations in this order. (b) Find the single matrix when the order is reversed, and compare it with (a). (c) Use the matrix from (a) to find the image A'B'C', and name the single transformation.

(a) The reflection in the x-axis is [[1, 0], [0, -1]] and the rotation of 90° anticlockwise is [[0, -1], [1, 0]]. The reflection is done first, so the rotation matrix goes on the left: [[0, -1], [1, 0]] × [[1, 0], [0, -1]] = [[0 × 1 + (-1) × 0, 0 × 0 + (-1) × (-1)], [1 × 1 + 0 × 0, 1 × 0 + 0 × (-1)]] = [[0, 1], [1, 0]]. (b) Rotation first, then reflection: [[1, 0], [0, -1]] × [[0, -1], [1, 0]] = [[1 × 0 + 0 × 1, 1 × (-1) + 0 × 0], [0 × 0 + (-1) × 1, 0 × (-1) + (-1) × 0]] = [[0, -1], [-1, 0]]. This is different from (a), so the order matters. (c) The vertices as columns are [[1, 5, 5], [3, 1, 4]]. [[0, 1], [1, 0]] × [[1, 5, 5], [3, 1, 4]] = [[3, 1, 4], [1, 5, 5]]. So A' is (3, 1), B' is (1, 5) and C' is (4, 5). The columns of [[0, 1], [1, 0]] show (1, 0) going to (0, 1) and (0, 1) going to (1, 0), so the single transformation is the reflection in the line y = x. Check with A: the reflection in the x-axis sends (1, 3) to (1, -3), and a quarter turn anticlockwise sends that to (3, 1), the same as A'.

(a) Triangle PQR has vertices P(2, 1), Q(5, 2) and R(3, 4). It is reflected in the y-axis and then reflected in the x-axis. Find the single matrix, the image P'Q'R', and the single transformation. (b) An enlargement with centre the origin and scale factor 3 is followed by a rotation of 90° clockwise about the origin. Find the single matrix, and the image of the point (2, -1). (c) A rotation of 90° anticlockwise about the origin is followed by a reflection in the line y = -x. Find the single matrix, name the single transformation, and find the point whose image is (5, 2).

(a) The reflection in the y-axis is [[-1, 0], [0, 1]] and is done first; the reflection in the x-axis is [[1, 0], [0, -1]]. Single matrix: [[1, 0], [0, -1]] × [[-1, 0], [0, 1]] = [[-1, 0], [0, -1]]. This is the half-turn, a rotation of 180° about the origin. The vertices as columns are [[2, 5, 3], [1, 2, 4]], and [[-1, 0], [0, -1]] × [[2, 5, 3], [1, 2, 4]] = [[-2, -5, -3], [-1, -2, -4]]. So P' is (-2, -1), Q' is (-5, -2) and R' is (-3, -4). (These two reflections give the same matrix in either order.) (b) The enlargement is [[3, 0], [0, 3]] and the 90° clockwise rotation is [[0, 1], [-1, 0]]. The rotation is second, so it goes on the left: [[0, 1], [-1, 0]] × [[3, 0], [0, 3]] = [[0, 3], [-3, 0]]. Then [[0, 3], [-3, 0]] × (2, -1) = (0 × 2 + 3 × (-1), (-3) × 2 + 0 × (-1)) = (-3, -6). Check in two steps: the enlargement sends (2, -1) to (6, -3), and a clockwise quarter turn sends (x, y) to (y, -x), giving (-3, -6). This matrix is not one of the standard single transformations (it is an enlargement and a turn together), so the matrix is the answer. (c) The rotation is [[0, -1], [1, 0]] and the reflection in y = -x is [[0, -1], [-1, 0]]. Single matrix: [[0, -1], [-1, 0]] × [[0, -1], [1, 0]] = [[-1, 0], [0, 1]]. Its columns show (1, 0) going to (-1, 0) and (0, 1) staying where it is, so the single transformation is the reflection in the y-axis. A reflection undoes itself, so the point whose image is (5, 2) is the reflection of (5, 2) in the y-axis, which is (-5, 2). Check: the quarter turn anticlockwise sends (-5, 2) to (-2, -5), and reflecting that in y = -x gives (5, 2).

Now let's water it

Session runs notes to flashcards to quiz back-to-back.

Where this comes from