convex analysis
Convex Functions
You should know: convex sets, derivative
Overview
A convex function is a function whose epigraph (the set of points on or above its graph) is a convex set, or equivalently one that lies below any chord connecting two of its points. Convex functions are the central objects of convex analysis: any local minimum is automatically a global minimum, gradient-based methods converge reliably, and a rich duality theory applies. They arise throughout mathematics, statistics, machine learning, and economics.
Intuition
A convex function's graph is 'bowl-shaped' — it curves upward. No matter which two points you connect with a chord, the function lies at or below the chord. This simple geometric property has far-reaching analytical consequences: any critical point is a global minimum, and the function can be characterised entirely by its tangent lines (subdifferentials).
Formal Definition
Let C ⊆ ℝⁿ be a convex set. A function f: C → ℝ is convex if for all x, y ∈ C and θ ∈ [0,1]:
Notation
| Notation | Meaning |
|---|---|
| Epigraph of f | |
| Effective domain of f (where f < +∞) | |
| Convex conjugate (Fenchel conjugate) | |
| Subdifferential of f at x — set of subgradients |
Properties
Local minima are global
Jensen's inequality
Sublevel sets are convex
Nonneg weighted sum preserves convexity
Worked Examples
- 1
f is twice differentiable on ℝ. Compute f''(x).
- 2
Since f''(x) ≥ 0 for all x, f is convex.
✓ Answer
f(x) = x² is strictly convex since f'' = 2 > 0.
Practice Problems
Prove that if f and g are convex and g is non-decreasing, then h(x) = g(f(x)) is convex.
Common Mistakes
Thinking every quasiconvex function is convex
Quasiconvex functions have convex sublevel sets, but need not satisfy the midpoint inequality. Example: f(x) = x³ is quasiconvex on ℝ but not convex.
Assuming convex functions are always differentiable
Convex functions can be non-differentiable; they have subdifferentials (sets of subgradients) at non-smooth points. For example, f(x) = |x| is convex but not differentiable at 0.
Quiz
Historical Background
The study of convex functions began with Jensen's inequality (1906), which formalised the 'midpoint convexity' notion. Fenchel's conjugate transform (1949) unified convex analysis and provided the foundation for duality theory. Rockafellar's 1970 monograph 'Convex Analysis' became the canonical reference.
- 1906
Jensen proves Jensen's inequality for convex functions
Johan Jensen
- 1949
Fenchel introduces the convex conjugate (Legendre–Fenchel transform)
Werner Fenchel
- 1970
Rockafellar's Convex Analysis provides the definitive systematic treatment
R. Tyrrell Rockafellar
Summary
- f is convex if f(θx+(1-θ)y) ≤ θf(x)+(1-θ)f(y) for all x,y and θ ∈ [0,1].
- Differentiable convexity: gradient inequality f(y) ≥ f(x)+∇f(x)ᵀ(y-x); twice-differentiable: ∇²f ≽ 0.
- Any local minimum of a convex function is a global minimum.
- Key examples: norms, exponentials, log-sum-exp, quadratic forms with PSD matrix, negative entropy.
References
- BookBoyd, S. and Vandenberghe, L. — Convex Optimization (2004), Chapter 3. Free at https://web.stanford.edu/~boyd/cvxbook/
- WebsiteWikipedia — Convex function
- WebsiteMathWorld — Convex Function
Mathematics