Three-dimensional transformations and 3x3 matrices

Three-dimensional transformations and 3x3 matrices

Spec 6.1–6 · Edexcel International A Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • The columns of a 3×33\times3 matrix are the images of i\mathbf{i}, j\mathbf{j}, k\mathbf{k}.
  • AB\mathbf{AB} means B\mathbf{B} followed by A\mathbf{A}, and the order matters.
  • (AB)T=BTAT(\mathbf{AB})^{\mathrm{T}}=\mathbf{B}^{\mathrm{T}}\mathbf{A}^{\mathrm{T}} and (AB)−1=B−1A−1(\mathbf{AB})^{-1}=\mathbf{B}^{-1}\mathbf{A}^{-1}.
  • A matrix is singular if det⁡A=0\det\mathbf{A}=0; it has no inverse.
  • A−1=1det⁡Aadj⁡A\mathbf{A}^{-1}=\frac{1}{\det\mathbf{A}}\operatorname{adj}\mathbf{A}: minors, cofactors, transpose, divide.

Matrices as 3D transformations

Its columns are where i\mathbf{i}, j\mathbf{j} and k\mathbf{k} go, so you can write the matrix straight down.

A 3×33\times3 matrix represents a linear transformation of column vectors. Its columns are the images of i=(1,0,0)\mathbf{i}=(1,0,0), j=(0,1,0)\mathbf{j}=(0,1,0) and k=(0,0,1)\mathbf{k}=(0,0,1).

Standard matrices: reflection in z=0z=0 is diag⁡(1,1,−1)\operatorname{diag}(1,1,-1) and in x=0x=0 is diag⁡(−1,1,1)\operatorname{diag}(-1,1,1). A stretch with factors aa, bb, cc along the axes is diag⁡(a,b,c)\operatorname{diag}(a,b,c). Rotations are below; they extend the 2D ones.

ijkOIJK
Oblique sketch of the unit vectors i, j and k: the columns of a 3 × 3 matrix are where i, j and k are sent.
  • Columns of the matriximages of i\mathbf{i}, j\mathbf{j}, k\mathbf{k}
  • Reflection in z=0z=0diag⁡(1,1,−1)\operatorname{diag}(1,1,-1)
  • Stretch factors a,b,ca,b,cdiag⁡(a,b,c)\operatorname{diag}(a,b,c)

Anticlockwise rotation θ\theta about the zz-axis:

(cos⁡θ−sin⁡θ0sin⁡θcos⁡θ0001)\begin{pmatrix} \cos\theta & -\sin\theta & 0 \\ \sin\theta & \cos\theta & 0 \\ 0 & 0 & 1 \end{pmatrix}

and about the xx-axis:

(1000cos⁡θ−sin⁡θ0sin⁡θcos⁡θ)\begin{pmatrix} 1 & 0 & 0 \\ 0 & \cos\theta & -\sin\theta \\ 0 & \sin\theta & \cos\theta \end{pmatrix}

In 2D the same ideas apply with 2×22\times2 matrices, and the 3D versions extend them.

What is the matrix of a reflection in the plane y=0y=0?

Combining transformations

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

If A\mathbf{A} is applied first and B\mathbf{B} second, the combined transformation has matrix BA\mathbf{BA}: AB\mathbf{AB} means B\mathbf{B} followed by A\mathbf{A}.

Matrix multiplication is non-commutative, so the order matters.

  1. 1

    Start with x

    a column vector

  2. 2

    Apply A first

    the vector becomes Ax

  3. 3

    Apply B second

    the vector becomes B(Ax)

  4. 4

    Combined matrix

    B(Ax) = (BA)x, so write BA

Applying A first and then B gives BA.
  • A\mathbf{A} first, then B\mathbf{B}BA\mathbf{BA}

Worked example

P\mathbf{P} is a rotation of 90∘90^\circ about the zz-axis and Q\mathbf{Q} is a reflection in x=0x=0. Find the matrix for P\mathbf{P} followed by Q\mathbf{Q}, and compare it with PQ\mathbf{PQ}.

Transformation M\mathbf{M} is applied first, then N\mathbf{N}. Which matrix represents the combined transformation?

The transpose

The transpose swaps rows and columns, and reverses the order of a product.

The transpose AT\mathbf{A}^{\mathrm{T}} interchanges rows and columns, so (AT)ij=Aji(\mathbf{A}^{\mathrm{T}})_{ij}=\mathbf{A}_{ji}.

For a rotation matrix R\mathbf{R}, RT=R−1\mathbf{R}^{\mathrm{T}}=\mathbf{R}^{-1}.

PQ40°OPQ
A rotation R of 40° takes P to Q; the transpose Rᵀ = R⁻¹ rotates Q back to P. (A 2D slice of a rotation about the z-axis.)
  • (AB)T(\mathbf{AB})^{\mathrm{T}}BTAT\mathbf{B}^{\mathrm{T}}\mathbf{A}^{\mathrm{T}}
  • (AT)T(\mathbf{A}^{\mathrm{T}})^{\mathrm{T}}A\mathbf{A}
  • det⁡AT\det\mathbf{A}^{\mathrm{T}}det⁡A\det\mathbf{A}

Worked example

Write down the transpose of A=(12034−1201)\mathbf{A}=\begin{pmatrix} 1 & 2 & 0 \\ 3 & 4 & -1 \\ 2 & 0 & 1 \end{pmatrix}.

det⁡A=7\det\mathbf{A}=7. What is det⁡AT\det\mathbf{A}^{\mathrm{T}}?

Determinants and singular matrices

Expand along a row or column with the sign pattern + − ++\,-\,+; a determinant of zero means the matrix is singular.

Expand a 3×33\times3 determinant along a row or column using the sign pattern (+−+−+−+−+)\begin{pmatrix} + & - & + \\ - & + & - \\ + & - & + \end{pmatrix}:

∣abcdefghi∣=a(ei−fh)−b(di−fg)+c(dh−eg).\begin{vmatrix} a & b & c \\ d & e & f \\ g & h & i \end{vmatrix}=a(ei-fh)-b(di-fg)+c(dh-eg).

A matrix is singular if det⁡A=0\det\mathbf{A}=0 (no inverse) and non-singular otherwise. Also det⁡(AB)=det⁡Adet⁡B\det(\mathbf{AB})=\det\mathbf{A}\det\mathbf{B}.

(3, 1)(1, 2)OACB
The 2 × 2 case: columns (3, 1) and (1, 2) span a parallelogram of area |det| = |3×2 − 1×1| = 5. If det = 0 the columns line up and the area is zero.
  • det⁡(AB)\det(\mathbf{AB})det⁡A×det⁡B\det\mathbf{A}\times\det\mathbf{B}
  • det⁡A=0\det\mathbf{A}=0Singular: no inverse

Worked example

Find the value of kk for which (1203k−1201)\begin{pmatrix} 1 & 2 & 0 \\ 3 & k & -1 \\ 2 & 0 & 1 \end{pmatrix} is singular.

det⁡A=2\det\mathbf{A}=2 and det⁡B=−3\det\mathbf{B}=-3. What is det⁡(AB)\det(\mathbf{AB})?

Inverses

Find the determinant, matrix of cofactors and adjugate, then divide: A−1=1det⁡Aadj⁡A\mathbf{A}^{-1}=\frac{1}{\det\mathbf{A}}\operatorname{adj}\mathbf{A}.

For a non-singular 3×33\times3 matrix, A−1=1det⁡Aadj⁡A\mathbf{A}^{-1}=\frac{1}{\det\mathbf{A}}\operatorname{adj}\mathbf{A}.

For products (AB)−1=B−1A−1(\mathbf{AB})^{-1}=\mathbf{B}^{-1}\mathbf{A}^{-1}: the inverse undoes the last transformation first. A reflection is its own inverse; the inverse of an anticlockwise rotation is the clockwise rotation about the same axis.

  1. 1

    Find the determinant

    Calculate det⁡A\det\mathbf{A}

  2. 2

    Cofactors

    Find the matrix of minors, then apply the + − + signs

  3. 3

    Adjugate

    Transpose the cofactor matrix

  4. 4

    Divide and check

    Divide by det⁡A\det\mathbf{A} and check AA−1=I\mathbf{AA}^{-1}=\mathbf{I}

Finding A−1\mathbf{A}^{-1}

What is the inverse of the matrix for a reflection in z=0z=0?

Try an exam question

The matrix M=(10203121k)\mathbf{M}=\begin{pmatrix}1&0&2\\0&3&1\\2&1&k\end{pmatrix} is singular. Find the value of kk and state what this means for M−1\mathbf{M}^{-1}.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the image of the point (1,2,3)(1,2,3) under the transformation P\mathbf{P}.

1 mark, marked against the mark scheme

Revision notes