Article · Wikipedia archive · Last revised Jun 3, 2026

Convex analysis

Convex analysis is the branch of mathematics that studies convex sets, convex functions, and their applications to optimization, functional analysis, variational analysis, convex geometry, economics, and related fields. A set is convex if it contains every line segment joining two of its points. A function is convex if its value at a weighted average of two points is no greater than the corresponding weighted average of its values. Informally, convex sets have no inward dents, and convex functions have graphs that bend upward.

Last revised
Jun 3, 2026
Read time
≈ 18 min
Length
4,120 w
Citations
39
Source
A 3-dimensional convex polytope. Convex analysis includes not only the study of convex subsets of Euclidean spaces but also the study of convex functions on abstract spaces. source ↗

Convex analysis is the branch of mathematics that studies convex sets, convex functions, and their applications to optimization, functional analysis, variational analysis, convex geometry, economics, and related fields. A set is convex if it contains every line segment joining two of its points. A function is convex if its value at a weighted average of two points is no greater than the corresponding weighted average of its values. Informally, convex sets have no inward dents, and convex functions have graphs that bend upward.

Convexity implies certain global features of a problem. For example, in a convex optimization problem, every local minimum is also a global minimum. Convex sets can often be separated by hyperplanes, and convex functions can be studied through supporting affine functions. Convex analysis is a common thread in modern optimization, duality theory, and the study of nonsmooth problems. The tools of convex analysis include the epigraph of a function, the subdifferential, the Legendre–Fenchel transform, and the Fenchel–Moreau theorem. These allow many constrained problems to be rewritten in geometric form and many optimization problems to be paired with dual problems.

Basic examples

The simplest convex subsets of Euclidean space are points, line segments, affine subspaces, half-spaces, balls, cones, and convex polytopes. Intersections of convex sets are convex, so many complicated convex sets can be described as intersections of simpler ones. For example, a polyhedron in R n {\displaystyle \mathbb {R} ^{n}} is the intersection of finitely many half-spaces.

Examples of convex functions include affine functions, quadratic functions (with positive semidefinite Hessian), norms, and the maximum of a family of affine functions. For instance,

f ( x ) = x 2 {\displaystyle f(x)=x^{2}}

is convex on the real line, and

f ( x ) = x {\displaystyle f(x)=\|x\|}

is convex on any normed vector space.

Convex analysis also uses extended real-valued functions, which may take the value + {\displaystyle +\infty } . This convention allows constraints to be incorporated directly into a function. If C {\displaystyle C} is a convex set, its indicator function in convex analysis is defined by

ι C ( x ) = { 0 , x C , + , x C . {\displaystyle \iota _{C}(x)={\begin{cases}0,&x\in C,\\+\infty ,&x\notin C.\end{cases}}}

Minimizing f {\displaystyle f} over C {\displaystyle C} is then the same as minimizing f + ι C {\displaystyle f+\iota _{C}} over the whole space.1

Convex sets and convex functions

A subset C {\displaystyle C} of a real vector space is convex if, whenever x , y C {\displaystyle x,y\in C} and 0 t 1 {\displaystyle 0\leq t\leq 1} ,

t x + ( 1 t ) y C . {\displaystyle tx+(1-t)y\in C.}

This means that the line segment between x {\displaystyle x} and y {\displaystyle y} lies entirely in C {\displaystyle C} .

A function f : C R {\displaystyle f:C\to \mathbb {R} } , where C {\displaystyle C} is convex, is convex if

f ( t x + ( 1 t ) y ) t f ( x ) + ( 1 t ) f ( y ) {\displaystyle f(tx+(1-t)y)\leq tf(x)+(1-t)f(y)}

for all x , y C {\displaystyle x,y\in C} and all 0 t 1 {\displaystyle 0\leq t\leq 1} . It is strictly convex if the inequality is strict whenever x y {\displaystyle x\neq y} and 0 < t < 1 {\displaystyle 0<t<1} , apart from degenerate cases where the two sides are forced to be equal.

A convex function on an interval. source ↗

A function is convex if and only if its epigraph,

epi f = { ( x , r ) : f ( x ) r } , {\displaystyle \operatorname {epi} f=\{(x,r):f(x)\leq r\},}

is a convex set. The epigraph is the region lying on or above the graph of the function. This observation is one reason convex functions and convex sets are studied together: statements about convex functions can often be translated into statements about convex sets in one higher dimension.12

A function is convex if and only if its epigraph, the region above its graph, is a convex set. source ↗

For extended-real-valued functions f : X ( , + ] {\displaystyle f:X\to (-\infty ,+\infty ]} , the effective domain is

dom f = { x X : f ( x ) < + } . {\displaystyle \operatorname {dom} f=\{x\in X:f(x)<+\infty \}.}

A function is called proper if its effective domain is nonempty and it never takes the value {\displaystyle -\infty } . Proper convex functions are the usual objects of study in convex analysis.1

Finite and infinite dimensions

Convex analysis takes different forms in finite-dimensional and infinite-dimensional spaces. In finite-dimensional Euclidean space, many geometric and topological complications are absent: all norms are equivalent, every linear functional is continuous, and closed and bounded sets are compact. As a result, many results can be stated using ordinary Euclidean topology. For example, a continuous convex function on a closed bounded convex subset of R n {\displaystyle \mathbb {R} ^{n}} attains its minimum, and separation theorems can often be formulated in elementary geometric terms.13

In infinite-dimensional spaces, the topology of the underlying vector space becomes part of the theory. The relevant dual space is usually the continuous dual space, and many statements depend on whether one uses the norm topology, a weak topology, or another locally convex topology. Closed and bounded sets need not be compact, linear functionals may fail to be continuous unless continuity is assumed, and convex sets that are large in an algebraic sense may have empty interior in the norm topology.45

These differences affect optimization. In finite dimensions, coercivity or compactness hypotheses often ensure the existence of minimizers. In infinite-dimensional spaces, minimizing sequences may fail to have convergent subsequences in the norm topology. Existence results therefore often use weak compactness, lower semicontinuity, and reflexivity assumptions, such as those in the direct methods in the calculus of variations. For example, in a reflexive Banach space, closed bounded convex sets have useful weak compactness properties, making weak lower semicontinuity a standard tool in variational problems.46

Interior-point conditions also become more delicate in infinite dimensions. In finite-dimensional convex optimization, conditions such as Slater's condition are often expressed using the ordinary interior or relative interior of a convex set. In infinite-dimensional spaces, many natural convex sets have empty interior, so alternative notions such as algebraic interior, core, quasi-relative interior, or other constraint qualifications may be used.5

Duality is similarly affected. The Fenchel–Moreau theorem and related duality theorems require appropriate lower semicontinuity and convexity hypotheses relative to the chosen topology. Thus is closely tied to functional analysis, locally convex spaces, Banach spaces, Hilbert spaces, and monotone operator theory.126

Duality

Convex analysis allows many problems to be formulated both in terms of the original vector space and its dual space. For example, a convex set can be described both in terms of its set of points and the set of hyperplanes that meet it. A non-empty closed convex set can also be described by its set of supporting hyperplanes.

For convex functions, duality also plays an important role. Given a proper convex function f : X R {\displaystyle f:X\to \mathbb {R} } , the supporting hyperplanes of the epigraph are encoded by the convex conjugate, defined at a point x X {\displaystyle x^{*}\in X^{*}} by7 f ( x ) = sup z X { x , z f ( z ) } {\displaystyle f^{*}(x^{*})=\sup _{z\in X}\left\{\left\langle x^{*},z\right\rangle -f(z)\right\}} where the brackets , {\displaystyle \left\langle \cdot ,\cdot \right\rangle } denote the canonical duality x , z := x ( z ) . {\displaystyle \left\langle x^{*},z\right\rangle :=x^{*}(z).} The function f ( x ) {\displaystyle f^{*}(x^{*})} makes sense, more generally, regardless of the convexity of f {\displaystyle f} , but the convex conjugate of any function is always convex.

Geometrically, the convex conjugate describes the supporting affine functions of the epigraph of f {\displaystyle f} . For a fixed dual vector x {\displaystyle x^{*}} , the value f ( x ) {\displaystyle f^{*}(x^{*})} is the smallest constant c {\displaystyle c} such that the affine function

x x , x c {\displaystyle x\mapsto \langle x^{*},x\rangle -c}

lies below f {\displaystyle f} on its domain. Indeed, the definition of the conjugate is equivalent to

x , x f ( x ) f ( x ) {\displaystyle \langle x^{*},x\rangle -f^{*}(x^{*})\leq f(x)}

for all x {\displaystyle x} . Hence the hyperplane

r = x , x f ( x ) {\displaystyle r=\langle x^{*},x\rangle -f^{*}(x^{*})}

lies below the epigraph of f {\displaystyle f} . If this hyperplane touches the epigraph at ( x , f ( x ) ) {\displaystyle (x,f(x))} , then it is a supporting hyperplane there. This touching condition is equivalent to

f ( x ) + f ( x ) = x , x , {\displaystyle f(x)+f^{*}(x^{*})=\langle x^{*},x\rangle ,}

or equivalently x f ( x ) {\displaystyle x^{*}\in \partial f(x)} , the subdifferential of f {\displaystyle f} at x {\displaystyle x} .

Dual problems

Many problems in convex analysis have a corresponding dual problem. In general, the dual problem is formulated on a dual vector space and gives bounds on the value of the original, or primal, problem. Under additional hypotheses these bounds are exact, a property known as strong duality.

A simple geometric example is the relation between a norm and its dual norm. If {\displaystyle \|\cdot \|} is a norm on X {\displaystyle X} , its dual norm on X {\displaystyle X^{*}} is defined by

x = sup x 1 x , x . {\displaystyle \|x^{*}\|_{*}=\sup _{\|x\|\leq 1}\langle x^{*},x\rangle .}

Equivalently, the norm of x {\displaystyle x} can be recovered from the dual unit ball:

x = sup x 1 x , x . {\displaystyle \|x\|=\sup _{\|x^{*}\|_{*}\leq 1}\langle x^{*},x\rangle .}

Thus the unit ball of a norm and the unit ball of the dual norm determine one another by polar duality. More generally, if C {\displaystyle C} is a convex set containing the origin, its polar set is

C = { x X : x , x 1  for all  x C } . {\displaystyle C^{\circ }=\{x^{*}\in X^{*}:\langle x^{*},x\rangle \leq 1{\text{ for all }}x\in C\}.}

Under suitable closedness hypotheses, the bipolar theorem says that C {\displaystyle C} can be recovered from its polar by taking the polar again.1

A central analytic example is Fenchel duality. Let A : X Y {\displaystyle A:X\to Y} be a continuous linear map between locally convex spaces, and let f : X ( , + ] {\displaystyle f:X\to (-\infty ,+\infty ]} and g : Y ( , + ] {\displaystyle g:Y\to (-\infty ,+\infty ]} be proper convex functions. The primal problem

inf x X { f ( x ) + g ( A x ) } {\displaystyle \inf _{x\in X}\{f(x)+g(Ax)\}}

has the Fenchel dual problem

sup y Y { f ( A y ) g ( y ) } , {\displaystyle \sup _{y^{*}\in Y^{*}}\{-f^{*}(-A^{*}y^{*})-g^{*}(y^{*})\},}

where A : Y X {\displaystyle A^{*}:Y^{*}\to X^{*}} is the adjoint map. The inequality

sup y Y { f ( A y ) g ( y ) } inf x X { f ( x ) + g ( A x ) } {\displaystyle \sup _{y^{*}\in Y^{*}}\{-f^{*}(-A^{*}y^{*})-g^{*}(y^{*})\}\leq \inf _{x\in X}\{f(x)+g(Ax)\}}

is an instance of weak duality. Under standard regularity or constraint qualification assumptions, equality holds.18

The usual Lagrange duality of constrained optimization is a special case of this general principle. For a convex optimization problem

min x f 0 ( x ) subject to f i ( x ) 0 , i = 1 , , m , {\displaystyle \min _{x}f_{0}(x)\quad {\text{subject to}}\quad f_{i}(x)\leq 0,\quad i=1,\ldots ,m,}

where the functions f i {\displaystyle f_{i}} are convex, the Lagrangian is

L ( x , λ ) = f 0 ( x ) + i = 1 m λ i f i ( x ) , λ i 0. {\displaystyle L(x,\lambda )=f_{0}(x)+\sum _{i=1}^{m}\lambda _{i}f_{i}(x),\qquad \lambda _{i}\geq 0.}

The associated dual function is

q ( λ ) = inf x L ( x , λ ) , {\displaystyle q(\lambda )=\inf _{x}L(x,\lambda ),}

and the Lagrange dual problem is

sup λ 0 q ( λ ) . {\displaystyle \sup _{\lambda \geq 0}q(\lambda ).}

Every feasible choice of the multiplier vector λ {\displaystyle \lambda } gives a lower bound on the primal minimum. When a condition such as Slater's condition holds, the optimal dual value equals the optimal primal value for many finite-dimensional convex programs.9

For example, the linear programming problem

min { c T x : A x = b ,   x 0 } {\displaystyle \min\{c^{T}x:Ax=b,\ x\geq 0\}}

has the dual problem

max { b T y : A T y c } . {\displaystyle \max\{b^{T}y:A^{T}y\leq c\}.}

The dual variables y {\displaystyle y} may be interpreted as the multipliers attached to the equality constraints A x = b {\displaystyle Ax=b} .

Duality is especially useful for certifying solutions to optimization problems. If a feasible primal point and a feasible dual point have the same objective value, then both are optimal. In this way, convex duality converts an optimization problem into a pair of mutually checking problems, one in the original space and one in the dual space.

General perturbation formulation

A general way to construct dual problems in convex analysis uses a perturbation function. Let X {\displaystyle X} and Y {\displaystyle Y} be locally convex spaces, and let

F : X × Y ( , + ] {\displaystyle F:X\times Y\to (-\infty ,+\infty ]}

be a proper convex function. The associated value function is

p ( y ) = inf x X F ( x , y ) . {\displaystyle p(y)=\inf _{x\in X}F(x,y).}

The original, or primal, problem is the computation of p ( 0 ) {\displaystyle p(0)} , that is,

inf x X F ( x , 0 ) . {\displaystyle \inf _{x\in X}F(x,0).}

The convex conjugate of F {\displaystyle F} is defined on X × Y {\displaystyle X^{*}\times Y^{*}} . Since

p ( y ) = F ( 0 , y ) , {\displaystyle p^{*}(y^{*})=F^{*}(0,y^{*}),}

the biconjugate inequality p ( 0 ) p ( 0 ) {\displaystyle p^{**}(0)\leq p(0)} gives the dual problem

sup y Y F ( 0 , y ) . {\displaystyle \sup _{y^{*}\in Y^{*}}-F^{*}(0,y^{*}).}

Thus weak duality takes the form

sup y Y F ( 0 , y ) inf x X F ( x , 0 ) . {\displaystyle \sup _{y^{*}\in Y^{*}}-F^{*}(0,y^{*})\leq \inf _{x\in X}F(x,0).}

When equality holds, the primal and dual problems are said to satisfy strong duality. Conditions ensuring equality are usually stated as regularity or constraint-qualification hypotheses, such as interior-point conditions in finite-dimensional convex optimization.18

This perturbation framework includes many familiar dualities as special cases, including Fenchel duality and Lagrange duality. Different choices of the perturbation function F {\displaystyle F} can lead to different dual problems for the same primal optimization problem.

Subgradients

Convex functions need not be differentiable. For example, the absolute value function f ( x ) = | x | {\displaystyle f(x)=|x|} is convex but is not differentiable at x = 0 {\displaystyle x=0} . Convex analysis therefore uses a generalized derivative called a subgradient.

Let f : X ( , + ] {\displaystyle f:X\to (-\infty ,+\infty ]} be a convex function on a real vector space, and let X {\displaystyle X^{*}} be a suitable dual space. A functional x X {\displaystyle x^{*}\in X^{*}} is a subgradient of f {\displaystyle f} at x {\displaystyle x} if

f ( z ) f ( x ) + x , z x {\displaystyle f(z)\geq f(x)+\langle x^{*},z-x\rangle }

for all z X {\displaystyle z\in X} . The set of all subgradients at x {\displaystyle x} is the subdifferential of f {\displaystyle f} at x {\displaystyle x} , denoted f ( x ) {\displaystyle \partial f(x)} .13

Geometrically, a subgradient defines a supporting hyperplane to the epigraph of f {\displaystyle f} . If f {\displaystyle f} is differentiable at x {\displaystyle x} , then the subdifferential consists of the ordinary derivative. In finite-dimensional Euclidean space this is written

f ( x ) = { f ( x ) } . {\displaystyle \partial f(x)=\{\nabla f(x)\}.}

Subgradients give a basic optimality condition. A point x {\displaystyle x} minimizes a proper convex function f {\displaystyle f} if and only if

0 f ( x ) . {\displaystyle 0\in \partial f(x).}

This generalizes the familiar condition f ( x ) = 0 {\displaystyle \nabla f(x)=0} for differentiable functions.

Lower semicontinuity

Convex analysis often studies functions that are lower semi-continuous rather than continuous. A function f : X ( , + ] {\displaystyle f:X\to (-\infty ,+\infty ]} is lower semicontinuous if, roughly speaking, its values cannot suddenly jump downward. Equivalently, in a topological vector space, f {\displaystyle f} is lower semicontinuous if the sublevel sets

{ x X : f ( x ) a } {\displaystyle \{x\in X:f(x)\leq a\}}

are closed for all real numbers a {\displaystyle a} . For convex functions, lower semicontinuity is also equivalent to closedness of the epigraph:

epi f = { ( x , r ) : f ( x ) r } . {\displaystyle \operatorname {epi} f=\{(x,r):f(x)\leq r\}.}

Thus lower semicontinuous convex functions are often called closed convex functions.12

Lower semicontinuity is important in optimization because it helps ensure that minimizing limits do not lose the value of the function. If a sequence or net x i {\displaystyle x_{i}} converges to x {\displaystyle x} , lower semicontinuity gives

f ( x ) lim inf i f ( x i ) . {\displaystyle f(x)\leq \liminf _{i}f(x_{i}).}

This condition is weaker than continuity, but it is often strong enough for existence theorems, especially when combined with compactness or weak compactness assumptions.46

The condition also appears in duality. The convex conjugate of any function is convex and lower semicontinuous with respect to the appropriate weak-* topology. The conjugate of the conjugate, or biconjugate, gives the closed convex envelope of the original function. In one common form, the Fenchel–Moreau theorem states that a proper function on a locally convex space satisfies

f = f {\displaystyle f=f^{**}}

if and only if f {\displaystyle f} is convex and lower semicontinuous. Equivalently, closed proper convex functions are exactly the functions that can be recovered from their affine minorants.17

In convex optimization, the objective is to minimize a convex function over a convex set. Convexity ensures that every local minimum is a global minimum, and duality often provides certificates of optimality. Linear programming, quadratic programming, semidefinite programming, and many methods in statistics and machine learning use this framework.9

Convex analysis is also connected with convex geometry, which studies convex bodies, polytopes, supporting hyperplanes, mixed volumes, and related geometric inequalities. Classical finite-dimensional results such as Carathéodory's theorem (convex hull), Helly's theorem, and Radon's theorem describe the combinatorial and geometric structure of convex hulls. These theorems are usually regarded as part of convex geometry, but they provide much of the geometric background for convex analysis.1

In functional analysis, compact convex sets are studied through their extreme points. The Krein–Milman theorem states that, under suitable hypotheses, a compact convex set in a locally convex space is generated by its extreme points. Choquet theory refines this idea by representing points of compact convex sets as barycenters of probability measures supported on extreme points. This can be viewed as an infinite-dimensional analogue of writing a point of a polytope as a convex combination of its vertices.1011

Convexity is also used in probability theory. Jensen's inequality compares the value of a convex function at an average with the average of its values. Convex order compares probability measures by testing them against convex functions, and large deviations theory uses the Legendre–Fenchel transform to express rate functions as convex conjugates of logarithmic moment generating functions.12

In optimal transport, the Kantorovich formulation of the transport problem is a convex optimization problem over probability measures, and Kantorovich duality is a form of convex duality. For the quadratic cost on Euclidean space, Brenier's theorem relates optimal transport maps to gradients of convex functions, connecting optimal transport with the Monge–Ampère equation.1314

Several areas use modified notions of convexity adapted to different structures. In the calculus of variations, rank-one convexity, polyconvexity, and quasiconvexity arise in vector-valued variational problems. In metric geometry and optimization on manifolds, geodesic convexity replaces line segments by geodesics. In several complex variables, notions such as pseudoconvexity, holomorphic convexity, polynomial convexity, and plurisubharmonic functions play roles analogous in some respects to convexity in real analysis.151617

See also

See also

Notes

Notes

References

References

External links