FP1.6 - Transformations using matrices

Syllabus
2019
Topic
Level
AS

Learning objectives

Read a linear transformation from its matrix

A 2 by 2 matrix represents a linear transformation by multiplying each position column vector. The two columns of the matrix are the images of the coordinate basis vectors.

A=(abcd)(xy)A(xy)=(ax+bycx+dy)A=\begin{pmatrix}a&b\\c&d\end{pmatrix}\quad\Longrightarrow\quad \begin{pmatrix}x\\y\end{pmatrix}\mapsto A\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}ax+by\\cx+dy\end{pmatrix}

In particular, (10)(ac)\binom{1}{0}\mapsto\binom{a}{c} and (01)(bd)\binom{0}{1}\mapsto\binom{b}{d}. Knowing those two images therefore determines the whole matrix.

If A=(2113)A=\begin{pmatrix}2&1\\-1&3\end{pmatrix}, then (42)(2(4)+1(2)1(4)+3(2))=(610).\begin{pmatrix}4\\-2\end{pmatrix}\mapsto\begin{pmatrix}2(4)+1(-2)\\-1(4)+3(-2)\end{pmatrix}=\begin{pmatrix}6\\-10\end{pmatrix}.

If BB acts first and AA acts second, then a vector follows vBvA(Bv)=(AB)v.\mathbf v\mapsto B\mathbf v\mapsto A(B\mathbf v)=(AB)\mathbf v. Thus ABAB represents BB followed by AA: the right-hand factor acts first.

Matrix multiplication acts on column vectors written on the right. Reading the product from left to right reverses the transformation order and usually gives a different image.

Recognise the standard 2D transformation matrices

A standard transformation matrix is identified by what it does to coordinates, or equivalently by the images of the basis vectors in its columns. All transformations here are centred at the origin where a centre is needed.

Single transformation Matrix
reflection in the xx-axis (1001)\begin{pmatrix}1&0\\0&-1\end{pmatrix}
reflection in the yy-axis (1001)\begin{pmatrix}-1&0\\0&1\end{pmatrix}
reflection in y=xy=x (0110)\begin{pmatrix}0&1\\1&0\end{pmatrix}
reflection in y=xy=-x (0110)\begin{pmatrix}0&-1\\-1&0\end{pmatrix}
rotation by θ\theta anticlockwise (cosθsinθsinθcosθ)\begin{pmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{pmatrix}
stretch parallel to the xx-axis, factor pp (p001)\begin{pmatrix}p&0\\0&1\end{pmatrix}
stretch parallel to the yy-axis, factor qq (100q)\begin{pmatrix}1&0\\0&q\end{pmatrix}
enlargement, centre (0,0)(0,0), factor k0k\ne0 (k00k)\begin{pmatrix}k&0\\0&k\end{pmatrix}

A rotation of 210210^\circ anticlockwise has cos210=3/2\cos210^\circ=-\sqrt3/2 and sin210=1/2\sin210^\circ=-1/2, so its matrix is (32121232).\begin{pmatrix}-\frac{\sqrt3}{2}&\frac12\\-\frac12&-\frac{\sqrt3}{2}\end{pmatrix}. Exact trigonometric values keep the transformation exact.

To identify an unfamiliar matrix, test its effect on (1,0)(1,0) and (0,1)(0,1) and compare both images with the table. A full description includes the transformation type, line or centre where relevant, direction and angle for a rotation, and scale factor for a stretch or enlargement.

A stretch parallel to an axis changes the coordinate in that direction: an x-parallel stretch changes x, not y. A negative enlargement factor is allowed, but its centre is still the origin. Do not describe a general product as a standard single transformation unless its action supports that identification.

Build a combined transformation in the correct order

A sequence of linear transformations is represented by a matrix product in reverse reading order: the matrix for the last transformation is placed on the left.

A followed by BvAvB(Av)=(BA)v\text{$A$ followed by $B$}\quad\Longrightarrow\quad \mathbf v\mapsto A\mathbf v\mapsto B(A\mathbf v)=(BA)\mathbf v

Let R=(0110)R=\begin{pmatrix}0&-1\\1&0\end{pmatrix} rotate 9090^\circ anticlockwise, and let S=(2001)S=\begin{pmatrix}2&0\\0&1\end{pmatrix} stretch parallel to the xx-axis by factor 22. Rotation followed by stretch has matrix SR=(2001)(0110)=(0210).SR=\begin{pmatrix}2&0\\0&1\end{pmatrix}\begin{pmatrix}0&-1\\1&0\end{pmatrix}=\begin{pmatrix}0&-2\\1&0\end{pmatrix}.

For v=(12)\mathbf v=\binom{1}{2}, the separate transformations give (12)(21)(41)\binom{1}{2}\mapsto\binom{-2}{1}\mapsto\binom{-4}{1}. The product gives SR(12)=(41)SR\binom{1}{2}=\binom{-4}{1}, confirming the order.

Repeating the same transformation AA exactly nn times gives AnA^n. For example, four successive quarter-turns give R4=IR^4=I, returning every vector to its original position.

Do not multiply matrices in the order the actions are spoken. In general BAABBA\ne AB, so reversing the factors changes the combined transformation. A product need not match one of the standard single transformations.

Undo a transformation and track its area scale

A non-singular transformation can be undone by its inverse matrix. Its determinant also controls area: every finite region has its area multiplied by the absolute value of the determinant.

M=(abcd),detM=adbc0M1=1adbc(dbca)M=\begin{pmatrix}a&b\\c&d\end{pmatrix},\quad \det M=ad-bc\ne0\quad\Longrightarrow\quad M^{-1}=\frac1{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}

area after transformation=detM×area before transformation\text{area after transformation}=|\det M|\times\text{area before transformation}

For M=(2103)M=\begin{pmatrix}2&1\\0&3\end{pmatrix}, detM=6\det M=6. Hence M1=16(3102),M^{-1}=\frac16\begin{pmatrix}3&-1\\0&2\end{pmatrix}, and a region of area 55 is transformed to a region of area 6×5=30|6|\times5=30. Conversely, divide the image area by 66 to recover the original area.

For invertible transformations, (AB)1=B1A1(AB)^{-1}=B^{-1}A^{-1}: the inverse first undoes the action performed last. This is the transformation meaning of the reverse-order inverse rule.

Area uses detM|\det M|, never a negative scale factor. If detM=0\det M=0, areas collapse to zero and the transformation has no inverse, so division by the determinant is invalid.