Convex Sets and Convex Functions
Why Convexity Is the Dividing Line
In wireless system design we constantly solve optimization problems — allocating power, designing beamformers, scheduling users. The fundamental question is: can we find the global optimum efficiently?
The answer hinges on convexity. If an optimization problem is convex, every local minimum is a global minimum, and efficient polynomial-time algorithms exist. If not, we generally face NP-hard problems and must settle for heuristics.
This section develops the vocabulary: convex sets, convex functions, and the key tests for verifying convexity.
Definition: Convex Set
Convex Set
A set is convex if for every and every ,
In words: the line segment connecting any two points in lies entirely within .
The empty set and singletons are convex by convention (the line-segment condition is vacuously satisfied).
Example: Standard Examples of Convex Sets
Verify that each of the following sets is convex:
- Hyperplane:
- Halfspace:
- Euclidean ball:
- Ellipsoid: where .
Hyperplane
Let satisfy and . Then .
Halfspace
.
Euclidean ball
By the triangle inequality and convexity of the norm: .
Ellipsoid
The substitution maps the ellipsoid to the unit ball, which is convex. Since an affine pre-image of a convex set is convex, the ellipsoid is convex.
Definition: Convex Cone
Convex Cone
A set is a cone if for all .
A convex cone is a set that is both convex and a cone: for any and ,
The positive semidefinite cone is a fundamental convex cone in optimization.
The PSD cone is self-dual: its dual cone is itself. This property underlies the elegance of SDP duality.
Theorem: Intersection of Convex Sets Is Convex
If is any (possibly infinite) collection of convex sets, then is convex.
Each set independently "passes" the line-segment test. The intersection inherits this property because a line segment in the intersection lies in every .
Direct verification
Let and . For each , both and belong to , so by convexity of the combination . Since this holds for every , the combination is in .
Definition: Polyhedron
Polyhedron
A polyhedron is the intersection of finitely many halfspaces and hyperplanes:
where denotes componentwise inequality. A bounded polyhedron is called a polytope.
Every feasible region of a linear program is a polyhedron. In wireless scheduling, the rate region of a broadcast channel is a polyhedron (or its convex hull).
Convex Set Visualization
Explore the intersection of halfplanes in and verify that the resulting polyhedron is convex. Drag the halfplane parameters to reshape the feasible region.
Parameters
Convex vs. Non-Convex Sets — The Line Segment Test
Key Takeaway
A polyhedron is always convex because it is the intersection of halfspaces, each of which is convex. This is why linear and quadratic programs have well-structured feasible regions.
Definition: Convex Function
Convex Function
A function is convex if its domain is a convex set and for all and ,
The function is strictly convex if the inequality is strict whenever and .
It is concave if is convex.
Equivalently, is convex iff its epigraph is a convex set. This is the "epigraph characterization."
Definition: Epigraph
Epigraph
The epigraph of is
is convex if and only if is a convex set. The epigraph is the "region above the graph" of .
Theorem: First-Order Condition for Convexity
Let be differentiable. Then is convex if and only if is convex and
for all .
The first-order Taylor approximation (the tangent hyperplane) is a global under-estimator of a convex function. This is the key geometric property that makes gradient-based algorithms work: the gradient always points toward the minimizer.
For the forward direction, use the definition with .
For the converse, apply the inequality twice with roles swapped and combine.
Forward direction ($\Rightarrow$)
Assume is convex. Fix . By convexity: . Rearranging: . Taking : .
Converse ($\Leftarrow$)
Assume the first-order condition holds. Let . Applying the condition at : and . Multiply by and respectively and add: . The bracketed term equals , proving convexity.
Theorem: Second-Order Condition for Convexity
Let be twice differentiable. Then is convex if and only if is convex and the Hessian is positive semidefinite everywhere:
is strictly convex if for all (this is sufficient but not necessary for strict convexity).
The Hessian being PSD means the function curves upward in every direction — like a bowl, never a saddle.
Reduce to one dimension
For any and direction , define . Then .
Apply one-dimensional condition
is convex iff is convex for every such restriction. A scalar function is convex iff for all . This holds for all iff .
Example: Verifying Convexity via the Hessian
Show that the following functions are convex:
- where
- for any
- (log-sum-exp building block)
Quadratic form
and . Hence is convex (and strictly convex iff ).
Exponential
, for all .
Softplus / log-logistic
Let . Then has . Since is a convex function of a linear (affine) argument, the composition is convex.
Common Mistake: Maximising a Concave Function Minimising a Convex One?
Mistake:
Students sometimes think that maximising a concave function is a fundamentally different problem from minimising a convex function.
Correction:
Maximising (concave) is identical to minimising (convex). The distinction is purely notational. In wireless communications, capacity-maximisation problems (concave objective) are exactly as "easy" as their minimisation reformulations.
Theorem: Operations That Preserve Convexity
The following operations preserve convexity of functions:
- Non-negative weighted sum: If are convex and , then is convex.
- Pointwise supremum: If is convex for each , then is convex.
- Composition with affine map: If is convex, then is convex.
- Partial minimisation: If is convex in , then is convex (provided ).
Rule 2 is especially powerful: a maximum of convex functions is convex. For example, is convex as the pointwise max of the convex functions .
Proof of rule 2 (pointwise supremum)
. Each is convex (since is convex), and the intersection of convex sets is convex. Hence is convex, so is convex.
Why This Matters: Convexity in Rate Regions
The capacity region of a multiple-access channel (MAC) is a convex polytope. The sum-rate boundary is a concave function of the individual rates. Understanding convexity lets us move freely between "maximise sum rate" and "find the Pareto-optimal rate tuple" — both are convex optimisation problems.
See full treatment in Turbo Codes
Historical Note: A Brief History of Convexity
1896–2004The study of convex sets goes back to Hermann Minkowski (1896), who used convex bodies in his geometry of numbers. Werner Fenchel developed convex conjugates in the 1940s. The systematic treatment of convex optimisation was pioneered by Rockafellar's Convex Analysis (1970). The field was transformed by Boyd and Vandenberghe's 2004 textbook, which showed that many engineering problems — including wireless resource allocation — are secretly convex.
Quick Check
Which of the following sets is not convex?
(unit disk)
(exterior of unit disk)
( ball)
(PSD cone)
Correct. The exterior of a ball is not convex: take two points on opposite sides and their midpoint is the origin, which has and lies outside the set.
Quick Check
Which function is convex on ?
on
for all . So is strictly convex on its domain.
Convex Set
A set where the line segment between any two points in remains in : for .
Related: Convex Function, Convex Cone, Polyhedron
Convex Function
A function whose epigraph is a convex set, equivalently, for .
Related: Convex Set, Epigraph, Hessian
Epigraph
The set of points lying on or above the graph of a function: . is convex iff its epigraph is a convex set.
Related: Convex Function
Convex Cone
A set that is closed under non-negative linear combinations: for . The PSD cone is the most important example in optimisation.
Related: Convex Set, Psd Cone