What does each matrix do to the unit square?
The columns of a 2×2 matrix are the images of and . Pick a transformation, watch the green image of the unit square, and read off the matrix. These are the OCR-spec transformations.
Working: transform all four corners at once
Write the four corners as the columns of a single matrix, then multiply by . Each column of the answer is one transformed corner; join back up to draw the green shape.
A and B are the unit points on the axes, so columns and are exactly the two columns of .
Formula Sheet (OCR)
The OCR formula book gives only the two general results below. Everything in the second group is not in the book – you read it off the columns or get it from the general formula. = the area scale factor.
| Transformation | Matrix |
|---|---|
| Given in the OCR formula book | |
| Rotation anticlockwise by about | |
| Reflection in the line | |
| Not given – read off the columns (or use the formulae above) | |
| 90° anticlockwise | |
| 180° | |
| 90° clockwise | |
| Reflection in the -axis | |
| Reflection in the -axis | |
| Reflection in | |
| Reflection in | |
| Stretch parallel to (-axis invariant, s.f. ) | |
| Stretch parallel to (-axis invariant, s.f. ) | |
| Enlargement, centre (s.f. ) | |
| Shear parallel to (-axis fixed) | |
| Shear parallel to (-axis fixed) | |
Rotation by any angle
Drag the angle. A(1,0) is the unit point on the x-axis and B(0,1) is the unit point on the y-axis. Rotating the whole plane just means rotating these two points: A swings to (cosθ, sinθ) and B to (−sinθ, cosθ). Those are the two columns of the matrix.
Method – where do A and B go?
Doing one transformation then another
If you apply first and then , the single matrix that does both is the product - the first one you apply goes on the right. Order usually matters.
Is the same?
Swapping the order applies first instead. Usually this gives a different matrix – order matters.
Blue dashed = after . Green = after both. The original unit square is grey.
Invariant points and lines
Invariant means never changing. Press Play below and watch every point slide from where it starts (black) to where the matrix sends it (red). The interesting question is: which points and lines don’t change?
Overview
A single point that maps to itself. When the transformation is applied it lands straight back in the same place, while the points around it move.
A line that maps onto itself. Points are allowed to slide along the line to a new spot, but they never leave it.
A whole line where every point stays put. Each point on the line maps exactly to itself; points off the line still move. (It is a special, “frozen” invariant line.)
Dynamic Examples
Load one into (or type your own), then press Play.
Method 1 – finding invariant points
(In matrix form this is the same as , if you prefer that route.)
Worked numerical example
Method 2 – finding invariant lines
(Quicker version for lines through : just require the image of to keep gradient – it gives the same quadratic.)
Worked numerical example
Transformations in 3D
A 3×3 matrix transforms 3D space. Its three columns are the images of i = (1,0,0), j = (0,1,0) and k = (0,0,1). Pick a transformation and watch the green image of the unit cube. = the volume scale factor.
Standard 3D matrices
| Transformation | Matrix |
|---|---|
| Reflection in a coordinate plane | |
| In (flip ) | |
| In (flip ) | |
| In (flip ) | |
| Rotation anticlockwise by about an axis | |
| About the -axis | |
| About the -axis | |
| About the -axis | |
| Enlargement | |
| Centre , s.f. (volume ) | |