Affine Geometry and Affine Transformations
Affine geometry is the study of geometric properties preserved by affine transformations — maps of the form that preserve straight lines, parallelism, and ratios of lengths along a line, but NOT lengths, angles, or absolute position. Key result: every affine map is an invertible linear map composed with a translation; it forms the affine group . Applies in: computer graphics, robotics, geometric modeling, projective geometry, linear algebra. Who/when: Euler and Möbius (19th c.); systematized via Klein's Erlangen Program (1872).An affine space is a set of points on which a vector space acts freely and transitively by translation — informally, "a vector space that has forgotten where its origin is." An affine transformation is a map between affine spaces of the form , where is a linear map and is a translation vector. Affine geometry matters because it isolates exactly those geometric facts — collinearity, parallelism, midpoints, centroids, convexity — that do not depend on a choice of origin, units, or perpendicularity. The surprising fact: although affine maps can stretch, shear, and skew shapes beyond recognition, they preserve the ratio in which a point divides a segment, and they map the centroid of any point set to the centroid of its image — a rigidity hidden inside enormous flexibility.
The Core Insight
Geometry without an origin. In a vector space you can add vectors and scale them; in an affine space you cannot add two points, but you can subtract points to get a vector, and you can form affine combinations when . Affine transformations are precisely the maps that respect this structure: they preserve affine combinations. Everything else — that lines stay lines, parallels stay parallel, ratios stay fixed — follows from this single algebraic fact.
Formal Statement
Affine Space
An affine space modeled on a vector space over a field is a set together with a map (action)
satisfying three axioms: (i) ; (ii) ; (iii) for every ordered pair of points there exists a unique vector with , written . The dimension of is .
Affine Combination
Given points and scalars with , their affine combination is the point
If additionally all , the combination is a convex combination, and the set of all such points is the convex hull.
Affine Transformation
A map between affine spaces is affine if there exists a linear map (the linear part, or differential ) such that
In coordinates (after choosing origins so , ), every affine map takes the canonical form
Characterization of Affine Maps
For a map , the following are equivalent:
- is affine (satisfies [3]).
- preserves all affine combinations: whenever .
- has the form in coordinates.
- (Over , , bijective) maps lines to lines — the Fundamental Theorem of Affine Geometry.
The Affine Group
The invertible affine transformations of (those with ) form a group under composition, the affine group . Composition obeys
There is a short exact sequence , exhibiting as a semidirect product .
Why It Holds / Derivation
Affine maps preserve ratios on a line
We show that if is affine and divides segment in ratio , then divides in the same ratio.
Step 1. Write as an affine combination: , and check , so this is a valid affine combination by [2]. Step 2. Apply and use preservation of affine combinations (Theorem, item 2):The ratio is invariant. Note lengths themselves are not preserved (the linear part rescales them), but the ratio is.
Preservation of parallelism
Let lines be parallel with common direction , i.e. . Apply with linear part :
Both image lines have the same direction vector , hence are parallel (or coincide). If is invertible, , so they are genuine parallel lines.
An affine transformation (shear + scale) maps a unit square to a parallelogram while preserving parallelism and the diagonal's midpoint
Building Intuition
intuition Think of an affine map as what happens to a drawing on a sheet of rubber that you stretch uniformly, shear, rotate, and slide — but never crumple or fold. Straight pencil lines stay straight; parallel lines stay parallel; if a point was the midpoint of a segment, it stays the midpoint; the centroid of a triangle stays the centroid. What is destroyed is anything requiring a ruler or protractor: distances change, angles change, circles become ellipses, squares become parallelograms.
A second mental model: an affine map is a linear map plus a shift. The linear part does all the rotating/stretching/shearing about the origin; the vector then slides the whole result. Equation [4] literally says "transform directions linearly, then move." Crucially, affine geometry refuses to single out the origin as special — that is the whole point of "forgetting where the origin is."
August Ferdinand Möbius | 1790–1868
Though "affine" was coined by Euler, it was Möbius in Der barycentrische Calcul (1827) who built the first systematic theory by representing points through barycentric coordinates — weights on reference points whose center of mass is the point in question. This is exactly the affine-combination idea of equation [2]. Möbius realized that the ratios of weights carry geometric meaning independent of any origin, anticipating both affine and projective geometry. His barycentric calculus turned synthetic geometric statements (collinearity, concurrence) into clean algebraic conditions and directly inspired the group-theoretic viewpoint Felix Klein later formalized.
Worked Examples
Mapping three points (solving for an affine map in the plane)
Given: Find the affine map in sending , , . Step 1 — find . Since , we get . Step 2 — find columns of . Because , . So . Similarly . Step 3 — assemble.Ratio preservation under a shear
Given: The shear (so , ). Let , , and divide in ratio , i.e. . Step 1 — image of endpoints. ; . Step 2 — image of . . Step 3 — verify ratio. The point dividing at is , which equals . ✓Common Misconceptions
Affine maps do NOT preserve distances, angles, or areas in general. Only special affine maps do:- orthogonal () and arbitrary → isometry (preserves distance & angle).
- → equiareal / special affine (preserves area but maybe not distance).
- General invertible → preserves only collinearity, parallelism, and ratios along a line.
A frequent error: assuming "preserves ratios" means "preserves all ratios of lengths." It does not — it preserves the ratio in which a point divides a segment of the same line, and ratios of parallel segments. It does NOT preserve the ratio of two non-parallel lengths (e.g. base-to-height of a triangle), because the linear part stretches different directions differently.
Claim (false): "An affine map preserves the ratio of the sides of a rectangle."Take the unit square with vertices at and the affine map — pure horizontal scaling. The horizontal side , the vertical side . The aspect ratio changes from to . The square becomes a rectangle.
Worse, turns the square into a parallelogram: right angles are destroyed entirely. Angles and aspect ratios are affine-invariant only for isometries (and similarities for angles), not for general affine maps.
Claim (false): "Every line-preserving bijection of the plane is affine — that's the Fundamental Theorem."Over this is true. But over it fails: the map (complex conjugation, viewed appropriately) and more dramatically maps built from a wild field automorphism of send lines to lines yet are not affine over — they are only semi-affine, affine up to a field automorphism. The Fundamental Theorem of Affine Geometry requires the field's only automorphism fixing the structure to be the identity (true for , false for ).
Connections
Affine geometry sits between Linear Algebra and Projective Geometry in Klein's hierarchy. Drop the origin from a vector space and you get an affine space; add a "line at infinity" and you get projective space — there, parallelism disappears (parallels meet at infinity) and even ratios are replaced by the cross-ratio, the projective invariant. Restrict affine maps by demanding orthogonal and you recover Euclidean Geometry (isometries, the rigid-motion group). The relationship to Convexity and Convex Sets is intimate: convex combinations are affine combinations with nonnegative weights, so affine maps send convex sets to convex sets and preserve the structure of convex hulls. The barycentric viewpoint links directly to Centroids and Centers of Mass.
Real-World Applications
- Computer graphics & GPUs. Every translation, rotation, scale, and shear of a 2D/3D model is an affine map; graphics pipelines use homogeneous matrices so that translation becomes a matrix multiplication (composing via [5]). "Affine texture mapping" was a hallmark of early 3D consoles.
- Robotics & kinematics. Rigid-body poses are affine (in fact Euclidean) transformations; forward kinematics chains them by composition [5]. The special Euclidean group describes every robot end-effector pose.
- Image registration / medical imaging. Aligning two MRI or satellite images often uses an affine model to correct for stretch, shear, and shift between scans before finer nonlinear warping.
- Computer-aided geometric design (CAD). Bézier and B-spline curves are affine invariant: transforming the control points and re-evaluating gives the same result as transforming the curve — a direct consequence of affine combinations [2].
- Data science — affine layers. A neural-network "linear layer" is literally an affine map; nonlinearity is added only by the activation function.
- Crystallography. Affine (and subgroup Euclidean) transformations classify crystal lattice symmetries and lattice-to-lattice deformations.
- Typography & font rendering. Italic slant is a shear; condensing/expanding fonts is anisotropic scaling — both affine.
Historical Development
- c. 1748 — Euler introduces the term affine (affinis, "related") in Introductio in analysin infinitorum for curves related by coordinate scaling.
- 1827 — Möbius publishes Der barycentrische Calcul, founding barycentric coordinates and the algebraic theory of affine combinations.
- 1832 — Plücker develops analytic methods linking affine and projective coordinates.
- 1844 — Grassmann (Ausdehnungslehre) builds an abstract calculus of points and vectors anticipating affine spaces.
- 1872 — Felix Klein's Erlangen Program defines each geometry by its transformation group; affine geometry = invariants of the affine group , sandwiched between projective and Euclidean.
- 1899 — Hilbert (Grundlagen der Geometrie) gives a rigorous axiomatic treatment isolating affine (incidence + parallel) axioms from metric ones.
- 1918 — Weyl (Raum, Zeit, Materie) gives the now-standard axiomatic definition of an affine space as a set acted on by a vector space, used in relativity.
- 20th c. — Veblen & Young, Artin (Geometric Algebra, 1957) prove the Fundamental Theorem of Affine/Projective Geometry, characterizing line-preserving maps.
- 1960s–present — affine transformations become foundational in computer graphics (Sutherland's Sketchpad, 1963) and in homogeneous-coordinate rendering pipelines.