18.1  Convex Sets and Hulls

Convexity has turned up in this book four times without being asked for: in the unit balls of Chapter 16, the positive semidefinite matrices of Chapter 13, and the Ky Fan sums and the possible diagonals of Chapter 17 (the chapter introduction lists the places). Each time the property was checked by hand and set aside. This section gives it a name, finds the smallest convex set containing a given set, and fixes the words closed and open that the rest of the chapter needs.

The field is R, throughout the chapter. The definition below asks for a scalar t with 0≤t≤1, which needs an order on the scalars; C has none. A complex space is treated as a real one by allowing only real scalars. That is how the Hermitian matrices enter below: they form a vector space over R, and not over C, since iA is not Hermitian when A≠O is. Unless a statement says otherwise, V is a real vector space; where a result needs a finite dimension, a norm, or an inner product, it says so.

18.1.1. Segments, and sets that contain them

Chapter 16 §01 checked the convexity of a unit ball with one line: if ‖u‖,‖v‖≤1 and 0≤t≤1, then ‖tu+(1−t)v‖≤1. The expression tx+(1−t)y, with t running over [0,1], keeps recurring, so it deserves a name, and so does the property of containing all of it.

Picture it first. At t=1 the expression is x, at t=0 it is y, and at t=12 it is the midpoint. Writing it as y+t(x−y) shows the rest: we start at y and travel the fraction t of the way to x. As t runs over [0,1], the point runs along the straight segment from y to x, and nowhere else.

A convex set is one that contains the whole straight segment between any two of its points.

Definition 18.1.1 (Convex Set)

Let V be a vector space over R. A subset C⊆V is convex if, for all x,y∈C and every real t with 0≤t≤1, tx+(1−t)y∈C. The set {tx+(1−t)y:0≤t≤1} is the segment joining x and y, written [x,y].

In words: pick any two points of C, possibly equal; the segment joining them must lie inside C. The quantifier “for all x,y” is what makes this a property of the set rather than of a pair; one segment escaping C is enough to make it nonconvex. The restriction 0≤t≤1 is the other half of the content, and the end of this subsection shows what happens without it. There is nothing to check for well-definedness: a subset either has the property or it does not.

Example (The first convex sets)

Check each of the following against Definition 18.1.1.

  • (a) The empty set, and a single point {p}.
  • (b) A subspace U of V, and a coset p+U of it (Definition 4.4.2).
  • (c) A closed half-space {x∈V:φ(x)≤c}, where φ is a nonzero linear functional on V (Definition 5.1.1) and c∈R.
  • (d) A closed ball {x∈V:‖x−p‖≤r} of any norm on V, with center p and radius r≥0.
  • (e) The set of positive semidefinite matrices (Definition 13.1.1) in the real vector space of n×n Hermitian matrices.

Solution.

  • (a) The empty set has no two points, so the condition holds vacuously; for {p}, tp+(1−t)p=p. These degenerate cases matter because an intersection of convex sets, which we meet shortly, is often empty or a single point, and the statements below must allow for both.

  • (b) Let x=p+u and y=p+w with u,w∈U. Then tx+(1−t)y=p+(tu+(1−t)w), and tu+(1−t)w∈U because a subspace is closed under linear combinations. Taking p=0 gives the subspace itself. Here the restriction on t was not used at all; we return to this below.

  • (c) Let φ(x)≤c and φ(y)≤c. By linearity, φ(tx+(1−t)y)=tφ(x)+(1−t)φ(y)≤tc+(1−t)c=c, where the inequality multiplies the first hypothesis by t and the second by 1−t. Multiplying an inequality by a number preserves it only when the number is ≥0, so both t≥0 and 1−t≥0 were used. In Rn every linear functional is x↦a⊤x for some a (Theorem 5.1.1), so the closed half-spaces of Rn are the sets {x:a⊤x≤c} with a≠0. The same computation shows that the open half-space {x:φ(x)<c} is convex, and that the affine hyperplane {x:φ(x)=c} is convex.

  • (d) Let ‖x−p‖≤r and ‖y−p‖≤r. Since tx+(1−t)y−p=t(x−p)+(1−t)(y−p), (N3) and (N2) of Definition 16.1.1 give ‖tx+(1−t)y−p‖≤t‖x−p‖+(1−t)‖y−p‖≤r, where homogeneity used |t|=t and |1−t|=1−t. With p=0 and r=1 this is the closed unit ball of Definition 16.1.2, and the computation is the one Chapter 16 §01 made there.

  • (e) The Hermitian matrices form a real vector space: a real linear combination of Hermitian matrices is Hermitian. Let A⪰O and B⪰O. Then tA+(1−t)B is Hermitian, and for every x∈Cn, ⟨(tA+(1−t)B)x,x⟩=t⟨Ax,x⟩+(1−t)⟨Bx,x⟩≥0, since both inner products on the right are ≥0 by (P2) and both coefficients are ≥0. So (P1) and (P2) hold, and tA+(1−t)B⪰O. The same computation with any s,t≥0 in place of t and 1−t shows sA+tB⪰O, so the positive semidefinite matrices form a convex cone, in the sense of §05. (This is what Exercise (C2: The cone of positive matrices) (a) asks.)

The standard example of a convex set in coordinates gets its own name, because the rest of this section keeps returning to it.

Definition 18.1.2 (Standard Simplex)

For n≥1, the standard simplex in Rn is Δn:={t=(t1,…,tn)∈Rn:ti≥0 for every i,  t1+⋯+tn=1}.

Δ1={1} is a point, Δ2 is the segment from (1,0) to (0,1), and Δ3 is the triangle with corners e1,e2,e3. It is convex: it is the intersection of the n closed half-spaces {ti≥0} with the affine hyperplane {t1+⋯+tn=1}, and each of these is convex by Example (The first convex sets) (c). (That an intersection of convex sets is convex is the first item of Proposition 18.1.1 below; it is also immediate here, because a point that lies in each set lies in their intersection.) An element of Δn is a list of n weights: nonnegative, and adding up to 1.

Diagram. Labels: mathbf y, mathbf x, not convex: the dashed segment leaves the set

A nonexample by minimal change. Keep the closed unit ball B2 of R2 but take only its edge, the unit circle {x:‖x‖2=1}. Much survives: the circle is symmetric under x↦−x, bounded, and as round as the disc. But the clause “for all x,y” fails at x=e1, y=−e1, t=12: the midpoint is 0, and ‖0‖2=0≠1. What was lost is exactly the inequality ≤1 that absorbed the triangle inequality in Example (The first convex sets) (d); with an equality there is nothing to absorb it.

Why this definition. Two variations are worth trying.

  • Let t range over all of R. Then C must contain the whole line through any two of its points. The subspaces and cosets of Example (The first convex sets) meet this demand, which is why (b) never used 0≤t≤1; the half-spaces and balls do not. Exercise (C3: Sets that contain lines) shows that, apart from ∅, the sets meeting it are exactly the cosets.
  • Ask only for t=12. A set containing the midpoint of any two of its points is midpoint convex, which is genuinely weaker: Q2 is midpoint convex, yet it misses 12e1∈[0,e1]. Exercise (C1: Midpoint convexity) shows that the gap disappears for closed sets, defined at the end of this section.

The name is the everyday word: a convex lens has no dents.

Warning. A union of convex sets need not be convex. The two coordinate axes in R2 are subspaces, hence convex, but their union contains e1 and e2 and not their midpoint (12,12), which lies on neither axis. Even two points fail: {0}∪{e1} is a union of two convex sets and misses 12e1. The operation that does respect convexity is intersection (Proposition 18.1.1), and the convex replacement for a union is the hull of the union, defined below.

Quick check. Is {(x,y)∈R2:y≥|x|} convex? Is {(x,y)∈R2:y≤|x|} convex?

Solution. The first is convex. It is the set where both y−x≥0 and y+x≥0, an intersection of two closed half-spaces, and a point on a segment between two points of both half-spaces lies in both by Example (The first convex sets) (c). The second is not: (1,1) and (−1,1) belong to it, since 1≤1, but their midpoint (0,1) does not, since 1≤0 is false. The two sets differ only in the direction of the inequality, and the direction decides everything; a convex function such as |x| has a convex region above its graph (§10).

Here is a payoff. Chapter 17 §08 met a set of vectors that it could describe exactly, but whose convexity it proved only in an exercise. Everything needed to prove it is now in place.

Example (The vectors majorized by a fixed vector)

Let λ∈Rn. Prove that the set {d∈Rn:d≺λ} of vectors majorized by λ (Definition 17.8.1) is convex, and deduce that the diagonals of the Hermitian matrices with spectrum λ form a convex set.

Solution. For x∈Rn and 1≤k≤n, write sk(x)=x1↓+⋯+xk↓, the sum of the k largest entries.

Step 1: any k entries add up to at most sk(x). List the entries xi at a set I of k positions decreasingly as v1≥⋯≥vk. Since x has j entries v1,…,vj≥vj, we get xj↓≥vj for each j. Summing gives ∑i∈Ixi≤sk(x), with equality when I holds the positions of the k largest entries.

Step 2: sk respects averages. Let x,y∈Rn and 0≤t≤1, and let I hold the positions of the k largest entries of z=tx+(1−t)y. By Step 1, used once with equality and twice as an inequality, sk(z)=t∑i∈Ixi+(1−t)∑i∈Iyi≤tsk(x)+(1−t)sk(y), where the inequality again needs t≥0 and 1−t≥0.

Step 3: convexity. Let d≺λ and d′≺λ, and put z=td+(1−t)d′. For k≤n−1, Step 2 and (M1) for both vectors give sk(z)≤tsk(λ)+(1−t)sk(λ)=sk(λ). The total of z is t∑iλi+(1−t)∑iλi=∑iλi by (M2) for both. So z≺λ, and the set is convex.

For the deduction, the Schur–Horn Theorem (Theorem 17.8.5) says that the diagonals of the Hermitian matrices with eigenvalues λ are exactly the vectors d≺λ. So the set of those diagonals is the set just shown to be convex.

This is the statement of Exercise (C3: The possible diagonals form a convex set), now with a proof in the text, and Step 2 is a first glimpse of §10’s convex functions: sk satisfies sk(tx+(1−t)y)≤tsk(x)+(1−t)sk(y) because it is a maximum of linear functions.

18.1.2. Operations that preserve convexity

Checking the definition directly is rarely the fastest route. Most convex sets are built from simpler ones by a few operations, and the following proposition lists those that preserve convexity. It needs one construction. For subsets A,B⊆V and a real c, the Minkowski sum and the scalar multiple are A+B:={a+b:a∈A, b∈B},cA:={ca:a∈A}. A translate p+A is the Minkowski sum {p}+A; a coset (Definition 4.4.2) is a translate of a subspace.

Proposition 18.1.1 (Operations Preserving Convexity)

Let V and W be real vector spaces.

  • (a) The intersection of any family of convex subsets of V is convex.
  • (b) If T:V→W is linear, C⊆V is convex and D⊆W is convex, then the image T(C) and the preimage T−1(D)={v∈V:Tv∈D} are convex.
  • (c) If A,B⊆V are convex and c∈R, then A+B, cA, and every translate p+A are convex.

Idea. Rewrite the point of the segment so that convexity of the given sets applies: linearity moves the weights through T, and a Minkowski sum regroups term by term.

Proof. Throughout, let 0≤t≤1.

  • (a) Let (Cα) be a family of convex sets and x,y∈⋂αCα. For each α, both points lie in Cα, so tx+(1−t)y∈Cα by convexity of Cα. Hence the point lies in every Cα, that is, in the intersection. (The intersection of the empty family is V by convention, and V is convex.)

  • (b) Let Tx,Ty∈T(C) with x,y∈C. By linearity, tTx+(1−t)Ty=T(tx+(1−t)y), and tx+(1−t)y∈C by convexity; so the point lies in T(C). For the preimage, let Tx,Ty∈D. Then T(tx+(1−t)y)=tTx+(1−t)Ty∈D by convexity of D, so tx+(1−t)y∈T−1(D).

  • (c) Let a+b and a′+b′ lie in A+B. Rearranging, t(a+b)+(1−t)(a′+b′)=(ta+(1−t)a′)+(tb+(1−t)b′), and the two brackets lie in A and in B by convexity. So the point lies in A+B. The scalar multiple cA is the image of A under the linear map v↦cv, and is convex by (b). A translate p+A={p}+A is convex because a single point is convex (Example (The first convex sets) (a)). This proves the proposition.

The proposition turns many checks into one line. The solution set of a system of linear inequalities, {x∈Rn:Ax≤b}=⋂i=1m{x:ai⊤x≤bi}, where ai⊤ is the i-th row of A∈Mm×n(R) and Ax≤b means ≤ in every entry, is an intersection of closed half-spaces (a zero row gives Rn or ∅), hence convex by (a). This is the kind of set that the closing remark of Chapter 3 §07 points to, where nonnegativity and capacities are added to a flow problem, and §06 of this chapter optimizes over it. The set of density matrices {A:A⪰O, trA=1} is convex for the same reason: it is the intersection of the positive semidefinite set of Example (The first convex sets) (e) with the preimage of {1} under the linear map tr.

18.1.3. Convex combinations and the convex hull

A convex set contains the segment between any two of its points. Apply that twice: it contains x1, x2, and hence every point of [x1,x2], and then every point on a segment from such a point to x3. The points reached are the averages of x1,x2,x3 with nonnegative weights, and the pattern deserves a name.

Definition 18.1.3 (Convex Combination)

Let V be a real vector space and x1,…,xk∈V, with k≥1. A convex combination of x1,…,xk is a vector t1x1+t2x2+⋯+tkxkwith (t1,…,tk)∈Δk, that is, with every ti≥0 and t1+⋯+tk=1.

It is a linear combination with two restrictions on the coefficients, and each restriction has a job. Dropping “ti≥0” gives the affine combinations of the next subsection; dropping “sum to 1” as well gives all linear combinations, and the span. A convex combination of two points is a point of the segment joining them, with (t,1−t) as the weights. The weights may be read as masses placed at the points, and the combination is then their center of mass. The case k=1 is included and is 1⋅x1=x1.

Lemma 18.1.2 (Convex Sets Contain Their Convex Combinations)

Let C be a convex subset of a real vector space. Then every convex combination of points of C lies in C.

Idea. Peel off the last point. A convex combination of k points is a combination of two points, one of which is a convex combination of the first k−1 points, rescaled so that its weights again add up to 1. Induction on k does the rest; the only care needed is not to divide by zero while rescaling.

Proof. We use induction on the number k of points. For k=1, the combination is x1∈C. Let k≥2, suppose the statement holds for k−1 points, and let x=∑i=1ktixi with xi∈C and (t1,…,tk)∈Δk.

Case 1: tk=1. Then the other weights are nonnegative and add up to 0, so all of them are 0, and x=xk∈C.

Case 2: tk<1. Put s=1−tk>0 and y=∑i=1k−1(ti/s)xi. The division is legal because s≠0. The coefficients ti/s are ≥0 and add up to (1−tk)/s=1, so y is a convex combination of k−1 points of C, and y∈C by the inductive hypothesis. Then x=sy+tkxk=(1−tk)y+tkxk, which lies in C by Definition 18.1.1, applied to the points xk and y of C with t=tk∈[0,1]. This completes the induction.

A set that is not convex can be enlarged to one that is. We want the most economical enlargement: nothing added that convexity does not force.

The convex hull of a set is the smallest convex set containing it.

Definition 18.1.4 (Convex Hull)

Let S be a subset of a real vector space V. The convex hull of S is the intersection of all convex subsets of V that contain S: convS:=⋂{C⊆V:C is convex and S⊆C}.

The family being intersected is never empty, because V itself is convex and contains S. By Proposition 18.1.1 (a), convS is convex; it contains S, since each set in the family does; and it lies inside every convex set containing S, since it is the intersection of all of them. So “smallest” in the slogan is literal: convS is a convex set containing S and contained in every other one. In particular, convC=C exactly when C is convex. This description from outside is clean but gives no way to decide whether a given point lies in the hull. The next theorem gives the description from inside.

Theorem 18.1.3 (The Hull Is the Set of Convex Combinations)

Let S be a subset of a real vector space V. Then convS is the set of all convex combinations of points of S: convS={∑i=1ktixi:k≥1, x1,…,xk∈S, (t1,…,tk)∈Δk}.

Idea. Call the right-hand side D. One inclusion is Lemma 18.1.2 applied to the convex set convS. For the other, convS is the smallest convex set containing S, so it suffices to show that D is some convex set containing S. An average of two averages is again an average, of the combined list.

Proof. Let D denote the right-hand side.

(⊇) The set convS is convex and contains S. By Lemma 18.1.2 it contains every convex combination of its own points, in particular of points of S. Hence D⊆convS.

(⊆) Each x∈S is the convex combination 1⋅x, so S⊆D. To see that D is convex, let x=∑i=1kaixi and y=∑j=1lbjyj be points of D, with all xi,yj∈S, and let 0≤t≤1. Then tx+(1−t)y=∑i=1k(tai)xi+∑j=1l((1−t)bj)yj, a combination of the k+l points x1,…,xk,y1,…,yl of S, with coefficients tai≥0 and (1−t)bj≥0 adding up to t⋅1+(1−t)⋅1=1. So tx+(1−t)y∈D, and D is convex. Since convS is contained in every convex set containing S, we get convS⊆D.

This proves convS=D.

A combination needs a point, so conv∅=∅; and, padding with zero weights and merging repeated points, conv{x1,…,xm} is the set of all ∑itixi with t∈Δm; since ∑itiei=(t1,…,tn), the standard simplex is the hull of the standard basis.

The theorem does not say how many points a combination needs. Every k is allowed, and for an infinite S nothing in it bounds k. That question is the business of §02.

Example (Deciding membership in a triangle)

Let p1=(1,0), p2=(3,1), p3=(0,2) in R2. Decide whether x=(54,34) and y=(2,2) lie in conv{p1,p2,p3}.

Solution. By Theorem 18.1.3 and the remark after it, a point z lies in the hull exactly when z=t1p1+t2p2+t3p3 for some t∈Δ3. The two coordinates and the condition t1+t2+t3=1 give three linear equations in t1,t2,t3, with coefficient matrix M=(130012111),detM=5≠0. So each z has exactly one solution t, and z is in the hull if and only if that solution has no negative entry.

For x, the solution is t=(12,14,14). Check: 12(1,0)+14(3,1)+14(0,2)=(12+34,14+12)=(54,34), and the weights add up to 1. All three are ≥0, so x lies in the hull.

For y, the solution is t=(−25,45,35). Check: −25(1,0)+45(3,1)+35(0,2)=(−25+125,45+65)=(2,2), and −25+45+35=1. The only solution has t1<0, so no convex combination equals y, and y∉conv{p1,p2,p3}. The negative weight even says where y is: on the far side of the line through p2 and p3 from p1.

Quick check. Is (12,12,12) in the convex hull of 0, e1+e2, e2+e3, e1+e3 in R3?

Solution. Yes. Give each of the four points weight 14: the weights are ≥0 and add up to 1, and 14(0+(e1+e2)+(e2+e3)+(e1+e3))=14(2,2,2)=(12,12,12). By Theorem 18.1.3, the point lies in the hull. One convex combination is a complete certificate of membership; proving non-membership, as for y above, needs an argument about all combinations at once.

18.1.4. Affine combinations and the affine hull

Dropping the sign condition from a convex combination gives the other natural kind of average. It describes the flat pieces of V: lines, planes, and their analogues, not necessarily through 0. Chapter 4 §04 already has these objects, as cosets p+U of subspaces, and the point of this subsection is to connect them with combinations.

Definition 18.1.5 (Affine Combination, Affine Hull)

Let V be a real vector space.

  • (a) An affine combination of x1,…,xk∈V, k≥1, is a vector ∑i=1ktixi with real ti satisfying t1+⋯+tk=1. No sign condition is imposed.
  • (b) An affine subspace of V is a coset p+U of a subspace U (Definition 4.4.2). Its dimension is dim⁡U.
  • (c) The affine hull of S⊆V, written affS, is the set of all affine combinations of points of S.

The dimension in (b) is well defined, because the coset determines its subspace: U={a−b:a,b∈p+U}. Indeed each such difference is (p+u)−(p+w)=u−w∈U, and each u∈U is the difference (p+u)−p. So a line in R3 not through 0 is an affine subspace of dimension 1, and a single point {p}=p+{0} is one of dimension 0.

Proposition 18.1.4 (The Affine Hull Is a Coset)

Let S be a nonempty subset of a real vector space V, let x0∈S, and put U=span{x−x0:x∈S}. Then affS=x0+U, and affS is contained in every affine subspace of V that contains S. In particular U does not depend on the choice of x0∈S.

Idea. Since the weights add up to 1, an affine combination is x0 plus a linear combination of the differences xi−x0; that identity, read in both directions, gives the equality, and minimality follows because an affine subspace through x0 is x0 plus a subspace.

Proof. (⊆) Let x=∑itixi with xi∈S and ∑iti=1. Since the ti add up to 1, x0=∑itix0, and therefore x=x0+∑iti(xi−x0)∈x0+U.

(⊇) An element of x0+U is x0+∑jcj(yj−x0) for some yj∈S and real cj, by Definition 1.3.2. It equals (1−∑jcj)x0+∑jcjyj, a combination of points of S whose coefficients add up to 1, hence an affine combination.

Now let p+W be an affine subspace containing S. Since x0∈p+W, Lemma 4.4.3 (b) gives p+W=x0+W. Each x∈S also lies in x0+W, so x−x0∈W. Thus W is a subspace containing every x−x0, and U⊆W by Theorem 1.3.1. Hence affS=x0+U⊆x0+W. Finally, U is the subspace determined by the coset affS, by the remark after Definition 18.1.5, and that coset does not mention x0. This proves the proposition.

So the affine hull is to affine subspaces what the span is to subspaces, and what the convex hull is to convex sets: the smallest one containing S. It also gives every convex set a dimension. The dimension of a nonempty convex set C is dim⁡affC. A segment in R3 has dimension 1 and a triangle dimension 2. For Δn, take x0=e1 in Proposition 18.1.4: each t−e1 has coordinates adding up to 0, so U lies in the kernel H of t↦t1+⋯+tn, which has dimension n−1 by Theorem 2.3.1 (the map is surjective onto R); and U contains the n−1 vectors ei−e1 (i≥2), independent because the i-th coordinate of ∑j≥2cj(ej−e1) is ci, so U=H by Theorem 1.6.8. Hence Δn has dimension n−1, and it is flat inside Rn: no ball of positive radius fits inside it.

18.1.5. Closed and open sets

The later sections take limits: §03 needs a nearest point of a convex set to exist, and §02 needs the hull of a compact set to be compact. Chapter 16 §02 used the right notion in passing, inside Corollary 16.2.5; here it is given a name, together with its partner.

Throughout this subsection, V is a finite-dimensional real vector space with a norm ‖⋅‖. By Example (Inner products, weights, and a function space) (a), an inner product space is a special case, with the induced norm. A sequence (xk) converges to x, written xk→x, if ‖xk−x‖→0. By Corollary 16.2.3 (a), whether xk→x does not depend on which norm is used, so neither does anything defined from it below.

A closed set keeps the limits of its sequences. An open set is one that every sequence converging to one of its points must eventually enter.

Definition 18.1.6 (Closed Set, Open Set)

Let V be a finite-dimensional real vector space with a norm, and let K,U⊆V.

  • (a) K is closed if, whenever (xk) is a sequence of points of K with xk→x for some x∈V, the limit x lies in K.
  • (b) U is open if, whenever xk→x with x∈U, there is an index N such that xk∈U for every k≥N.

By Corollary 16.2.3 (a), both properties are the same for every norm on V. Closedness in (a) is the notion used in Corollary 16.2.5.

In words: (a) demands that no convergent sequence inside K has its limit outside, and (b) that every sequence converging to a point of U is eventually inside U. This is the sequential form, matching the way Chapter 16’s introduction defines continuity; it is the form taken as the definition, and Proposition 18.1.6 (a) gives the equivalent ball form, which §03 and §10 use.

Continuity will be needed for linear maps, and in finite dimension it costs nothing.

Lemma 18.1.5 (Linear Maps Are Lipschitz)

Let V and W be finite-dimensional real vector spaces with norms, and let T:V→W be linear. There is a constant M≥0 such that ‖Tx−Ty‖≤M‖x−y‖for all x,y∈V. In particular xk→x implies Txk→Tx; and every linear functional φ:V→R, with |⋅| as the norm on R, is continuous.

Idea. In a basis, ‖Tx‖ is at most a constant times the 1-norm of the coordinates of x, and norm equivalence trades that norm for the given one.

Proof. If V={0}, then T=0 and M=0 works. Otherwise let (v1,…,vn) be a basis of V, and write x=∑ixivi. The function N(x)=∑i|xi| is a norm on V: it is the 1-norm of the coordinate vector (Example (The 1-, 2-, and ∞-norms on Fn)), and the coordinate map is linear (Theorem 1.5.2) and injective, so (N1), (N2) and (N3) transfer. By Theorem 16.2.2 there is c>0 with N(x)≤c‖x‖ for every x. By (N3) and (N2) of Definition 16.1.1 in W, ‖Tx‖=‖∑ixiTvi‖≤∑i|xi|‖Tvi‖≤(maxi‖Tvi‖)N(x)≤M‖x‖, with M=cmaxi‖Tvi‖. Applying this to x−y and using Tx−Ty=T(x−y) gives the inequality. If ‖xk−x‖→0, then ‖Txk−Tx‖≤M‖xk−x‖→0. The statement about φ is the case W=R.

This is Step 1 of Lemma 16.3.1, with a basis of V in place of the standard basis of Fn.

Proposition 18.1.6 (Closed and Open Sets: First Facts)

Let V be a finite-dimensional real vector space with a norm.

  • (a) A subset U⊆V is open if and only if for every x∈U there is a real r>0 with {y∈V:‖y−x‖<r}⊆U.
  • (b) The intersection of any family of closed sets is closed, and the union of finitely many closed sets is closed.
  • (c) For a linear functional φ on V and c∈R, the sets {φ≤c}, {φ≥c}, and {φ=c} are closed. Every closed ball {x:‖x−p‖≤r} is closed, and every subspace and every coset of a subspace is closed.

Idea. Each part unwinds the definitions. For the converse in (a), radii 1/k build a sequence breaking openness; for unions in (b), some set catches infinitely many terms.

Proof.

  • (a) (⇐) Let xk→x∈U, and take r as in the hypothesis. Since ‖xk−x‖→0, there is N with ‖xk−x‖<r for k≥N, and then xk∈U.

    (⇒) Suppose some x∈U has no such r. Then for each k≥1 the radius r=1/k fails, so there is xk∉U with ‖xk−x‖<1/k. Hence xk→x∈U while no xk lies in U, and U is not open.

  • (b) Let (Kα) be closed, and xk→x with every xk∈⋂αKα. For each α, the sequence lies in Kα, so x∈Kα. Hence x lies in the intersection. For a union K1∪⋯∪Km: if xk→x with every xk in the union, then some Ki contains xk for infinitely many k, because there are only m sets. Those terms form a subsequence of points of Ki converging to x, so x∈Ki by closedness of Ki.

  • (c) Let φ(xk)≤c for every k, and xk→x. By Lemma 18.1.5, φ(xk)→φ(x), and a nonstrict inequality survives a limit, so φ(x)≤c. The same argument handles ≥, and {φ=c} is the intersection of the two, closed by (b). For the ball, let ‖xk−p‖≤r and xk→x. By Lemma 16.1.1, |‖xk−p‖−‖x−p‖|≤‖xk−x‖→0, so ‖x−p‖ is the limit of numbers ≤r, and is ≤r.

Finally let U be a subspace, with basis (u1,…,um). By Theorem 1.6.5 extend it to a basis (u1,…,um,vm+1,…,vn) of V, and let φj, for m<j≤n, send a vector to its coefficient on vj; each φj is linear by Theorem 1.5.2. A vector lies in U exactly when these coefficients all vanish, since the basis expansion is unique (Theorem 1.5.1). So U=⋂j>m{φj=0}, which is closed by the previous paragraph and (b); when m=n, U=V, which is closed because every limit lies in V. A coset p+U is closed because xk→x with xk∈p+U gives xk−p→x−p with xk−p∈U, hence x−p∈U. This proves the proposition.

By (b) and (c), the solution set {x:Ax≤b} of a system of linear inequalities is closed as well as convex, and so is Δn. An open ball {x:‖x−p‖<r} is open by (a): for x in it, the radius r−‖x−p‖>0 works, by the triangle inequality.

Warning. “Closed” is not the opposite of “open”, and it is not “closed under an operation”. The interval [0,1)⊆R is neither: 1−1/k stays inside and converges to 1∉[0,1), and −1/k converges to 0∈[0,1) without ever entering it. At the other extreme, ∅ and V are both closed and open. And Q2 is closed under addition and midpoints, yet not a closed subset of R2: by fact (A1) of Chapter 16’s introduction, 2 is a limit of rationals qk, and (qk,0)→(2,0).

Quick check. Is the open half-plane {(x,y)∈R2:x>0} closed? Is Δn open in Rn?

Solution. Neither. The points (1/k,0) lie in the half-plane and converge to (0,0), which does not, so the half-plane is not closed. For Δn, take x=e1∈Δn and xk=(1+1/k)e1→e1; no xk lies in Δn, because its coordinates add up to 1+1/k≠1. So Δn is not open, which is the flatness of the simplex seen through sequences. (It is closed, by (b) and (c) of Proposition 18.1.6.)

With convex sets, hulls, and closed sets in hand, the question left open by Theorem 18.1.3 can be asked precisely: how many points does a convex combination need? The answer, in §02, depends only on the dimension, and it is what makes the hull of a compact set compact.

18.1.6. Exercises

A. Check your understanding

Exercise (A1)
  • (a) State Definition 18.1.1 and Definition 18.1.3.
  • (b) True or false: the union of two convex sets is convex. Justify your answer.
  • (c) True or false: the intersection of two convex sets is convex. Justify your answer.
  • (d) Explain why the sphere {x∈R3:‖x‖2=1} is not convex, naming the clause that fails.
  • (e) Describe convS and affS for S={e1,e2}⊆R2.
  • (f) Give a subset of R that is neither open nor closed, and one that is both.

Solution.

  • (a) A subset C of a real vector space is convex if tx+(1−t)y∈C for all x,y∈C and every t∈[0,1]. A convex combination of x1,…,xk is ∑itixi with every ti≥0 and ∑iti=1.

  • (b) False. The two coordinate axes of R2 are convex, and their union contains e1,e2 but not 12(e1+e2).

  • (c) True, by Proposition 18.1.1 (a): a point of a segment between two points of both sets lies in each set, by convexity of each.

  • (d) The clause “for all x,y∈C” fails for x=e1, y=−e1, t=12: both points lie on the sphere, and the midpoint 0 does not.

  • (e) By Theorem 18.1.3, convS={te1+(1−t)e2:0≤t≤1}, the segment from e1 to e2, which is Δ2. By Definition 18.1.5, affS={te1+(1−t)e2:t∈R}, the whole line x1+x2=1.

  • (f) [0,1) is neither (see the warning above). R is both: every limit of real numbers lies in R, so it is closed, and every sequence lies in R, so it is open; the same holds for ∅ vacuously.

B. Practice

Exercise (B1: Determine which are convex)

Determine which of the following sets are convex. Justify your answer.

  • (a) {(x,y)∈R2:y≥x2}.
  • (b) {(x,y)∈R2:xy≥1}.
  • (c) {A∈M2(R):A⊤=A, detA≥0}.
  • (d) {x∈R3:x1+2x2−x3=4}.

Solution. Throughout, let 0≤t≤1.

  • (a) Convex. Let y≥x2 and y′≥x′2, and put xt=tx+(1−t)x′. Expanding, tx2+(1−t)x′2−xt2=t(1−t)(x−x′)2≥0, so ty+(1−t)y′≥tx2+(1−t)x′2≥xt2.

  • (b) Not convex. The points (1,1) and (−1,−1) satisfy xy=1, but their midpoint (0,0) has xy=0<1.

  • (c) Not convex. A=diag(1,0) and B=diag(0,−1) are symmetric with detA=detB=0, but 12(A+B)=diag(12,−12) has determinant −14<0.

  • (d) Convex. It is the affine hyperplane {φ=4} for the linear functional φ(x)=x1+2x2−x3, convex by Example (The first convex sets) (c). It is also a coset of kerφ, convex by Example (The first convex sets) (b).

Exercise (B2: Membership in a hull)

Let p1=(0,0), p2=(4,1), p3=(1,3) in R2. Decide whether (2,2) and (3,3) lie in conv{p1,p2,p3}. Justify your answer.

Solution. As in Example (Deciding membership in a triangle), z lies in the hull exactly when the system t1p1+t2p2+t3p3=z, t1+t2+t3=1 has a solution with every ti≥0. Its coefficient matrix (041013111) has determinant 11≠0 (expand along the first column: 1⋅(4⋅3−1⋅1)=11), so the solution is unique.

For z=(2,2): t=(111,411,611). Check: 411(4,1)+611(1,3)=(16+611,4+1811)=(2,2), and 1+4+611=1. All weights are ≥0, so (2,2) is in the hull.

For z=(3,3): t=(−411,611,911). Check: 611(4,1)+911(1,3)=(24+911,6+2711)=(3,3), and −4+6+911=1. The unique solution has t1<0, so no convex combination equals (3,3), and it is not in the hull.

C. Going deeper

Exercise (C1: Midpoint convexity)

Let V be a finite-dimensional real vector space with a norm, and let C⊆V be midpoint convex: 12(x+y)∈C whenever x,y∈C.

  • (a) Prove by induction on m that tx+(1−t)y∈C for all x,y∈C and every dyadic t=j/2m with 0≤j≤2m.
  • (b) Prove that if C is also closed, then C is convex.
  • (c) Give a midpoint convex subset of R that is not convex, and say which hypothesis of (b) it violates.

Hint for (b): approximate t by ⌊2mt⌋/2m (the floor exists and 2−m→0 by the completeness of R, fact (A1) of Chapter 16’s introduction).

Solution.

  • (a) For m=0, t∈{0,1} and the point is y or x. Suppose the claim holds for m, and let t=j/2m+1. If j is even, t=(j/2)/2m and the inductive hypothesis applies. If j is odd, then t=12(t−+t+) with t±=(j±1)/2m+1=(j±1)/22m, which are dyadic of level m and lie in [0,1]. By the inductive hypothesis z±=t±x+(1−t±)y∈C, and 12(z−+z+)=12(t−+t+)x+(1−12(t−+t+))y=tx+(1−t)y, which lies in C by midpoint convexity.

  • (b) Let x,y∈C and t∈[0,1]. Put tm=⌊2mt⌋/2m, a dyadic number in [0,1] with 0≤t−tm<2−m (the floor exists and 2−m→0 by the completeness of R, fact (A1) of Chapter 16’s introduction). By (a), zm=tmx+(1−tm)y∈C. Then ‖zm−(tx+(1−t)y)‖=|tm−t|‖x−y‖<2−m‖x−y‖→0, so zm→tx+(1−t)y, and closedness of C puts the limit in C. Hence C is convex.

  • (c) Q⊆R. The midpoint of two rationals is rational, but 0,1∈Q while t⋅1+(1−t)⋅0=t∉Q for t=1/2. The set is not closed: the rationals ⌊10k/2⌋/10k converge to 1/2 (the floor exists and 10−k→0 by the completeness of R, fact (A1) of Chapter 16’s introduction).

Exercise (C3: Sets that contain lines)

Let V be a real vector space and A⊆V a nonempty set containing tx+(1−t)y for all x,y∈A and every real t.

  • (a) Fix a∈A and put U={x−a:x∈A}. Prove that U is a subspace of V, so that A=a+U is an affine subspace.
  • (b) Hence prove that a nonempty S⊆V is an affine subspace if and only if S=affS.

Hint for (a): for closure under addition, use a midpoint and then a scaling.

Solution.

  • (a) 0=a−a∈U. Scalars: let u=x−a∈U and c∈R. The point cx+(1−c)a lies in A by hypothesis, and it equals a+cu; so cu∈U. Sums: let u=x−a and w=y−a with x,y∈A. The midpoint m=12x+12y∈A, so 12(u+w)=m−a∈U, and by the scalar step with c=2, u+w∈U. By Theorem 1.2.1, U is a subspace, and A=a+U by the definition of U.

  • (b) (⇐) If S=affS, then S is a coset by Proposition 18.1.4. (⇒) If S=p+W is an affine subspace, then affS⊆S by the minimality clause of Proposition 18.1.4, and S⊆affS because each x∈S is the affine combination 1⋅x. So S=affS.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.