In
geometry
Geometry (; ) is, with arithmetic, one of the oldest branches of mathematics. It is concerned with properties of space such as the distance, shape, size, and relative position of figures. A mathematician who works in the field of geometry is c ...
, the hyperplane separation theorem is a theorem about
disjoint convex set
In geometry, a subset of a Euclidean space, or more generally an affine space over the reals, is convex if, given any two points in the subset, the subset contains the whole line segment that joins them. Equivalently, a convex set or a convex ...
s in ''n''-dimensional
Euclidean space
Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, that is, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are Euclidean sp ...
. There are several rather similar versions. In one version of the theorem, if both these sets are
closed and at least one of them is
compact, then there is a
hyperplane
In geometry, a hyperplane is a subspace whose dimension is one less than that of its '' ambient space''. For example, if a space is 3-dimensional then its hyperplanes are the 2-dimensional planes, while if the space is 2-dimensional, its hype ...
in between them and even two parallel hyperplanes in between them separated by a gap. In another version, if both disjoint convex sets are open, then there is a hyperplane in between them, but not necessarily any gap. An axis which is orthogonal to a separating hyperplane is a separating axis, because the orthogonal
projections of the convex bodies onto the axis are disjoint.
The hyperplane separation theorem is due to
Hermann Minkowski
Hermann Minkowski (; ; 22 June 1864 – 12 January 1909) was a German mathematician and professor at Königsberg, Zürich and Göttingen. He created and developed the geometry of numbers and used geometrical methods to solve problems in numb ...
. The
Hahn–Banach separation theorem generalizes the result to
topological vector spaces.
A related result is the
supporting hyperplane theorem
In geometry, a supporting hyperplane of a set S in Euclidean space \mathbb R^n is a hyperplane that has both of the following two properties:
* S is entirely contained in one of the two closed half-spaces bounded by the hyperplane,
* S has at le ...
.
In the context of
support-vector machine
In machine learning, support vector machines (SVMs, also support vector networks) are supervised learning models with associated learning algorithms that analyze data for classification and regression analysis. Developed at AT&T Bell Laborator ...
s, the ''optimally separating hyperplane'' or ''maximum-margin hyperplane'' is a
hyperplane
In geometry, a hyperplane is a subspace whose dimension is one less than that of its '' ambient space''. For example, if a space is 3-dimensional then its hyperplanes are the 2-dimensional planes, while if the space is 2-dimensional, its hype ...
which separates two
convex hulls of points and is
equidistant
A point is said to be equidistant from a set of objects if the distances between that point and each object in the set are equal.
In two-dimensional Euclidean geometry, the locus of points equidistant from two given (different) points is ...
from the two.
Statements and proof
The proof is based on the following lemma:
Proof of lemma: Let
Let
be a sequence in
such that
. Note that
is in
since
is convex and so
.
Since
:
as
,
is a
Cauchy sequence
In mathematics, a Cauchy sequence (; ), named after Augustin-Louis Cauchy, is a sequence whose elements become arbitrarily close to each other as the sequence progresses. More precisely, given any small positive distance, all but a finite numbe ...
and so has limit ''x'' in
. It is unique since if ''y'' is in
and has norm δ, then
and ''x'' = ''y''.
Proof of theorem:
Given disjoint nonempty convex sets ''A'', ''B'', let
:
Since
is convex and the
sum
Sum most commonly means the total of two or more numbers added together; see addition.
Sum can also refer to:
Mathematics
* Sum (category theory), the generic concept of summation in mathematics
* Sum, the result of summation, the additio ...
of convex sets is convex,
is convex. By the lemma, the closure
of
, which is convex, contains a vector
of minimum norm. Since
is convex, for any
in
, the line segment
:
lies in
and so
:
.
For
, we thus have:
:
and letting
gives:
. Hence, for any x in ''A'' and ''y'' in ''B'', we have:
. Thus, if ''v'' is nonzero, the proof is complete since
:
More generally (covering the case ''v'' = 0), let us first take the case when the interior of
is nonempty. The interior can be exhausted by a nested sequence of nonempty compact convex subsets
(namely, put
). Since 0 is not in
, each
contains a nonzero vector
of minimum length and by the argument in the early part, we have:
for any
. We can normalize the
's to have length one. Then the sequence
contains a convergent subsequence (because the
n-sphere
In mathematics, an -sphere or a hypersphere is a topological space that is homeomorphic to a ''standard'' -''sphere'', which is the set of points in -dimensional Euclidean space that are situated at a constant distance from a fixed point, ca ...
is compact) with limit ''v'', which is nonzero. We have
for any ''x'' in the interior of
and by continuity the same holds for all ''x'' in
. We now finish the proof as before. Finally, if
has empty interior, the
affine set that it spans has dimension less than that of the whole space. Consequently
is contained in some hyperplane
; thus,
for all ''x'' in
and we finish the proof as before.
The number of dimensions must be finite. In infinite-dimensional spaces there are examples of two closed, convex, disjoint sets which cannot be separated by a closed hyperplane (a hyperplane where a ''continuous'' linear functional equals some constant) even in the weak sense where the inequalities are not strict.
The above proof also proves the first version of the theorem mentioned in the lede (to see it, note that
in the proof is closed under the hypothesis of the theorem below.)
Here, the compactness in the hypothesis cannot be relaxed; see an example in the next section. This version of the separation theorem does generalize to infinite-dimension; the generalization is more commonly known as the
Hahn–Banach separation theorem.
We also have:
This follows from the standard version since the separating hyperplane cannot intersect the interiors of the convex sets.
Converse of theorem
Note that the existence of a hyperplane that only "separates" two convex sets in the weak sense of both inequalities being non-strict obviously does not imply that the two sets are disjoint. Both sets could have points located on the hyperplane.
Counterexamples and uniqueness

If one of ''A'' or ''B'' is not convex, then there are many possible counterexamples. For example, ''A'' and ''B'' could be concentric circles. A more subtle counterexample is one in which ''A'' and ''B'' are both closed but neither one is compact. For example, if ''A'' is a closed half plane and B is bounded by one arm of a hyperbola, then there is no strictly separating hyperplane:
:
:
(Although, by an instance of the second theorem, there is a hyperplane that separates their interiors.) Another type of counterexample has ''A'' compact and ''B'' open. For example, A can be a closed square and B can be an open square that touches ''A''.
In the first version of the theorem, evidently the separating hyperplane is never unique. In the second version, it may or may not be unique. Technically a separating axis is never unique because it can be translated; in the second version of the theorem, a separating axis can be unique up to translation.
Use in collision detection
The separating axis theorem (SAT) says that:
Two convex objects do not overlap if there exists a line (called axis) onto which the two objects' projections do not overlap.
SAT suggests an algorithm for testing whether two convex solids intersect or not.
Regardless of dimensionality, the separating axis is always a line.
For example, in 3D, the space is separated by planes, but the separating axis is perpendicular to the separating plane.
The separating axis theorem can be applied for fast
collision detection between polygon meshes. Each
face's
normal or other feature direction is used as a separating axis. Note that this yields possible separating axes, not separating lines/planes.
In 3D, using face normals alone will fail to separate some edge-on-edge non-colliding cases. Additional axes, consisting of the cross-products of pairs of edges, one taken from each object, are required.
For increased efficiency, parallel axes may be calculated as a single axis.
See also
*
Dual cone
*
Farkas's lemma Farkas' lemma is a solvability theorem for a finite system of linear inequalities in mathematics. It was originally proven by the Hungarian mathematician Gyula Farkas (natural scientist), Gyula Farkas.
Farkas' Lemma (mathematics), lemma is the key ...
*
Kirchberger's theorem
*
Optimal control
Notes
References
*
*
*
External links
Collision detection and response
{{DEFAULTSORT:Separating Axis Theorem
Theorems in convex geometry
Hermann Minkowski
fr:Séparation des convexes