FP1.6 - Transformations using matrices
- Syllabus
- 2019
- Topic
- —
- Level
- AS
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=(acbd)⟹(xy)↦A(xy)=(ax+bycx+dy)
In particular, (01)↦(ca) and (10)↦(db). Knowing those two images therefore determines the whole matrix.
If A=(2−113), then (4−2)↦(2(4)+1(−2)−1(4)+3(−2))=(6−10).
If B acts first and A acts second, then a vector follows v↦Bv↦A(Bv)=(AB)v. Thus AB represents B followed by A: 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.
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 x-axis | (100−1) |
| reflection in the y-axis | (−1001) |
| reflection in y=x | (0110) |
| reflection in y=−x | (0−1−10) |
| rotation by θ anticlockwise | (cosθsinθ−sinθcosθ) |
| stretch parallel to the x-axis, factor p | (p001) |
| stretch parallel to the y-axis, factor q | (100q) |
| enlargement, centre (0,0), factor k=0 | (k00k) |
A rotation of 210∘ anticlockwise has cos210∘=−3/2 and sin210∘=−1/2, so its matrix is (−23−2121−23). Exact trigonometric values keep the transformation exact.
To identify an unfamiliar matrix, test its effect on (1,0) and (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.
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 B⟹v↦Av↦B(Av)=(BA)v
Let R=(01−10) rotate 90∘ anticlockwise, and let S=(2001) stretch parallel to the x-axis by factor 2. Rotation followed by stretch has matrix SR=(2001)(01−10)=(01−20).
For v=(21), the separate transformations give (21)↦(1−2)↦(1−4). The product gives SR(21)=(1−4), confirming the order.
Repeating the same transformation A exactly n times gives An. For example, four successive quarter-turns give R4=I, returning every vector to its original position.
Do not multiply matrices in the order the actions are spoken. In general BA=AB, so reversing the factors changes the combined transformation. A product need not match one of the standard single transformations.
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=(acbd),detM=ad−bc=0⟹M−1=ad−bc1(d−c−ba)
area after transformation=∣detM∣×area before transformation
For M=(2013), detM=6. Hence M−1=61(30−12), and a region of area 5 is transformed to a region of area ∣6∣×5=30. Conversely, divide the image area by 6 to recover the original area.
For invertible transformations, (AB)−1=B−1A−1: the inverse first undoes the action performed last. This is the transformation meaning of the reverse-order inverse rule.
Area uses ∣detM∣, never a negative scale factor. If detM=0, areas collapse to zero and the transformation has no inverse, so division by the determinant is invalid.