Books
Theme
Text size
Width

[ and ] go to the previous and next page.

The solution set of a linear system 𝐴𝐱=𝐲 with 𝐲≠𝟎 is never a subspace, but by Proposition 3.1.19 it is the next best thing: the subspace ker𝑇𝐴, slid over so that it passes through one solution. Lines and planes that miss the origin are sets of this kind, and so is the screen of a computer, which has no preferred origin either. On such a set the sum of two points means nothing (the sum of two solutions of 𝐴𝐱=𝐲 solves 𝐴𝐱=2𝐲), yet some combinations of points, such as midpoints, make perfect sense. This section finds out which combinations these are, and which maps respect them. Its last part, homogeneous coordinates, turns this affine geometry back into linear algebra one dimension up, which is how graphics software moves and projects three-dimensional scenes.

4.7.1Affine subspaces

Recall the translate 𝐯+𝑈={𝐯+𝐮|𝐮∈𝑈} of a subset 𝑈⊆𝑉 (Notation 3.1.17).

Definition 4.7.1 (Affine subspace). Let 𝑉 be a vector space over 𝐹. A subset 𝐸⊆𝑉 is an affine subspace of 𝑉 if 𝐸=𝐯+𝑈 for some 𝐯∈𝑉 and some subspace 𝑈 of 𝑉.

An affine subspace contains 𝐯=𝐯+𝟎, so it is never empty. Some authors count ∅ as an affine subspace as well, which makes statements about intersections shorter; we will say “empty or an affine subspace” where it matters. We use the letters 𝐸, 𝐸′, 𝐸𝑖 for affine subspaces and keep 𝐴 and 𝐵 for matrices.

Example 4.7.2 (Affine subspaces).
  1. (a)Every subspace 𝑈 is an affine subspace, since 𝑈=𝟎+𝑈. Every single point is one, since {𝐯}=𝐯+{𝟎}.
  2. (b)If the system 𝐴𝐱=𝐲 has a solution 𝐱0, its solution set 𝐱0+ker𝑇𝐴 is an affine subspace of 𝐹𝑛 (Proposition 3.1.19). More generally, every nonempty fiber 𝑇−1(𝐰) of a linear map 𝑇:𝑉→𝑊 is one (Corollary 2.6.31).
  3. (c)In ℝ2, the line 𝑥1+𝑥2=2 is (1,1)+span((1,−1)).
  4. (d)In ℝ[𝑥], the polynomials 𝑝 with 𝑝(1)=1 form the fiber over 1 of the linear map 𝑝↦𝑝(1), so they form the affine subspace 1+{𝑝∈ℝ[𝑥]|𝑝(1)=0}. Here 1 is the constant polynomial.

The vector 𝐯 in 𝐸=𝐯+𝑈 is not determined by 𝐸, but the subspace 𝑈 is, and every point of 𝐸 can play the role of 𝐯.

Proposition 4.7.3 (Direction and base points). Let 𝐸=𝐯+𝑈 be an affine subspace of 𝑉.

  1. (a)𝑈={𝐚−𝐛|𝐚,𝐛∈𝐸}. In particular, if also 𝐸=𝐯′+𝑈′ for some 𝐯′∈𝑉 and some subspace 𝑈′, then 𝑈′=𝑈.
  2. (b)𝐸=𝐚+𝑈 for every 𝐚∈𝐸.
  3. (c)For 𝐰∈𝑉, the conditions 𝐰+𝑈=𝐸, 𝐰∈𝐸, and 𝐰−𝐯∈𝑈 are equivalent.

Proof.routine

Hint 1. For (a), write two points of 𝐸 as 𝐯+𝐮 and 𝐯+𝐮′. For the reverse containment, write 𝐮∈𝑈 as a difference of two points of 𝐸.
Hint 2. For (b), write 𝐚=𝐯+𝐮0 and prove both containments, moving 𝐮0 from one side to the other.
Hint 3. For (c), go around the cycle of the three conditions; (a) and (b) do the work.
Sketch. (a) (𝐯+𝐮)−(𝐯+𝐮′)=𝐮−𝐮′∈𝑈, and 𝐮=(𝐯+𝐮)−(𝐯+𝟎). The set of differences depends only on 𝐸, so it is 𝑈 however 𝐸 is written. (b) If 𝐚=𝐯+𝐮0, then 𝐚+𝐮=𝐯+(𝐮0+𝐮) and 𝐯+𝐮=𝐚+(𝐮−𝐮0). (c) 𝐰+𝑈=𝐸 gives 𝐰=𝐰+𝟎∈𝐸; 𝐰∈𝐸 gives 𝐰−𝐯∈𝑈 by (a); and 𝐰−𝐯∈𝑈 gives 𝐰∈𝐸, so 𝐰+𝑈=𝐸 by (b).

(a) The points of 𝐸 are the vectors 𝐯+𝐮 with 𝐮∈𝑈. For two of them, (𝐯+𝐮)−(𝐯+𝐮′)=𝐮−𝐮′, which lies in 𝑈 because 𝑈 is a subspace. Conversely, every 𝐮∈𝑈 is the difference (𝐯+𝐮)−(𝐯+𝟎) of two points of 𝐸. So 𝑈 equals the set 𝐷 of differences of points of 𝐸. The set 𝐷 is defined in terms of 𝐸 alone, so if also 𝐸=𝐯′+𝑈′, the same argument gives 𝑈′=𝐷=𝑈.

(b) Let 𝐚∈𝐸, say 𝐚=𝐯+𝐮0 with 𝐮0∈𝑈. For 𝐮∈𝑈,

𝐚+𝐮=𝐯+(𝐮0+𝐮)∈𝐯+𝑈and𝐯+𝐮=𝐚+(𝐮−𝐮0)∈𝐚+𝑈,

because 𝐮0+𝐮 and 𝐮−𝐮0 lie in 𝑈. So 𝐚+𝑈=𝐯+𝑈=𝐸.

(c) If 𝐰+𝑈=𝐸, then 𝐰=𝐰+𝟎∈𝐸. If 𝐰∈𝐸, then 𝐰−𝐯 is a difference of two points of 𝐸 (as 𝐯=𝐯+𝟎∈𝐸), so it lies in 𝑈 by (a). If 𝐰−𝐯∈𝑈, then 𝐰=𝐯+(𝐰−𝐯)∈𝐸, and 𝐰+𝑈=𝐸 by (b). □

Technique 4.7.4 (Choose a base point). An affine subspace has no origin of its own, but by Proposition 4.7.3(b) any of its points can serve as one. Once a point 𝐚∈𝐸 is fixed, 𝐱↦𝐱−𝐚 carries 𝐸 onto the subspace 𝑈=𝐸−𝐚, and statements about 𝐸 become statements about 𝑈, where linear algebra applies. Every point of 𝐸 works equally well, so choose the most convenient one, such as a point that two affine subspaces have in common, or a fixed point of a map.

Reach for it whenever an affine question has a linear counterpart that you already know how to answer. The canonical example is Proposition 4.7.10. The same move drives Theorem 4.7.14, Proposition 4.7.17, and Theorem 4.7.37.

Definition 4.7.5 (Direction, dimension, parallel). Let 𝐸 be an affine subspace of 𝑉. The subspace 𝑈 with 𝐸=𝐯+𝑈, which is unique by Proposition 4.7.3(a), is the direction of 𝐸, written dir𝐸. If dir𝐸 is finite-dimensional, the dimension of 𝐸 is dim𝐸=dimdir𝐸. Affine subspaces of dimension 0, 1, and 2 are called points, lines, and planes; if dim𝑉=𝑛, those of dimension 𝑛−1 are called hyperplanes. Two affine subspaces 𝐸 and 𝐸′ of 𝑉 are parallel if dir𝐸=dir𝐸′.

A subspace 𝑈 has direction 𝑈, so its dimension is the same whether we regard it as a subspace or as an affine subspace. A line is a set 𝐯+span(𝐮)={𝐯+𝑡𝐮|𝑡∈𝐹} with 𝐮≠𝟎.

Corollary 4.7.6 (Parallel affine subspaces are equal or disjoint). If 𝐸 and 𝐸′ are parallel affine subspaces of 𝑉, then 𝐸=𝐸′ or 𝐸∩𝐸′=∅. Given a subspace 𝑈 of 𝑉, every 𝐯∈𝑉 lies in exactly one translate of 𝑈, namely 𝐯+𝑈.

Proof.routine

Uses. Proposition 4.7.3 (Direction and base points)

Techniques. Choose a base point (Technique 4.7.4)

Hint. Suppose some 𝐜 lies in both. Use 𝐜 as the base point of each.
Sketch. If 𝐜∈𝐸∩𝐸′, then 𝐸=𝐜+𝑈=𝐸′ by Proposition 4.7.3(b), where 𝑈 is the common direction. For the second claim, 𝐯∈𝐯+𝑈, and a translate 𝐰+𝑈 containing 𝐯 equals 𝐯+𝑈 by the same result.
Let 𝑈=dir𝐸=dir𝐸′. If 𝐜∈𝐸∩𝐸′, then 𝐸=𝐜+𝑈 and 𝐸′=𝐜+𝑈 by Proposition 4.7.3(b), so 𝐸=𝐸′. For the second statement, 𝐯=𝐯+𝟎∈𝐯+𝑈, and if 𝐯∈𝐰+𝑈, then Proposition 4.7.3(b), applied to the affine subspace 𝐰+𝑈 and its point 𝐯, gives 𝐰+𝑈=𝐯+𝑈. □

So the translates of a subspace 𝑈 cut 𝑉 into disjoint parallel pieces, as the solution sets in Figure 3.1.4 do. They are the elements of the quotient space 𝑉/𝑈 (Definition 4.6.20), which treats each translate as a single vector.

Non-example 4.7.7 (Sets that are not affine subspaces).
  1. (a)The unit circle 𝐶={𝐱∈ℝ2|𝑥12+𝑥22=1}. If 𝐶 were an affine subspace, then (1,0)−(−1,0)=(2,0) would lie in dir𝐶 by Proposition 4.7.3(a), and 𝐶=(1,0)+dir𝐶 by (b). Then (3,0)=(1,0)+(2,0)∈𝐶, which is false.
  2. (b)The union 𝐸 of the lines 𝑥2=0 and 𝑥2=1 in ℝ2. If 𝐸 were an affine subspace, then (0,1)−(0,0)∈dir𝐸, so (0,0)+2(0,1)=(0,2) would lie in 𝐸.
  3. (c)The three-point set {(0,0),(1,0),(0,1)}⊆𝔽22 (Exercise 3.1.48).

Solution sets, revisited

Proposition 3.1.19 says that consistent linear systems have affine solution sets. With dimension theory we can now say how large they are, and show that every affine subspace of 𝐹𝑛 arises this way.

Theorem 4.7.8 (Affine subspaces of 𝐹𝑛 are solution sets).
  1. (a)Let 𝐴∈𝐹𝑚×𝑛 and 𝐲∈𝐹𝑚. If the system 𝐴𝐱=𝐲 is consistent, its solution set is an affine subspace of 𝐹𝑛 with direction ker𝑇𝐴 and dimension 𝑛−rank𝐴.
  2. (b)Conversely, let 𝐸 be an affine subspace of 𝐹𝑛 of dimension 𝑘. Then 𝐸 is the solution set of a system 𝐴𝐱=𝐲 with 𝐴∈𝐹(𝑛−𝑘)×𝑛, that is, of 𝑛−𝑘 equations. No system of fewer than 𝑛−𝑘 equations has solution set 𝐸.

Proof.standard

Uses. Proposition 3.1.19 (Solution sets are translates of the kernel), Corollary 4.2.23 (Dimension of solution sets), Proposition 4.4.16 (Complements exist), Theorem 4.4.19 (Dimension of a sum), Proposition 4.4.18 (Every subspace is a kernel and an image), Theorem 4.5.6 (Classification by dimension), Proposition 2.3.17 (Every linear map 𝐹𝑛→𝐹𝑚 is some 𝑇𝐴), Theorem 4.2.7 (The image of 𝑇𝐴), Proposition 4.1.21 (Dimensions of subspaces)

Techniques. Particular plus homogeneous (Technique 3.1.18), Dimension counting (Technique 4.2.24)

Hint 1. (a) is Proposition 3.1.19 plus a dimension count.
Hint 2. For (b), write 𝐸=𝐯+𝑈. It suffices to find 𝐴∈𝐹(𝑛−𝑘)×𝑛 with ker𝑇𝐴=𝑈, and then to take 𝐲=𝐴𝐯.
Hint 3. Every subspace is a kernel (Proposition 4.4.18), but of an operator 𝐹𝑛→𝐹𝑛, whose image is a complement 𝑊 of 𝑈. Follow it by an isomorphism 𝑊→𝐹𝑛−𝑘.
Sketch. (a) The solution set is 𝐱0+ker𝑇𝐴, and dimker𝑇𝐴=𝑛−rank𝐴. (b) Let 𝐸=𝐯+𝑈 and let 𝑊 be a complement of 𝑈, so dim𝑊=𝑛−𝑘. Take 𝑇∈L(𝐹𝑛) with ker𝑇=𝑈 and im𝑇=𝑊, and an isomorphism 𝜑:𝑊→𝐹𝑛−𝑘. Then 𝜑∘𝑇 has kernel 𝑈 and equals 𝑇𝐴 with 𝐴∈𝐹(𝑛−𝑘)×𝑛, and 𝐴𝐱=𝐴𝐯 has solution set 𝐯+𝑈=𝐸. With 𝑚 equations, (a) gives 𝑘=𝑛−rank𝐴≥𝑛−𝑚.

(a) By Proposition 3.1.19, the solution set is 𝐱0+ker𝑇𝐴 for any solution 𝐱0, an affine subspace with direction ker𝑇𝐴. By Corollary 4.2.23(a), dimker𝑇𝐴=𝑛−rank𝐴.

(b) Write 𝐸=𝐯+𝑈 with 𝑈=dir𝐸, so dim𝑈=𝑘. By Proposition 4.4.16, 𝑈 has a complement 𝑊 in 𝐹𝑛. Since 𝑈∩𝑊={𝟎} and 𝑈+𝑊=𝐹𝑛, Theorem 4.4.19 gives dim𝑊=𝑛−𝑘. By Proposition 4.4.18 there is 𝑇∈L(𝐹𝑛) with ker𝑇=𝑈 and im𝑇=𝑊, and by Theorem 4.5.6 there is an isomorphism 𝜑:𝑊→𝐹𝑛−𝑘. The map 𝑆:𝐹𝑛→𝐹𝑛−𝑘, 𝑆(𝐱)=𝜑(𝑇(𝐱)), is linear, and since 𝜑 is injective, 𝑆(𝐱)=𝟎 if and only if 𝑇(𝐱)=𝟎. So ker𝑆=𝑈. By Proposition 2.3.17, 𝑆=𝑇𝐴 for some 𝐴∈𝐹(𝑛−𝑘)×𝑛. Put 𝐲=𝐴𝐯. Then 𝐯 solves 𝐴𝐱=𝐲, and by Proposition 3.1.19 the solution set is 𝐯+ker𝑇𝐴=𝐯+𝑈=𝐸.

Finally, suppose 𝐸 is the solution set of a system 𝐴′𝐱=𝐲′ with 𝐴′∈𝐹𝑚×𝑛. By (a), 𝑘=𝑛−rank𝐴′. Since im𝑇𝐴′ is a subspace of 𝐹𝑚, Theorem 4.2.7 and Proposition 4.1.21 give rank𝐴′=dimim𝑇𝐴′≤𝑚. Hence 𝑘≥𝑛−𝑚, that is, 𝑚≥𝑛−𝑘. □

For 𝑘=𝑛−1 this says that the hyperplanes of 𝐹𝑛 are exactly the solution sets of single equations 𝑎1𝑥1+⋯+𝑎𝑛𝑥𝑛=𝑐 with (𝑎1,…,𝑎𝑛)≠𝟎. (Such an equation is consistent, since 𝑥𝑗=𝑐/𝑎𝑗 and 𝑥𝑖=0 for 𝑖≠𝑗 solves it when 𝑎𝑗≠0, and its coefficient matrix has rank 1.)

Example 4.7.9 (A line in ℝ3 as a solution set). Let 𝐸 be the line through (1,2,0) with direction span((1,1,1)). By Theorem 4.7.8(b), two equations cut it out. We need 𝐴∈ℝ2×3 of rank 2 with (1,1,1)∈ker𝑇𝐴. The rows (𝑎1,𝑎2,𝑎3) must satisfy 𝑎1+𝑎2+𝑎3=0 and be independent, so take (1,−1,0) and (0,1,−1). Then 𝐴(1,2,0)=(−1,2), and 𝐸 is the solution set of

𝑥1−𝑥2=−1,𝑥2−𝑥3=2.

Indeed, the solution set contains (1,2,0), and its direction ker𝑇𝐴 contains (1,1,1) and has dimension 3−2=1, so it equals span((1,1,1)) by Proposition 4.1.21(b).

Intersections

Proposition 4.7.10 (Intersections of affine subspaces). Let (𝐸𝑖)𝑖∈𝐼 be a family of affine subspaces of 𝑉, indexed by a nonempty set 𝐼. Then ⋂𝑖∈𝐼𝐸𝑖 is either empty or an affine subspace with direction ⋂𝑖∈𝐼dir𝐸𝑖.

Proof.routine

Uses. Proposition 4.7.3 (Direction and base points), Proposition 1.4.16 (Intersections of subspaces)

Techniques. Choose a base point (Technique 4.7.4), Fix an arbitrary element and chase it (Technique 1.3.13)

Hint 1. If the intersection is nonempty, pick a point 𝐜 in it. How does each 𝐸𝑖 look when 𝐜 is used as its base point?
Hint 2. 𝐸𝑖=𝐜+dir𝐸𝑖, so 𝐱∈𝐸𝑖 if and only if 𝐱−𝐜∈dir𝐸𝑖.
Sketch. With 𝐜 in the intersection, 𝐸𝑖=𝐜+𝑈𝑖 for every 𝑖. So 𝐱 lies in every 𝐸𝑖 if and only if 𝐱−𝐜 lies in every 𝑈𝑖, and the intersection is 𝐜+⋂𝑈𝑖, a translate of a subspace.

Suppose 𝐜∈⋂𝑖∈𝐼𝐸𝑖, and let 𝑈𝑖=dir𝐸𝑖. By Proposition 4.7.3(b), 𝐸𝑖=𝐜+𝑈𝑖 for every 𝑖. For 𝐱∈𝑉 we have 𝐱∈𝐜+𝑈𝑖 if and only if 𝐱−𝐜∈𝑈𝑖 (if 𝐱=𝐜+𝐮, then 𝐱−𝐜=𝐮; conversely 𝐱=𝐜+(𝐱−𝐜)). Hence 𝐱 lies in every 𝐸𝑖 if and only if 𝐱−𝐜∈⋂𝑖𝑈𝑖, that is,

⋂𝑖∈𝐼𝐸𝑖=𝐜+⋂𝑖∈𝐼𝑈𝑖.

By Proposition 1.4.16, ⋂𝑖𝑈𝑖 is a subspace, so the intersection is an affine subspace, and its direction is ⋂𝑖𝑈𝑖 by Proposition 4.7.3(a). □

The choice of base point was the whole proof: a point common to all the 𝐸𝑖 lets us write all of them as translates from one origin. Without such a point the intersection can be empty even when the directions have a large intersection, as for two distinct parallel lines. In ℝ3 two lines can also miss each other without being parallel, for example the 𝑥1-axis and (0,0,1)+span(𝐞2); such lines are called skew. Exercise 4.7.53 characterizes skew lines, and Exercise 4.7.52 explains why a plane has none.

4.7.2Affine combinations

Intuition (Which combinations make sense without an origin). Suppose we only know positions relative to some reference point 𝐩, as on a screen or in a scene: the point 𝐯 has position 𝐯−𝐩. Combining positions with coefficients 𝑐𝑖 and converting the result back into a point gives

𝐩+∑𝑖𝑐𝑖(𝐯𝑖−𝐩)=∑𝑖𝑐𝑖𝐯𝑖+(1−∑𝑖𝑐𝑖)𝐩.

For two reference points 𝐩 and 𝐩′ the results differ by (1−∑𝑖𝑐𝑖)(𝐩−𝐩′), so the result does not depend on the reference point exactly when the coefficients add up to 1. These are the weighted averages of points. Combinations whose coefficients add up to 0 are meaningful in a different way: ∑𝑖𝑐𝑖(𝐯𝑖−𝐩)=∑𝑖𝑐𝑖𝐯𝑖 does not depend on 𝐩, and it is a displacement rather than a point, like the difference 𝐯−𝐮.

Definition 4.7.11 (Affine combination). An affine combination of 𝐯1,…,𝐯𝑘∈𝑉 is a linear combination 𝑐1𝐯1+⋯+𝑐𝑘𝐯𝑘 whose coefficients satisfy 𝑐1+⋯+𝑐𝑘=1.
Example 4.7.12 (Affine combinations).
  1. (a)For 𝐮,𝐯∈𝑉 and 𝑡∈𝐹, (1−𝑡)𝐮+𝑡𝐯=𝐮+𝑡(𝐯−𝐮). If 𝐮≠𝐯, these points form the line through 𝐮 and 𝐯. When 1+1≠0 in 𝐹, the case 𝑡=1/2 is the midpoint 12𝐮+12𝐯.
  2. (b)If 𝑘⋅1≠0 in 𝐹, the centroid 1𝑘(𝐯1+⋯+𝐯𝑘) is an affine combination. Over 𝔽3, three points have no centroid.
  3. (c)𝐮−𝐯+𝐰, with coefficients 1,−1,1, is the fourth vertex of the parallelogram with consecutive vertices 𝐮,𝐯,𝐰: its differences with 𝐰 and with 𝐮 are 𝐮−𝐯 and 𝐰−𝐯.
  4. (d)If 𝐴𝐱𝑖=𝐲 for 𝑖=1,…,𝑘 and ∑𝑖𝑐𝑖=1, then 𝐴(∑𝑖𝑐𝑖𝐱𝑖)=(∑𝑖𝑐𝑖)𝐲=𝐲. So affine combinations of solutions are solutions, while the sum of two solutions is not.

Lemma 4.7.13 (Affine combinations do not depend on the origin). Let 𝐯1,…,𝐯𝑘,𝐩∈𝑉 and 𝑐1,…,𝑐𝑘∈𝐹.

  1. (a)If 𝑐1+⋯+𝑐𝑘=1, then ∑𝑖𝑐𝑖𝐯𝑖=𝐩+∑𝑖𝑐𝑖(𝐯𝑖−𝐩).
  2. (b)If 𝑐1+⋯+𝑐𝑘=0, then ∑𝑖𝑐𝑖𝐯𝑖=∑𝑖𝑐𝑖(𝐯𝑖−𝐩).

Proof.routine

Uses. Lemma 1.3.9 (Arithmetic of linear combinations)

Hint. Expand ∑𝑖𝑐𝑖(𝐯𝑖−𝐩).
Sketch. ∑𝑖𝑐𝑖(𝐯𝑖−𝐩)=∑𝑖𝑐𝑖𝐯𝑖−(∑𝑖𝑐𝑖)𝐩; substitute ∑𝑖𝑐𝑖=1 or 0.
By distributivity and Lemma 1.3.9, ∑𝑖𝑐𝑖(𝐯𝑖−𝐩)=∑𝑖𝑐𝑖𝐯𝑖−(∑𝑖𝑐𝑖)𝐩. If ∑𝑖𝑐𝑖=1, this is ∑𝑖𝑐𝑖𝐯𝑖−𝐩, and adding 𝐩 gives (a). If ∑𝑖𝑐𝑖=0, it is ∑𝑖𝑐𝑖𝐯𝑖, which is (b). □

Subspaces are the nonempty sets closed under linear combinations. Affine subspaces have the analogous description.

Theorem 4.7.14 (Affine subspaces are the sets closed under affine combinations). A nonempty subset 𝐸⊆𝑉 is an affine subspace if and only if every affine combination of elements of 𝐸 lies in 𝐸.
Intuition. The forward direction is a base point computation with Lemma 4.7.13(a). For the converse, the base point tells us what the direction must be: if 𝐸=𝐩+𝑈 with 𝐩∈𝐸, then 𝑈={𝐞−𝐩|𝐞∈𝐸}. So define 𝑈 this way and check the subspace criterion. Each closure property of 𝑈 should come from one affine combination in 𝐸.

Proof.standard

Uses. Lemma 4.7.13 (Affine combinations do not depend on the origin), Proposition 4.7.3 (Direction and base points), Theorem 1.4.3 (Subspace criterion)

Techniques. Choose a base point (Technique 4.7.4)

Hint 1. For (⇒), write 𝐸=𝐩+𝑈 and each 𝐞𝑖=𝐩+𝐮𝑖, and apply Lemma 4.7.13(a).
Hint 2. For (⇐), fix 𝐩∈𝐸 and put 𝑈={𝐞−𝐩|𝐞∈𝐸}. Then 𝐸=𝐩+𝑈, and it remains to show that 𝑈 is a subspace.
Hint 3. 𝑐(𝐞−𝐩)=(𝑐𝐞+(1−𝑐)𝐩)−𝐩 and (𝐞−𝐩)+(𝐞′−𝐩)=(𝐞+𝐞′−𝐩)−𝐩. The vectors in parentheses are affine combinations of points of 𝐸.
Sketch. (⇒) ∑𝑖𝑐𝑖(𝐩+𝐮𝑖)=𝐩+∑𝑖𝑐𝑖𝐮𝑖∈𝐩+𝑈. (⇐) With 𝑈=𝐸−𝐩: 𝟎=𝐩−𝐩∈𝑈, 𝑐(𝐞−𝐩)=(𝑐𝐞+(1−𝑐)𝐩)−𝐩∈𝑈, and (𝐞−𝐩)+(𝐞′−𝐩)=(𝐞+𝐞′−𝐩)−𝐩∈𝑈, because 𝑐𝐞+(1−𝑐)𝐩 and 𝐞+𝐞′−𝐩 are affine combinations of elements of 𝐸.

(⇒) Let 𝐸=𝐩+𝑈 be an affine subspace, let 𝐞1,…,𝐞𝑘∈𝐸, and let ∑𝑖𝑐𝑖=1. Since 𝐩=𝐩+𝟎∈𝐸, each 𝐮𝑖=𝐞𝑖−𝐩 lies in 𝑈 by Proposition 4.7.3(a). By Lemma 4.7.13(a),

∑𝑖𝑐𝑖𝐞𝑖=𝐩+∑𝑖𝑐𝑖𝐮𝑖∈𝐩+𝑈=𝐸.

(⇐) Suppose 𝐸 is nonempty and closed under affine combinations. Fix 𝐩∈𝐸 and put 𝑈={𝐞−𝐩|𝐞∈𝐸}. Then 𝐸=𝐩+𝑈, since each 𝐞∈𝐸 equals 𝐩+(𝐞−𝐩). We check the conditions of Theorem 1.4.3 for 𝑈.

𝟎∈𝑈, since 𝟎=𝐩−𝐩.

Scalar multiples. Let 𝐞∈𝐸 and 𝑐∈𝐹. The vector 𝑐𝐞+(1−𝑐)𝐩 is an affine combination of 𝐞,𝐩∈𝐸, so it lies in 𝐸, and

𝑐(𝐞−𝐩)=(𝑐𝐞+(1−𝑐)𝐩)−𝐩∈𝑈.

Sums. Let 𝐞,𝐞′∈𝐸. The vector 𝐞+𝐞′−𝐩 is an affine combination of 𝐞,𝐞′,𝐩, with coefficients 1+1−1=1, so it lies in 𝐸, and

(𝐞−𝐩)+(𝐞′−𝐩)=(𝐞+𝐞′−𝐩)−𝐩∈𝑈.

So 𝑈 is a subspace, and 𝐸=𝐩+𝑈 is an affine subspace. □

Remark 4.7.15 (Two points or three). The proof used affine combinations of two points, for scalar multiples, and of three points, for sums. The three-point combination cannot be dropped in general. When 1+1≠0, Exercise 3.1.48 showed that closure under combinations of two points (the lines through pairs of points) already forces a nonempty set to be affine, by way of midpoints. Over 𝔽2, the only affine combinations of two points 𝐮,𝐯 are 𝐮 and 𝐯 themselves. The set {(0,0),(1,0),(0,1)} is closed under them, but (1,0)+(0,1)−(0,0)=(1,1) is missing. Exercise 4.7.61 shows that over 𝔽2 three points always suffice.
Definition 4.7.16 (Affine hull). The affine hull aff𝑆 of a subset 𝑆⊆𝑉 is the set of all affine combinations of finitely many elements of 𝑆. For a list, aff(𝐯0,…,𝐯𝑘)=aff{𝐯0,…,𝐯𝑘}.

The empty set has no affine combinations, because an empty list of coefficients adds up to 0, so aff∅=∅.

Proposition 4.7.17 (The affine hull). Let 𝑆⊆𝑉 be nonempty, and let 𝐯0,…,𝐯𝑘∈𝑉.

  1. (a)aff𝑆 is an affine subspace containing 𝑆, and it is contained in every affine subspace that contains 𝑆.
  2. (b)aff(𝐯0,…,𝐯𝑘)=𝐯0+span(𝐯1−𝐯0,…,𝐯𝑘−𝐯0). In particular, dimaff(𝐯0,…,𝐯𝑘)≤𝑘.

Proof.standard

Uses. Theorem 4.7.14 (Affine subspaces are the sets closed under affine combinations), Lemma 4.7.13 (Affine combinations do not depend on the origin), Theorem 1.6.10 (Every spanning list contains a basis)

Techniques. Choose a base point (Technique 4.7.4)

Hint 1. For (a), show that an affine combination of affine combinations of elements of 𝑆 is again one. List all the elements of 𝑆 involved once, padding with zero coefficients.
Hint 2. For (b), use 𝐯0 as base point: Lemma 4.7.13(a) with 𝐩=𝐯0 rewrites ∑𝑖𝑐𝑖𝐯𝑖.
Sketch. (a) If 𝐰𝑗=∑𝑖𝑎𝑖𝑗𝐬𝑖 with ∑𝑖𝑎𝑖𝑗=1 and ∑𝑗𝑑𝑗=1, then ∑𝑗𝑑𝑗𝐰𝑗=∑𝑖(∑𝑗𝑑𝑗𝑎𝑖𝑗)𝐬𝑖, whose coefficients add up to ∑𝑗𝑑𝑗=1. So aff𝑆 is closed under affine combinations, hence affine by Theorem 4.7.14, and every affine subspace containing 𝑆 is closed under them, hence contains aff𝑆. (b) By Lemma 4.7.13(a), ∑𝑖𝑐𝑖𝐯𝑖=𝐯0+∑𝑖≥1𝑐𝑖(𝐯𝑖−𝐯0), and conversely 𝐯0+∑𝑖≥1𝑎𝑖(𝐯𝑖−𝐯0)=(1−∑𝑖𝑎𝑖)𝐯0+∑𝑖≥1𝑎𝑖𝐯𝑖.

(a) Each 𝐬∈𝑆 is the affine combination 1𝐬, so 𝑆⊆aff𝑆, and aff𝑆 is nonempty. Let 𝐰1,…,𝐰𝑚∈aff𝑆 and 𝑑1+⋯+𝑑𝑚=1. Each 𝐰𝑗 is an affine combination of finitely many elements of 𝑆. Let 𝐬1,…,𝐬𝑁 list all elements of 𝑆 that occur in any of these combinations, and pad with zero coefficients, so that 𝐰𝑗=∑𝑖=1𝑁𝑎𝑖𝑗𝐬𝑖 with ∑𝑖𝑎𝑖𝑗=1 for every 𝑗. Then

∑𝑗𝑑𝑗𝐰𝑗=∑𝑖=1𝑁(∑𝑗𝑑𝑗𝑎𝑖𝑗)𝐬𝑖,and∑𝑖∑𝑗𝑑𝑗𝑎𝑖𝑗=∑𝑗𝑑𝑗∑𝑖𝑎𝑖𝑗=∑𝑗𝑑𝑗=1.

So aff𝑆 is closed under affine combinations, and it is an affine subspace by Theorem 4.7.14. If 𝐸 is an affine subspace with 𝑆⊆𝐸, then 𝐸 is closed under affine combinations by the same theorem, so it contains every affine combination of elements of 𝑆, that is, aff𝑆⊆𝐸.

(b) If 𝑐0+⋯+𝑐𝑘=1, then Lemma 4.7.13(a) with 𝐩=𝐯0 gives

∑𝑖=0𝑘𝑐𝑖𝐯𝑖=𝐯0+∑𝑖=1𝑘𝑐𝑖(𝐯𝑖−𝐯0),

because the term with 𝑖=0 is 𝑐0(𝐯0−𝐯0)=𝟎. So aff(𝐯0,…,𝐯𝑘)⊆𝐯0+span(𝐯1−𝐯0,…,𝐯𝑘−𝐯0). Conversely, for 𝑎1,…,𝑎𝑘∈𝐹,

𝐯0+∑𝑖=1𝑘𝑎𝑖(𝐯𝑖−𝐯0)=(1−𝑎1−⋯−𝑎𝑘)𝐯0+𝑎1𝐯1+⋯+𝑎𝑘𝐯𝑘,

an affine combination of 𝐯0,…,𝐯𝑘. Hence the two sets are equal. The direction span(𝐯1−𝐯0,…,𝐯𝑘−𝐯0) is spanned by a list of length 𝑘, which contains a basis (Theorem 1.6.10), so its dimension is at most 𝑘. □

For two points 𝐮≠𝐯, (b) gives aff(𝐮,𝐯)=𝐮+span(𝐯−𝐮)={(1−𝑡)𝐮+𝑡𝐯|𝑡∈𝐹}, the line through them. Over 𝔽2 this line consists of 𝐮 and 𝐯 alone. Three points of ℝ3 that do not lie on one line have a plane as their affine hull.

4.7.3Affine independence and barycentric coordinates

Intuition (From linear to affine independence). By Proposition 4.7.17(b), 𝑘+1 points have an affine hull of dimension at most 𝑘: two points span at most a line, three at most a plane. The points are in general position when they reach this bound, which by Proposition 4.7.17(b) means that the differences 𝐯𝑖−𝐯0 are linearly independent. That description singles out 𝐯0. For a definition that treats all points alike, imitate linear independence, which asks that the only linear relation be the trivial one (Theorem 1.5.5). For points, only relations whose coefficients add up to 0 are meaningful (the intuition at the start of Section 4.7.2), so we test only those.

Definition 4.7.18 (Affine independence). A list 𝐯0,…,𝐯𝑘 in 𝑉 is affinely independent if the only scalars 𝑐0,…,𝑐𝑘∈𝐹 with

𝑐0𝐯0+⋯+𝑐𝑘𝐯𝑘=𝟎and𝑐0+⋯+𝑐𝑘=0

are 𝑐0=⋯=𝑐𝑘=0. Otherwise the list is affinely dependent, and a relation of this form with some 𝑐𝑖≠0 is an affine dependence.

Example 4.7.19 (Affine independence).
  1. (a)A single point is affinely independent, since 𝑐0=0 is forced by the coefficient sum. Two points 𝐮,𝐯 are affinely independent if and only if 𝐮≠𝐯: a relation with coefficients 𝑐,−𝑐 says 𝑐(𝐮−𝐯)=𝟎.
  2. (b)The points (0,0),(1,0),(0,1) of ℝ2 are affinely independent: 𝑐0(0,0)+𝑐1(1,0)+𝑐2(0,1)=(𝑐1,𝑐2), so a relation has 𝑐1=𝑐2=0, and then 𝑐0=0. The list is linearly dependent, since it contains 𝟎.
  3. (c)The points (0,0),(1,1),(3,3) are affinely dependent: −2(0,0)+3(1,1)−(3,3)=𝟎, and −2+3−1=0. They lie on one line.

An affine dependence is in particular a linear relation, so a linearly independent list is affinely independent; (b) shows that the converse fails. Unlike linear independence, affine independence does not change when all points are moved by the same vector 𝐰: by Lemma 4.7.13(b) with 𝐩=−𝐰, ∑𝑖𝑐𝑖(𝐯𝑖+𝐰)=∑𝑖𝑐𝑖𝐯𝑖 whenever ∑𝑖𝑐𝑖=0.

Proposition 4.7.20 (Affine independence through differences). A list 𝐯0,…,𝐯𝑘 in 𝑉 is affinely independent if and only if 𝐯1−𝐯0,…,𝐯𝑘−𝐯0 is linearly independent.

Proof (translate the relations).routine

Uses. Definition 4.7.18 (Affine independence), Theorem 1.5.5 (Independence is decided at zero), Lemma 4.7.13 (Affine combinations do not depend on the origin)

Techniques. Choose a base point (Technique 4.7.4)

Hint 1. A linear relation among the differences, ∑𝑖≥1𝑎𝑖(𝐯𝑖−𝐯0)=𝟎, expands to a relation among 𝐯0,…,𝐯𝑘. What are its coefficients, and what is their sum?
Hint 2. Conversely, an affine dependence has 𝑐0=−(𝑐1+⋯+𝑐𝑘). Use Lemma 4.7.13(b) with 𝐩=𝐯0.
Sketch. ∑𝑖≥1𝑎𝑖(𝐯𝑖−𝐯0)=(−∑𝑖𝑎𝑖)𝐯0+∑𝑖≥1𝑎𝑖𝐯𝑖 has coefficient sum 0. So the linear relations among the differences are the affine relations among the points, read with 𝑐0=−∑𝑖≥1𝑐𝑖, and trivial ones correspond to trivial ones.

(⇒) Suppose 𝐯0,…,𝐯𝑘 is affinely independent, and let ∑𝑖=1𝑘𝑎𝑖(𝐯𝑖−𝐯0)=𝟎. Expanding,

(−𝑎1−⋯−𝑎𝑘)𝐯0+𝑎1𝐯1+⋯+𝑎𝑘𝐯𝑘=𝟎,

and the coefficients add up to 0. By affine independence they are all 0; in particular 𝑎1=⋯=𝑎𝑘=0. So the differences are linearly independent by Theorem 1.5.5.

(⇐) Suppose the differences are linearly independent, and let ∑𝑖=0𝑘𝑐𝑖𝐯𝑖=𝟎 with ∑𝑖=0𝑘𝑐𝑖=0. By Lemma 4.7.13(b) with 𝐩=𝐯0, ∑𝑖=0𝑘𝑐𝑖(𝐯𝑖−𝐯0)=𝟎, and the term with 𝑖=0 is 𝟎, so ∑𝑖=1𝑘𝑐𝑖(𝐯𝑖−𝐯0)=𝟎. Hence 𝑐1=⋯=𝑐𝑘=0, and 𝑐0=−(𝑐1+⋯+𝑐𝑘)=0. □

The first approach singles out 𝐯0. The second treats all points alike, at the price of a larger space: it turns each point into a vector one dimension up, so that affine relations become linear relations. For a vector space 𝑉, the set 𝑉×𝐹 of pairs (𝐯,𝑎) with the componentwise operations (𝐯,𝑎)+(𝐰,𝑏)=(𝐯+𝐰,𝑎+𝑏) and 𝑐(𝐯,𝑎)=(𝑐𝐯,𝑐𝑎) is a vector space, because each axiom holds in each component separately. (Product spaces are studied in Section 4.6.) For 𝑉=𝐹𝑛 it is 𝐹𝑛+1, with (𝐯,𝑎) the vector whose last entry is 𝑎.

Technique 4.7.21 (Homogenize: add a coordinate 1). To turn an affine problem into a linear one without choosing a base point, replace each point 𝐯 by its lift 𝐯̂=(𝐯,1) in 𝑉×𝐹, or in 𝐹𝑛+1 if 𝑉=𝐹𝑛. Then

∑𝑖𝑐𝑖𝐯̂𝑖=(∑𝑖𝑐𝑖𝐯𝑖,∑𝑖𝑐𝑖),

so the last coordinate records the coefficient sum. Affine combinations of points are the linear combinations of their lifts that land in the hyperplane “last coordinate 1”, and affine dependences are the linear relations among the lifts. Row reduction, rank, and matrices then apply directly.

Reach for it when you want to treat all points symmetrically, or when you want affine maps to become matrix multiplication. The canonical example is the second approach to Proposition 4.7.20. Homogeneous coordinates (Section 4.7.6) apply the same idea to maps.

Proof (lift to one dimension higher).standard

Uses. Definition 4.7.18 (Affine independence), Proposition 1.5.18 (Operations that preserve independence), Theorem 1.5.5 (Independence is decided at zero)

Techniques. Homogenize: add a coordinate 1 (Technique 4.7.21)

Hint 1. Compute ∑𝑖𝑐𝑖(𝐯𝑖,1) in 𝑉×𝐹. What does it say about affine dependences?
Hint 2. The lifts are linearly independent exactly when the points are affinely independent. Now subtract the first lift from the others; Proposition 1.5.18 says that independence does not change.
Sketch. ∑𝑖𝑐𝑖𝐯̂𝑖=(∑𝑖𝑐𝑖𝐯𝑖,∑𝑖𝑐𝑖), so the points are affinely independent if and only if their lifts are linearly independent, if and only if (by Proposition 1.5.18(c)) (𝐯0,1),(𝐯1−𝐯0,0),…,(𝐯𝑘−𝐯0,0) is. In a relation among these, the last coordinate forces the first coefficient to be 0, so this list is independent if and only if the differences are.

Let 𝐯̂𝑖=(𝐯𝑖,1)∈𝑉×𝐹. For 𝑐0,…,𝑐𝑘∈𝐹,

∑𝑖=0𝑘𝑐𝑖𝐯̂𝑖=(∑𝑖𝑐𝑖𝐯𝑖,∑𝑖𝑐𝑖),

so ∑𝑖𝑐𝑖𝐯̂𝑖=𝟎 if and only if ∑𝑖𝑐𝑖𝐯𝑖=𝟎 and ∑𝑖𝑐𝑖=0. Thus the affine dependences of 𝐯0,…,𝐯𝑘 are exactly the nontrivial linear relations of 𝐯̂0,…,𝐯̂𝑘, and the points are affinely independent if and only if their lifts are linearly independent.

Replacing 𝐯̂𝑖 by 𝐯̂𝑖+(−1)𝐯̂0 for 𝑖=1,…,𝑘, one at a time, does not change linear independence (Proposition 1.5.18(c)). The new list is

(𝐯0,1),(𝐮1,0),…,(𝐮𝑘,0),where𝐮𝑖=𝐯𝑖−𝐯0.

If 𝑎0(𝐯0,1)+∑𝑖=1𝑘𝑎𝑖(𝐮𝑖,0)=𝟎, the last coordinate gives 𝑎0=0, and then ∑𝑖𝑎𝑖𝐮𝑖=𝟎. So if 𝐮1,…,𝐮𝑘 is independent, every such relation is trivial. Conversely, a relation ∑𝑖𝑎𝑖𝐮𝑖=𝟎 gives the relation 0(𝐯0,1)+∑𝑖𝑎𝑖(𝐮𝑖,0)=𝟎, so if the new list is independent, all 𝑎𝑖=0. Hence the new list is independent if and only if the differences are, and chaining the equivalences proves the proposition. □

The second approach also gives a mechanical test. For points of 𝐹𝑛, 𝐯0,…,𝐯𝑘 is affinely independent if and only if the (𝑛+1)×(𝑘+1) matrix with columns 𝐯̂0,…,𝐯̂𝑘 has linearly independent columns, which row reduction decides (Theorem 3.5.12).

Theorem 4.7.22 (Characterizations of affine independence). Let 𝐯0,…,𝐯𝑘∈𝑉. The following are equivalent.

  1. (I)𝐯0,…,𝐯𝑘 is affinely independent.
  2. (II)𝐯1−𝐯0,…,𝐯𝑘−𝐯0 is linearly independent.
  3. (III)dimaff(𝐯0,…,𝐯𝑘)=𝑘.
  4. (IV)Every point of aff(𝐯0,…,𝐯𝑘) is an affine combination of 𝐯0,…,𝐯𝑘 in exactly one way.
  5. (V)No 𝐯𝑗 lies in the affine hull of the other entries of the list.

Proof.standard

Uses. Proposition 4.7.20 (Affine independence through differences), Proposition 4.7.17 (The affine hull), Proposition 1.6.2 (Bases are independent spanning lists), Corollary 4.1.11 (Spanning lists are long)

Techniques. Proving TFAE (Technique 2.7.1), Uniqueness via two candidates (Technique 1.1.8), Contrapositive (Technique 1.5.4)

Hint 1. (I) ⇔ (II) is Proposition 4.7.20. For (II) ⇔ (III), compute the direction of the affine hull with Proposition 4.7.17(b).
Hint 2. For (I) ⇔ (IV), subtract two representations of the same point. What do the coefficients of the difference add up to?
Hint 3. For (I) ⇔ (V), solve an affine dependence for a 𝐯𝑗 with 𝑐𝑗≠0, and check that the new coefficients add up to 1.
Sketch. The direction of the hull is spanned by the 𝑘 differences, so it has dimension 𝑘 exactly when they are a basis of it, that is, independent. Two representations of one point differ by an affine dependence, and conversely an affine dependence added to 𝐯0=1𝐯0 gives a second representation of 𝐯0. If 𝐯𝑗=∑𝑖≠𝑗𝑐𝑖𝐯𝑖 with ∑𝑐𝑖=1, moving 𝐯𝑗 across gives an affine dependence; if ∑𝑐𝑖𝐯𝑖=𝟎, ∑𝑐𝑖=0, and 𝑐𝑗≠0, then 𝐯𝑗=∑𝑖≠𝑗(−𝑐𝑖/𝑐𝑗)𝐯𝑖, and these coefficients add up to 1.

We prove (I) ⇔ (II), (II) ⇔ (III), (I) ⇔ (IV), and (I) ⇔ (V).

(I) ⇔ (II) is Proposition 4.7.20.

(II) ⇔ (III). By Proposition 4.7.17(b), the direction of aff(𝐯0,…,𝐯𝑘) is 𝐷=span(𝐯1−𝐯0,…,𝐯𝑘−𝐯0), which is spanned by a list of length 𝑘. If this list is independent, it is a basis of 𝐷 (Proposition 1.6.2), so dim𝐷=𝑘. If dim𝐷=𝑘, the spanning list of length 𝑘 is a basis of 𝐷 by Corollary 4.1.11(b), hence independent.

(I) ⇒ (IV). Suppose 𝐩=∑𝑖𝑐𝑖𝐯𝑖=∑𝑖𝑐𝑖′𝐯𝑖 with ∑𝑖𝑐𝑖=∑𝑖𝑐𝑖′=1. Subtracting, ∑𝑖(𝑐𝑖−𝑐𝑖′)𝐯𝑖=𝟎 and ∑𝑖(𝑐𝑖−𝑐𝑖′)=0. By (I), 𝑐𝑖=𝑐𝑖′ for all 𝑖.

(IV) ⇒ (I). Suppose ∑𝑖𝑐𝑖𝐯𝑖=𝟎 with ∑𝑖𝑐𝑖=0. Then

𝐯0=1𝐯0+0𝐯1+⋯+0𝐯𝑘=(1+𝑐0)𝐯0+𝑐1𝐯1+⋯+𝑐𝑘𝐯𝑘

are two affine combinations (their coefficients add up to 1 and to 1+0=1) that represent the point 𝐯0 of the affine hull. By (IV) they have the same coefficients, so 𝑐0=⋯=𝑐𝑘=0.

(I) ⇔ (V). We show that (I) fails if and only if (V) fails. If 𝐯𝑗=∑𝑖≠𝑗𝑐𝑖𝐯𝑖 with ∑𝑖≠𝑗𝑐𝑖=1, then ∑𝑖≠𝑗𝑐𝑖𝐯𝑖+(−1)𝐯𝑗=𝟎 is an affine dependence: its coefficients add up to 1−1=0, and the coefficient of 𝐯𝑗 is −1≠0. Conversely, let ∑𝑖𝑐𝑖𝐯𝑖=𝟎 with ∑𝑖𝑐𝑖=0 and 𝑐𝑗≠0. Then

𝐯𝑗=∑𝑖≠𝑗(−𝑐𝑖𝑐𝑗)𝐯𝑖,and∑𝑖≠𝑗(−𝑐𝑖𝑐𝑗)=−1𝑐𝑗∑𝑖≠𝑗𝑐𝑖=−1𝑐𝑗(−𝑐𝑗)=1,

so 𝐯𝑗 lies in the affine hull of the other entries. □

Condition (V) is the affine form of the linear dependence lemma (Lemma 1.5.10), and (IV) is the affine form of unique coordinates. For 𝑘=0, (V) holds because the other entries form an empty list, whose affine hull is empty.

Corollary 4.7.23 (Affinely independent lists are short). If dim𝑉=𝑛, then every affinely independent list in 𝑉 has at most 𝑛+1 entries. In particular, any 𝑛+2 points of 𝑉 are affinely dependent.

Proof.routine

Uses. Proposition 4.7.20 (Affine independence through differences), Theorem 4.1.10 (Independent lists are short)

Hint. Pass to the differences.
Sketch. If 𝐯0,…,𝐯𝑘 is affinely independent, the 𝑘 differences 𝐯𝑖−𝐯0 are linearly independent in an 𝑛-dimensional space, so 𝑘≤𝑛.
If 𝐯0,…,𝐯𝑘 is affinely independent, the 𝑘 vectors 𝐯𝑖−𝐯0 are linearly independent by Proposition 4.7.20, so 𝑘≤𝑛 by Theorem 4.1.10(a), and the list has 𝑘+1≤𝑛+1 entries. A list of 𝑛+2 points has 𝑘=𝑛+1>𝑛, so it is affinely dependent. □

Exercise 4.7.24.routine Decide whether each list is affinely independent. If it is not, find an affine dependence.

  1. (a)(1,2,3),(2,3,4),(4,5,6) in ℝ3.
  2. (b)(1,0,0),(0,1,0),(0,0,1),(1,1,1) in ℝ3.
  3. (c)The same four points, read in 𝔽23.

Solution.

Uses. Proposition 4.7.20 (Affine independence through differences)

Hint 1. Subtract the first point from the others and test the differences for linear independence.
Hint 2. In (b), the relation 𝑎(−1,1,0)+𝑏(−1,0,1)+𝑐(0,1,1)=𝟎 leads to −2𝑎=0. What happens to this step over 𝔽2?
Sketch. (a) The differences (1,1,1) and (3,3,3) are dependent; 2𝐯0−3𝐯1+𝐯2=𝟎. (b) The differences are independent over ℝ, so the points are the vertices of a tetrahedron. (c) Over 𝔽2, the four points add up to 𝟎, and 1+1+1+1=0.

(a) The differences from (1,2,3) are (1,1,1) and (3,3,3)=3(1,1,1), which are linearly dependent, so the list is affinely dependent (Proposition 4.7.20). Translating 3(1,1,1)−(3,3,3)=𝟎 back as in the proof of the proposition gives the affine dependence

2(1,2,3)−3(2,3,4)+(4,5,6)=(2−6+4,4−9+5,6−12+6)=𝟎,2−3+1=0.

(b) The differences from (1,0,0) are (−1,1,0), (−1,0,1), (0,1,1). If 𝑎(−1,1,0)+𝑏(−1,0,1)+𝑐(0,1,1)=𝟎, then −𝑎−𝑏=0, 𝑎+𝑐=0, and 𝑏+𝑐=0. So 𝑏=−𝑎 and 𝑐=−𝑎, and the last equation gives −2𝑎=0, so 𝑎=0 over ℝ, and then 𝑏=𝑐=0. The differences are independent, and the four points are affinely independent.

(c) Over 𝔽2 the step −2𝑎=0⇒𝑎=0 fails, and 𝑎=𝑏=𝑐=1 is a relation: (1,1,0)+(1,0,1)+(0,1,1)=(2,2,2)=𝟎. Correspondingly,

(1,0,0)+(0,1,0)+(0,0,1)+(1,1,1)=(2,2,2)=𝟎and1+1+1+1=0

in 𝔽2, an affine dependence. The four points lie in the plane 𝑥1+𝑥2+𝑥3=1 of 𝔽23.

Definition 4.7.25 (Affine frame, barycentric coordinates). Let 𝐸 be an affine subspace of 𝑉. An affine frame of 𝐸 is an affinely independent list 𝐯0,…,𝐯𝑘 with aff(𝐯0,…,𝐯𝑘)=𝐸. Given an affine frame, each 𝐩∈𝐸 can be written as

𝐩=𝑡0𝐯0+⋯+𝑡𝑘𝐯𝑘,𝑡0+⋯+𝑡𝑘=1,

in exactly one way (Theorem 4.7.22(IV)). The scalars (𝑡0,…,𝑡𝑘) are the barycentric coordinates of 𝐩 with respect to 𝐯0,…,𝐯𝑘.

The name comes from physics: if masses 𝑡0,…,𝑡𝑘≥0 with total 1 sit at 𝐯0,…,𝐯𝑘, their center of mass, or barycenter, is ∑𝑖𝑡𝑖𝐯𝑖.

Remark 4.7.26 (Frames exist, and coordinates are coordinates). Let 𝐸=𝐩+𝑈 with dim𝑈=𝑘, and let 𝐮1,…,𝐮𝑘 be a basis of 𝑈. Then 𝐩,𝐩+𝐮1,…,𝐩+𝐮𝑘 is an affine frame of 𝐸: its differences are the 𝐮𝑖, which are independent, and its affine hull is 𝐩+span(𝐮1,…,𝐮𝑘)=𝐸 by Proposition 4.7.17(b). Conversely, every affine frame of 𝐸 has dim𝐸+1 entries, by Theorem 4.7.22(III).

Barycentric coordinates are ordinary coordinates in disguise. By Lemma 4.7.13(a), 𝐩=∑𝑖=0𝑘𝑡𝑖𝐯𝑖 with ∑𝑖𝑡𝑖=1 if and only if

𝐩−𝐯0=𝑡1(𝐯1−𝐯0)+⋯+𝑡𝑘(𝐯𝑘−𝐯0)and𝑡0=1−𝑡1−⋯−𝑡𝑘.

So (𝑡1,…,𝑡𝑘)=[𝐩−𝐯0]ℬ︀ for the basis ℬ︀=𝐯1−𝐯0,…,𝐯𝑘−𝐯0 of dir𝐸, and 𝑡0 is determined by the others.

Example 4.7.27 (Barycentric coordinates in a triangle). Let 𝐯0=(1,1), 𝐯1=(5,2), 𝐯2=(2,5) in ℝ2. The differences (4,1) and (1,4) are independent, so the three points form an affine frame of ℝ2, a triangle. For 𝐩=(3,3), Remark 4.7.26 asks for 𝐩−𝐯0=(2,2)=𝑡1(4,1)+𝑡2(1,4), that is, 4𝑡1+𝑡2=2 and 𝑡1+4𝑡2=2. So 𝑡1=𝑡2=25 and 𝑡0=15:

(3,3)=15(1,1)+25(5,2)+25(2,5).

For 𝐪=(6,0), the equations 4𝑡1+𝑡2=5 and 𝑡1+4𝑡2=−1 give 𝑡1=75, 𝑡2=−35, and 𝑡0=15. Check: 15(1,1)+75(5,2)−35(2,5)=15(1+35−6,1+14−15)=(6,0).

Homogenizing (Technique 4.7.21) gives the same numbers in one step: (𝑡0,𝑡1,𝑡2) is the unique solution of

(152125111)(𝑡0𝑡1𝑡2)=(331),

whose columns are the lifts 𝐯̂𝑖.

Intuition (Reading barycentric coordinates off a picture). In a triangle in ℝ2, the coordinate 𝑡0 vanishes exactly on the line through 𝐯1 and 𝐯2 (the points whose representation does not use 𝐯0), equals 1 at 𝐯0, and changes at a constant rate as 𝐩 moves, because by Remark 4.7.26 it is an affine function of 𝐩. So 𝑡0 measures how far 𝐩 has traveled from the line 𝐯1𝐯2 toward 𝐯0, as a fraction of the height of 𝐯0 above that line. It is positive on the side of 𝐯0 and negative on the other side, and the three edge lines cut the plane into seven regions with seven sign patterns (Figure 4.7.1, right). For 𝐩 inside the triangle, the triangles 𝐩𝐯1𝐯2 and 𝐯0𝐯1𝐯2 share the base 𝐯1𝐯2, so the height description says that 𝑡0 is the ratio of their areas (left). In Example 4.7.27, 𝐪 has 𝑡2<0, and indeed it lies on the far side of the line 𝐯0𝐯1 from 𝐯2.
Figure 4.7.1. Barycentric coordinates in a triangle. Left: the point 𝐩 with barycentric coordinates (0.3,0.4,0.3); for a point inside the triangle, 𝑡𝑖 is the fraction of the area taken by the small triangle opposite 𝐯𝑖. Right: the signs of (𝑡0,𝑡1,𝑡2) in the seven regions cut out by the lines through the edges.

When 𝐯0=𝟎, Remark 4.7.26 says that (𝑡1,𝑡2) are the coordinates of 𝐩 in the basis 𝐯1,𝐯2, so the change-of-basis component of Section 4.5 also shows barycentric coordinates. Read its two basis vectors as two vertices of a triangle whose third vertex is 𝟎.

The triangle with vertices 𝟎, 𝐛1=(3,1), 𝐛2=(1,2) is half of a cell of the ℬ︀-grid. The point 𝐯=(1.5,1)=0.4𝐛1+0.3𝐛2 has ℬ︀-coordinates (𝑡1,𝑡2)=(0.4,0.3), so its barycentric coordinates with respect to 𝟎,𝐛1,𝐛2 are (0.3,0.4,0.3), with 𝑡0=1−𝑡1−𝑡2. In the interactive version, drag 𝐯: it lies in the triangle exactly when 𝑡1≥0, 𝑡2≥0, and 𝑡1+𝑡2≤1. When 𝐛1 and 𝐛2 become parallel, the three points are affinely dependent and the coordinates are undefined.

If (𝑘+1)⋅1≠0 in 𝐹, the point whose barycentric coordinates are all 1/(𝑘+1) is the centroid 1𝑘+1(𝐯0+⋯+𝐯𝑘). Over 𝔽3 a triangle has no centroid, and Exercise 4.7.57 shows what its medians do instead.

4.7.4Convexity and simplices

Over ℝ we can ask for barycentric coordinates to be nonnegative, which describes the solid triangle rather than the plane it spans. Throughout this subsection 𝑉 is a real vector space; everything works verbatim over ℚ.

Definition 4.7.28 (Convex combination, convex set, convex hull). Let 𝑉 be a real vector space. A convex combination of 𝐯1,…,𝐯𝑘 is an affine combination 𝑐1𝐯1+⋯+𝑐𝑘𝐯𝑘 with 𝑐𝑖≥0 for all 𝑖. A subset 𝐶⊆𝑉 is convex if (1−𝑡)𝐮+𝑡𝐯∈𝐶 for all 𝐮,𝐯∈𝐶 and 𝑡∈[0,1], that is, if 𝐶 contains the segment [𝐮,𝐯]={(1−𝑡)𝐮+𝑡𝐯|𝑡∈[0,1]} between any two of its points. The convex hull conv𝑆 of 𝑆⊆𝑉 is the set of all convex combinations of finitely many elements of 𝑆.
Example 4.7.29 (Convex sets). Affine subspaces are convex, by Theorem 4.7.14. So is every half-space 𝐻={𝐱∈ℝ𝑛|𝑎1𝑥1+⋯+𝑎𝑛𝑥𝑛≥𝑐}: writing 𝛼(𝐱)=𝑎1𝑥1+⋯+𝑎𝑛𝑥𝑛, if 𝛼(𝐮)≥𝑐 and 𝛼(𝐯)≥𝑐, then 𝛼((1−𝑡)𝐮+𝑡𝐯)=(1−𝑡)𝛼(𝐮)+𝑡𝛼(𝐯)≥(1−𝑡)𝑐+𝑡𝑐=𝑐 for 𝑡∈[0,1]. An intersection of convex sets is convex, so the solution set of any system of linear inequalities is convex; these are the feasible regions of linear programming. The union of the two coordinate axes in ℝ2 is not convex, since the midpoint of (1,0) and (0,1) is missing.

Proposition 4.7.30 (Convex sets and convex hulls). Let 𝑉 be a real vector space, and let 𝑆⊆𝑉.

  1. (a)A subset 𝐶⊆𝑉 is convex if and only if every convex combination of elements of 𝐶 lies in 𝐶.
  2. (b)conv𝑆 is convex, contains 𝑆, and is contained in every convex subset of 𝑉 that contains 𝑆.

Proof.standard

Uses. Definition 4.7.28 (Convex combination, convex set, convex hull), Proposition 4.7.17 (The affine hull)

Techniques. Induction on the length of a list (Technique 1.6.9)

Hint 1. (⇐) of (a) is the case of two points. For (⇒), induct on the number 𝑘 of points, splitting off the last one.
Hint 2. If 𝑐𝑘<1, write ∑𝑖𝑐𝑖𝐯𝑖=(1−𝑐𝑘)𝐪+𝑐𝑘𝐯𝑘, where 𝐪 is a convex combination of 𝐯1,…,𝐯𝑘−1.
Hint 3. For (b), copy the proof of Proposition 4.7.17(a): over a common list, a convex combination of two convex combinations is a convex combination.
Sketch. Induct on 𝑘. For 𝑘=1 the combination is 𝐯1. If 𝑐𝑘=1, the other coefficients are 0 and the point is 𝐯𝑘. Otherwise 𝐪=∑𝑖<𝑘(𝑐𝑖/(1−𝑐𝑘))𝐯𝑖 is a convex combination of 𝑘−1 points, so 𝐪∈𝐶, and the point is (1−𝑐𝑘)𝐪+𝑐𝑘𝐯𝑘∈𝐶. For (b), (1−𝑡)∑𝑖𝑎𝑖𝐬𝑖+𝑡∑𝑖𝑏𝑖𝐬𝑖=∑𝑖((1−𝑡)𝑎𝑖+𝑡𝑏𝑖)𝐬𝑖 is a convex combination.

(a) If 𝐶 contains every convex combination of its elements, then in particular it contains (1−𝑡)𝐮+𝑡𝐯 for 𝐮,𝐯∈𝐶 and 𝑡∈[0,1], so 𝐶 is convex. Conversely, let 𝐶 be convex. We show by induction on 𝑘≥1 that every convex combination 𝑐1𝐯1+⋯+𝑐𝑘𝐯𝑘 of elements of 𝐶 lies in 𝐶. For 𝑘=1, 𝑐1=1 and the combination is 𝐯1∈𝐶. Let 𝑘≥2, and assume the claim for 𝑘−1. If 𝑐𝑘=1, then 𝑐1+⋯+𝑐𝑘−1=0 with all 𝑐𝑖≥0, so 𝑐1=⋯=𝑐𝑘−1=0 and the combination is 𝐯𝑘∈𝐶. Otherwise 𝑠=1−𝑐𝑘=𝑐1+⋯+𝑐𝑘−1>0, and

𝐪=𝑐1𝑠𝐯1+⋯+𝑐𝑘−1𝑠𝐯𝑘−1

is a convex combination of 𝑘−1 elements of 𝐶 (its coefficients are nonnegative and add up to 𝑠/𝑠=1), so 𝐪∈𝐶 by the induction hypothesis. Then

𝑐1𝐯1+⋯+𝑐𝑘𝐯𝑘=𝑠𝐪+𝑐𝑘𝐯𝑘=(1−𝑐𝑘)𝐪+𝑐𝑘𝐯𝑘,

which lies in 𝐶 because 𝐶 is convex and 𝑐𝑘∈[0,1].

(b) Each 𝐬∈𝑆 is the convex combination 1𝐬, so 𝑆⊆conv𝑆. Let 𝐮,𝐯∈conv𝑆 and 𝑡∈[0,1]. As in the proof of Proposition 4.7.17(a), write 𝐮=∑𝑖𝑎𝑖𝐬𝑖 and 𝐯=∑𝑖𝑏𝑖𝐬𝑖 over one list 𝐬1,…,𝐬𝑁 of elements of 𝑆, padding with zero coefficients. Then

(1−𝑡)𝐮+𝑡𝐯=∑𝑖((1−𝑡)𝑎𝑖+𝑡𝑏𝑖)𝐬𝑖,

and the coefficients are nonnegative and add up to (1−𝑡)+𝑡=1. So conv𝑆 is convex. If 𝐶 is convex and 𝑆⊆𝐶, then 𝐶 contains every convex combination of elements of 𝑆 by (a), that is, conv𝑆⊆𝐶. □

Definition 4.7.31 (Simplex). Let 𝐯0,…,𝐯𝑘 be affinely independent in a real vector space 𝑉. The 𝑘-simplex with vertices 𝐯0,…,𝐯𝑘 is

conv(𝐯0,…,𝐯𝑘)={𝑡0𝐯0+⋯+𝑡𝑘𝐯𝑘|𝑡𝑖≥0for all𝑖,𝑡0+⋯+𝑡𝑘=1}.

Indexing the coordinates of ℝ𝑘+1 from 0, the standard 𝑘-simplex is

Δ𝑘={(𝑡0,…,𝑡𝑘)∈ℝ𝑘+1|𝑡𝑖≥0for all𝑖,𝑡0+⋯+𝑡𝑘=1},

the simplex whose vertices are the standard basis vectors of ℝ𝑘+1.

A 0-simplex is a point, a 1-simplex is a segment, a 2-simplex is a solid triangle, and a 3-simplex is a solid tetrahedron. The points of Δ𝑘 are the probability vectors with 𝑘+1 entries. For instance, a classifier that assigns probabilities to 𝑘+1 classes outputs a point of Δ𝑘, and stochastic matrices (Section 11.1) have columns in Δ𝑛−1.

Proposition 4.7.32 (Barycentric coordinates on a simplex). Let 𝜎 be the 𝑘-simplex with vertices 𝐯0,…,𝐯𝑘. The map 𝛽:Δ𝑘→𝜎, 𝛽(𝑡0,…,𝑡𝑘)=𝑡0𝐯0+⋯+𝑡𝑘𝐯𝑘, is a bijection. Equivalently, a point of aff(𝐯0,…,𝐯𝑘) lies in 𝜎 if and only if all of its barycentric coordinates are nonnegative, and 𝛽−1 sends a point of 𝜎 to its barycentric coordinates.

Proof.routine

Uses. Definition 4.7.31 (Simplex), Theorem 4.7.22 (Characterizations of affine independence), Definition 4.7.25 (Affine frame, barycentric coordinates)

Techniques. Uniqueness via two candidates (Technique 1.1.8)

Hint 1. Surjectivity is the definition of 𝜎.
Hint 2. Injectivity is the uniqueness of barycentric coordinates, Theorem 4.7.22(IV).
Sketch. 𝛽 is onto 𝜎=conv(𝐯0,…,𝐯𝑘) by definition, and two tuples with the same image are two affine combinations representing one point, so they are equal by Theorem 4.7.22(IV). A point lies in 𝜎 exactly when its unique coordinate tuple lies in Δ𝑘.
By the definition of 𝜎, 𝛽 is surjective. If 𝛽(𝐭)=𝛽(𝐭′) for 𝐭,𝐭′∈Δ𝑘, then ∑𝑖𝑡𝑖𝐯𝑖 and ∑𝑖𝑡𝑖′𝐯𝑖 are affine combinations representing the same point, so 𝐭=𝐭′ by Theorem 4.7.22(IV). Hence 𝛽 is a bijection. A point 𝐩∈aff(𝐯0,…,𝐯𝑘) has unique barycentric coordinates 𝐭, and 𝐩∈𝜎 if and only if 𝐩=𝛽(𝐭′) for some 𝐭′∈Δ𝑘. By uniqueness this happens if and only if 𝐭∈Δ𝑘, that is, if and only if all 𝑡𝑖≥0. □

In Example 4.7.27, 𝐩=(3,3) lies in the triangle, since its coordinates (15,25,25) are positive, and 𝐪=(6,0) does not. Renderers test whether a pixel lies in a triangle exactly this way. They also use the coordinates to shade it: if the vertices carry colors 𝐜0,𝐜1,𝐜2∈ℝ3 (red, green, and blue intensities), the pixel at 𝐩 gets 𝑡0𝐜0+𝑡1𝐜1+𝑡2𝐜2. This is the unique affine map ℝ2→ℝ3 with the prescribed values at the vertices (Theorem 4.7.39 below), and the same formula interpolates depths and texture coordinates.

Carathéodory’s theorem

A point of conv𝑆 may be given as a convex combination of many points of 𝑆. In ℝ2, though, every point of a convex polygon lies in a triangle formed by three of its vertices. In general a long convex combination can be shortened: when the points it uses are affinely dependent, the dependence gives a way to change the coefficients without changing the point or the coefficient sum, and we change them until one coefficient reaches 0.

Technique 4.7.33 (Slide along a dependence). Suppose 𝐩=∑𝑖𝑐𝑖𝐯𝑖, where the coefficients are subject to constraints, such as 𝑐𝑖≥0 and ∑𝑖𝑐𝑖=1, and the 𝐯𝑖 satisfy a relation ∑𝑖𝑑𝑖𝐯𝑖=𝟎 that respects the equality constraints (here ∑𝑖𝑑𝑖=0). Then 𝐩=∑𝑖(𝑐𝑖−𝜆𝑑𝑖)𝐯𝑖 for every scalar 𝜆, and the equality constraints still hold. Increase 𝜆 from 0 until the first inequality constraint becomes tight. At that extremal 𝜆 some coefficient is 0, and its vector can be dropped. Repeat as long as a relation exists.

Reach for it to show that a representation can be chosen short, for instance using independent vectors only. It refines the argument of Theorem 1.6.10, where a redundant vector is simply discarded, to situations where the coefficients must keep their signs. The canonical example is Carathéodory’s theorem (Theorem 4.7.34).

Theorem 4.7.34 (Carathéodory). Let 𝑉 be a real vector space with dim𝑉=𝑛, and let 𝑆⊆𝑉. Every point of conv𝑆 is a convex combination of at most 𝑛+1 elements of 𝑆.

Proof.hard

Uses. Definition 4.7.28 (Convex combination, convex set, convex hull), Corollary 4.7.23 (Affinely independent lists are short), Definition 4.7.18 (Affine independence)

Techniques. Slide along a dependence (Technique 4.7.33), Extremal choice and minimal counterexamples (Technique 1.5.9)

Hint 1. Take a representation 𝐩=∑𝑖=1𝑚𝑐𝑖𝐯𝑖 with 𝑚 as small as possible. Then all 𝑐𝑖>0. If 𝑚≥𝑛+2, what does Corollary 4.7.23 give?
Hint 2. An affine dependence ∑𝑖𝑑𝑖𝐯𝑖=𝟎, ∑𝑖𝑑𝑖=0, has some 𝑑𝑖>0. Subtract 𝜆 times it from the representation.
Hint 3. Take 𝜆=min{𝑐𝑖/𝑑𝑖|𝑑𝑖>0}.
Sketch. Choose a representation 𝐩=∑𝑖=1𝑚𝑐𝑖𝐯𝑖 with 𝑚 minimal, so every 𝑐𝑖>0. If 𝑚≥𝑛+2, the 𝐯𝑖 are affinely dependent: ∑𝑖𝑑𝑖𝐯𝑖=𝟎, ∑𝑖𝑑𝑖=0, and some 𝑑𝑖>0. With 𝜆=min𝑑𝑖>0𝑐𝑖/𝑑𝑖, the coefficients 𝑐𝑖−𝜆𝑑𝑖 are nonnegative, add up to 1, represent 𝐩, and one of them is 0, contradicting minimality.

Let 𝐩∈conv𝑆. Among all ways of writing 𝐩 as a convex combination of finitely many elements of 𝑆, choose one, 𝐩=𝑐1𝐯1+⋯+𝑐𝑚𝐯𝑚, with 𝑚 as small as possible. Every 𝑐𝑖 is positive, since a term with 𝑐𝑗=0 could be deleted. Suppose, for contradiction, that 𝑚≥𝑛+2. By Corollary 4.7.23, the list 𝐯1,…,𝐯𝑚 is affinely dependent: there are 𝑑1,…,𝑑𝑚, not all 0, with

𝑑1𝐯1+⋯+𝑑𝑚𝐯𝑚=𝟎,𝑑1+⋯+𝑑𝑚=0.

Since the 𝑑𝑖 add up to 0 and are not all 0, at least one of them is positive. Let

𝜆=min{𝑐𝑖𝑑𝑖|𝑑𝑖>0},

attained at 𝑖=𝑗. Then 𝜆>0. Put 𝑐𝑖′=𝑐𝑖−𝜆𝑑𝑖. Then

∑𝑖𝑐𝑖′𝐯𝑖=∑𝑖𝑐𝑖𝐯𝑖−𝜆∑𝑖𝑑𝑖𝐯𝑖=𝐩,∑𝑖𝑐𝑖′=∑𝑖𝑐𝑖−𝜆∑𝑖𝑑𝑖=1.

If 𝑑𝑖≤0, then 𝑐𝑖′≥𝑐𝑖>0; if 𝑑𝑖>0, then 𝑐𝑖/𝑑𝑖≥𝜆, so 𝑐𝑖′=𝑑𝑖(𝑐𝑖/𝑑𝑖−𝜆)≥0. So 𝐩=∑𝑖𝑐𝑖′𝐯𝑖 is a convex combination, and 𝑐𝑗′=𝑐𝑗−(𝑐𝑗/𝑑𝑗)𝑑𝑗=0. Deleting the 𝑗th term represents 𝐩 as a convex combination of 𝑚−1 elements of 𝑆, contradicting the minimality of 𝑚. Hence 𝑚≤𝑛+1. □

The bound 𝑛+1 cannot be lowered. Let 𝑆 be the vertex set of an 𝑛-simplex. Its centroid has all 𝑛+1 barycentric coordinates positive, while a convex combination of fewer vertices has a zero coordinate, so by the uniqueness in Proposition 4.7.32 the centroid is not a convex combination of fewer than 𝑛+1 points of 𝑆.

4.7.5Affine maps

In Section 2.1, the maps 𝐯↦𝐿(𝐯)+𝐛 were the basic non-examples of linear maps (Non-example 2.1.12), and Proposition 2.1.13 showed that, when 𝐛≠𝟎, they respect exactly the affine combinations. They are the maps of affine geometry.

Definition 4.7.35 (Affine map). Let 𝑉 and 𝑊 be vector spaces over 𝐹. A map 𝑓:𝑉→𝑊 is affine if there are 𝐿∈L(𝑉,𝑊) and 𝐛∈𝑊 with 𝑓(𝐯)=𝐿(𝐯)+𝐛 for all 𝐯∈𝑉. We then write 𝑓=𝐿+𝐛.

The pair is determined by 𝑓: 𝑓(𝟎)=𝐿(𝟎)+𝐛=𝐛, and then 𝐿(𝐯)=𝑓(𝐯)−𝑓(𝟎). We call 𝐿 the linear part of 𝑓.

Example 4.7.36 (Affine maps).
  1. (a)Linear maps (𝐛=𝟎), constant maps (𝐿=0), and translations 𝜏𝐛(𝐯)=𝐯+𝐛 (with 𝐿=id𝑉) are affine.
  2. (b)The rotation of ℝ2 by the angle 𝜃 about a point 𝐚 moves 𝐚 to the origin, rotates, and moves back:

    𝑓(𝐯)=𝐚+𝑅𝜃(𝐯−𝐚)=𝑅𝜃𝐯+(𝐚−𝑅𝜃𝐚),

    where 𝑅𝜃 is the rotation about 𝟎 (Section 2.1). Its linear part is 𝑅𝜃 wherever the center is. Likewise the scaling by 𝑐 about 𝐚 is 𝐯↦𝐚+𝑐(𝐯−𝐚)=𝑐𝐯+(1−𝑐)𝐚.

  3. (c)The map 𝑥↦𝑥2 on ℝ is not affine, since it sends 0,1,2 to 0,1,4, and 1 is the midpoint of 0 and 2 while 1 is not the midpoint of 0 and 4. (Affine maps preserve midpoints, by the next theorem.)

Theorem 4.7.37 (Affine maps preserve affine combinations). Let 𝑓:𝑉→𝑊 be a map. The following are equivalent.

  1. (I)𝑓 is affine.
  2. (II)𝑓(𝑐1𝐯1+⋯+𝑐𝑘𝐯𝑘)=𝑐1𝑓(𝐯1)+⋯+𝑐𝑘𝑓(𝐯𝑘) for all 𝑘≥1, all 𝐯1,…,𝐯𝑘∈𝑉, and all 𝑐1,…,𝑐𝑘∈𝐹 with 𝑐1+⋯+𝑐𝑘=1.
  3. (III)For every 𝐩∈𝑉, the map 𝑔𝐩:𝑉→𝑊, 𝑔𝐩(𝐯)=𝑓(𝐩+𝐯)−𝑓(𝐩), is linear.
  4. (IV)For some 𝐩∈𝑉, the map 𝑔𝐩 is linear.

In that case 𝑔𝐩 is the linear part of 𝑓 for every 𝐩.

Intuition. Condition (II) says that 𝑓 commutes with weighted averages. Condition (III) says that 𝑓 becomes linear once positions are measured from 𝐩 in 𝑉 and from 𝑓(𝐩) in 𝑊. The definition measures from 𝟎; the theorem says that 𝟎 is not special. To get from (II) to (III), express 𝐩+𝐮+𝐯 and 𝐩+𝑐𝐯 as affine combinations of 𝐩, 𝐩+𝐮, and 𝐩+𝐯.

Proof.standard

Uses. Proposition 2.1.13 (Which combinations an affine map respects), Theorem 2.1.3 (Checking linearity)

Techniques. Proving TFAE (Technique 2.7.1), Choose a base point (Technique 4.7.4)

Hint 1. (I) ⇒ (II) is Proposition 2.1.13.
Hint 2. For (II) ⇒ (III): 𝐩+𝐮+𝐯=(𝐩+𝐮)+(𝐩+𝐯)−𝐩 and 𝐩+𝑐𝐯=𝑐(𝐩+𝐯)+(1−𝑐)𝐩.
Hint 3. For (IV) ⇒ (I), write 𝑓(𝐯)=𝑓(𝐩+(𝐯−𝐩)).
Sketch. Applying 𝑓 to 𝐩+𝐮+𝐯=(𝐩+𝐮)+(𝐩+𝐯)−𝐩 and to 𝐩+𝑐𝐯=𝑐(𝐩+𝐯)+(1−𝑐)𝐩 and subtracting 𝑓(𝐩) gives additivity and homogeneity of 𝑔𝐩. Conversely, 𝑓(𝐯)=𝑔𝐩(𝐯−𝐩)+𝑓(𝐩)=𝑔𝐩(𝐯)+(𝑓(𝐩)−𝑔𝐩(𝐩)). If 𝑓=𝐿+𝐛, then 𝑔𝐩(𝐯)=𝐿(𝐩+𝐯)−𝐿(𝐩)=𝐿(𝐯).

We prove (I) ⇒ (II) ⇒ (III) ⇒ (IV) ⇒ (I).

(I) ⇒ (II). If 𝑓=𝐿+𝐛, then by Proposition 2.1.13, 𝑓(∑𝑖𝑐𝑖𝐯𝑖)−∑𝑖𝑐𝑖𝑓(𝐯𝑖)=(1−∑𝑖𝑐𝑖)𝐛=𝟎 when ∑𝑖𝑐𝑖=1.

(II) ⇒ (III). Fix 𝐩 and write 𝑔=𝑔𝐩. For 𝐮,𝐯∈𝑉, the vector 𝐩+𝐮+𝐯=1(𝐩+𝐮)+1(𝐩+𝐯)+(−1)𝐩 is an affine combination, as 1+1−1=1. By (II), 𝑓(𝐩+𝐮+𝐯)=𝑓(𝐩+𝐮)+𝑓(𝐩+𝐯)−𝑓(𝐩), and subtracting 𝑓(𝐩) from both sides gives

𝑔(𝐮+𝐯)=(𝑓(𝐩+𝐮)−𝑓(𝐩))+(𝑓(𝐩+𝐯)−𝑓(𝐩))=𝑔(𝐮)+𝑔(𝐯).

For 𝑐∈𝐹, 𝐩+𝑐𝐯=𝑐(𝐩+𝐯)+(1−𝑐)𝐩, so by (II), 𝑓(𝐩+𝑐𝐯)=𝑐𝑓(𝐩+𝐯)+(1−𝑐)𝑓(𝐩), and

𝑔(𝑐𝐯)=𝑐𝑓(𝐩+𝐯)−𝑐𝑓(𝐩)=𝑐𝑔(𝐯).

So 𝑔 is linear by Theorem 2.1.3.

(III) ⇒ (IV) holds because 𝑉 is nonempty.

(IV) ⇒ (I). Let 𝑔=𝑔𝐩 be linear. For 𝐯∈𝑉,

𝑓(𝐯)=𝑓(𝐩+(𝐯−𝐩))=𝑔(𝐯−𝐩)+𝑓(𝐩)=𝑔(𝐯)+(𝑓(𝐩)−𝑔(𝐩)).

So 𝑓=𝑔+𝐛 with 𝐛=𝑓(𝐩)−𝑔(𝐩), and 𝑓 is affine.

Finally, if 𝑓=𝐿+𝐛, then for every 𝐩 and 𝐯, 𝑔𝐩(𝐯)=(𝐿(𝐩+𝐯)+𝐛)−(𝐿(𝐩)+𝐛)=𝐿(𝐯), so 𝑔𝐩=𝐿. □

Compare Exercise 2.1.39, which assumed only that 𝑓 respects affine combinations of two points and needed 1+1≠0 to recover additivity. The three-point combination with coefficients 1,1,−1 makes the division by 2 unnecessary, exactly as in the proof of Theorem 4.7.14.

Proposition 4.7.38 (Affine maps and affine subspaces). Let 𝑓=𝐿+𝐛:𝑉→𝑊 be affine.

  1. (a)If 𝑔=𝑀+𝐜:𝑊→𝑋 is affine, then 𝑔∘𝑓 is affine, and (𝑔∘𝑓)(𝐯)=𝑀𝐿(𝐯)+(𝑀(𝐛)+𝐜).
  2. (b)𝑓 is bijective if and only if 𝐿 is. In that case 𝑓−1 is affine, and 𝑓−1(𝐰)=𝐿−1(𝐰)−𝐿−1(𝐛).
  3. (c)If 𝐸 is an affine subspace of 𝑉, then 𝑓(𝐸) is an affine subspace of 𝑊 with direction im(𝐿↾dir𝐸). If 𝐸 is finite-dimensional, then dim𝑓(𝐸)≤dim𝐸.
  4. (d)If 𝐸′ is an affine subspace of 𝑊, then 𝑓−1(𝐸′) is empty or an affine subspace of 𝑉 with direction {𝐮∈𝑉|𝐿(𝐮)∈dir𝐸′}.

Proof.standard

Uses. Definition 4.7.35 (Affine map), Proposition 2.1.17 (Compositions of linear maps are linear), Proposition 2.7.7 (Bijective linear maps are invertible), Proposition 4.7.3 (Direction and base points), Proposition 2.6.8 (Kernels and images are subspaces), Theorem 4.2.11 (Rank–nullity), Theorem 1.4.3 (Subspace criterion)

Techniques. Choose a base point (Technique 4.7.4)

Hint 1. (a) is a computation. For (b), write 𝑓=𝜏𝐛∘𝐿, where 𝜏𝐛 is the translation by 𝐛, a bijection.
Hint 2. For (c) and (d), choose base points: 𝐩∈𝐸 for (c), and a point 𝐪∈𝑓−1(𝐸′), if there is one, for (d). The key identity is 𝑓(𝐩+𝐮)=𝑓(𝐩)+𝐿(𝐮).
Sketch. (a) 𝑀(𝐿(𝐯)+𝐛)+𝐜. (b) 𝜏𝐛 is a bijection with inverse 𝜏−𝐛, so 𝑓=𝜏𝐛∘𝐿 is bijective if and only if 𝐿 is, and then 𝑓−1=𝐿−1∘𝜏−𝐛. (c) 𝑓(𝐩+𝑈)=𝑓(𝐩)+𝐿(𝑈), and dim𝐿(𝑈)≤dim𝑈 by rank–nullity. (d) With 𝐪∈𝑓−1(𝐸′), 𝑓(𝐯)∈𝐸′ if and only if 𝐿(𝐯−𝐪)=𝑓(𝐯)−𝑓(𝐪)∈dir𝐸′.

(a) 𝑔(𝑓(𝐯))=𝑀(𝐿(𝐯)+𝐛)+𝐜=𝑀𝐿(𝐯)+(𝑀(𝐛)+𝐜), and 𝑀𝐿 is linear by Proposition 2.1.17.

(b) The translation 𝜏𝐛:𝑊→𝑊, 𝐰↦𝐰+𝐛, is a bijection with inverse 𝜏−𝐛, and 𝑓=𝜏𝐛∘𝐿. If 𝐿 is bijective, so is 𝑓; if 𝑓 is bijective, so is 𝐿=𝜏−𝐛∘𝑓. In that case 𝑓−1=𝐿−1∘𝜏−𝐛, that is, 𝑓−1(𝐰)=𝐿−1(𝐰−𝐛)=𝐿−1(𝐰)−𝐿−1(𝐛), and 𝐿−1 is linear by Proposition 2.7.7. So 𝑓−1 is affine.

(c) Let 𝐸=𝐩+𝑈. For 𝐮∈𝑈, 𝑓(𝐩+𝐮)=𝐿(𝐩)+𝐿(𝐮)+𝐛=𝑓(𝐩)+𝐿(𝐮). Hence 𝑓(𝐸)=𝑓(𝐩)+𝐿(𝑈), where 𝐿(𝑈)=im(𝐿↾𝑈) is a subspace of 𝑊 (Proposition 2.6.8, applied to 𝐿↾𝑈). So 𝑓(𝐸) is an affine subspace with direction im(𝐿↾𝑈). If 𝑈 is finite-dimensional, rank–nullity for 𝐿↾𝑈 (Theorem 4.2.11) gives dimim(𝐿↾𝑈)≤dim𝑈.

(d) Let 𝑈′=dir𝐸′ and 𝑈″={𝐮∈𝑉|𝐿(𝐮)∈𝑈′}. Then 𝑈″ is a subspace: 𝐿(𝟎)=𝟎∈𝑈′, and if 𝐿(𝐮),𝐿(𝐮′)∈𝑈′ and 𝑐∈𝐹, then 𝐿(𝐮+𝐮′)=𝐿(𝐮)+𝐿(𝐮′)∈𝑈′ and 𝐿(𝑐𝐮)=𝑐𝐿(𝐮)∈𝑈′. Suppose 𝑓−1(𝐸′) is nonempty, and let 𝐪∈𝑓−1(𝐸′). By Proposition 4.7.3(b), 𝐸′=𝑓(𝐪)+𝑈′, so for 𝐯∈𝑉 we have 𝑓(𝐯)∈𝐸′ if and only if 𝑓(𝐯)−𝑓(𝐪)∈𝑈′. Since 𝑓(𝐯)−𝑓(𝐪)=𝐿(𝐯−𝐪), this holds if and only if 𝐯−𝐪∈𝑈″. Hence 𝑓−1(𝐸′)=𝐪+𝑈″. □

Over ℝ, condition (II) of Theorem 4.7.37 applied to convex combinations shows that an affine map sends segments onto segments, convex sets to convex sets, and conv𝑆 onto conv𝑓(𝑆). It also preserves ratios along a line: if 𝐩=(1−𝑡)𝐚+𝑡𝐛, then 𝑓(𝐩)=(1−𝑡)𝑓(𝐚)+𝑡𝑓(𝐛), so midpoints go to midpoints. Lengths and angles are not preserved (think of a shear), which is why affine geometry has parallel lines and ratios along a line but no distances.

Theorem 4.7.39 (Affine maps are determined by a frame). Let 𝐯0,…,𝐯𝑛 be an affine frame of 𝑉, and let 𝐰0,…,𝐰𝑛∈𝑊 be arbitrary. There is exactly one affine map 𝑓:𝑉→𝑊 with 𝑓(𝐯𝑖)=𝐰𝑖 for 𝑖=0,…,𝑛, namely

𝑓(𝑡0𝐯0+⋯+𝑡𝑛𝐯𝑛)=𝑡0𝐰0+⋯+𝑡𝑛𝐰𝑛whenever𝑡0+⋯+𝑡𝑛=1.

Proof.standard

Uses. Theorem 4.7.37 (Affine maps preserve affine combinations), Definition 4.7.25 (Affine frame, barycentric coordinates), Proposition 4.7.17 (The affine hull), Theorem 4.7.22 (Characterizations of affine independence), Theorem 2.2.1 (Linear maps are determined by a basis)

Techniques. Choose a base point (Technique 4.7.4), Construct a map by choosing it on a basis (Technique 2.2.4)

Hint 1. Uniqueness: every point is an affine combination of the 𝐯𝑖, and affine maps preserve affine combinations.
Hint 2. Existence: use 𝐯0 as base point. The differences 𝐯𝑖−𝐯0 form a basis of 𝑉. Which linear map should be the linear part?
Sketch. Every point has barycentric coordinates, and Theorem 4.7.37(II) forces the formula, which gives uniqueness. For existence, the differences 𝐯𝑖−𝐯0 are independent and span 𝑉, so there is a linear 𝐿 with 𝐿(𝐯𝑖−𝐯0)=𝐰𝑖−𝐰0; then 𝑓(𝐯)=𝐰0+𝐿(𝐯−𝐯0) is affine and sends 𝐯𝑖 to 𝐰𝑖.

Uniqueness and the formula. Let 𝑓 be affine with 𝑓(𝐯𝑖)=𝐰𝑖 for all 𝑖. Every 𝐯∈𝑉=aff(𝐯0,…,𝐯𝑛) has barycentric coordinates, 𝐯=∑𝑖𝑡𝑖𝐯𝑖 with ∑𝑖𝑡𝑖=1, and by Theorem 4.7.37(II), 𝑓(𝐯)=∑𝑖𝑡𝑖𝑓(𝐯𝑖)=∑𝑖𝑡𝑖𝐰𝑖. So 𝑓 is determined by the 𝐰𝑖 and is given by the formula.

Existence. By Proposition 4.7.17(b), 𝑉=𝐯0+𝐷 with 𝐷=span(𝐯1−𝐯0,…,𝐯𝑛−𝐯0). For every 𝐱∈𝑉, 𝐯0+𝐱∈𝑉, so 𝐱∈𝐷; hence 𝐷=𝑉. By Theorem 4.7.22(II), the differences are linearly independent, so they form a basis of 𝑉. By Theorem 2.2.1 there is a linear map 𝐿:𝑉→𝑊 with 𝐿(𝐯𝑖−𝐯0)=𝐰𝑖−𝐰0 for 𝑖=1,…,𝑛. Define

𝑓(𝐯)=𝐰0+𝐿(𝐯−𝐯0)=𝐿(𝐯)+(𝐰0−𝐿(𝐯0)),

an affine map. Then 𝑓(𝐯0)=𝐰0, and 𝑓(𝐯𝑖)=𝐰0+(𝐰𝑖−𝐰0)=𝐰𝑖 for 𝑖≥1. □

Example 4.7.40 (Mapping one triangle onto another). The affine map 𝑓:ℝ2→ℝ2 with 𝑓(0,0)=(1,1), 𝑓(1,0)=(5,2), 𝑓(0,1)=(2,5) has translation part 𝑓(𝟎)=(1,1) and linear part 𝐿 with 𝐿(𝐞1)=(4,1) and 𝐿(𝐞2)=(1,4):

𝑓(𝐱)=(4114)𝐱+(11).

By Theorem 4.7.39, 𝑓 sends the point with barycentric coordinates (𝑡0,𝑡1,𝑡2) with respect to 𝟎,𝐞1,𝐞2, which is (𝑡1,𝑡2), to the point with the same barycentric coordinates with respect to the triangle of Example 4.7.27. For instance 𝑓(25,25)=(85+25+1,25+85+1)=(3,3), matching the coordinates (15,25,25) of (3,3) found there. Texture mapping works this way: the renderer finds the affine map from a triangle in the texture image to a triangle on the screen.

4.7.6Homogeneous coordinates

A graphics program moves objects by rotations, scalings, and translations, composed in long chains, and applies the result to every vertex of the scene. Composites of linear maps are products of matrices, which can be computed once and reused. A translation is not linear, so a chain such as “rotate about a point, then translate” is not a single matrix in 𝐹𝑛×𝑛. Homogenizing (Technique 4.7.21) repairs this.

Definition 4.7.41 (Homogeneous coordinates). For 𝐱∈𝐹𝑛, let 𝐱̂=(𝐱1)∈𝐹𝑛+1. A vector of homogeneous coordinates of 𝐱 is any vector 𝑐𝐱̂=(𝑐𝐱,𝑐) with 𝑐∈𝐹, 𝑐≠0. Conversely, a vector (𝐳,𝑐)∈𝐹𝑛+1 with 𝐳∈𝐹𝑛 and 𝑐≠0 is a vector of homogeneous coordinates of exactly one point of 𝐹𝑛, namely 𝑐−1𝐳.

The last claim holds because (𝐳,𝑐)=𝑐′(𝐱,1) forces 𝑐′=𝑐 and 𝐱=𝑐−1𝐳. For example, (6,−3,9,3) and (2,−1,3,1) are both vectors of homogeneous coordinates of (2,−1,3)∈ℝ3. The vectors of homogeneous coordinates of 𝐱 are the nonzero vectors on the line span(𝐱̂) through 𝟎 in 𝐹𝑛+1, so 𝐱↦span(𝐱̂) matches the points of 𝐹𝑛 with the lines through 𝟎 in 𝐹𝑛+1 that are not contained in the hyperplane 𝑥𝑛+1=0. Vectors with last coordinate 0 represent no point of 𝐹𝑛; the aside at the end of the section says what they represent instead.

Theorem 4.7.42 (Affine maps as matrices). Let 𝑓:𝐹𝑛→𝐹𝑚 be affine, 𝑓(𝐱)=𝐴𝐱+𝐛 with 𝐴∈𝐹𝑚×𝑛 and 𝐛∈𝐹𝑚, and let

𝑀𝑓=(𝐴𝐛01)∈𝐹(𝑚+1)×(𝑛+1),

where 0 is the 1×𝑛 zero row.

  1. (a)𝑀𝑓𝐱̂=𝑓(𝐱)̂ for every 𝐱∈𝐹𝑛, and 𝑀𝑓 is the only matrix in 𝐹(𝑚+1)×(𝑛+1) with this property.
  2. (b)𝑓↦𝑀𝑓 is a bijection from the set of affine maps 𝐹𝑛→𝐹𝑚 onto the set of matrices in 𝐹(𝑚+1)×(𝑛+1) whose last row is (0,…,0,1).
  3. (c)If 𝑔:𝐹𝑚→𝐹𝑙 is affine, then 𝑀𝑔∘𝑓=𝑀𝑔𝑀𝑓.
  4. (d)If 𝑚=𝑛, then 𝑓 is bijective if and only if 𝑀𝑓 is invertible, and in that case 𝑀𝑓−1=𝑀𝑓−1.

Proof.standard

Uses. Theorem 2.4.34 (Block multiplication), Proposition 4.7.38 (Affine maps and affine subspaces), Proposition 2.3.17 (Every linear map 𝐹𝑛→𝐹𝑚 is some 𝑇𝐴), Corollary 2.2.6 (Agreeing on a spanning list), Theorem 2.3.20 (Linear maps correspond to matrices), Corollary 3.5.25 (The invertible matrix theorem)

Techniques. Homogenize: add a coordinate 1 (Technique 4.7.21), Block decomposition (Technique 2.4.35)

Hint 1. Multiply in blocks (Theorem 2.4.34), splitting 𝑛+1 as 𝑛 and 1, and 𝑚+1 as 𝑚 and 1.
Hint 2. For uniqueness in (a), the vectors 𝐱̂ span 𝐹𝑛+1: look at 𝟎̂ and the 𝐞̂𝑗.
Hint 3. (c) is block multiplication together with Proposition 4.7.38(a). For (d), apply (c) to 𝑓 and 𝑓−1; for the converse, apply 𝑀𝑓 to (𝐚,0) with 𝐴𝐚=𝟎.
Sketch. Block multiplication gives 𝑀𝑓𝐱̂=(𝐴𝐱+𝐛,1). Since 𝟎̂=𝐞𝑛+1 and 𝐞̂𝑗−𝟎̂=𝐞𝑗, the 𝐱̂ span 𝐹𝑛+1, so a matrix is determined by its products with them. 𝑀𝑔𝑀𝑓=(𝐵𝐴𝐵𝐛+𝐜01)=𝑀𝑔∘𝑓. If 𝑓 is bijective, 𝑀𝑓−1𝑀𝑓=𝑀id=𝐼𝑛+1 and likewise in the other order. If 𝑀𝑓 is invertible and 𝐴𝐚=𝟎, then 𝑀𝑓(𝐚,0)=𝟎, so 𝐚=𝟎 and 𝐴 is invertible.

(a) By Theorem 2.4.34, with blocks of sizes 𝑚,1 and 𝑛,1,

𝑀𝑓𝐱̂=(𝐴𝐛01)(𝐱1)=(𝐴𝐱+𝐛0𝐱+1)=(𝑓(𝐱)1)=𝑓(𝐱)̂.

For uniqueness, note that 𝟎̂=𝐞𝑛+1 and 𝐞̂𝑗−𝟎̂=𝐞𝑗 for 𝑗≤𝑛, so the vectors 𝐱̂ span 𝐹𝑛+1. If 𝑁𝐱̂=𝑀𝑓𝐱̂ for all 𝐱, then the linear maps 𝑇𝑁 and 𝑇𝑀𝑓 agree on a spanning list, so they are equal (Corollary 2.2.6), and 𝑁=𝑀𝑓 (Theorem 2.3.20).

(b) By Proposition 2.3.17, the linear part of an affine map 𝐹𝑛→𝐹𝑚 is 𝑇𝐴 for exactly one 𝐴∈𝐹𝑚×𝑛, so each affine map is 𝐱↦𝐴𝐱+𝐛 for exactly one pair (𝐴,𝐛), since the linear part and 𝐛=𝑓(𝟎) are determined by 𝑓. The matrices with last row (0,…,0,1) are exactly the (𝐴𝐛01) with 𝐴∈𝐹𝑚×𝑛 and 𝐛∈𝐹𝑚, and each of them determines (𝐴,𝐛). So 𝑓↦𝑀𝑓 is a bijection.

(c) Let 𝑔(𝐲)=𝐵𝐲+𝐜. By Theorem 2.4.34,

𝑀𝑔𝑀𝑓=(𝐵𝐜01)(𝐴𝐛01)=(𝐵𝐴𝐵𝐛+𝐜01),

and by Proposition 4.7.38(a), 𝑔∘𝑓 is 𝐱↦𝐵𝐴𝐱+(𝐵𝐛+𝐜). So 𝑀𝑔𝑀𝑓=𝑀𝑔∘𝑓.

(d) Note that 𝑀id=(𝐼𝑛𝟎01)=𝐼𝑛+1. If 𝑓 is bijective, then 𝑓−1 is affine (Proposition 4.7.38(b)), and by (c), 𝑀𝑓−1𝑀𝑓=𝑀𝑓−1∘𝑓=𝐼𝑛+1 and 𝑀𝑓𝑀𝑓−1=𝐼𝑛+1. So 𝑀𝑓 is invertible with inverse 𝑀𝑓−1. Conversely, suppose 𝑀𝑓 is invertible, and let 𝐴𝐚=𝟎 with 𝐚∈𝐹𝑛. Then 𝑀𝑓(𝐚0)=(𝐴𝐚0)=𝟎, so (𝐚,0)=𝟎 and 𝐚=𝟎. Hence ker𝑇𝐴={𝟎}, 𝐴 is invertible by Corollary 3.5.25, and 𝑓 is bijective by Proposition 4.7.38(b). □

The translation by 𝐚 has matrix (𝐼𝑛𝐚01). On 𝐹𝑛+1 it is a linear map, a shear that slides the hyperplane 𝑥𝑛+1=1 along itself by 𝐚 and fixes the hyperplane 𝑥𝑛+1=0. For 𝑛=1: the map (𝑥,𝑦)↦(𝑥+𝑎𝑦,𝑦) of 𝐹2 is linear and moves the line 𝑦=1, a copy of 𝐹, by 𝑎. So translations, which are not linear on 𝐹𝑛, become linear one dimension up.

Exercise 4.7.43.routine Let 𝐴∈𝐹𝑛×𝑛 be invertible and 𝐛∈𝐹𝑛. Verify by block multiplication that

(𝐴𝐛01)−1=(𝐴−1−𝐴−1𝐛01).

Use it to invert the matrix of the translation by 𝐚, and the matrix (0−13101001).

Solution.

Uses. Theorem 2.4.34 (Block multiplication), Theorem 2.5.10 (Left and right inverses agree)

Hint 1. Multiply the two block matrices in both orders.
Hint 2. For the 3×3 matrix, 𝐴 is the rotation (0−110), whose inverse is (01−10).
Sketch. Both products are (𝐼𝑛𝟎01)=𝐼𝑛+1. The translation by 𝐚 inverts to the translation by −𝐚. For the 3×3 matrix, −𝐴−1(3,1)=−(1,−3)=(−1,3), giving (01−1−103001).

By Theorem 2.4.34,

(𝐴𝐛01)(𝐴−1−𝐴−1𝐛01)=(𝐴𝐴−1−𝐴𝐴−1𝐛+𝐛01)=(𝐼𝑛𝟎01)=𝐼𝑛+1,

and

(𝐴−1−𝐴−1𝐛01)(𝐴𝐛01)=(𝐴−1𝐴𝐴−1𝐛−𝐴−1𝐛01)=𝐼𝑛+1.

For the translation, 𝐴=𝐼𝑛 and 𝐛=𝐚, so the inverse is (𝐼𝑛−𝐚01), the matrix of the translation by −𝐚.

For the 3×3 matrix, 𝐴=(0−110) and 𝐛=(3,1). Since 𝐴(01−10)=𝐼2, 𝐴−1=(01−10), and −𝐴−1𝐛=−(1,−3)=(−1,3). So the inverse is (01−1−103001). Check: the product of the first row of the inverse with the third column of the original is 0⋅3+1⋅1+(−1)⋅1=0, as it should be.

Example 4.7.44 (Rotation about a point). Let 𝑓 be the rotation of ℝ2 by 90° counterclockwise about 𝐚=(1,2), and 𝑅=𝑅𝜋/2=(0−110). By Example 4.7.36, 𝑓=𝜏𝐚∘𝑅∘𝜏−𝐚, so by Theorem 4.7.42(c),

𝑀𝑓=(101012001)(0−10100001)(10−101−2001)=(0−13101001).

The last column is 𝐚−𝑅𝐚=(1,2)−(−2,1)=(3,1). As a check, 𝑀𝑓(1,2)̂=(0−2+3,1+0+1,1), so the center is fixed, and 𝑀𝑓(2,2)̂=(1,3,1): the point one unit to the right of 𝐚 goes to the point one unit above it.

The order of the factors matters. The product

(0−10100001)(101012001)=(0−1−2101001)

is the matrix of “translate by 𝐚, then rotate about 𝟎”, which is 𝐱↦𝑅𝐱+𝑅𝐚, a rotation about a different center.

In three dimensions the same matrices are 4×4. A renderer stores each object once, in coordinates convenient for that object, and places it in the scene by a product 𝑀=𝑀𝑘⋯𝑀1 of rotations, scalings, and translations, computed once per object. Each vertex then costs one 4×4 matrix–vector product, which is why graphics processors are built around 4×4 matrix arithmetic. In the product, 𝑀1 acts first.

Perspective projection

The projection (𝑥,𝑦,𝑧)↦(𝑥,𝑦,0) onto the 𝑥𝑦-plane is linear, but it draws distant objects as large as near ones. A camera, or an eye, projects through a point instead. Fix 𝑑≠0, the center 𝐜=(0,0,𝑑), and the image plane 𝑧=0. The perspective projection 𝜋 sends 𝐯=(𝑥,𝑦,𝑧) to the point where the line through 𝐜 and 𝐯 meets the image plane (Figure 4.7.2).

Figure 4.7.2. The perspective projection seen from the side, with the image plane 𝑧=0 drawn as the horizontal line. The point 𝐯 between the plane and the center is projected outward; the point 𝐰 behind the plane is projected inward, so distant points come closer together.

The points of the line through 𝐜 and 𝐯 are 𝐜+𝑠(𝐯−𝐜) for 𝑠∈ℝ. The third coordinate of such a point is 𝑑+𝑠(𝑧−𝑑), which is 0 if and only if 𝑠(𝑑−𝑧)=𝑑. If 𝑧=𝑑, there is no such 𝑠: the line is parallel to the image plane, or 𝐯=𝐜, and 𝐯 has no image. Otherwise 𝑠=𝑑/(𝑑−𝑧), and the first two coordinates are 𝑠𝑥 and 𝑠𝑦, so

𝜋(𝑥,𝑦,𝑧)=(𝑥1−𝑧/𝑑,𝑦1−𝑧/𝑑,0)(𝑧≠𝑑).

The same formula covers points on the far side of the image plane from the center, and points on the far side of the center from the image plane, where 𝑠<0.

The map 𝜋 is not affine. With 𝑑=1, 𝜋(0,0,0)=𝟎 and 𝜋(1,0,12)=(2,0,0), but the midpoint (12,0,14) goes to (23,0,0), not to the midpoint (1,0,0) of the images. So by Theorem 4.7.37 no matrix 𝑀𝑓 represents 𝜋. Even so:

Proposition 4.7.45 (Perspective projection in homogeneous coordinates). Let 𝑑≠0 and

𝑃=(10000100000000−1/𝑑1).

For every 𝐯=(𝑥,𝑦,𝑧)∈ℝ3 with 𝑧≠𝑑, 𝑃𝐯̂=(𝑥,𝑦,0,1−𝑧/𝑑), and this is a vector of homogeneous coordinates of 𝜋(𝐯).

Proof.routine

Uses. Definition 2.3.8 (Matrix–vector product), Definition 4.7.41 (Homogeneous coordinates)

Hint 1. Compute 𝑃𝐯̂ row by row.
Hint 2. Which point does a vector (𝐳,𝑐) with 𝑐≠0 represent?
Sketch. The rows of 𝑃 give 𝑥, 𝑦, 0, and −𝑧/𝑑+1. The last entry is nonzero because 𝑧≠𝑑, and dividing by it gives 𝜋(𝐯).
Multiplying the rows of 𝑃 by 𝐯̂=(𝑥,𝑦,𝑧,1) gives 𝑥, 𝑦, 0, and −𝑧/𝑑+1. Since 𝑧≠𝑑, the last entry 𝑐=1−𝑧/𝑑 is nonzero, and by Definition 4.7.41 the vector represents the point 𝑐−1(𝑥,𝑦,0)=𝜋(𝐯). □

The nonlinearity has moved into the freedom of Definition 4.7.41: 𝑃𝐯̂ does not have last coordinate 1, and the division by the last coordinate, performed once at the very end, supplies it. The matrix 𝑃 has rank 3, so the depth 𝑧 is lost. Renderers therefore use the third row (0,0,1,0) instead of (0,0,0,0), which keeps the number 𝑧/(1−𝑧/𝑑)=𝑑𝑧/(𝑑−𝑧) as a third coordinate. Its derivative in 𝑧 is 𝑑2/(𝑑−𝑧)2>0, so on each side of the plane 𝑧=𝑑 it increases with 𝑧, and it still tells which of two points that project to the same pixel is nearer to the camera.

For a center off the 𝑧-axis, or another image plane, conjugate by translations and rotations as in Example 4.7.44; Exercise 4.7.49 carries this out. Under 𝜋, parallel lines in space usually stop being parallel, as the rails of a track do in a photograph, and Exercise 4.7.50 finds where their images meet.

Aside (Projective space). By Definition 4.7.41, a point 𝐱 of 𝐹𝑛 is the same thing as a line through 𝟎 in 𝐹𝑛+1, namely span(𝐱̂), and every line through 𝟎 that is not contained in the hyperplane 𝐻={𝑥𝑛+1=0} arises this way exactly once. The projective space ℙ𝑛(𝐹) is the set of all lines through 𝟎 in 𝐹𝑛+1, that is, of all 1-dimensional subspaces. Its elements are the points of 𝐹𝑛 together with the lines inside 𝐻, called points at infinity. A point at infinity span((𝐰,0)), with 𝐰≠𝟎, corresponds to a direction in 𝐹𝑛. Over ℝ, the points 𝐱+𝑠𝐰 of a line have the vectors of homogeneous coordinates (𝐱+𝑠𝐰,1) and (𝑠−1𝐱+𝐰,𝑠−1) for 𝑠≠0, and the latter tend to (𝐰,0) as 𝑠→∞. So all lines with direction span(𝐰) share one point at infinity, and in Exercise 4.7.50 the vanishing point of a family of parallel lines is the image of their common point at infinity under 𝑃.

A projective line is a 2-dimensional subspace of 𝐹𝑛+1, viewed as the set of lines through 𝟎 that it contains. In the projective plane ℙ2(𝐹), two distinct projective lines 𝑈≠𝑊 meet in exactly one point: 𝑊⊈𝑈 by Proposition 4.1.21(b), so 𝑈+𝑊 is larger than 𝑈 and equals 𝐹3, and Theorem 4.4.19 gives dim(𝑈∩𝑊)=2+2−3=1. In particular, two parallel lines of 𝐹2, completed by their common point at infinity, meet there. An invertible matrix in 𝐹(𝑛+1)×(𝑛+1) permutes the 1-dimensional subspaces of 𝐹𝑛+1, so it acts on ℙ𝑛(𝐹), and nonzero multiples of a matrix act in the same way. These are the projective transformations. They send projective lines to projective lines, but unlike affine maps they can move points at infinity into 𝐹𝑛, which is how a photograph can show a horizon. Over a field with 𝑞 elements, ℙ2 has (𝑞3−1)/(𝑞−1)=𝑞2+𝑞+1 points; for 𝑞=2 it is the seven-point Fano plane.

Exercises

Exercise 4.7.46.routine Decide which of the following sets are affine subspaces. For each one that is, find its direction and, if it is finite, its dimension.

  1. (a)The solution set in ℝ3 of 𝑥1+𝑥2+𝑥3=1 and 𝑥1−𝑥3=2.
  2. (b)The set of 𝑝∈ℝ[𝑥] with 𝑝(0)=1 and 𝑝(1)=3.
  3. (c)The set of 𝐱∈ℝ2 with 𝑥1𝑥2=0.
  4. (d)The set of (𝑥1,𝑥2)∈𝔽32 with 𝑥2=𝑥12.

Solution.

Uses. Theorem 4.7.8 (Affine subspaces of 𝐹𝑛 are solution sets), Theorem 4.7.14 (Affine subspaces are the sets closed under affine combinations), Proposition 4.7.3 (Direction and base points), Corollary 2.6.31 (Fibers are translates of the kernel)

Hint 1. (a) and (b) are solution sets of linear equations, in ℝ3 and in ℝ[𝑥]. Find one solution and the homogeneous solutions.
Hint 2. For (c) and (d), look for an affine combination of three points of the set, such as 𝐮+𝐯−𝐰, that leaves the set.
Sketch. (a) (2,−1,0)+span((1,−2,1)), a line. (b) The fiber of 𝑝↦(𝑝(0),𝑝(1)) over (1,3): 1+2𝑥+{𝑝|𝑝(0)=𝑝(1)=0}, an affine subspace with infinite-dimensional direction. (c) No: (1,0)+(0,1)−(0,0)=(1,1). (d) No: the set is {(0,0),(1,1),(2,1)}, and (1,1)+(2,1)−(0,0)=(0,2) is missing.

(a) Yes. The homogeneous equations 𝑥1+𝑥2+𝑥3=0, 𝑥1=𝑥3 give 𝑥2=−2𝑥3, so their solutions are span((1,−2,1)). One solution of the system is (2,−1,0): 2−1+0=1 and 2−0=2. By Theorem 4.7.8(a), the set is (2,−1,0)+span((1,−2,1)), a line, with direction span((1,−2,1)) and dimension 1.

(b) Yes. The map 𝑇:ℝ[𝑥]→ℝ2, 𝑇(𝑝)=(𝑝(0),𝑝(1)), is linear, and the set is the fiber 𝑇−1((1,3)), which contains 1+2𝑥. By Corollary 2.6.31 it is 1+2𝑥+ker𝑇, an affine subspace with direction ker𝑇={𝑝|𝑝(0)=𝑝(1)=0}. This direction contains 𝑥𝑗(𝑥−1) for every 𝑗≥1, and these polynomials have distinct degrees, so ker𝑇 is infinite-dimensional and the dimension is not defined.

(c) No. The points (1,0), (0,1), (0,0) lie in the set, and the affine combination (1,0)+(0,1)−(0,0)=(1,1) does not, since 1⋅1≠0. By Theorem 4.7.14 the set is not affine.

(d) No. In 𝔽3, 02=0, 12=1, and 22=4=1, so the set is {(0,0),(1,1),(2,1)}. The affine combination (1,1)+(2,1)−(0,0)=(3,2)=(0,2) is not in it, so it is not affine by Theorem 4.7.14.

Exercise 4.7.47.routine Let 𝐯0=(0,0), 𝐯1=(4,0), 𝐯2=(1,3) in ℝ2. Find the barycentric coordinates of 𝐩=(2,1), 𝐪=(3,2), and 𝐫=(−1,1) with respect to 𝐯0,𝐯1,𝐯2, and decide which of the three points lie in the triangle conv(𝐯0,𝐯1,𝐯2). For each point outside, name the edge line it lies beyond.

Solution.

Uses. Remark 4.7.26 (Frames exist, and coordinates are coordinates), Proposition 4.7.32 (Barycentric coordinates on a simplex)

Hint 1. Since 𝐯0=𝟎, (𝑡1,𝑡2) are the coordinates of the point in the basis (4,0),(1,3), and 𝑡0=1−𝑡1−𝑡2.
Hint 2. Solve 4𝑡1+𝑡2=𝑥 and 3𝑡2=𝑦. A negative 𝑡𝑖 puts the point beyond the edge opposite 𝐯𝑖.
Sketch. 𝑡2=𝑦/3 and 𝑡1=(𝑥−𝑦/3)/4. This gives 𝐩:(14,512,13), inside; 𝐪:(−14,712,23), beyond the edge 𝐯1𝐯2; 𝐫:(1,−13,13), beyond the edge 𝐯0𝐯2.

The differences (4,0) and (1,3) are independent, so the points form an affine frame of ℝ2. By Remark 4.7.26, since 𝐯0=𝟎, a point (𝑥,𝑦) has (𝑥,𝑦)=𝑡1(4,0)+𝑡2(1,3), that is, 4𝑡1+𝑡2=𝑥 and 3𝑡2=𝑦, and 𝑡0=1−𝑡1−𝑡2. So 𝑡2=𝑦/3 and 𝑡1=(𝑥−𝑦/3)/4.

For 𝐩=(2,1): 𝑡2=13, 𝑡1=(2−13)/4=512, 𝑡0=1−512−412=14. All are positive, so 𝐩 lies in the triangle (Proposition 4.7.32). Check: 512(4,0)+13(1,3)=(53+13,1)=(2,1).

For 𝐪=(3,2): 𝑡2=23, 𝑡1=(3−23)/4=712, 𝑡0=1−712−812=−14. So 𝐪 is outside, beyond the edge 𝐯1𝐯2 opposite 𝐯0. Check: 712(4,0)+23(1,3)=(73+23,2)=(3,2).

For 𝐫=(−1,1): 𝑡2=13, 𝑡1=(−1−13)/4=−13, 𝑡0=1+13−13=1. So 𝐫 is outside, beyond the edge 𝐯0𝐯2 opposite 𝐯1. Check: −13(4,0)+13(1,3)=(−1,1).

Exercise 4.7.48.routine Work in ℝ2 with homogeneous coordinates.

  1. (a)Write the 3×3 matrices of the translation 𝑇 by (2,−1), the rotation 𝑅 by 90° counterclockwise about 𝟎, and the scaling 𝑆 by the factor 3 about (1,1).
  2. (b)Compute 𝑀𝑇𝑀𝑅 and 𝑀𝑅𝑀𝑇, and describe each product as a map of ℝ2.
  3. (c)Which point of ℝ2 has (6,−3,3) as a vector of homogeneous coordinates? Give a vector of homogeneous coordinates of the same point with last entry 2.

Solution.

Uses. Theorem 4.7.42 (Affine maps as matrices), Example 4.7.36 (Affine maps), Definition 4.7.41 (Homogeneous coordinates)

Hint 1. Each matrix is (𝐴𝐛01) with 𝐴 the linear part and 𝐛 the image of 𝟎. The scaling about (1,1) is 𝐯↦3𝐯−2(1,1).
Hint 2. By Theorem 4.7.42(c), 𝑀𝑇𝑀𝑅 is the matrix of 𝑇∘𝑅, which rotates first.
Sketch. 𝑀𝑇=(10201−1001), 𝑀𝑅=(0−10100001), 𝑀𝑆=(30−203−2001). 𝑀𝑇𝑀𝑅=(0−1210−1001) is 𝐯↦𝑅𝐯+(2,−1), and 𝑀𝑅𝑀𝑇=(0−11102001) is 𝐯↦𝑅𝐯+(1,2). (c) (2,−1), and (4,−2,2).

(a) By Theorem 4.7.42, the matrix of 𝐯↦𝐴𝐯+𝐛 is (𝐴𝐛01). The scaling about (1,1) is 𝐯↦(1,1)+3(𝐯−(1,1))=3𝐯−(2,2) (Example 4.7.36). So

𝑀𝑇=(10201−1001),𝑀𝑅=(0−10100001),𝑀𝑆=(30−203−2001).

(b) Multiplying,

𝑀𝑇𝑀𝑅=(0−1210−1001),𝑀𝑅𝑀𝑇=(0−11102001).

By Theorem 4.7.42(c), the first is the matrix of 𝑇∘𝑅, which rotates and then translates: 𝐯↦𝑅𝐯+(2,−1). The second is 𝑅∘𝑇, which translates and then rotates: 𝐯↦𝑅(𝐯+(2,−1))=𝑅𝐯+(1,2), since 𝑅(2,−1)=(1,2). The two maps have the same linear part but differ by a translation, so the order matters.

(c) By Definition 4.7.41, (6,−3,3) represents 3−1(6,−3)=(2,−1). Multiplying (2,−1)̂=(2,−1,1) by 2 gives (4,−2,2).

Exercise 4.7.49.standard Let 𝑑≠0 and 𝑐1,𝑐2∈ℝ, and let 𝜋𝐜 be the perspective projection onto the plane 𝑧=0 with center 𝐜=(𝑐1,𝑐2,𝑑).

  1. (a)Show that for 𝐯=(𝑥,𝑦,𝑧) with 𝑧≠𝑑,

    𝜋𝐜(𝐯)=(𝑑𝑥−𝑐1𝑧𝑑−𝑧,𝑑𝑦−𝑐2𝑧𝑑−𝑧,0).
  2. (b)Let 𝐚=(𝑐1,𝑐2,0) and let 𝜋 be the projection with center (0,0,𝑑). Show that 𝜋𝐜=𝜏𝐚∘𝜋∘𝜏−𝐚.
  3. (c)Compute the 4×4 matrix 𝑀𝜏𝐚𝑃𝑀𝜏−𝐚, with 𝑃 as in Proposition 4.7.45, and check that it sends 𝐯̂ to a vector of homogeneous coordinates of 𝜋𝐜(𝐯).

Solution.

Uses. Proposition 4.7.45 (Perspective projection in homogeneous coordinates), Theorem 4.7.42 (Affine maps as matrices), Definition 4.7.41 (Homogeneous coordinates)

Hint 1. Parametrize the line as 𝐜+𝑠(𝐯−𝐜) and solve for the 𝑠 that makes the third coordinate 0.
Hint 2. For (b), compute 𝜏𝐚(𝜋(𝜏−𝐚(𝐯))) with the formula for 𝜋; note that 𝜏−𝐚 does not change 𝑧.
Hint 3. In (c), the translation matrices are (𝐼3±𝐚01). Multiply 𝑃𝑀𝜏−𝐚 first.
Sketch. (a) 𝑠=𝑑/(𝑑−𝑧), and the first coordinate is 𝑐1+𝑠(𝑥−𝑐1)=(𝑑𝑥−𝑐1𝑧)/(𝑑−𝑧). (b) 𝜋(𝑥−𝑐1,𝑦−𝑐2,𝑧)+𝐚 has first coordinate 𝑑(𝑥−𝑐1)/(𝑑−𝑧)+𝑐1, the same. (c) The product is (10−𝑐1/𝑑001−𝑐2/𝑑0000000−1/𝑑1), which sends 𝐯̂ to (𝑥−𝑐1𝑧/𝑑,𝑦−𝑐2𝑧/𝑑,0,1−𝑧/𝑑).

(a) The line through 𝐜 and 𝐯 consists of the points 𝐜+𝑠(𝐯−𝐜), whose third coordinate is 𝑑+𝑠(𝑧−𝑑). It vanishes exactly for 𝑠=𝑑/(𝑑−𝑧), which exists since 𝑧≠𝑑. The first coordinate is then

𝑐1+𝑑𝑑−𝑧(𝑥−𝑐1)=𝑐1(𝑑−𝑧)+𝑑𝑥−𝑑𝑐1𝑑−𝑧=𝑑𝑥−𝑐1𝑧𝑑−𝑧,

and the second is (𝑑𝑦−𝑐2𝑧)/(𝑑−𝑧) in the same way.

(b) 𝜏−𝐚(𝐯)=(𝑥−𝑐1,𝑦−𝑐2,𝑧) has third coordinate 𝑧≠𝑑, so by the formula for 𝜋 (the case 𝑐1=𝑐2=0 of (a)),

𝜋(𝜏−𝐚(𝐯))=(𝑑(𝑥−𝑐1)𝑑−𝑧,𝑑(𝑦−𝑐2)𝑑−𝑧,0).

Adding 𝐚, the first coordinate becomes (𝑑𝑥−𝑑𝑐1+𝑐1(𝑑−𝑧))/(𝑑−𝑧)=(𝑑𝑥−𝑐1𝑧)/(𝑑−𝑧), and likewise the second. By (a), this is 𝜋𝐜(𝐯).

(c) With 𝑀𝜏±𝐚=(𝐼3±𝐚01),

𝑃𝑀𝜏−𝐚=(100−𝑐1010−𝑐2000000−1/𝑑1),𝑀𝜏𝐚𝑃𝑀𝜏−𝐚=(10−𝑐1/𝑑001−𝑐2/𝑑0000000−1/𝑑1).

(In the second product, row 1 is row 1 plus 𝑐1 times row 4 of 𝑃𝑀𝜏−𝐚, and similarly for row 2.) This matrix sends 𝐯̂=(𝑥,𝑦,𝑧,1) to (𝑥−𝑐1𝑧/𝑑,𝑦−𝑐2𝑧/𝑑,0,1−𝑧/𝑑). The last entry is nonzero, and dividing by it gives first coordinate (𝑥−𝑐1𝑧/𝑑)/(1−𝑧/𝑑)=(𝑑𝑥−𝑐1𝑧)/(𝑑−𝑧), and similarly for the second, which is 𝜋𝐜(𝐯) by (a).

Exercise 4.7.50.standard Let 𝑑≠0, and let 𝜋 and 𝑃 be as in Proposition 4.7.45. Let 𝐯=(𝑣1,𝑣2,𝑣3) with 𝑣3≠𝑑, and let 𝐰=(𝑤1,𝑤2,𝑤3)≠𝟎.

  1. (a)Suppose 𝑤3≠0, and let 𝐪𝐰=(−𝑑𝑤1/𝑤3,−𝑑𝑤2/𝑤3,0). Show that 𝑃(𝐰0) is a vector of homogeneous coordinates of 𝐪𝐰, and that for every 𝑠∈ℝ with 𝑣3+𝑠𝑤3≠𝑑, the point 𝜋(𝐯+𝑠𝐰) lies on aff(𝜋(𝐯),𝐪𝐰). Conclude that the images of all lines with direction span(𝐰) lie on lines (or points) through the single point 𝐪𝐰, the vanishing point of the direction 𝐰.
  2. (b)Suppose 𝑤3=0. Show that 𝜋 maps the line 𝐯+span(𝐰) onto the line 𝜋(𝐯)+span((𝑤1,𝑤2,0)). So lines parallel to the image plane have parallel images.

Solution.

Uses. Proposition 4.7.45 (Perspective projection in homogeneous coordinates), Definition 4.7.41 (Homogeneous coordinates), Proposition 4.7.17 (The affine hull)

Hint 1. 𝑃 is linear and 𝐯+𝑠𝐰̂=𝐯̂+𝑠(𝐰0), so 𝑃𝐯+𝑠𝐰̂=𝐡1+𝑠𝐡2 with 𝐡1=𝑃𝐯̂ and 𝐡2=𝑃(𝐰0).
Hint 2. Let 𝛼 and 𝛽 be the last entries of 𝐡1 and 𝐡2. Dividing 𝐡1+𝑠𝐡2 by 𝛼+𝑠𝛽 writes the image point as an affine combination of 𝜋(𝐯) and 𝐪𝐰 with coefficients 𝛼/(𝛼+𝑠𝛽) and 𝑠𝛽/(𝛼+𝑠𝛽).
Sketch. 𝐡2=(𝑤1,𝑤2,0,−𝑤3/𝑑) represents 𝐪𝐰. With 𝛼=1−𝑣3/𝑑 and 𝛽=−𝑤3/𝑑, the point 𝜋(𝐯+𝑠𝐰) is the first three entries of 𝐡1+𝑠𝐡2 divided by 𝛼+𝑠𝛽, which equals 𝛼/(𝛼+𝑠𝛽)⋅𝜋(𝐯)+𝑠𝛽/(𝛼+𝑠𝛽)⋅𝐪𝐰, an affine combination. In (b), 𝑧 is constant along the line, so 𝜋(𝐯+𝑠𝐰)=𝜋(𝐯)+(𝑠/𝛼)(𝑤1,𝑤2,0).

(a) 𝑃(𝐰0)=(𝑤1,𝑤2,0,−𝑤3/𝑑)=𝐡2, whose last entry 𝛽=−𝑤3/𝑑 is nonzero, so it represents 𝛽−1(𝑤1,𝑤2,0)=𝐪𝐰. Let 𝐡1=𝑃𝐯̂=(𝑣1,𝑣2,0,𝛼) with 𝛼=1−𝑣3/𝑑≠0; it represents 𝜋(𝐯) by Proposition 4.7.45. Since 𝐯+𝑠𝐰̂=𝐯̂+𝑠(𝐰0) and 𝑃 is linear, 𝑃𝐯+𝑠𝐰̂=𝐡1+𝑠𝐡2. If 𝑣3+𝑠𝑤3≠𝑑, its last entry 𝛼+𝑠𝛽=1−(𝑣3+𝑠𝑤3)/𝑑 is nonzero, and by Proposition 4.7.45,

𝜋(𝐯+𝑠𝐰)=1𝛼+𝑠𝛽((𝑣1,𝑣2,0)+𝑠(𝑤1,𝑤2,0))=𝛼𝛼+𝑠𝛽𝜋(𝐯)+𝑠𝛽𝛼+𝑠𝛽𝐪𝐰,

using (𝑣1,𝑣2,0)=𝛼𝜋(𝐯) and (𝑤1,𝑤2,0)=𝛽𝐪𝐰. The coefficients add up to 1, so the point lies in aff(𝜋(𝐯),𝐪𝐰) (Proposition 4.7.17), which is the line through 𝜋(𝐯) and 𝐪𝐰 if these differ, and the single point 𝐪𝐰 otherwise. The point 𝐪𝐰 depends only on 𝐰, so this holds for every line 𝐯+span(𝐰) with 𝑣3≠𝑑. (A line in this direction with 𝑣3=𝑑 contains a point 𝐯+𝑠𝐰 with 𝑣3+𝑠𝑤3≠𝑑, and we may start from that point instead.)

(b) If 𝑤3=0, then (𝑤1,𝑤2)≠(0,0), and every point of the line has third coordinate 𝑣3≠𝑑. So

𝜋(𝐯+𝑠𝐰)=1𝛼(𝑣1+𝑠𝑤1,𝑣2+𝑠𝑤2,0)=𝜋(𝐯)+𝑠𝛼(𝑤1,𝑤2,0).

As 𝑠 runs over ℝ, so does 𝑠/𝛼, and the image is the line 𝜋(𝐯)+span((𝑤1,𝑤2,0)).

Exercise 4.7.51.standard Prove or disprove: if 𝐸1 and 𝐸2 are affine subspaces of 𝑉 and 𝐸1∪𝐸2 is an affine subspace, then 𝐸1⊆𝐸2 or 𝐸2⊆𝐸1. Does the answer depend on 𝐹?

Solution.

Uses. Theorem 4.7.14 (Affine subspaces are the sets closed under affine combinations), Proposition 4.7.17 (The affine hull)

Techniques. Finding counterexamples and minimal examples (Technique 1.4.18)

Hint 1. Try the smallest field first.
Hint 2. If 𝐹 has an element 𝑡∉{0,1}, take 𝐚∈𝐸1∖𝐸2 and 𝐛∈𝐸2∖𝐸1, and ask where (1−𝑡)𝐚+𝑡𝐛 lies.
Hint 3. If 𝐜=(1−𝑡)𝐚+𝑡𝐛∈𝐸1, then 𝐛 is an affine combination of 𝐚 and 𝐜.
Sketch. Over 𝔽2 it is false: in 𝑉=𝔽2, {0}∪{1}=𝔽2. If |𝐹|≥3 it is true: with 𝐚,𝐛 as in the hint and 𝑡∉{0,1}, 𝐜=(1−𝑡)𝐚+𝑡𝐛∈𝐸1∪𝐸2. If 𝐜∈𝐸1, then 𝐛=(1−1/𝑡)𝐚+(1/𝑡)𝐜∈𝐸1; if 𝐜∈𝐸2, then 𝐚=(1/(1−𝑡))𝐜−(𝑡/(1−𝑡))𝐛∈𝐸2. Both are contradictions.

The answer depends on 𝐹. Over 𝔽2 the statement is false: in 𝑉=𝔽2, the points {0} and {1} are affine subspaces, neither contains the other, and their union 𝔽2 is a subspace.

Now suppose 𝐹 has more than two elements, and choose 𝑡∈𝐹 with 𝑡≠0 and 𝑡≠1. Suppose 𝐸1∪𝐸2 is affine but neither of 𝐸1,𝐸2 contains the other. Pick 𝐚∈𝐸1 with 𝐚∉𝐸2, and 𝐛∈𝐸2 with 𝐛∉𝐸1. The point 𝐜=(1−𝑡)𝐚+𝑡𝐛 is an affine combination of elements of 𝐸1∪𝐸2, so it lies in 𝐸1∪𝐸2 by Theorem 4.7.14.

If 𝐜∈𝐸1, then

(1−1𝑡)𝐚+1𝑡𝐜=(1−1𝑡+1−𝑡𝑡)𝐚+𝐛=𝐛,

an affine combination of 𝐚,𝐜∈𝐸1, so 𝐛∈𝐸1, a contradiction. If 𝐜∈𝐸2, then

11−𝑡𝐜−𝑡1−𝑡𝐛=𝐚+𝑡1−𝑡𝐛−𝑡1−𝑡𝐛=𝐚,

an affine combination of 𝐜,𝐛∈𝐸2 (the coefficients add up to (1−𝑡)/(1−𝑡)=1), so 𝐚∈𝐸2, a contradiction. Hence, when |𝐹|≥3, the statement is true. The argument breaks down over 𝔽2 exactly because the line through 𝐚 and 𝐛 has no third point.

Exercise 4.7.52.standard Let dim𝑉=𝑛≥2, and let 𝐻 and 𝐻′ be hyperplanes in 𝑉. Show that either 𝐻 and 𝐻′ are parallel, or 𝐻∩𝐻′ is an affine subspace of dimension 𝑛−2. Deduce that two lines in a plane are parallel or meet in exactly one point.

Solution.

Uses. Proposition 4.7.10 (Intersections of affine subspaces), Theorem 4.4.19 (Dimension of a sum), Proposition 4.1.21 (Dimensions of subspaces), Corollary 4.7.6 (Parallel affine subspaces are equal or disjoint)

Techniques. Dimension counting (Technique 4.2.24)

Hint 1. Let 𝑈=dir𝐻 and 𝑈′=dir𝐻′. If 𝑈≠𝑈′, what is 𝑈+𝑈′?
Hint 2. To find a common point, write 𝐡′−𝐡=𝐮+𝐮′ with 𝐡∈𝐻, 𝐡′∈𝐻′, 𝐮∈𝑈, 𝐮′∈𝑈′.
Sketch. If 𝑈≠𝑈′, then 𝑈′⊈𝑈 (equal dimensions), so 𝑈+𝑈′ strictly contains 𝑈 and equals 𝑉. Writing 𝐡′−𝐡=𝐮+𝐮′ gives the common point 𝐡+𝐮=𝐡′−𝐮′. By Proposition 4.7.10 the intersection has direction 𝑈∩𝑈′, of dimension 2(𝑛−1)−𝑛=𝑛−2.

Let 𝑈=dir𝐻 and 𝑈′=dir𝐻′, both of dimension 𝑛−1, and suppose 𝐻 and 𝐻′ are not parallel, so 𝑈≠𝑈′. If 𝑈′⊆𝑈, then 𝑈′=𝑈 by Proposition 4.1.21(b), which is not the case. So some vector of 𝑈′ lies outside 𝑈, and 𝑈⊊𝑈+𝑈′. Then 𝑛−1<dim(𝑈+𝑈′)≤𝑛, so 𝑈+𝑈′=𝑉 by Proposition 4.1.21(b).

Pick 𝐡∈𝐻 and 𝐡′∈𝐻′, and write 𝐡′−𝐡=𝐮+𝐮′ with 𝐮∈𝑈 and 𝐮′∈𝑈′. Then 𝐡+𝐮=𝐡′−𝐮′ lies in 𝐻 and in 𝐻′. By Proposition 4.7.10, 𝐻∩𝐻′ is an affine subspace with direction 𝑈∩𝑈′, and by Theorem 4.4.19,

dim(𝑈∩𝑈′)=dim𝑈+dim𝑈′−dim(𝑈+𝑈′)=2(𝑛−1)−𝑛=𝑛−2.

For 𝑛=2, the hyperplanes are lines. Two lines in a plane are either parallel, or they meet in an affine subspace of dimension 0, a single point.

Exercise 4.7.53.standard Let 𝐮,𝐰∈𝑉 be nonzero, let 𝐩,𝐪∈𝑉, and let ℓ1=𝐩+span(𝐮) and ℓ2=𝐪+span(𝐰). Show that ℓ1 and ℓ2 are disjoint and not parallel if and only if 𝐮,𝐰,𝐪−𝐩 is linearly independent. Deduce that if dim𝑉=2, there are no skew lines in 𝑉.

Solution.

Uses. Proposition 1.5.14 (Appending a vector), Theorem 4.1.10 (Independent lists are short), Definition 4.7.5 (Direction, dimension, parallel)

Hint 1. The lines meet if and only if 𝐩+𝑎𝐮=𝐪+𝑏𝐰 for some scalars. Rewrite this as a statement about 𝐪−𝐩.
Hint 2. The lines are parallel if and only if span(𝐮)=span(𝐰), that is, if and only if 𝐮,𝐰 is dependent. Then use Proposition 1.5.14.
Sketch. ℓ1∩ℓ2≠∅ if and only if 𝐪−𝐩∈span(𝐮,𝐰), and the lines are parallel if and only if 𝐮,𝐰 is dependent. So “disjoint and not parallel” means “𝐮,𝐰 independent and 𝐪−𝐩∉span(𝐮,𝐰)”, which is the independence of 𝐮,𝐰,𝐪−𝐩 by Proposition 1.5.14. In dimension 2, three vectors are dependent.

The lines meet if and only if 𝐩+𝑎𝐮=𝐪+𝑏𝐰 for some 𝑎,𝑏∈𝐹, that is, if and only if 𝐪−𝐩=𝑎𝐮−𝑏𝐰 for some 𝑎,𝑏, that is, if and only if 𝐪−𝐩∈span(𝐮,𝐰).

The lines are parallel if and only if span(𝐮)=span(𝐰). Since 𝐮,𝐰≠𝟎, this holds if and only if 𝐰=𝑐𝐮 for some 𝑐 (necessarily nonzero), that is, if and only if 𝐮,𝐰 is linearly dependent: a nontrivial relation 𝑎𝐮+𝑏𝐰=𝟎 must have 𝑎,𝑏≠0, as both vectors are nonzero.

So ℓ1,ℓ2 are disjoint and not parallel if and only if 𝐮,𝐰 is independent and 𝐪−𝐩∉span(𝐮,𝐰). By Proposition 1.5.14, this is equivalent to the independence of 𝐮,𝐰,𝐪−𝐩. (If 𝐮,𝐰 is dependent, so is the longer list, and both sides fail.)

If dim𝑉=2, no list of three vectors is independent (Theorem 4.1.10), so two lines are never disjoint and non-parallel.

Exercise 4.7.54.routine Find a system of linear equations whose solution set is aff((1,0,2,1),(2,1,1,1),(0,1,3,2)) in ℝ4. How many equations are needed?

Solution.

Uses. Proposition 4.7.17 (The affine hull), Theorem 4.7.8 (Affine subspaces of 𝐹𝑛 are solution sets), Proposition 4.1.21 (Dimensions of subspaces)

Hint 1. The direction is spanned by (1,1,−1,0) and (−1,1,1,1). Find the dimension, then the number of equations from Theorem 4.7.8(b).
Hint 2. An equation 𝑎1𝑥1+⋯+𝑎4𝑥4=𝑐 works for the direction if (𝑎1,…,𝑎4) kills both direction vectors. Find two independent such rows, then compute the right-hand sides at (1,0,2,1).
Sketch. The two differences are independent, so the hull is a plane and needs 4−2=2 equations. The rows (1,0,1,0) and (1,−1,0,2) kill both differences, and the system 𝑥1+𝑥3=3, 𝑥1−𝑥2+2𝑥4=3 works.

By Proposition 4.7.17(b), the hull is (1,0,2,1)+span(𝐝1,𝐝2) with 𝐝1=(1,1,−1,0) and 𝐝2=(−1,1,1,1). These are independent (the last entries force the coefficient of 𝐝2 to be 0, and then that of 𝐝1), so the hull is a plane, and by Theorem 4.7.8(b) it takes 4−2=2 equations, and no fewer.

A row 𝐚=(𝑎1,𝑎2,𝑎3,𝑎4) with 𝐴𝐝1=𝐴𝐝2=0 satisfies 𝑎1+𝑎2−𝑎3=0 and −𝑎1+𝑎2+𝑎3+𝑎4=0. Taking (𝑎3,𝑎4)=(1,0) gives (1,0,1,0), and (𝑎3,𝑎4)=(0,2) gives (1,−1,0,2). With 𝐴=(10101−102), of rank 2, and 𝐴(1,0,2,1)=(3,3), the system is

𝑥1+𝑥3=3,𝑥1−𝑥2+2𝑥4=3.

Its solution set is an affine subspace containing (1,0,2,1) with direction ker𝑇𝐴 of dimension 4−2=2, which contains 𝐝1,𝐝2; so the direction is span(𝐝1,𝐝2) by Proposition 4.1.21(b), and the solution set is the hull. Check the other points: 2+1=3, 2−1+2=3, and 0+3=3, 0−1+4=3.

Exercise 4.7.55.hard Let 𝑓:ℚ𝑛→ℚ𝑚 satisfy

𝑓(12𝐮+12𝐯)=12𝑓(𝐮)+12𝑓(𝐯)for all𝐮,𝐯∈ℚ𝑛.

Show that 𝑓 is affine. (Over ℝ the same hypothesis does not imply that 𝑓 is affine; the counterexamples need a basis of ℝ over ℚ, see Section 15.1.)

Solution.

Uses. Theorem 2.1.3 (Checking linearity), Definition 4.7.35 (Affine map)

Hint 1. Replace 𝑓 by 𝑔=𝑓−𝑓(𝟎). It satisfies the same identity and 𝑔(𝟎)=𝟎.
Hint 2. Take 𝐯=𝟎 to get 𝑔(12𝐮)=12𝑔(𝐮). Then 𝑔(𝐮+𝐯)=2𝑔(12(𝐮+𝐯)).
Hint 3. Additivity gives 𝑔(𝑘𝐮)=𝑘𝑔(𝐮) for integers 𝑘. For 𝑟=𝑘/𝑚, compute 𝑚𝑔(𝑟𝐮).
Sketch. 𝑔=𝑓−𝑓(𝟎) satisfies the midpoint identity and 𝑔(𝟎)=𝟎, so 𝑔(𝐮/2)=𝑔(𝐮)/2 and 𝑔(𝐮+𝐯)=2𝑔((𝐮+𝐯)/2)=𝑔(𝐮)+𝑔(𝐯). By induction 𝑔(𝑘𝐮)=𝑘𝑔(𝐮) for 𝑘≥0, also for 𝑘<0 since 𝑔(−𝐮)=−𝑔(𝐮), and 𝑚𝑔((𝑘/𝑚)𝐮)=𝑔(𝑘𝐮)=𝑘𝑔(𝐮). So 𝑔 is linear over ℚ and 𝑓=𝑔+𝑓(𝟎).

Let 𝑔(𝐱)=𝑓(𝐱)−𝑓(𝟎). Then 𝑔(𝟎)=𝟎, and subtracting 𝑓(𝟎)=12𝑓(𝟎)+12𝑓(𝟎) from the hypothesis gives

𝑔(12𝐮+12𝐯)=12𝑔(𝐮)+12𝑔(𝐯)for all𝐮,𝐯.

With 𝐯=𝟎 this says 𝑔(12𝐮)=12𝑔(𝐮). Applying that to 𝐮+𝐯,

𝑔(𝐮+𝐯)=2𝑔(12(𝐮+𝐯))=2(12𝑔(𝐮)+12𝑔(𝐯))=𝑔(𝐮)+𝑔(𝐯).

So 𝑔 is additive. By induction on 𝑘, 𝑔(𝑘𝐮)=𝑘𝑔(𝐮) for integers 𝑘≥0 (the case 𝑘=0 is 𝑔(𝟎)=𝟎, and 𝑔((𝑘+1)𝐮)=𝑔(𝑘𝐮)+𝑔(𝐮)). Since 𝑔(𝐮)+𝑔(−𝐮)=𝑔(𝟎)=𝟎, the same holds for negative 𝑘. For 𝑟=𝑘/𝑚 with 𝑘,𝑚∈ℤ and 𝑚>0,

𝑚𝑔(𝑟𝐮)=𝑔(𝑚𝑟𝐮)=𝑔(𝑘𝐮)=𝑘𝑔(𝐮),

so 𝑔(𝑟𝐮)=𝑟𝑔(𝐮). Hence 𝑔 is additive and homogeneous over ℚ, so it is linear by Theorem 2.1.3, and 𝑓=𝑔+𝑓(𝟎) is affine.

Exercise 4.7.56.routine Find the error in the following argument, and decide which half of the claim is true.

Claim. A list 𝐯0,…,𝐯𝑘 in 𝑉 is affinely independent if and only if it is linearly independent.

Proof. An affine dependence is a linear relation, so if the list is linearly independent, it is affinely independent. Conversely, let ∑𝑖𝑐𝑖𝐯𝑖=𝟎 be a linear relation, and put 𝑠=∑𝑖𝑐𝑖. Replacing 𝑐0 by 𝑐0−𝑠 gives coefficients that add up to 0, so an affinely independent list has 𝑐0−𝑠=𝑐1=⋯=𝑐𝑘=0. Then 𝑠=𝑐0, so 𝑐0=𝑐0+𝑐1+⋯+𝑐𝑘 is consistent only if all 𝑐𝑖=0.

Solution.

Uses. Definition 4.7.18 (Affine independence), Example 4.7.19 (Affine independence)

Hint 1. Changing a coefficient changes the vector that the combination represents. Is the new combination still 𝟎?
Hint 2. Test the claim on a list containing 𝟎.
Sketch. Replacing 𝑐0 by 𝑐0−𝑠 changes the combination to −𝑠𝐯0, which need not be 𝟎, so the new coefficients need not form an affine dependence. The forward half is true. The converse is false: 𝟎,𝐞1 is affinely independent but linearly dependent.

The first half is correct: an affine dependence is a nontrivial linear relation, so a linearly independent list has none.

The error is in the converse. After 𝑐0 is replaced by 𝑐0−𝑠, the combination represents

(𝑐0−𝑠)𝐯0+𝑐1𝐯1+⋯+𝑐𝑘𝐯𝑘=𝟎−𝑠𝐯0=−𝑠𝐯0,

which is not 𝟎 unless 𝑠=0 or 𝐯0=𝟎. So the new coefficients are not an affine dependence, and affine independence says nothing about them. (The last sentence of the argument is also confused, but the claim fails before it.)

The converse is false. The list 𝟎,𝐞1 in ℝ2 consists of two distinct points, so it is affinely independent (Example 4.7.19(a)), but it contains 𝟎, so it is linearly dependent. Likewise (0,0),(1,0),(0,1) is affinely independent and linearly dependent (Example 4.7.19(b)).

Exercise 4.7.57.hard Let 𝐯0,𝐯1,𝐯2 be affinely independent in 𝑉. When 1+1≠0, the median from 𝐯𝑖 is the line through 𝐯𝑖 and the midpoint 𝐦𝑖 of the other two vertices.

  1. (a)Suppose 2≠0 and 3≠0 in 𝐹. Show that the three medians are distinct lines that all pass through the centroid 𝐠=13(𝐯0+𝐯1+𝐯2), and that 𝐠 is their only common point.
  2. (b)Now let 𝐹=𝔽3 and 𝑉=𝔽32. Show that the three medians are parallel and pairwise disjoint, and that together they contain every point of 𝔽32.

Solution.

Uses. Theorem 4.7.22 (Characterizations of affine independence), Proposition 4.7.17 (The affine hull), Corollary 4.7.6 (Parallel affine subspaces are equal or disjoint), Proposition 4.7.3 (Direction and base points), Proposition 4.1.34 (Size of a vector space over a finite field)

Hint 1. For (a), write 𝐠 as an affine combination of 𝐯𝑖 and 𝐦𝑖. To see that two medians differ, show that if the median from 𝐯0 contained 𝐯1, then 𝐯2 would lie in aff(𝐯0,𝐯1).
Hint 2. For (b), in 𝔽3 we have 1/2=2=−1, so 𝐦𝑖=−(𝐯𝑗+𝐯𝑘). Compute 𝐦𝑖−𝐯𝑖.
Hint 3. Let 𝐬=𝐯0+𝐯1+𝐯2. Show 𝐬≠𝟎, and that 𝐯1−𝐯0∈span(𝐬) would give an affine dependence, using 3=0.
Sketch. (a) 𝐠=13𝐯𝑖+23𝐦𝑖 lies on every median. If two medians were equal, the median from 𝐯0 would contain 𝐯1, so 𝐦0∈aff(𝐯0,𝐯1) and 𝐯2=2𝐦0−𝐯1 would be in it too. Distinct lines share at most one point. (b) 𝐦𝑖−𝐯𝑖=−𝐬 for every 𝑖, and 𝐬≠𝟎, so each median is 𝐯𝑖+span(𝐬). If 𝐯𝑗−𝐯𝑖=𝑐𝐬, the coefficients of the resulting relation add up to −3𝑐=0, giving an affine dependence. So the medians are three distinct parallel lines, disjoint by Corollary 4.7.6, with 3 points each, covering all 9 points.

(a) Write 𝐦0=12(𝐯1+𝐯2), and similarly 𝐦1,𝐦2. Then

13𝐯0+23𝐦0=13(𝐯0+𝐯1+𝐯2)=𝐠,

an affine combination of 𝐯0 and 𝐦0, so 𝐠 lies on the median from 𝐯0 (Proposition 4.7.17), and likewise on the other two. The median from 𝐯0 is a line, since 𝐦0≠𝐯0: otherwise 𝐯0 would be an affine combination of 𝐯1,𝐯2, contradicting Theorem 4.7.22(V).

Suppose two medians coincide, say those from 𝐯0 and 𝐯1 (the other cases are the same up to renaming). Then 𝐯1 lies on the median from 𝐯0, so this median is aff(𝐯0,𝐯1), and it contains 𝐦0. Then 𝐯2=2𝐦0−𝐯1 is an affine combination of points of aff(𝐯0,𝐯1), so it lies there, contradicting Theorem 4.7.22(V). So the medians are three distinct lines. Two distinct lines meet in at most one point: their intersection is empty or an affine subspace of dimension at most 1 (Proposition 4.7.10), and if it had dimension 1 it would equal both lines (Proposition 4.1.21(b) applied to the directions, and Proposition 4.7.3). So 𝐠 is the only common point.

(b) In 𝔽3, 2⋅2=4=1, so 1/2=2=−1, and 𝐦𝑖=−(𝐯𝑗+𝐯𝑘), where {𝑖,𝑗,𝑘}={0,1,2}. Let 𝐬=𝐯0+𝐯1+𝐯2. Then 𝐦𝑖−𝐯𝑖=−𝐬 for every 𝑖. If 𝐬=𝟎, then 𝐯2=−𝐯0−𝐯1=2𝐯0+2𝐯1 with 2+2=4=1, an affine combination of 𝐯0,𝐯1, contradicting affine independence. So 𝐬≠𝟎, and the median from 𝐯𝑖 is 𝐯𝑖+span(𝐬). All three medians have direction span(𝐬), so they are parallel.

Suppose two of them coincide, say 𝐯1−𝐯0=𝑐𝐬 for some 𝑐∈𝔽3 (by Proposition 4.7.3(c)). Then

(−1−𝑐)𝐯0+(1−𝑐)𝐯1−𝑐𝐯2=𝟎,

with coefficient sum −3𝑐=0, and the coefficients are not all 0 (that would need 𝑐=−1, 𝑐=1, and 𝑐=0). This is an affine dependence, a contradiction. So the three medians are distinct parallel lines, hence pairwise disjoint (Corollary 4.7.6). Each has |span(𝐬)|=3 points, so together they have 9=|𝔽32| points (Proposition 4.1.34), and they cover 𝔽32.

Exercise 4.7.58.standard
  1. (a)Find the affine map 𝑓:ℝ2→ℝ2 with 𝑓(0,0)=(2,1), 𝑓(1,0)=(4,2), 𝑓(0,1)=(1,3), and its matrix 𝑀𝑓.
  2. (b)Find the affine map 𝑔:ℝ2→ℝ2 with 𝑔(1,1)=(2,1), 𝑔(3,1)=(4,2), 𝑔(1,2)=(1,3).
  3. (c)Let 𝐚0,𝐚1,𝐚2 be affinely independent in ℝ2, let 𝐛0,𝐛1,𝐛2∈ℝ2, and let 𝐴̂,𝐵̂∈ℝ3×3 have columns 𝐚̂𝑖 and 𝐛̂𝑖. Show that 𝐴̂ is invertible and that the affine map with 𝐚𝑖↦𝐛𝑖 has matrix 𝐵̂𝐴̂−1. Check (b) this way.

Solution.

Uses. Theorem 4.7.39 (Affine maps are determined by a frame), Theorem 4.7.42 (Affine maps as matrices), Proposition 4.7.20 (Affine independence through differences), Corollary 3.5.25 (The invertible matrix theorem), Proposition 2.4.8 (Four views of the product)

Techniques. Homogenize: add a coordinate 1 (Technique 4.7.21)

Hint 1. In (a), 𝑓(𝟎) is the translation part, and 𝑓(𝐞𝑗)−𝑓(𝟎) is column 𝑗 of the linear part.
Hint 2. In (b), compose: if ℎ sends 𝟎,𝐞1,𝐞2 to (1,1),(3,1),(1,2), then 𝑔=𝑓∘ℎ−1.
Hint 3. In (c), 𝑀𝐚̂𝑖=𝐛̂𝑖 for all 𝑖 says 𝑀𝐴̂=𝐵̂. The columns of 𝐴̂ are independent by the second approach to Proposition 4.7.20.
Sketch. (a) 𝑓(𝐱)=(2−112)𝐱+(2,1). (b) ℎ(𝐱)=(2001)𝐱+(1,1), and 𝑔=𝑓∘ℎ−1 is 𝑔(𝐲)=(1−1122)𝐲+(2,−32). (c) 𝑀𝑔𝐴̂=𝐵̂ column by column, and 𝐴̂ has independent columns, so it is invertible.

(a) By Theorem 4.7.39 there is exactly one such map. Its translation part is 𝑓(𝟎)=(2,1), and its linear part 𝐿 has 𝐿(𝐞1)=(4,2)−(2,1)=(2,1) and 𝐿(𝐞2)=(1,3)−(2,1)=(−1,2). So

𝑓(𝐱)=(2−112)𝐱+(21),𝑀𝑓=(2−12121001).

(b) The affine map ℎ(𝐱)=(2001)𝐱+(1,1) sends 𝟎,𝐞1,𝐞2 to (1,1),(3,1),(1,2), and it is bijective with ℎ−1(𝐲)=(12001)(𝐲−(1,1)). The map 𝑔=𝑓∘ℎ−1 is affine and sends (1,1),(3,1),(1,2) to (2,1),(4,2),(1,3), so it is the unique such map (Theorem 4.7.39). Explicitly,

𝑔(𝐲)=(2−112)(12001)(𝐲−(11))+(21)=(1−1122)𝐲+(2−32).

Check: 𝑔(1,1)=(0,52)+(2,−32)=(2,1), 𝑔(3,1)=(2,72)+(2,−32)=(4,2), 𝑔(1,2)=(−1,92)+(2,−32)=(1,3).

(c) The columns of 𝐴̂ are the lifts 𝐚̂𝑖, which are linearly independent by the second approach to Proposition 4.7.20. So 𝐴̂ is invertible (Corollary 3.5.25). Let 𝑔 be the affine map with 𝑔(𝐚𝑖)=𝐛𝑖 (Theorem 4.7.39). By Theorem 4.7.42(a), 𝑀𝑔𝐚̂𝑖=𝐛̂𝑖 for each 𝑖, which says that 𝑀𝑔𝐴̂=𝐵̂ column by column (Proposition 2.4.8). Hence 𝑀𝑔=𝐵̂𝐴̂−1. For (b),

𝐴̂=(131112111),𝐴̂−1=(−12−152120−1201−1),𝐵̂𝐴̂−1=(241123111)𝐴̂−1=(1−12122−32001),

in agreement with (b).

Exercise 4.7.59.hard (Radon’s theorem.) Let 𝐯1,…,𝐯𝑛+2∈ℝ𝑛. Show that the index set {1,…,𝑛+2} can be split into two disjoint nonempty parts 𝐼 and 𝐽 with

conv{𝐯𝑖|𝑖∈𝐼}∩conv{𝐯𝑗|𝑗∈𝐽}≠∅.

Find such a split for the four points (0,0),(2,0),(0,2),(1,1) of ℝ2, and for (0,0),(4,0),(0,4),(1,1).

Solution.

Uses. Corollary 4.7.23 (Affinely independent lists are short), Definition 4.7.28 (Convex combination, convex set, convex hull)

Techniques. Slide along a dependence (Technique 4.7.33)

Hint 1. The 𝑛+2 points are affinely dependent. Take an affine dependence ∑𝑖𝑑𝑖𝐯𝑖=𝟎, ∑𝑖𝑑𝑖=0.
Hint 2. Split the indices by the sign of 𝑑𝑖, and move the negative terms to the other side.
Sketch. Let ∑𝑖𝑑𝑖𝐯𝑖=𝟎, ∑𝑖𝑑𝑖=0, not all 𝑑𝑖=0. Put 𝐼={𝑖|𝑑𝑖>0} and 𝐽 the rest; both are nonempty, and 𝑠=∑𝑖∈𝐼𝑑𝑖=−∑𝑗∈𝐽𝑑𝑗>0. Then ∑𝑖∈𝐼(𝑑𝑖/𝑠)𝐯𝑖=∑𝑗∈𝐽(−𝑑𝑗/𝑠)𝐯𝑗 is a common point. In the examples, (1,1) is the midpoint of (2,0) and (0,2), and lies inside the triangle (0,0),(4,0),(0,4).

By Corollary 4.7.23, the 𝑛+2 points are affinely dependent: there are 𝑑1,…,𝑑𝑛+2, not all 0, with ∑𝑖𝑑𝑖𝐯𝑖=𝟎 and ∑𝑖𝑑𝑖=0. Let 𝐼={𝑖|𝑑𝑖>0} and 𝐽={𝑗|𝑑𝑗≤0}. Since the 𝑑𝑖 add up to 0 and are not all 0, some 𝑑𝑖 is positive and some is negative, so 𝐼 and 𝐽 are nonempty. Let 𝑠=∑𝑖∈𝐼𝑑𝑖>0; then ∑𝑗∈𝐽𝑑𝑗=−𝑠. Moving the terms with 𝑗∈𝐽 to the other side of the dependence and dividing by 𝑠,

𝐩=∑𝑖∈𝐼𝑑𝑖𝑠𝐯𝑖=∑𝑗∈𝐽−𝑑𝑗𝑠𝐯𝑗.

On the left, the coefficients are positive and add up to 1; on the right, they are nonnegative and add up to (−(−𝑠))/𝑠=1. So 𝐩 lies in both convex hulls.

For (0,0),(2,0),(0,2),(1,1): the dependence (2,0)+(0,2)−2(1,1)=𝟎 (coefficients 0,1,1,−2, sum 0) gives 𝐼={2,3} and 𝐽={1,4}, with common point (1,1)=12(2,0)+12(0,2), which is also the endpoint (1,1) of the segment conv{(0,0),(1,1)}. For (0,0),(4,0),(0,4),(1,1): 2(0,0)+(4,0)+(0,4)−4(1,1)=𝟎, with coefficients 2,1,1,−4 adding up to 0, gives 𝐼={1,2,3} and 𝐽={4}: the point (1,1)=12(0,0)+14(4,0)+14(0,4) lies in the triangle.

Exercise 4.7.60.standard A function ℎ:ℝ𝑛→ℝ of the form ℎ(𝐱)=𝑤1𝑥1+⋯+𝑤𝑛𝑥𝑛+𝑏 is an affine map, and the rule “label 𝐱 by the sign of ℎ(𝐱)” is a linear classifier, a single neuron of a neural network (Section 16.6).

  1. (a)Show that no affine ℎ:ℝ2→ℝ has ℎ(0,0)>0, ℎ(1,1)>0, ℎ(1,0)<0, and ℎ(0,1)<0. (The labels of these four points form the “exclusive or” pattern.)
  2. (b)Show that after adding the feature 𝑥1𝑥2, that is, after replacing each point 𝐱 by 𝜑(𝐱)=(𝑥1,𝑥2,𝑥1𝑥2)∈ℝ3, there is an affine ℎ′:ℝ3→ℝ with ℎ′∘𝜑 positive at (0,0),(1,1) and negative at (1,0),(0,1).

Solution.

Uses. Theorem 4.7.37 (Affine maps preserve affine combinations)

Hint 1. The point (12,12) is the midpoint of (0,0) and (1,1), and also of (1,0) and (0,1).
Hint 2. For (b), try ℎ′(𝐲)=𝑐−𝑦1−𝑦2+2𝑦3 and choose 𝑐.
Sketch. (a) Affine maps preserve midpoints, so ℎ(12,12) is the average of two positive numbers and also of two negative numbers. (b) ℎ′(𝐲)=12−𝑦1−𝑦2+2𝑦3 gives 12,12,−12,−12.

(a) Suppose such an affine ℎ exists. The point 𝐦=(12,12) is the affine combination 12(0,0)+12(1,1), and also 12(1,0)+12(0,1). By Theorem 4.7.37(II),

ℎ(𝐦)=12ℎ(0,0)+12ℎ(1,1)>0andℎ(𝐦)=12ℎ(1,0)+12ℎ(0,1)<0,

a contradiction. In words, the segment between the two positive points crosses the segment between the two negative points, and at the crossing point an affine function would have to be both positive and negative.

(b) The four points become 𝜑(0,0)=(0,0,0), 𝜑(1,1)=(1,1,1), 𝜑(1,0)=(1,0,0), and 𝜑(0,1)=(0,1,0). Let ℎ′(𝐲)=12−𝑦1−𝑦2+2𝑦3. Then ℎ′ takes the values 12, 12−2+2=12, −12, and −12 at these points, as required. The midpoint argument of (a) no longer applies, because 𝜑 is not affine: the midpoint of 𝜑(0,0) and 𝜑(1,1) is (12,12,12), while that of 𝜑(1,0) and 𝜑(0,1) is (12,12,0).

Exercise 4.7.61.standard Show that a nonempty subset 𝑆⊆𝔽2𝑛 is an affine subspace if and only if 𝐮+𝐯+𝐰∈𝑆 for all 𝐮,𝐯,𝐰∈𝑆. Use this to decide whether {(0,0,0),(1,1,0),(1,0,1),(0,1,1)} and {(1,0,0),(0,1,0),(0,0,1),(1,1,1)} are affine subspaces of 𝔽23.

Solution.

Uses. Theorem 4.7.14 (Affine subspaces are the sets closed under affine combinations)

Techniques. Induction on the length of a list (Technique 1.6.9)

Hint 1. Over 𝔽2, an affine combination of 𝐬1,…,𝐬𝑘 is the sum of the 𝐬𝑖 whose coefficient is 1, and there is an odd number of them.
Hint 2. Show by induction that the sum of any odd number of elements of 𝑆 lies in 𝑆: replace the first three summands by their sum.
Sketch. (⇒) 𝐮+𝐯+𝐰 is an affine combination, as 1+1+1=1 in 𝔽2. (⇐) An affine combination over 𝔽2 is a sum of an odd number 2𝑗+1 of elements of 𝑆; replacing three of them by their sum, which is in 𝑆, lowers 𝑗, so by induction the sum lies in 𝑆. Then Theorem 4.7.14 applies. The first set is the subspace 𝑥1+𝑥2+𝑥3=0; the second is the plane 𝑥1+𝑥2+𝑥3=1, and both pass the test.

(⇒) If 𝑆 is affine, then 𝐮+𝐯+𝐰=1𝐮+1𝐯+1𝐰 is an affine combination, since 1+1+1=1 in 𝔽2, so it lies in 𝑆 by Theorem 4.7.14.

(⇐) Every coefficient in 𝔽2 is 0 or 1, so an affine combination ∑𝑖𝑐𝑖𝐬𝑖 of elements of 𝑆 is the sum of those 𝐬𝑖 with 𝑐𝑖=1, and their number is odd, because the coefficients add up to 1 in 𝔽2. We show by induction on 𝑗≥0 that a sum of 2𝑗+1 elements of 𝑆 (repetitions allowed) lies in 𝑆. For 𝑗=0 it is a single element of 𝑆. For 𝑗≥1, the sum 𝐬1+𝐬2+𝐬3+𝐬4+⋯+𝐬2𝑗+1 equals 𝐬′+𝐬4+⋯+𝐬2𝑗+1 with 𝐬′=𝐬1+𝐬2+𝐬3∈𝑆 by hypothesis, a sum of 2(𝑗−1)+1 elements of 𝑆, which lies in 𝑆 by induction. So 𝑆 is closed under affine combinations, and it is affine by Theorem 4.7.14.

The first set consists of the vectors with 𝑥1+𝑥2+𝑥3=0, and each of its triples sums to a vector with the same property, so it passes the test; it is in fact a subspace. The second consists of the vectors with 𝑥1+𝑥2+𝑥3=1, and the sum of three such vectors has coordinate sum 1+1+1=1, so it passes too: it is the affine plane (1,0,0)+{𝐱|𝑥1+𝑥2+𝑥3=0}. (It is the plane of Exercise 4.7.24(c).)

Exercise 4.7.62.standard
  1. (a)Using 3×3 matrices, compute the composite of the rotation by 90° counterclockwise about (0,0) followed by the rotation by 90° counterclockwise about (1,0). Show that it is a rotation by 180°, and find its center.
  2. (b)More generally, let 𝑓(𝐯)=𝑅𝜃𝐯+𝐛 be an affine map of ℝ2 whose linear part is the rotation by an angle 𝜃 that is not a multiple of 2𝜋. Show that 𝑓 has exactly one fixed point 𝐜, and that 𝑓 is the rotation by 𝜃 about 𝐜.

Solution.

Uses. Theorem 4.7.42 (Affine maps as matrices), Example 4.7.36 (Affine maps), Proposition 2.5.28 (Inverse of a 2×2 matrix), Proposition 3.1.19 (Solution sets are translates of the kernel)

Hint 1. The rotation about 𝐚 has matrix (𝑅𝐚−𝑅𝐚01). Multiply in the right order.
Hint 2. A fixed point solves (𝐼2−𝑅𝜃)𝐜=𝐛. Compute 𝑎𝑑−𝑏𝑐 for 𝐼2−𝑅𝜃.
Hint 3. If 𝐜=𝑅𝜃𝐜+𝐛, then 𝐛=𝐜−𝑅𝜃𝐜; substitute into 𝑓.
Sketch. (a) (0−1110−1001)(0−10100001)=(−1010−1−1001), the map 𝐯↦−𝐯+(1,−1), with fixed point (12,−12); it is 𝐯↦𝐜−(𝐯−𝐜). (b) 𝐼2−𝑅𝜃 has 𝑎𝑑−𝑏𝑐=(1−cos𝜃)2+sin2𝜃=2−2cos𝜃≠0, so the fixed point exists and is unique, and 𝑓(𝐯)=𝑅𝜃𝐯+𝐜−𝑅𝜃𝐜=𝐜+𝑅𝜃(𝐯−𝐜).

(a) Let 𝑅=(0−110). The rotation about (0,0) has matrix 𝑀1=(𝑅𝟎01). The rotation about 𝐚=(1,0) is 𝐯↦𝑅𝐯+(𝐚−𝑅𝐚) (Example 4.7.36), with 𝐚−𝑅𝐚=(1,0)−(0,1)=(1,−1). The composite applies 𝑀1 first, so by Theorem 4.7.42(c) its matrix is

(0−1110−1001)(0−10100001)=(−1010−1−1001),

the map 𝑔(𝐯)=−𝐯+(1,−1). Its fixed points solve 2𝐯=(1,−1), so 𝐜=(12,−12), and 𝑔(𝐯)=−𝐯+2𝐜=𝐜−(𝐯−𝐜). This is the rotation by 180° about 𝐜, since 𝑅𝜋=−𝐼2.

(b) A fixed point is a solution of 𝑅𝜃𝐜+𝐛=𝐜, that is, of (𝐼2−𝑅𝜃)𝐜=𝐛, where

𝐼2−𝑅𝜃=(1−cos𝜃sin𝜃−sin𝜃1−cos𝜃).

Here 𝑎𝑑−𝑏𝑐=(1−cos𝜃)2+sin2𝜃=2−2cos𝜃, which is nonzero because cos𝜃≠1. By Proposition 2.5.28, 𝐼2−𝑅𝜃 is invertible, so the fixed point 𝐜=(𝐼2−𝑅𝜃)−1𝐛 exists and is unique. Then 𝐛=𝐜−𝑅𝜃𝐜, and

𝑓(𝐯)=𝑅𝜃𝐯+𝐜−𝑅𝜃𝐜=𝐜+𝑅𝜃(𝐯−𝐜),

the rotation by 𝜃 about 𝐜. Part (a) is the case 𝜃=𝜋, 𝐛=(1,−1).

Exercise 4.7.63.standard Let 𝐹 be a field with 𝑞 elements, and let 0≤𝑘≤𝑛.

  1. (a)Show that the number of 𝑘-dimensional affine subspaces of 𝐹𝑛 is 𝑞𝑛−𝑘 times the number of 𝑘-dimensional subspaces of 𝐹𝑛.
  2. (b)Count the lines in 𝔽32 and the planes in 𝔽23.

Solution.

Uses. Proposition 4.7.3 (Direction and base points), Corollary 4.7.6 (Parallel affine subspaces are equal or disjoint), Proposition 4.1.34 (Size of a vector space over a finite field), Proposition 4.1.37 (Counting subspaces)

Techniques. Double counting (Technique 4.1.36)

Hint 1. Group the affine subspaces by their direction. How many translates does a 𝑘-dimensional subspace 𝑈 have?
Hint 2. The translates of 𝑈 are disjoint and cover 𝐹𝑛, and each has |𝑈|=𝑞𝑘 elements.
Sketch. Each 𝑘-dimensional affine subspace has exactly one direction, a 𝑘-dimensional subspace 𝑈. The distinct translates of 𝑈 partition 𝐹𝑛 (Corollary 4.7.6), and each has 𝑞𝑘 elements, so there are 𝑞𝑛/𝑞𝑘=𝑞𝑛−𝑘 of them. (b) 𝔽32 has 4 one-dimensional subspaces, so 4⋅3=12 lines; 𝔽23 has 7 two-dimensional subspaces, so 7⋅2=14 planes.

(a) By Proposition 4.7.3(a), each affine subspace has exactly one direction, so the 𝑘-dimensional affine subspaces are grouped by their directions, which are the 𝑘-dimensional subspaces 𝑈 of 𝐹𝑛. Fix such a 𝑈. By Corollary 4.7.6, the distinct translates of 𝑈 are pairwise disjoint and every vector lies in one of them. Each translate 𝐯+𝑈 is in bijection with 𝑈 via 𝐮↦𝐯+𝐮, so it has |𝑈|=𝑞𝑘 elements (Proposition 4.1.34). Since |𝐹𝑛|=𝑞𝑛, there are exactly 𝑞𝑛/𝑞𝑘=𝑞𝑛−𝑘 translates of 𝑈. Summing over 𝑈 gives the claim.

(b) By Proposition 4.1.37, 𝔽32 has (9−1)/(3−1)=4 one-dimensional subspaces, so it has 4⋅32−1=12 lines. And 𝔽23 has ((8−1)(8−2))/((4−1)(4−2))=42/6=7 two-dimensional subspaces, so it has 7⋅23−2=14 planes.

Exercise 4.7.64.hard Let 𝑉 and 𝑊 be real vector spaces, and let 𝑓:𝑉→𝑊 satisfy

𝑓((1−𝑡)𝐮+𝑡𝐯)=(1−𝑡)𝑓(𝐮)+𝑡𝑓(𝐯)for all𝐮,𝐯∈𝑉and𝑡∈[0,1].

That is, 𝑓 maps each segment onto a segment, at constant speed. Show that 𝑓 is affine.

Solution.

Hint 1. First extend the identity to all 𝑡∈ℝ. For 𝑡>1, the point 𝐯 lies on the segment from 𝐮 to 𝐰=(1−𝑡)𝐮+𝑡𝐯.
Hint 2. For 𝑡<0, swap the roles of 𝐮 and 𝐯.
Hint 3. Now 𝑔=𝑓−𝑓(𝟎) respects all affine combinations of two points and fixes 𝟎. Use Exercise 2.1.39(a).
Sketch. For 𝑡>1, 𝐯=(1−1/𝑡)𝐮+(1/𝑡)𝐰 with 1/𝑡∈(0,1), so 𝑓(𝐯)=(1−1/𝑡)𝑓(𝐮)+(1/𝑡)𝑓(𝐰), which solves to 𝑓(𝐰)=(1−𝑡)𝑓(𝐮)+𝑡𝑓(𝐯). For 𝑡<0, write the point as (1−𝑡′)𝐯+𝑡′𝐮 with 𝑡′=1−𝑡>1. So 𝑔=𝑓−𝑓(𝟎) satisfies 𝑔(𝑎𝐮+𝑏𝐯)=𝑎𝑔(𝐮)+𝑏𝑔(𝐯) whenever 𝑎+𝑏=1, and 𝑔(𝟎)=𝟎; since 1+1≠0 in ℝ, 𝑔 is linear.

We first show that the identity holds for all 𝑡∈ℝ. Let 𝑡>1 and 𝐰=(1−𝑡)𝐮+𝑡𝐯. Then

(1−1𝑡)𝐮+1𝑡𝐰=(1−1𝑡+1−𝑡𝑡)𝐮+𝐯=𝐯,

and 1/𝑡∈(0,1), so the hypothesis gives 𝑓(𝐯)=(1−1𝑡)𝑓(𝐮)+1𝑡𝑓(𝐰). Multiplying by 𝑡 and solving,

𝑓(𝐰)=𝑡𝑓(𝐯)−(𝑡−1)𝑓(𝐮)=(1−𝑡)𝑓(𝐮)+𝑡𝑓(𝐯).

If 𝑡<0, then (1−𝑡)𝐮+𝑡𝐯=(1−𝑡′)𝐯+𝑡′𝐮 with 𝑡′=1−𝑡>1, and the case just proved, with 𝐮 and 𝐯 exchanged, gives 𝑓((1−𝑡′)𝐯+𝑡′𝐮)=(1−𝑡′)𝑓(𝐯)+𝑡′𝑓(𝐮)=(1−𝑡)𝑓(𝐮)+𝑡𝑓(𝐯).

Now let 𝑔(𝐱)=𝑓(𝐱)−𝑓(𝟎). Then 𝑔(𝟎)=𝟎, and for 𝑎+𝑏=1,

𝑔(𝑎𝐮+𝑏𝐯)=𝑎𝑓(𝐮)+𝑏𝑓(𝐯)−(𝑎+𝑏)𝑓(𝟎)=𝑎𝑔(𝐮)+𝑏𝑔(𝐯).

Since 1+1≠0 in ℝ, Exercise 2.1.39(a) shows that 𝑔 is linear. Hence 𝑓=𝑔+𝑓(𝟎) is affine.

Exercise 4.7.65.standard A point 𝐩 of a convex set 𝐶 is an extreme point of 𝐶 if 𝐩=(1−𝑡)𝐚+𝑡𝐛 with 𝐚,𝐛∈𝐶 and 𝑡∈(0,1) implies 𝐚=𝐛=𝐩. Show that the extreme points of a simplex are exactly its vertices. Conclude that a simplex determines its set of vertices.

Solution.

Uses. Proposition 4.7.32 (Barycentric coordinates on a simplex), Theorem 4.7.22 (Characterizations of affine independence)

Hint 1. Work in barycentric coordinates (Proposition 4.7.32). A vertex 𝐯0 has coordinates (1,0,…,0).
Hint 2. If 𝐯0=(1−𝑡)𝐚+𝑡𝐛, compare coordinates 𝑖≥1: a sum of two nonnegative numbers is 0.
Hint 3. If 𝐩 is not a vertex, two of its coordinates are positive, say 𝑡0,𝑡1>0. Move 𝐩 a little in the direction ±(𝐯0−𝐯1).
Sketch. If 𝐯0=(1−𝑡)𝐚+𝑡𝐛, the barycentric coordinates satisfy 0=(1−𝑡)𝛼𝑖+𝑡𝛽𝑖 for 𝑖≥1 with both terms nonnegative, so 𝛼𝑖=𝛽𝑖=0 and 𝐚=𝐛=𝐯0. If 𝐩 has 𝑡0,𝑡1>0, then with 𝛿=min(𝑡0,𝑡1), the points 𝐩±𝛿(𝐯0−𝐯1) lie in the simplex, differ, and have midpoint 𝐩.

Let 𝜎 have vertices 𝐯0,…,𝐯𝑘, and write points of 𝜎 in barycentric coordinates (Proposition 4.7.32). The vertex 𝐯𝑗 has coordinates 𝐞𝑗, with 1 in place 𝑗 and 0 elsewhere.

Vertices are extreme. Suppose 𝐯𝑗=(1−𝑡)𝐚+𝑡𝐛 with 𝐚,𝐛∈𝜎 and 𝑡∈(0,1), and let 𝐚,𝐛 have barycentric coordinates (𝛼𝑖) and (𝛽𝑖). Then ∑𝑖((1−𝑡)𝛼𝑖+𝑡𝛽𝑖)𝐯𝑖 is an affine combination representing 𝐯𝑗, so by uniqueness (Theorem 4.7.22(IV)), (1−𝑡)𝛼𝑖+𝑡𝛽𝑖=0 for 𝑖≠𝑗. Both terms are nonnegative and 1−𝑡,𝑡>0, so 𝛼𝑖=𝛽𝑖=0 for 𝑖≠𝑗, and then 𝛼𝑗=𝛽𝑗=1. Hence 𝐚=𝐛=𝐯𝑗.

Other points are not extreme. Let 𝐩∈𝜎 have coordinates (𝑡𝑖) and not be a vertex. The 𝑡𝑖 are nonnegative and add up to 1, and they are not a standard basis vector, so at least two of them are positive, say 𝑡𝑟,𝑡𝑠>0 with 𝑟≠𝑠. Let 𝛿=min(𝑡𝑟,𝑡𝑠)>0, and 𝐚=𝐩+𝛿(𝐯𝑟−𝐯𝑠), 𝐛=𝐩−𝛿(𝐯𝑟−𝐯𝑠). Their coordinates are those of 𝐩 with 𝑡𝑟,𝑡𝑠 replaced by 𝑡𝑟+𝛿,𝑡𝑠−𝛿 and by 𝑡𝑟−𝛿,𝑡𝑠+𝛿; these are nonnegative and add up to 1, so 𝐚,𝐛∈𝜎. They differ, since 𝐯𝑟≠𝐯𝑠, and 𝐩=12𝐚+12𝐛. So 𝐩 is not extreme.

The extreme points are defined in terms of the set 𝜎 alone, so 𝜎 determines its vertex set. In particular, a 𝑘-simplex is not a 𝑘′-simplex for 𝑘′≠𝑘.

More practice

The practice bank has 16 exercises on this section’s topics.