5.4 - Combining transformations with matrices

5.4 - Combining transformations with matrices

Replace successive transformations by one matrix product, keeping their order clear. You will compare reversed orders and use repeated multiplication to recognise cycles, so a long sequence of transformations can become a short calculation.

The first transformation goes on the right

How would you work out the effect of 20272027 anticlockwise quarter-turns without multiplying 20272027 matrices? We will reduce that sequence to one familiar matrix. First, get the order right for just two transformations.

You already know

A matrix acts on a point column from the left. The columns give the images of A(1,0)A(1,0) and C(0,1)C(0,1); O(0,0)O(0,0) stays fixed. Multiply rows of the left matrix by columns of the right matrix.

Suppose K\mathbf{K} acts first on an input column p\mathbf{p}. Its image is Kp\mathbf{Kp}. Applying L\mathbf{L} next gives L(Kp)\mathbf{L}(\mathbf{Kp}), so the combined matrix is LK\mathbf{LK}.

Combining two transformations

For 2×22\times2 matrices K\mathbf{K}, L\mathbf{L}, and a 2×12\times1 input column p\mathbf{p},

L(Kp)=(LK)p\mathbf{L}(\mathbf{Kp})=(\mathbf{LK})\mathbf{p}

Thus “K\mathbf{K} followed by L\mathbf{L}” uses LK\mathbf{LK}: the rightmost matrix acts first. Grouping a product does not change the result, but swapping its factors may.
Not on the formulae sheet: learn it.

Read the product from the input outwards. This is the same logic as applying one function and then another: the first operation sits closest to the input.

Worked example 1: reflection followed by a quarter-turn

Question. F=(100−1)\mathbf{F}=\begin{pmatrix}1&0\\0&-1\end{pmatrix} represents reflection in y=0y=0. R=(0−110)\mathbf{R}=\begin{pmatrix}0&-1\\1&0\end{pmatrix} represents rotation 90∘90^\circ anticlockwise about OO. Work out the matrix for F\mathbf{F} followed by R\mathbf{R}, describe the single transformation and work out A′A', B′B', C′C' for the unit square.

Plan. Calculate RF\mathbf{RF}, recognise its image columns and multiply for B(1,1)B(1,1).

RF=(0(1)+(−1)(0)0(0)+(−1)(−1)1(1)+0(0)1(0)+0(−1))first matrix on the right=(0110)evaluate the productA′=(0,1),C′=(1,0)read the columnsRF(11)=(11)calculate B′\begin{aligned} \mathbf{RF} &=\begin{pmatrix}0(1)+(-1)(0)&0(0)+(-1)(-1)\\1(1)+0(0)&1(0)+0(-1)\end{pmatrix} && \text{first matrix on the right}\\ &=\begin{pmatrix}0&1\\1&0\end{pmatrix} && \text{evaluate the product}\\ A'&=(0,1),\qquad C'=(1,0) && \text{read the columns}\\ \mathbf{RF}\begin{pmatrix}1\\1\end{pmatrix} &=\begin{pmatrix}1\\1\end{pmatrix} && \text{calculate }B' \end{aligned}

Why this step? F\mathbf{F} must act on the original point before R\mathbf{R}, so it must be closest to that point column.

Answer. The matrix is (0110)\begin{pmatrix}0&1\\1&0\end{pmatrix}, a reflection in y=xy=x. The images are A′(0,1)A'(0,1), B′(1,1)B'(1,1), C′(1,0)C'(1,0).

Check. Follow AA in two steps: reflection in y=0y=0 keeps (1,0)(1,0), then the quarter-turn sends it to (0,1)(0,1), agreeing with the first product column.

Worked example 2 changes only the direction of the rotation. The order rule stays the same.

Worked example 2: reversing the turn's direction

Question. Keep F\mathbf{F} as above, but use S=(01−10)\mathbf{S}=\begin{pmatrix}0&1\\-1&0\end{pmatrix}, rotation 90∘90^\circ clockwise about OO. Work out the matrix for F\mathbf{F} followed by S\mathbf{S}, its single transformation and A′A', B′B', C′C'.

Plan. Form SF\mathbf{SF}, then interpret its columns and map BB.

SF=(0(1)+1(0)0(0)+1(−1)(−1)(1)+0(0)(−1)(0)+0(−1))rightmost acts first=(0−1−10)evaluateA′=(0,−1),C′=(−1,0)read the columnsSF(11)=(−1−1)calculate B′\begin{aligned} \mathbf{SF} &=\begin{pmatrix}0(1)+1(0)&0(0)+1(-1)\\(-1)(1)+0(0)&(-1)(0)+0(-1)\end{pmatrix} && \text{rightmost acts first}\\ &=\begin{pmatrix}0&-1\\-1&0\end{pmatrix} && \text{evaluate}\\ A'&=(0,-1),\qquad C'=(-1,0) && \text{read the columns}\\ \mathbf{SF}\begin{pmatrix}1\\1\end{pmatrix} &=\begin{pmatrix}-1\\-1\end{pmatrix} && \text{calculate }B' \end{aligned}

Why this step? Changing the turn changes the combined matrix, but does not change which factor belongs on the right.

Answer. (0−1−10)\begin{pmatrix}0&-1\\-1&0\end{pmatrix}, a reflection in y=−xy=-x, with A′(0,−1)A'(0,-1), B′(−1,−1)B'(-1,-1), C′(−1,0)C'(-1,0).

Check. C(0,1)C(0,1) first reflects to (0,−1)(0,-1), then turns clockwise to (−1,0)(-1,0), agreeing with the second column.

For three successive transformations K\mathbf{K}, then L\mathbf{L}, then M\mathbf{M}, the same reasoning gives MLK\mathbf{MLK}. All calculations here remain 2×22\times2 products or 2×12\times1 point columns.

Watch out

Wrong: “K\mathbf{K} followed by L\mathbf{L}” means KL\mathbf{KL}. Right: write L(Kp)\mathbf{L}(\mathbf{Kp}) first, then remove the brackets to get LKp\mathbf{LKp}. The input shows the order.

Use a new point so that the two possible orders produce visibly different answers.

When changing the order changes the image

Two transformations generally cannot be swapped, because the second acts on a different intermediate image when the order changes.

Commuting transformations

Two matrix transformations commute when applying them in either order has exactly the same effect on every point; their matrices satisfy MN=NM\mathbf{MN}=\mathbf{NM}. Agreement at just one point does not prove this: every matrix here fixes OO, even when the transformations do not commute.

To compare orders, calculate both products and compare every entry. One point with different final images proves that two transformations are different; one shared image, especially the origin, is not enough to prove they are the same.

Worked example 3: a reflection and a rotation do not commute

Question. F=(100−1)\mathbf{F}=\begin{pmatrix}1&0\\0&-1\end{pmatrix} and R=(0−110)\mathbf{R}=\begin{pmatrix}0&-1\\1&0\end{pmatrix}. Compare RF\mathbf{RF} with FR\mathbf{FR}, and work out their effects on P(2,1)P(2,1).

Plan. Calculate the reversed product, compare it with the known product and map the same point under each.

RF=(0110)reflection firstFR=(1(0)+0(1)1(−1)+0(0)0(0)+(−1)(1)0(−1)+(−1)(0))rotation first=(0−1−10)different entriesRF(21)=(12)first orderFR(21)=(−1−2)reversed order\begin{aligned} \mathbf{RF}&=\begin{pmatrix}0&1\\1&0\end{pmatrix} && \text{reflection first}\\ \mathbf{FR} &=\begin{pmatrix}1(0)+0(1)&1(-1)+0(0)\\0(0)+(-1)(1)&0(-1)+(-1)(0)\end{pmatrix} && \text{rotation first}\\ &=\begin{pmatrix}0&-1\\-1&0\end{pmatrix} && \text{different entries}\\ \mathbf{RF}\begin{pmatrix}2\\1\end{pmatrix} &=\begin{pmatrix}1\\2\end{pmatrix} && \text{first order}\\ \mathbf{FR}\begin{pmatrix}2\\1\end{pmatrix} &=\begin{pmatrix}-1\\-2\end{pmatrix} && \text{reversed order} \end{aligned}

Why this step? Comparing the same input under both orders isolates the effect of reversing the transformations.

Answer. RF≠FR\mathbf{RF}\ne\mathbf{FR}: the images are (1,2)(1,2) and (−1,−2)(-1,-2), so these transformations do not commute.

Check. Two-step routes give (2,1)→(2,−1)→(1,2)(2,1)\to(2,-1)\to(1,2) and (2,1)→(−1,2)→(−1,−2)(2,1)\to(-1,2)\to(-1,-2), respectively.

Worked example 4 replaces only the reflection with an enlargement of scale factor 22, centre OO. This time the two orders agree.

Worked example 4: a pair that does commute

Question. E=(2002)\mathbf{E}=\begin{pmatrix}2&0\\0&2\end{pmatrix}, and R\mathbf{R} is unchanged. Compare RE\mathbf{RE} with ER\mathbf{ER}, and work out their effects on P(2,1)P(2,1).

Plan. Calculate both products rather than assuming that every pair behaves like the previous example.

RE=(0(2)+(−1)(0)0(0)+(−1)(2)1(2)+0(0)1(0)+0(2))enlargement first=(0−220)evaluateER=(2(0)+0(1)2(−1)+0(0)0(0)+2(1)0(−1)+2(0))rotation first=(0−220)the same matrix(0−220)(21)=(−24)the common final image\begin{aligned} \mathbf{RE} &=\begin{pmatrix}0(2)+(-1)(0)&0(0)+(-1)(2)\\1(2)+0(0)&1(0)+0(2)\end{pmatrix} && \text{enlargement first}\\ &=\begin{pmatrix}0&-2\\2&0\end{pmatrix} && \text{evaluate}\\ \mathbf{ER} &=\begin{pmatrix}2(0)+0(1)&2(-1)+0(0)\\0(0)+2(1)&0(-1)+2(0)\end{pmatrix} && \text{rotation first}\\ &=\begin{pmatrix}0&-2\\2&0\end{pmatrix} && \text{the same matrix}\\ \begin{pmatrix}0&-2\\2&0\end{pmatrix}\begin{pmatrix}2\\1\end{pmatrix} &=\begin{pmatrix}-2\\4\end{pmatrix} && \text{the common final image} \end{aligned}

Why this step? Doubling both coordinates scales both unit directions equally, so it does not matter whether that doubling happens before or after this rotation.

Answer. RE=ER\mathbf{RE}=\mathbf{ER}, so this pair commutes. Both orders send PP to (−2,4)(-2,4).

Check. Enlarge first: (2,1)→(4,2)→(−2,4)(2,1)\to(4,2)\to(-2,4). Rotate first: (2,1)→(−1,2)→(−2,4)(2,1)\to(-1,2)\to(-2,4).

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account