On this page
Rotations, reflections, stretches, shears and shifts of the plane are all affine transformations, and so is any combination of them. Here is what they keep, what they break, and how to build the one that sends any triangle onto any other.
What is an affine transformation?
An affine transformation of the plane is a map f(x) = Ax + b, where A is an invertible 2×2 matrix and b is a fixed translation vector (Wikipedia, Affine transformation). Every linear map is affine, but an affine map need not keep the origin fixed, so not every affine map is linear (same source). For the matrix part on its own, see how a change of basis matrix works.
What does an affine transformation preserve?
An affine transformation preserves collinearity and ratios of distances along a line, but not necessarily angles or lengths (Wolfram MathWorld, Affine Transformation). Spelled out, after f:
points on a line stay on a line;
parallel lines stay parallel;
a midpoint goes to the midpoint of the image segment, and a point dividing a segment 1:2 still divides it 1:2;
the centroid of a set of points goes to the centroid of their images;
every area is multiplied by the same constant factor (Wikipedia), and that factor is |det A|.
What breaks: lengths, angles, and anything built from them, such as altitudes and circles. Möbius maps make the opposite trade, as our post on Möbius transformations and conformal maps shows.
Worked example: what does a shear do to a square?
Take A = [[1, 1], [0, 1]] and b = 0, so (x, y) ↦ (x + y, y). The unit square with corners (0, 0), (1, 0), (1, 1), (0, 1) goes to (0, 0), (1, 0), (2, 1), (1, 1), a parallelogram.
Parallel sides stay parallel: both vertical sides get slope 1.
The right angle at the origin becomes 45°.
The left side, length 1, becomes length √2.
The centre (½, ½) goes to (1, ½), still the midpoint of both diagonals.
The area stays 1, matching det A = 1.
Worked example: a reflection that needs b
Reflect in the line y = x + 1. The map is (x, y) ↦ (y − 1, x + 1), so A = [[0, 1], [1, 0]] and b = (−1, 1). The mirror misses the origin, so no matrix alone can do this.
Check it: (0, 1) on the mirror stays put, and (1, 0) goes to (−1, 2), whose midpoint with (1, 0) is (0, 1) on the mirror, along direction (−2, 2), perpendicular to the mirror. Here det A = −1: lengths, angles and areas survive, but orientation flips.
How do you find the affine map sending one triangle to another?
For two non-degenerate triangles ABC and A′B′C′ there is exactly one affine map sending A to A′, B to B′ and C to C′ (Wikipedia). From the reference triangle O(0, 0), E₁(1, 0), E₂(0, 1) it takes three steps:
b is the image of O.
The first column of A is the image of E₁ minus b.
The second column of A is the image of E₂ minus b.
For any other starting triangle, map it back to the reference triangle first, then out to the target.
Example: send O, E₁, E₂ to (1, 1), (4, 2), (2, 5). Then b = (1, 1) and A = [[3, 1], [1, 4]]. The area goes from ½ to 11/2, a factor of 11, which is det A.
Why is every triangle an affine image of an equilateral one?
The uniqueness result gives a map from the equilateral triangle to any triangle. Send P(0, 0), Q(1, 0), R(½, √3/2) to the same target. Then b = (1, 1), the first column is (3, 1), and solving ½(3, 1) + (√3/2)c = (1, 4) gives the second column c = (−1/√3, 7/√3). Check R: (1.5 − 0.5 + 1, 0.5 + 3.5 + 1) = (2, 5). And det A = 22/√3, which turns the equilateral area √3/4 into 11/2, as before.
The payoff is a proof strategy. If a statement uses only lines, parallels, ratios along lines and area ratios, prove it for the equilateral triangle and the map carries it to every triangle. Medians meeting at a point that divides each 2:1 is the classic case: obvious by symmetry, and preserved because medians join vertices to midpoints. The same idea handles Routh's theorem on cevian triangles, which is about area ratios.
The trap: statements about angles or lengths do not transfer. In the equilateral triangle the orthocentre is the centroid, but in the image triangle the centroid is (7/3, 8/3) while the altitudes meet at (32/11, 25/11), because right angles are not preserved.
To see these ideas as lessons in the topic map, open the Fermi Concept Library; for worked problems with a step-by-step solver that explains the reasoning, try the Fermi Problem Library.



