Affine Geometry and Affine Transformations

⚡ Key Takeaways

Affine geometry is the study of geometric properties preserved by affine transformations — maps of the form x↦Ax+bx \mapsto Ax + b 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 Aff(n)\mathrm{Aff}(n). 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).

💡 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 ∑λiPi\sum \lambda_i P_i when ∑λi=1\sum \lambda_i = 1. 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

DefinitionAffine Space

An affine space modeled on a vector space VV over a field KK is a set A\mathcal{A} together with a map (action)

1
A×V→A,(P,v)↦P+v\quad \mathcal{A} \times V \to \mathcal{A}, \qquad (P, v) \mapsto P + v

Derivation hint: this is the formal "translate point PP by vector vv" operation; it is the primitive datum of the structure. satisfying three axioms: (i) P+0=PP + 0 = P; (ii) (P+v)+w=P+(v+w)(P + v) + w = P + (v + w); (iii) for every ordered pair of points (P,Q)(P,Q) there exists a unique vector vv with P+v=QP + v = Q, written v=PQ→=Q−Pv = \overrightarrow{PQ} = Q - P. The dimension of A\mathcal{A} is dim⁡V\dim V.

DefinitionAffine Combination

Given points P1,…,Pk∈AP_1, \dots, P_k \in \mathcal{A} and scalars λ1,…,λk∈K\lambda_1, \dots, \lambda_k \in K with ∑iλi=1\sum_i \lambda_i = 1, their affine combination is the point

2
∑i=1kλiPi:=P1+∑i=2kλi P1Pi→\quad \sum_{i=1}^{k} \lambda_i P_i := P_1 + \sum_{i=2}^{k} \lambda_i\,\overrightarrow{P_1 P_i}

Derivation hint: choose any base point (here P1P_1), express everything as translations of it, then verify the result is independent of the base point because ∑λi=1\sum\lambda_i = 1 makes the base-point terms cancel. If additionally all λi≥0\lambda_i \geq 0, the combination is a convex combination, and the set of all such points is the convex hull.

DefinitionAffine Transformation

A map T:A→BT : \mathcal{A} \to \mathcal{B} between affine spaces is affine if there exists a linear map L:V→WL : V \to W (the linear part, or differential dTdT) such that

3
T(P+v)=T(P)+L(v)for all P∈A, v∈V\quad T(P + v) = T(P) + L(v) \qquad \text{for all } P \in \mathcal{A},\ v \in V

Derivation hint: differentiate the definition — the linear part LL is forced to be unique because the vector-space action is transitive, so L(v)=T(P+v)−T(P)L(v) = T(P+v) - T(P) is well defined independent of PP. In coordinates (after choosing origins so A=Kn\mathcal{A} = K^n, B=Km\mathcal{B} = K^m), every affine map takes the canonical form

4
T(x)=Ax+b,A∈Km×n, b∈Km\quad T(x) = Ax + b, \qquad A \in K^{m \times n},\ b \in K^m

Derivation hint: set b=T(0)b = T(0) and A=LA = L; then T(x)=T(0+x)=T(0)+L(x)=Ax+bT(x) = T(0 + x) = T(0) + L(x) = Ax + b by equation [3].

TheoremCharacterization of Affine Maps

For a map T:A→BT : \mathcal{A} \to \mathcal{B}, the following are equivalent: 1. TT is affine (satisfies [3]). 2. TT preserves all affine combinations: T ⁣(∑λiPi)=∑λiT(Pi)T\!\left(\sum \lambda_i P_i\right) = \sum \lambda_i T(P_i) whenever ∑λi=1\sum \lambda_i = 1. 3. TT has the form x↦Ax+bx \mapsto Ax + b in coordinates. 4. (Over R\mathbb{R}, dim⁡≥2\dim \geq 2, TT bijective) TT maps lines to lines — the Fundamental Theorem of Affine Geometry.

TheoremThe Affine Group

The invertible affine transformations of A≅Kn\mathcal{A} \cong K^n (those with A∈GL(n,K)A \in \mathrm{GL}(n,K)) form a group under composition, the affine group Aff(n,K)\mathrm{Aff}(n, K). Composition obeys

5
(A2x+b2)∘(A1x+b1)=(A2A1) x+(A2b1+b2)\quad (A_2 x + b_2) \circ (A_1 x + b_1) = (A_2 A_1)\,x + (A_2 b_1 + b_2)

Derivation hint: substitute the inner map into the outer and collect the linear coefficient of xx and the constant term separately. There is a short exact sequence 1→(Kn,+)→Aff(n,K)→GL(n,K)→11 \to (K^n, +) \to \mathrm{Aff}(n,K) \to \mathrm{GL}(n,K) \to 1, exhibiting Aff(n)\mathrm{Aff}(n) as a semidirect product Kn⋊GL(n,K)K^n \rtimes \mathrm{GL}(n,K).

Why It Holds / Derivation

ProofAffine maps preserve ratios on a line

We show that if TT is affine and C=(1−t)A+tBC = (1-t)A + tB divides segment ABAB in ratio tt, then T(C)T(C) divides T(A)T(B)T(A)T(B) in the same ratio.

Step 1. Write CC as an affine combination: C=(1−t)A+tBC = (1-t)A + tB, and check  (1−t)+t=1\,(1-t) + t = 1, so this is a valid affine combination by [2].

Step 2. Apply TT and use preservation of affine combinations (Theorem, item 2):

6
T(C)=T((1−t)A+tB)=(1−t) T(A)+t T(B)\quad T(C) = T\big((1-t)A + tB\big) = (1-t)\,T(A) + t\,T(B)

Derivation hint: this is exactly property (2) of the characterization theorem applied with λ1=1−t\lambda_1 = 1-t, λ2=t\lambda_2 = t.

Step 3. The right side of [6] is the point dividing T(A)T(B)T(A)T(B) in ratio tt. Hence

7
T(A) T(C)→T(C) T(B)→=t1−t=AC→CB→\quad \frac{\overrightarrow{T(A)\,T(C)}}{\overrightarrow{T(C)\,T(B)}} = \frac{t}{1-t} = \frac{\overrightarrow{AC}}{\overrightarrow{CB}}

Derivation hint: subtract T(A)T(A) and T(B)T(B) from [6] to read off the two directed sub-segments, then take their ratio; the linear part AA cancels. The ratio is invariant. Note lengths themselves are not preserved (the linear part rescales them), but the ratio is. ■\blacksquare

∎
ProofPreservation of parallelism

Let lines ℓ1,ℓ2\ell_1, \ell_2 be parallel with common direction v∈Vv \in V, i.e. ℓi={Pi+sv:s∈K}\ell_i = \{P_i + sv : s \in K\}. Apply TT with linear part LL:

8
T(ℓi)={T(Pi)+s L(v):s∈K}\quad T(\ell_i) = \{T(P_i) + s\,L(v) : s \in K\}

Derivation hint: substitute the parametrization of ℓi\ell_i into the defining property [3] of TT. Both image lines have the same direction vector L(v)L(v), hence are parallel (or coincide). If TT is invertible, L(v)≠0L(v) \neq 0, so they are genuine parallel lines. ■\blacksquare

∎
Figure
An affine transformation (shear + scale) maps a unit square to a parallelogram while preserving parallelism and the diagonal's midpoint
M (midpoint) unit square A B T(x)=Ax+b T(M) parallelogram T(A) T(B)

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 AA does all the rotating/stretching/shearing about the origin; the vector bb 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."

AF
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 λi\lambda_i 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

ExampleMapping three points (solving for an affine map in the plane)

Given: Find the affine map T(x)=Ax+bT(x) = Ax + b in R2\mathbb{R}^2 sending P1=(0,0)→Q1=(1,1)P_1=(0,0)\to Q_1=(1,1), P2=(1,0)→Q2=(3,2)P_2=(1,0)\to Q_2=(3,2), P3=(0,1)→Q3=(2,4)P_3=(0,1)\to Q_3=(2,4).

Step 1 — find bb. Since T(0,0)=A⋅0+b=bT(0,0) = A\cdot 0 + b = b, we get b=Q1=(1,1)b = Q_1 = (1,1).

Step 2 — find columns of AA. Because P2=e1P_2 = e_1, T(e1)=Ae1+b=(col1A)+bT(e_1) = A e_1 + b = (\text{col}_1 A) + b. So col1A=Q2−b=(3,2)−(1,1)=(2,1)\text{col}_1 A = Q_2 - b = (3,2)-(1,1) = (2,1). Similarly col2A=Q3−b=(2,4)−(1,1)=(1,3)\text{col}_2 A = Q_3 - b = (2,4)-(1,1) = (1,3).

Step 3 — assemble.

9
A=(2113),b=(11),det⁡A=5≠0\quad A = \begin{pmatrix} 2 & 1 \\ 1 & 3 \end{pmatrix}, \quad b = \begin{pmatrix} 1 \\ 1 \end{pmatrix}, \quad \det A = 5 \neq 0

Derivation hint: three non-collinear point-images uniquely determine a planar affine map; columns of AA come from images of the standard basis after subtracting the image of the origin.

Check: T(1,0)=(2,1)+(1,1)=(3,2)=Q2T(1,0) = (2,1)+(1,1) = (3,2) = Q_2. ✓

T(x,y)=(2x+y+1, x+3y+1)\boxed{T(x,y) = (2x + y + 1,\ x + 3y + 1)}

Area scales by ∣det⁡A∣=5|\det A| = 5: a unit triangle of area 0.50.5 maps to area 2.52.5 (square units).

ExampleRatio preservation under a shear

Given: The shear T(x,y)=(x+2y, y)T(x,y) = (x + 2y,\ y) (so A=(1201)A = \begin{pmatrix}1&2\\0&1\end{pmatrix}, b=0b=0). Let A=(0,0)A=(0,0), B=(4,2)B=(4,2), and CC divide ABAB in ratio t=14t = \tfrac14, i.e. C=34A+14B=(1,0.5)C = \tfrac34 A + \tfrac14 B = (1, 0.5).

Step 1 — image of endpoints. T(A)=(0,0)T(A) = (0,0); T(B)=(4+2⋅2, 2)=(8,2)T(B) = (4 + 2\cdot 2,\ 2) = (8, 2).

Step 2 — image of CC. T(C)=(1+2⋅0.5, 0.5)=(2,0.5)T(C) = (1 + 2\cdot 0.5,\ 0.5) = (2, 0.5).

Step 3 — verify ratio. The point dividing T(A)T(B)T(A)T(B) at t=14t=\tfrac14 is 34(0,0)+14(8,2)=(2,0.5)\tfrac34(0,0) + \tfrac14(8,2) = (2, 0.5), which equals T(C)T(C). ✓

10
T(A)T(C)→T(A)T(B)→=(2,0.5)(8,2)=14=t\quad \frac{\overrightarrow{T(A)T(C)}}{\overrightarrow{T(A)T(B)}} = \frac{(2,0.5)}{(8,2)} = \tfrac14 = t

Derivation hint: confirm both numerator and denominator are parallel (they must be, since the image is a line) and compute the scalar ratio of magnitudes; it equals the original tt as predicted by equation [6].

Ratio t=14 is preserved; lengths are not (∣AB∣=20→∣T(A)T(B)∣=68).\boxed{\text{Ratio } t = \tfrac14 \text{ is preserved; lengths are not } (|AB| = \sqrt{20} \to |T(A)T(B)| = \sqrt{68}).}

Common Misconceptions

⚠️ Common mistake

Affine maps do NOT preserve distances, angles, or areas in general. Only special affine maps do:

  • AA orthogonal (ATA=IA^TA = I) and bb arbitrary → isometry (preserves distance & angle).
  • det⁡A=±1\det A = \pm 1 → equiareal / special affine (preserves area but maybe not distance).
  • General invertible AA → 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.

Counterexample

Claim (false): "An affine map preserves the ratio of the sides of a rectangle." Take the unit square with vertices at (0,0),(1,0),(1,1),(0,1)(0,0),(1,0),(1,1),(0,1) and the affine map T(x,y)=(3x,y)T(x,y) = (3x, y) — pure horizontal scaling. The horizontal side 1→31 \to 3, the vertical side 1→11 \to 1. The aspect ratio changes from 1:11{:}1 to 3:13{:}1. The square becomes a 3×13\times 1 rectangle. Worse, T(x,y)=(x+y, y)T(x,y) = (x+y,\ y) 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.

Counterexample

Claim (false): "Every line-preserving bijection of the plane is affine — that's the Fundamental Theorem." Over R\mathbb{R} this is true. But over C\mathbb{C} it fails: the map z↦zˉz \mapsto \bar z (complex conjugation, viewed appropriately) and more dramatically maps built from a wild field automorphism of C\mathbb{C} send lines to lines yet are not affine over C\mathbb{C} — 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 R\mathbb{R}, false for C\mathbb{C}).

Connections

connection

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 AA 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

🔬 Where this appears

Historical Development

⏳ History
- 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 Aff(n)\mathrm{Aff}(n), 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.

Subtleties & Limits

open-problem

Where affine geometry runs out. Affine structure cannot express anything metric — there is no canonical notion of "perpendicular," "unit length," or "circle" without extra data (an inner product, lifting you to Euclidean geometry). It also cannot capture incidence at infinity: parallel lines genuinely never meet in an affine plane, which is why projective completion is needed for a uniform theory of conics and perspective. A subtler issue is the field dependence of the Fundamental Theorem: over fields with nontrivial automorphisms (like C\mathbb{C}), line-preserving bijections need only be semi-affine, and classifying these "collineations" is governed by the field's automorphism group. In infinite dimensions, affine spaces over topological vector spaces raise questions about which affine maps are continuous and how the semidirect-product structure interacts with the topology — active terrain in functional analysis and the theory of affine schemes in algebraic geometry, where "affine" takes on a related but generalized meaning.

See Also

Linear Algebra · Projective Geometry · Euclidean Geometry · Convexity and Convex Sets · Homogeneous Coordinates · Barycentric Coordinates · Erlangen Program · Special Euclidean Group SE(3) · Bézier Curves