Key idea of this section
Affine combination: λ₁p₁ + ⋯ + λₖpₖ with λ₁ + ⋯ + λₖ = 1
Affine maps preserve affine combinations, parallelism and ratios along lines
Aff(n) = { x ↦ Ax + b : A ∈ GL(n) }, dim Aff(n) = n² + nPoints versus vectors
Affine geometry is the geometry of a space with no preferred origin. Its objects are points; the difference of two points is a vector; and a point plus a vector is a point. One cannot meaningfully add two points, but one can form an affine combination λ₁p₁ + ⋯ + λₖpₖ with Σλᵢ = 1, because it equals p₁ + Σi≥2 λᵢ(pᵢ − p₁), an expression involving only a point and vectors. The midpoint ½p + ½q and the centroid (p + q + r)/3 are affine combinations; the "sum" p + q is not.
An affine subspace of ℝⁿ is a set of the form x₀ + U with U a linear subspace (the direction of the affine subspace, uniquely determined); equivalently, a non-empty set closed under affine combinations. Its dimension is dim U. Points, lines and planes are affine subspaces of dimensions 0, 1, 2; the solution set of a consistent system Ax = b is the affine subspace x₀ + ker A; and an affine hyperplane is a set {x : aᵀx = c} with a ≠ 0, a level set of a nonzero linear functional.
Affine independence and barycentric coordinates
Points p₀, …, pₖ are affinely independent if the vectors p₁ − p₀, …, pₖ − p₀ are linearly independent; equivalently, if Σλᵢpᵢ = 0 with Σλᵢ = 0 forces all λᵢ = 0. In ℝⁿ at most n + 1 points can be affinely independent, and n + 1 affinely independent points form an affine frame. Every point x then has unique barycentric coordinates (λ₀, …, λₙ), Σλᵢ = 1, with x = Σλᵢpᵢ. For a triangle the barycentric coordinates are ratios of signed areas: λA = area(PBC)/area(ABC), and so on. The point lies inside the triangle exactly when all three coordinates are positive, and the centroid has coordinates (1/3, 1/3, 1/3). Barycentric coordinates are the workhorse of the finite element method and of computer graphics, where colours and textures are interpolated across triangles.
Worked example. Find the barycentric coordinates of P = (1, 1) with respect to A = (0, 0), B = (4, 0), C = (0, 2). Writing P = αA + βB + γC with α + β + γ = 1 gives 4β = 1 and 2γ = 1, so β = 1/4, γ = 1/2 and α = 1 − 1/4 − 1/2 = 1/4. All are positive, so P is interior. Check with areas: area(ABC) = 4, area(PBC) = ½|(4 − 1)(2 − 1) − (0 − 1)(0 − 1)| = ½|3 − 1| = 1, and 1/4 = α as claimed.
Affine maps
A map f between affine spaces is affine if it preserves affine combinations; by Theorem 1.1, on ℝⁿ this means f(x) = Ax + b. Affine maps send affine subspaces to affine subspaces, send parallel lines to parallel lines (or to points), and preserve ratios of lengths along a line (Problem 31), but in general they do not preserve angles, lengths or areas. Areas, and n-dimensional volumes, are all multiplied by the same factor |det A|. An affine map is determined by its values on an affine frame, and those values may be prescribed arbitrarily (Problem 32). Hence any triangle can be mapped onto any other, which is why every "affine" theorem about triangles (for example, the medians are concurrent at the point dividing each in the ratio 2 : 1) need only be proved for one convenient triangle, such as an equilateral one.
The affine group
The invertible affine maps of ℝⁿ form a group Aff(n) under composition: (A, b)∘(A′, b′) = (AA′, Ab′ + b). It is the semidirect product ℝⁿ ⋊ GL(n), and it embeds in GL(n + 1) through the homogeneous-coordinate trick
x ↦ Ax + b ⇔ [ x ] ↦ [ A b ] [ x ]
[ 1 ] [ 0 1 ] [ 1 ]
which converts affine maps into linear ones in one higher dimension (Problem 33). Every computer graphics pipeline works in these coordinates. As a Lie group, Aff(n) has dimension n² + n: n² parameters for A and n for b.
Felix Klein's Erlangen programme of 1872 defined a geometry as the study of invariants of a group action. Euclidean geometry studies invariants of the isometry group (x ↦ Qx + b, Q orthogonal); affine geometry those of Aff(n); projective geometry those of the projective group. Each enlargement of the group discards invariants: lengths and angles are not affine invariants, but parallelism, midpoints and ratios of areas are.
Theorem 6.1 (Fundamental theorem of affine geometry, real case)
Let n ≥ 2. A bijection f : ℝⁿ → ℝⁿ that maps every line onto a line is affine.
We do not give the proof, which is a careful but elementary argument: such an f preserves parallelism, hence (by parallelogram constructions) it is additive after translating so that f(0) = 0, and it is ℚ-linear; a further argument shows that the induced map on scalars is a field automorphism of ℝ, and the only such automorphism is the identity, because it must preserve squares and hence the order. Over ℂ the analogous theorem allows semilinear maps such as complex conjugation.
Exercise
- (a)Find the barycentric coordinates of (2, 1) with respect to (0, 0), (4, 0), (0, 4).
- (b)What is the dimension of the group Aff(3)?
- (c)An affine map sends A = (0, 0) to (1, 1) and B = (2, 0) to (5, 3). Where does it send the midpoint of AB?
Show solution
Answers: (a) 4β = 2 and 4γ = 1 give β = 1/2, γ = 1/4, α = 1/4. (b) 3² + 3 = 12. (c) Affine maps preserve midpoints, so the image is the midpoint of (1, 1) and (5, 3), namely (3, 2).