Matrices & linear transformations · Lesson 3 of 3

Linear transformations

The matrix of a linear transformation, rotation about the origin, images and pre-images, one transformation followed by another, and finding a matrix from the images of two points.

22 minYou should already know: Matrices & determinants
  1. 1
  2. 2
  3. 3

The matrix of a transformation

A linear transformation T:(x,y)→(ax+by,cx+dy)T : (x, y) \to (ax + by, cx + dy) has the matrix (abcd)\begin{pmatrix} a & b \\ c & d \end{pmatrix}: read the coefficients of xx and yy row by row. Its columns are the images of (1,0)(1, 0) and (0,1)(0, 1):

(a, c)(b, d)columns of(a b / c d)
What the columns mean(1, 0) → (a, c) and (0, 1) → (b, d)

To find an image, multiply the matrix by the point written as a column. The area of any shape is multiplied by ∣ad−bc∣|ad - bc|.

A matrix as a transformationSet the entries or pick a preset
−5−3−1135−4−224xyPP′
(4, 5)image of P(1, 2)3area scale |ad − bc|
(1, 0) goes to (2, 1) and (0, 1) goes to (1, 2): the columns of the matrix. P(1, 2) goes to (2×1 + 1×2, 1×1 + 2×2) = (4, 5). ad − bc = 3.

Rotation about the origin

Turn the plane anticlockwise through an angle θ\theta about the origin. The unit vectors i=(1,0)\mathbf i = (1, 0) and j=(0,1)\mathbf j = (0, 1) turn with it: i\mathbf i goes to (cos⁡θ,sin⁡θ)(\cos\theta, \sin\theta) and j\mathbf j goes to (−sin⁡θ,cos⁡θ)(-\sin\theta, \cos\theta). Those images are the two columns, so the matrix of the rotation is

Rθ=(cos⁡θ−sin⁡θsin⁡θcos⁡θ)R_\theta = \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}
θθiji′j′cos θ−sin θsin θcos θi′j′anticlockwise θ
Rotation through θi′ = (cos θ, sin θ) is column 1, j′ = (−sin θ, cos θ) is column 2

Put in θ=90∘\theta = 90^\circ, 180∘180^\circ and 270∘270^\circ to get the special cases. A clockwise turn through θ\theta is an anticlockwise turn through −θ-\theta, so 270∘270^\circ anticlockwise is 90∘90^\circ clockwise.

R90∘=(0−110),R180∘=(−100−1),R270∘=(01−10)R_{90^\circ} = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}, \quad R_{180^\circ} = \begin{pmatrix} -1 & 0 \\ 0 & -1 \end{pmatrix}, \quad R_{270^\circ} = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}

They send (x,y)(x, y) to (−y,x)(-y, x), (−x,−y)(-x, -y) and (y,−x)(y, -x). To find the image of any point, multiply RθR_\theta by the point written as a column.

Worked example · WAEC 2008

WAEC 2008 · Paper 2 · Q12 (a)

The point P(3,−5)P(3, -5) is rotated through an angle of 60∘60^\circ anticlockwise about the origin. (i) Obtain the matrix for the rotation. (ii) Find the image P1P_1 of the point PP under the rotation.

  1. The matrix

    • Anticlockwise through 60∘{60^\circ}, so use Rθ{R_\theta} with θ=60∘{\theta = 60^\circ}.
    • cos⁡60∘=12{\cos 60^\circ = \frac12} and sin⁡60∘=32{\sin 60^\circ = \frac{\sqrt3}{2}}.
    • So the matrix is (12−323212){\begin{pmatrix} \frac12 & -\frac{\sqrt3}{2} \\ \frac{\sqrt3}{2} & \frac12 \end{pmatrix}}.

    Think first. Put θ = 60° into the rotation matrix.

  2. The image

    • Top row: 12(3)−32(−5)=3+532{\frac12(3) - \frac{\sqrt3}{2}(-5) = \frac{3 + 5\sqrt3}{2}}.
    • Bottom row: 32(3)+12(−5)=33−52{\frac{\sqrt3}{2}(3) + \frac12(-5) = \frac{3\sqrt3 - 5}{2}}.
    • So P1(3+532,33−52){P_1\left(\frac{3 + 5\sqrt3}{2}, \frac{3\sqrt3 - 5}{2}\right)}.
    • As decimals, P1{P_1} is about (5.83,0.10){(5.83, 0.10)}.

    Think first. Multiply the matrix by (3, −5) written as a column.

One transformation followed by another

To apply NN first and then MM, multiply by NN and then by MM: the combined matrix is MNMN, with the first transformation written on the right.

PN firstNPthen MMNP"N followed by M" = MNN acts first, on the right
N followed by MThe combined matrix is MN

Worked example · WAEC 2019

WAEC 2019 · Paper 2 · Q11

Given that M:(x,y)→(7y,3x−y)M : (x, y) \to (7y, 3x - y) and N:(x,y)→(2x−y,5x+3y)N : (x, y) \to (2x - y, 5x + 3y),

write down the matrices MM and NN of the linear transformations;

find the image of P(2,−3)P(2, -3) under the linear transformation NN followed by MM;

find the coordinates of the point QQ whose image is Q′(2,4)Q'(2, 4) under the linear transformation NN.

  1. The matrices

    • M=(073−1){M = \begin{pmatrix} 0 & 7 \\ 3 & -1 \end{pmatrix}} and N=(2−153){N = \begin{pmatrix} 2 & -1 \\ 5 & 3 \end{pmatrix}}.

    Think first. Read the coefficients of x and y in each output.

  2. N followed by M

    • MN=(0+350+216−5−3−3)=(35211−6){MN = \begin{pmatrix} 0 + 35 & 0 + 21 \\ 6 - 5 & -3 - 3 \end{pmatrix} = \begin{pmatrix} 35 & 21 \\ 1 & -6 \end{pmatrix}}.
    • MN(2−3)=(70−632+18)=(720){MN\begin{pmatrix} 2 \\ -3 \end{pmatrix} = \begin{pmatrix} 70 - 63 \\ 2 + 18 \end{pmatrix} = \begin{pmatrix} 7 \\ 20 \end{pmatrix}}: the image is (7,20){(7, 20)}.

    Think first. The combined matrix is MN, not NM.

  3. The point whose image is (2, 4)

    • 2x−y=2{2x - y = 2} and 5x+3y=4{5x + 3y = 4}.
    • ∣N∣=6+5=11{|N| = 6 + 5 = 11}, so x=3(2)+1(4)11=1011{x = \frac{3(2) + 1(4)}{11} = \frac{10}{11}} and y=−5(2)+2(4)11=−211{y = \frac{-5(2) + 2(4)}{11} = -\frac{2}{11}}.
    • So Q(1011,−211){Q\left(\frac{10}{11}, -\frac{2}{11}\right)}.

    Think first. Undo N: solve N(x, y) = (2, 4).

Finding a matrix from images

If you know the images of two points, write (abcd)\begin{pmatrix} a & b \\ c & d \end{pmatrix} and multiply it by each point. That gives four equations: two in aa and bb, two in cc and dd.

Worked example · WAEC 2011

WAEC 2011 · Paper 2 · Q11

The images of points (2,3)(2, 3) and (4,5)(4, 5) under a linear transformation A\mathbf A are (3,4)(3, 4) and (5,6)(5, 6) respectively. Find the:

matrix A\mathbf A;

inverse of A\mathbf A;

point whose image is (−1,1)(-1, 1).

  1. Four equations

    • First rows: 2a+3b=3{2a + 3b = 3} and 4a+5b=5{4a + 5b = 5}.
    • Second rows: 2c+3d=4{2c + 3d = 4} and 4c+5d=6{4c + 5d = 6}.

    Think first. Multiply (a b / c d) by (2, 3) and by (4, 5).

  2. Solve each pair

    • Double the first and subtract: b=1{b = 1}, so a=0{a = 0}.
    • Likewise d=2{d = 2}, so c=−1{c = -1}: A=(01−12){\mathbf A = \begin{pmatrix} 0 & 1 \\ -1 & 2 \end{pmatrix}}.
  3. The inverse and the pre-image

    • ∣A∣=0(2)−1(−1)=1{|\mathbf A| = 0(2) - 1(-1) = 1}, so A−1=(2−110){\mathbf A^{-1} = \begin{pmatrix} 2 & -1 \\ 1 & 0 \end{pmatrix}}.
    • A−1(−11)=(−3−1){\mathbf A^{-1}\begin{pmatrix} -1 \\ 1 \end{pmatrix} = \begin{pmatrix} -3 \\ -1 \end{pmatrix}}: the point is (−3,−1){(-3, -1)}.

More: linear transformations

Your turn

WAEC 2016 · Paper 2 · Q9 (b)

  1. (b)

    Two linear transformations AA and BB in the OxyOxy plane are defined by A:(x,y)→(x+2y,−x+y)A : (x, y) \to (x + 2y, -x + y) and B:(x,y)→(2x+3y,x+2y)B : (x, y) \to (2x + 3y, x + 2y). (i) Write down the matrices AA and BB. (ii) Find the image of the point P(−2,2)P(-2, 2) under the linear transformation AA followed by BB.

    Separate values with commas, e.g. 3, −2

Worked solution (try it first)

(b)(i)

  1. Read the coefficients off each rule: A=(12−11)A = \begin{pmatrix} 1 & 2 \\ -1 & 1 \end{pmatrix} and B=(2312)B = \begin{pmatrix} 2 & 3 \\ 1 & 2 \end{pmatrix}.

Report a problem with this question