
In
geometry
Geometry (; ) is a branch of mathematics concerned with properties of space such as the distance, shape, size, and relative position of figures. Geometry is, along with arithmetic, one of the oldest branches of mathematics. A mathematician w ...
, a set of points is convex if it contains every
line segment
In geometry, a line segment is a part of a line (mathematics), straight line that is bounded by two distinct endpoints (its extreme points), and contains every Point (geometry), point on the line that is between its endpoints. It is a special c ...
between two points in the set.
For example, a solid
cube
A cube or regular hexahedron is a three-dimensional space, three-dimensional solid object in geometry, which is bounded by six congruent square (geometry), square faces, a type of polyhedron. It has twelve congruent edges and eight vertices. It i ...
is a convex set, but anything that is hollow or has an indent, for example, a
crescent
A crescent shape (, ) is a symbol or emblem used to represent the lunar phase (as it appears in the northern hemisphere) in the first quarter (the "sickle moon"), or by extension a symbol representing the Moon itself.
In Hindu iconography, Hind ...
shape, is not convex.
The
boundary of a convex set in the plane is always a
convex curve. The intersection of all the convex sets that contain a given subset of Euclidean space is called the
convex hull of . It is the smallest convex set containing .
A
convex function
In mathematics, a real-valued function is called convex if the line segment between any two distinct points on the graph of a function, graph of the function lies above or on the graph between the two points. Equivalently, a function is conve ...
is a
real-valued function defined on an
interval with the property that its
epigraph (the set of points on or above the
graph of the function) is a convex set.
Convex minimization is a subfield of
optimization
Mathematical optimization (alternatively spelled ''optimisation'') or mathematical programming is the selection of a best element, with regard to some criteria, from some set of available alternatives. It is generally divided into two subfiel ...
that studies the problem of minimizing convex functions over convex sets. The branch of mathematics devoted to the study of properties of convex sets and convex functions is called
convex analysis
Convex analysis is the branch of mathematics devoted to the study of properties of convex functions and convex sets, often with applications in convex optimization, convex minimization, a subdomain of optimization (mathematics), optimization theor ...
.
Spaces in which convex sets are defined include the
Euclidean space
Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are ''Euclidean spaces ...
s, the
affine space
In mathematics, an affine space is a geometric structure that generalizes some of the properties of Euclidean spaces in such a way that these are independent of the concepts of distance and measure of angles, keeping only the properties relat ...
s over the
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s, and certain
non-Euclidean geometries.
Definitions

Let be a
vector space
In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
or an
affine space
In mathematics, an affine space is a geometric structure that generalizes some of the properties of Euclidean spaces in such a way that these are independent of the concepts of distance and measure of angles, keeping only the properties relat ...
over the
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s, or, more generally, over some
ordered field
In mathematics, an ordered field is a field together with a total ordering of its elements that is compatible with the field operations. Basic examples of ordered fields are the rational numbers and the real numbers, both with their standard ord ...
(this includes Euclidean spaces, which are affine spaces). A
subset
In mathematics, a Set (mathematics), set ''A'' is a subset of a set ''B'' if all Element (mathematics), elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they a ...
of is convex if, for all and in , the
line segment
In geometry, a line segment is a part of a line (mathematics), straight line that is bounded by two distinct endpoints (its extreme points), and contains every Point (geometry), point on the line that is between its endpoints. It is a special c ...
connecting and is included in .
This means that the
affine combination belongs to for all in and in the
interval . This implies that convexity is invariant under
affine transformation
In Euclidean geometry, an affine transformation or affinity (from the Latin, '' affinis'', "connected with") is a geometric transformation that preserves lines and parallelism, but not necessarily Euclidean distances and angles.
More general ...
s. Further, it implies that a convex set in a
real or
complex
Complex commonly refers to:
* Complexity, the behaviour of a system whose components interact in multiple ways so possible interactions are difficult to describe
** Complex system, a system composed of many components which may interact with each ...
topological vector space
In mathematics, a topological vector space (also called a linear topological space and commonly abbreviated TVS or t.v.s.) is one of the basic structures investigated in functional analysis.
A topological vector space is a vector space that is als ...
is
path-connected (and therefore also
connected).
A set is if every point on the line segment connecting and other than the endpoints is inside the
topological interior of . A closed convex subset is strictly convex if and only if every one of its
boundary points is an
extreme point
In mathematics, an extreme point of a convex set S in a Real number, real or Complex number, complex vector space is a point in S that does not lie in any open line segment joining two points of S. The extreme points of a line segment are calle ...
.
A set is
absolutely convex if it is convex and
balanced.
Examples
The convex
subset
In mathematics, a Set (mathematics), set ''A'' is a subset of a set ''B'' if all Element (mathematics), elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they a ...
s of (the set of real numbers) are the intervals and the points of . Some examples of convex subsets of the
Euclidean plane
In mathematics, a Euclidean plane is a Euclidean space of Two-dimensional space, dimension two, denoted \textbf^2 or \mathbb^2. It is a geometric space in which two real numbers are required to determine the position (geometry), position of eac ...
are solid
regular polygon
In Euclidean geometry, a regular polygon is a polygon that is Equiangular polygon, direct equiangular (all angles are equal in measure) and Equilateral polygon, equilateral (all sides have the same length). Regular polygons may be either ''convex ...
s, solid triangles, and intersections of solid triangles. Some examples of convex subsets of a
Euclidean 3-dimensional space are the
Archimedean solid
The Archimedean solids are a set of thirteen convex polyhedra whose faces are regular polygon and are vertex-transitive, although they aren't face-transitive. The solids were named after Archimedes, although he did not claim credit for them. They ...
s and the
Platonic solid
In geometry, a Platonic solid is a Convex polytope, convex, regular polyhedron in three-dimensional space, three-dimensional Euclidean space. Being a regular polyhedron means that the face (geometry), faces are congruence (geometry), congruent (id ...
s. The
Kepler-Poinsot polyhedra are examples of non-convex sets.
Non-convex set
A set that is not convex is called a ''non-convex set''. A
polygon
In geometry, a polygon () is a plane figure made up of line segments connected to form a closed polygonal chain.
The segments of a closed polygonal chain are called its '' edges'' or ''sides''. The points where two edges meet are the polygon ...
that is not a
convex polygon
In geometry, a convex polygon is a polygon that is the boundary of a convex set. This means that the line segment between two points of the polygon is contained in the union of the interior and the boundary of the polygon. In particular, it is ...
is sometimes called a
concave polygon, and some sources more generally use the term ''concave set'' to mean a non-convex set, but most authorities prohibit this usage.
The
complement of a convex set, such as the
epigraph of a
concave function, is sometimes called a ''reverse convex set'', especially in the context of
mathematical optimization
Mathematical optimization (alternatively spelled ''optimisation'') or mathematical programming is the selection of a best element, with regard to some criteria, from some set of available alternatives. It is generally divided into two subfiel ...
.
Properties
Given points in a convex set , and
nonnegative numbers such that , the
affine combination
belongs to . As the definition of a convex set is the case , this property characterizes convex sets.
Such an affine combination is called a
convex combination of . The convex hull of a subset of a real vector space is defined as the intersection of all convex sets that contain . More concretely, the convex hull is the set of all convex combinations of points in . In particular, this is a convex set.
A ''(bounded)
convex polytope'' is the convex hull of a finite subset of some Euclidean space .
Intersections and unions
The collection of convex subsets of a vector space, an affine space, or a
Euclidean space
Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are ''Euclidean spaces ...
has the following properties:
[Soltan, Valeriu, ''Introduction to the Axiomatic Theory of Convexity'', Ştiinţa, Chişinău, 1984 (in Russian).
]
#The
empty set
In mathematics, the empty set or void set is the unique Set (mathematics), set having no Element (mathematics), elements; its size or cardinality (count of elements in a set) is 0, zero. Some axiomatic set theories ensure that the empty set exi ...
and the whole space are convex.
#The intersection of any collection of convex sets is convex.
#The ''
union'' of a collection of convex sets is convex if those sets form a
chain (a totally ordered set) under inclusion. For this property, the restriction to chains is important, as the union of two convex sets need not be convex.
Closed convex sets
Closed convex sets are convex sets that contain all their
limit points. They can be characterised as the intersections of ''closed
half-spaces'' (sets of points in space that lie on and to one side of a
hyperplane
In geometry, a hyperplane is a generalization of a two-dimensional plane in three-dimensional space to mathematical spaces of arbitrary dimension. Like a plane in space, a hyperplane is a flat hypersurface, a subspace whose dimension is ...
).
From what has just been said, it is clear that such intersections are convex, and they will also be closed sets. To prove the converse, i.e., every closed convex set may be represented as such intersection, one needs the
supporting hyperplane theorem in the form that for a given closed convex set and point outside it, there is a closed half-space that contains and not . The supporting hyperplane theorem is a special case of the
Hahn–Banach theorem
In functional analysis, the Hahn–Banach theorem is a central result that allows the extension of bounded linear functionals defined on a vector subspace of some vector space to the whole space. The theorem also shows that there are sufficient ...
of
functional analysis
Functional analysis is a branch of mathematical analysis, the core of which is formed by the study of vector spaces endowed with some kind of limit-related structure (for example, Inner product space#Definition, inner product, Norm (mathematics ...
.
Face of a convex set
A face of a convex set
is a convex subset
of
such that whenever a point
in
lies strictly between two points
and
in
, both
and
must be in
. Equivalently, for any
and any real number