3.9 Matrix transformations

3.9 Matrix transformations

IB Maths: Applications and Interpretation HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A 2×22\times2 matrix transforms (xy)\begin{pmatrix}x\\ y\end{pmatrix} by multiplication; its columns are the images of (1,0)(1,0) and (0,1)(0,1).
  • A general transformation is Mx+t\mathbf{M}\mathbf{x}+\mathbf{t}: multiply first, then add.
  • If A\mathbf{A} is applied first then B\mathbf{B}, the single matrix is BA\mathbf{B}\mathbf{A}.
  • The area scale factor is ∣det⁡A∣|\det\mathbf{A}|, where det⁡A=ad−bc\det\mathbf{A}=ad-bc.
  • A negative determinant means the image is also reflected.
  • A fractal is built by repeating transformations; areas form a geometric sequence.

Matrices as transformations

Multiplying a position vector by a 2×22\times2 matrix transforms it, and the columns show where (1,0)(1,0) and (0,1)(0,1) go.

(x′y′)=(abcd)(xy)\begin{pmatrix}x'\\ y'\end{pmatrix}=\begin{pmatrix}a&b\\ c&d\end{pmatrix}\begin{pmatrix}x\\ y\end{pmatrix}. So you can write a matrix straight from a picture. All these transformations fix the origin.

To find a matrix, ask where (1,0)(1,0) and (0,1)(0,1) go: first image in column 1, second in column 2.

OABPQ
Rotation of 90° anticlockwise about O: triangle OAB (outline) maps to OPQ (shaded), since (x, y) → (−y, x).

Matrix

Reflection in xx-axis:
(100−1)\begin{pmatrix}1&0\\ 0&-1\end{pmatrix}
Reflection in 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:
(0−1−10)\begin{pmatrix}0&-1\\ -1&0\end{pmatrix}
Enlargement, factor kk, centre origin:
(k00k)\begin{pmatrix}k&0\\ 0&k\end{pmatrix}
Rotation 90∘90^\circ anticlockwise:
(0−110)\begin{pmatrix}0&-1\\ 1&0\end{pmatrix}

Images of (1,0)(1,0), (0,1)(0,1)

Reflection in xx-axis:
(1,0)(1,0), (0,−1)(0,-1)
Reflection in yy-axis:
(−1,0)(-1,0), (0,1)(0,1)
Reflection in y=xy=x:
(0,1)(0,1), (1,0)(1,0)
Reflection in y=−xy=-x:
(0,−1)(0,-1), (−1,0)(-1,0)
Enlargement, factor kk, centre origin:
(k,0)(k,0), (0,k)(0,k)
Rotation 90∘90^\circ anticlockwise:
(0,1)(0,1), (−1,0)(-1,0)

Matrix

Horizontal stretch, factor kk:
(k001)\begin{pmatrix}k&0\\ 0&1\end{pmatrix}
Vertical stretch, factor kk:
(100k)\begin{pmatrix}1&0\\ 0&k\end{pmatrix}
Rotation θ\theta anticlockwise about origin:
(cos⁡θ−sin⁡θsin⁡θcos⁡θ)\begin{pmatrix}\cos\theta&-\sin\theta\\ \sin\theta&\cos\theta\end{pmatrix}

Images of (1,0)(1,0), (0,1)(0,1)

Horizontal stretch, factor kk:
(k,0)(k,0), (0,1)(0,1)
Vertical stretch, factor kk:
(1,0)(1,0), (0,k)(0,k)
Rotation θ\theta anticlockwise about origin:
(cos⁡θ,sin⁡θ)(\cos\theta,\sin\theta), (−sin⁡θ,cos⁡θ)(-\sin\theta,\cos\theta)

Worked example

Rotate (3,2)(3,2) through 90∘90^\circ anticlockwise about the origin.

Which matrix is a reflection in the xx-axis?

Translations: Mx + t

A translation adds a vector to every point, so it cannot be a 2×22\times2 matrix multiplication by itself.

A general transformation is x′=Mx+t\mathbf{x}'=\mathbf{M}\mathbf{x}+\mathbf{t}: do the matrix multiplication first, then add the translation vector. A translation does not change lengths, angles or area.

(4, 2)ABCA'B'C'
A translation by (4, 2) moves every point the same way: lengths, angles and area are unchanged.
  • Image of x\mathbf{x}Mx+t\mathbf{M}\mathbf{x}+\mathbf{t}: multiply, then add

Worked example

Apply (xy)→(2002)(xy)+(1−3)\begin{pmatrix}x \\ y\end{pmatrix}\to\begin{pmatrix}2 & 0 \\ 0 & 2\end{pmatrix}\begin{pmatrix}x \\ y\end{pmatrix}+\begin{pmatrix}1 \\ -3\end{pmatrix} to (4,2)(4,2).

Apply x→(0−110)x+(11)\mathbf{x}\to\begin{pmatrix}0 & -1 \\ 1 & 0\end{pmatrix}\mathbf{x}+\begin{pmatrix}1 \\ 1\end{pmatrix} to (2,3)(2,3).

Compositions

If A\mathbf{A} is applied first and then B\mathbf{B}, the single matrix is BA\mathbf{B}\mathbf{A}.

This is because B(Ax)=(BA)x\mathbf{B}(\mathbf{A}\mathbf{x})=(\mathbf{B}\mathbf{A})\mathbf{x}. The order matters, since matrix multiplication is not commutative.

PQRP1Q1R1Q2R2
Triangle rotated 90° anticlockwise (A), then reflected in the y-axis (B): the single matrix BA is a reflection in y = x.
  • A\mathbf{A} first, then B\mathbf{B}BA\mathbf{B}\mathbf{A}

Worked example

Rotate 90∘90^\circ anticlockwise, M=(0−110)\mathbf{M}=\begin{pmatrix}0 & -1 \\ 1 & 0\end{pmatrix}, then reflect in the xx-axis, R=(100−1)\mathbf{R}=\begin{pmatrix}1 & 0 \\ 0 & -1\end{pmatrix}. Find the single matrix.

A\mathbf{A} is applied first, then B\mathbf{B}. Which single matrix does both?

The determinant and area

The area scale factor of a transformation is ∣det⁡A∣|\det\mathbf{A}|.

For A=(abcd)\mathbf{A}=\begin{pmatrix}a&b\\ c&d\end{pmatrix}, det⁡A=ad−bc\det\mathbf{A}=ad-bc.

  • If det⁡A<0\det\mathbf{A}<0, the image is also reflected (orientation reverses).
  • If det⁡A=0\det\mathbf{A}=0, the shape collapses to a line or a point.
  • Translations do not change area.

For a composition, det⁡(BA)=det⁡B×det⁡A\det(\mathbf{B}\mathbf{A})=\det\mathbf{B}\times\det\mathbf{A}.

OABCDEF
A = (2 0; 0 3) has det A = 6: the unit square (area 1) becomes a 2 by 3 rectangle (area 6).
  • Area of image∣det⁡A∣×|\det\mathbf{A}|\times area of object

Worked example

N=(3122)\mathbf{N}=\begin{pmatrix}3 & 1 \\ 2 & 2\end{pmatrix} transforms a triangle of area 8. Find the area of the image.

What is the area scale factor of (2134)\begin{pmatrix}2 & 1 \\ 3 & 4\end{pmatrix}?

Fractals by iteration

A fractal is built by applying transformations of the form x→Mx+t\mathbf{x}\to\mathbf{M}\mathbf{x}+\mathbf{t} over and over.

For the Sierpinski triangle, apply three enlargements of scale factor 0.5, each with a different translation, and keep all three images. Each has area 0.25A00.25A_0 since det⁡=0.25\det=0.25. After nn iterations there are 3n3^n small triangles and the shaded area is An=(34)nA0A_n=\left(\frac34\right)^nA_0, which tends to 0.

Repeated scaled copies give infinite geometric series, S∞=a1−rS_\infty=\frac{a}{1-r}. Repeating xn+1=Axn\mathbf{x}_{n+1}=\mathbf{A}\mathbf{x}_n links to Markov chains.

  1. 1

    Start

    a filled triangle of area A₀

  2. 2

    Transform

    three enlargements, scale factor 0.5, each with a different translation

  3. 3

    Keep all three images

    3 triangles, each of area 0.25A₀

  4. 4

    Repeat

    apply the same three transformations to the result

Building the Sierpinski triangle
00.20.40.60.81012345Iterations $n$$A_n/A_0$
Shaded area An/A0=(34)nA_n/A_0=\left(\frac34\right)^n falls towards 0.

How many small triangles are there after 3 iterations of the Sierpinski triangle?

Try an exam question

The transformation TT is (xy)→(3122)(xy)+(1−1)\begin{pmatrix}x\\ y\end{pmatrix}\to\begin{pmatrix}3&1\\ 2&2\end{pmatrix}\begin{pmatrix}x\\ y\end{pmatrix}+\begin{pmatrix}1\\ -1\end{pmatrix}. Find the image of (2,1)(2,1), and the area of the image of a triangle of area 5.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the image of the point (3,2)(3,2) under TT.

1 mark, marked against the mark scheme

Revision notes