Matrix algebra and linear transformations

Matrix algebra and linear transformations

Spec 3.1–3 · Edexcel A-Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Add or subtract matrices entry by entry; a scalar multiplies every entry.
  • For AB\mathbf{AB} to exist, columns of A\mathbf{A} must equal rows of B\mathbf{B}. Multiplication is not commutative.
  • The columns of a matrix are the images of (1,0)(1,0) and (0,1)(0,1).
  • AB\mathbf{AB} means B\mathbf{B} first, then A\mathbf{A}.
  • A 3×33\times3 matrix transforms 3-D points, with columns the images of the three unit vectors.

Matrix arithmetic

Add entry by entry; multiply rows by columns, which only works when the sizes match.

Matrices of the same size are added or subtracted entry by entry. A scalar multiplies every entry.

The product AB\mathbf{AB} exists when the matrices are conformable: columns of A\mathbf{A} equal rows of B\mathbf{B}. Each entry is a row of A\mathbf{A} times a column of B\mathbf{B}.

Multiplication is associative but not commutative: AB≠BA\mathbf{AB}\ne\mathbf{BA} in general.

  1. 1

    Check conformability

    columns of A must equal rows of B

  2. 2

    Row times column

    multiply along row i of A and down column j of B

  3. 3

    Add the products

    the sum is the entry in row i, column j of AB

Multiplying matrices: a 2×3 times a 3×2 gives a 2×2.
  • m×nm\times n times n×pn\times pgives m×pm\times p
  • Entry in row ii, column jjrow ii of A times column jj of B

Worked example

Find AB\mathbf{AB} and BA\mathbf{BA} for A=(2103)\mathbf{A}=\begin{pmatrix}2&1\\0&3\end{pmatrix} and B=(1−120)\mathbf{B}=\begin{pmatrix}1&-1\\2&0\end{pmatrix}.

P\mathbf{P} is 2×32\times3 and Q\mathbf{Q} is 3×43\times4. What is the size of PQ\mathbf{PQ}?

Zero and identity matrices

The zero matrix wipes everything out; the identity matrix leaves everything unchanged.

The zero matrix 0\mathbf{0} has every entry zero, so A+0=A\mathbf{A}+\mathbf{0}=\mathbf{A} and A0=0\mathbf{A0}=\mathbf{0}.

The identity matrix I\mathbf{I} has 11s on the leading diagonal and 00s elsewhere, so AI=IA=A\mathbf{AI}=\mathbf{IA}=\mathbf{A}. It represents the transformation that does nothing.

Powers work as normal: A2=AA\mathbf{A}^2=\mathbf{AA} and A0=I\mathbf{A}^0=\mathbf{I}.

OABC
The identity matrix leaves the unit square unchanged: (1, 0) stays at (1, 0) and (0, 1) stays at (0, 1).

Zero matrix

  • (0000)\begin{pmatrix}0&0\\0&0\end{pmatrix}
  • Adding it changes nothing
  • Multiplying gives 0\mathbf{0}

Identity matrix

  • (1001)\begin{pmatrix}1&0\\0&1\end{pmatrix}
  • AI=IA=A\mathbf{AI}=\mathbf{IA}=\mathbf{A}
  • Maps every point to itself

R\mathbf{R} is the rotation through 90∘90^\circ anticlockwise about the origin. What is R4\mathbf{R}^4?

Linear transformations in 2-D

The columns of the matrix are the images of (1,0)(1,0) and (0,1)(0,1).

A matrix (abcd)\begin{pmatrix}a&b\\c&d\end{pmatrix} maps (x,y)(x,y) to (ax+by,,cx+dy)(ax+by,,cx+dy).

Its columns are the images of the unit vectors: (1,0)mapsto(a,c)(1,0)mapsto(a,c) and (0,1)mapsto(b,d)(0,1)mapsto(b,d). To build a matrix, find where (1,0)(1,0) and (0,1)(0,1) go and write them as columns.

For mathbfM=(2−111)mathbf{M}=\begin{pmatrix}2&-1\\1&1\end{pmatrix} the unit square becomes a parallelogram. The shape that results is the image.

(2, 1)(-1, 1)OABCPQR
The unit square and its image under M. Its area becomes 3 times larger.

Reflections

  • xx-axis: (100−1)\begin{pmatrix}1&0\\0&-1\end{pmatrix}
  • yy-axis: (−1001)\begin{pmatrix}-1&0\\0&1\end{pmatrix}
  • y=xy=x: (0110)\begin{pmatrix}0&1\\1&0\end{pmatrix}
  • y=−xy=-x: (0−1−10)\begin{pmatrix}0&-1\\-1&0\end{pmatrix}

Rotation and enlargement

  • Anticlockwise θ\theta: (cos⁡θ−sin⁡θsin⁡θcos⁡θ)\begin{pmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{pmatrix}
  • Clockwise: use −θ-\theta
  • Enlargement factor kk: (k00k)\begin{pmatrix}k&0\\0&k\end{pmatrix}

Stretches

  • Parallel to xx-axis, factor kk: (k001)\begin{pmatrix}k&0\\0&1\end{pmatrix}
  • Parallel to yy-axis, factor kk: (100k)\begin{pmatrix}1&0\\0&k\end{pmatrix}

Which matrix represents an anticlockwise rotation of 90∘90^\circ about the origin?

Successive transformations

AB\mathbf{AB} means do B\mathbf{B} first, then A\mathbf{A}: the first transformation sits next to the point.

If B\mathbf{B} is applied first and then A\mathbf{A}, the point x\mathbf{x} becomes A(Bx)=(AB)x\mathbf{A}(\mathbf{Bx})=(\mathbf{AB})\mathbf{x}.

So read the product from right to left, in the order the transformations happen. This is called a pair of successive transformations.

PQRP'Q'R'P''Q''R''
Triangle PQR, then B (90° anticlockwise about O) gives P'Q'R', then A (reflection in the x-axis) gives P''Q''R''. AB means B first.
  • AB\mathbf{AB}B\mathbf{B} first, then A\mathbf{A}

Worked example

Find the single matrix for a reflection in y=xy=x followed by a rotation through 90∘90^\circ anticlockwise, and describe it.

S\mathbf{S} is a stretch and T\mathbf{T} is a rotation. A point is stretched first, then rotated. Which product gives this?

Transformations in 3-D

A 3×33\times3 matrix has columns that are the images of (1,0,0)(1,0,0), (0,1,0)(0,1,0) and (0,0,1)(0,0,1).

The 3-D transformations in this specification are a reflection in a plane (a coordinate plane) and a rotation about an axis (a coordinate axis).

Reflection in x=0x=0 changes the sign of xx only; for y=0y=0 and z=0z=0 the sign change moves to the second or third coordinate.

The axis you rotate about is fixed, so its row and column are those of the identity. Successive 3-D transformations multiply in the same right-to-left order as in 2-D.

  1. 1

    Image of (1, 0, 0)

    goes to (0, 1, 0): first column

  2. 2

    Image of (0, 1, 0)

    goes to (−1, 0, 0): second column

  3. 3

    Image of (0, 0, 1)

    stays (0, 0, 1) on the axis: third column

Building a 3×3 transformation matrix, here a rotation of 90° anticlockwise about the z-axis.

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}

About the yy-axis

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

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}

A reflection in the plane z=0z=0 is applied to (2,−3,5)(2,-3,5). Where does it go?

Try an exam question

Rotation through 90∘90^\circ anticlockwise about the origin is followed by reflection in the line y=xy=x. Find the single matrix that represents the combined transformation and describe it.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find AB\mathbf{AB}.

1 mark, marked against the mark scheme

Revision notes