Mathwords logoMathwords

Affine Geometry — Definition, Formula & Example

Affine geometry is the geometry of properties that stay true when you stretch, shear, rotate, or slide a figure without bending its lines. Parallel lines stay parallel and midpoints stay midpoints. Lengths and angles are allowed to change.

Affine geometry is the study of an affine space together with the properties left invariant by the affine group. On Rn\mathbb{R}^n this group consists of the maps T(x)=Ax+bT(\mathbf{x}) = A\mathbf{x} + \mathbf{b}, where AA is an invertible n×nn \times n matrix and b∈Rn\mathbf{b} \in \mathbb{R}^n. Its invariants include incidence, collinearity, parallelism, ratios of lengths of parallel segments, and ratios of areas (or volumes). Distance and angle measure are not invariants.

Key Formula

T(x)=Ax+b,det⁡A≠0,Area(T(R))=∣det⁡A∣⋅Area(R)T(\mathbf{x}) = A\mathbf{x} + \mathbf{b}, \qquad \det A \neq 0, \qquad \text{Area}(T(R)) = |\det A| \cdot \text{Area}(R)
Where:
  • TT = An affine transformation
  • AA = An invertible matrix giving the linear part (stretch, shear, rotation, reflection)
  • b\mathbf{b} = A translation vector
  • RR = Any region of the plane with finite area
  • det⁡A\det A = The determinant of A. Its absolute value is the factor by which every area is multiplied

Worked Example

Problem: Apply the affine map T(x,y)=(2x+y, 3y)T(x, y) = (2x + y,\ 3y) to the right triangle with vertices A(0,0)A(0,0), B(4,0)B(4,0), C(0,2)C(0,2). Check whether the midpoint of ABAB, the right angle at AA, and the area survive the map.
Step 1: Map each vertex. Here the matrix is A=(2103)A = \begin{pmatrix} 2 & 1 \\ 0 & 3 \end{pmatrix} and b=0\mathbf{b} = \mathbf{0}.
A′=(0,0),B′=(2⋅4+0, 0)=(8,0),C′=(2⋅0+2, 3⋅2)=(2,6)A' = (0,0), \quad B' = (2\cdot 4 + 0,\ 0) = (8, 0), \quad C' = (2\cdot 0 + 2,\ 3\cdot 2) = (2, 6)
Step 2: Test the midpoint. The midpoint of ABAB is M(2,0)M(2,0). Its image matches the midpoint of A′B′A'B', so the midpoint is preserved. Then test the angle at A′A'. The dot product of the side vectors is not 0, so the right angle is lost.
T(2,0)=(4,0)=(0+82, 0+02),(8,0)⋅(2,6)=16≠0T(2,0) = (4,0) = \left(\tfrac{0+8}{2},\ \tfrac{0+0}{2}\right), \qquad (8,0)\cdot(2,6) = 16 \neq 0
Step 3: Compare areas. The original area is 4 and det⁡A=6\det A = 6, so the new area should be 24. The shoelace formula confirms this.
12∣8⋅6−0⋅2∣=24=6⋅4\tfrac{1}{2}\left|8\cdot 6 - 0\cdot 2\right| = 24 = 6 \cdot 4
Answer: The midpoint is preserved, and every area is multiplied by the same factor, 6. The right angle is not preserved. Midpoints and area ratios are affine properties. Angles are not.

Why It Matters

In affine geometry every triangle is equivalent to every other triangle. So you can prove a fact like "the medians meet at a point dividing each in a 2:1 ratio" by checking it only for an equilateral triangle. Computer graphics also relies on affine maps, written as 3-by-3 matrices, to move, scale, and skew images. You will meet them again in a linear algebra course.

Common Mistakes

Mistake: Assuming an affine map preserves the ratio of any two lengths, such as two sides of a triangle.
Correction: Only ratios of lengths along the same line or along parallel lines are preserved. In the example, sides ABAB and ACAC had ratio 4:24:2, but their images have lengths 88 and 40\sqrt{40}, which is not a 2:12:1 ratio.

Related Terms