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 ...
, the Minkowski sum of two
sets of
position vector
In geometry, a position or position vector, also known as location vector or radius vector, is a Euclidean vector that represents a point ''P'' in space. Its length represents the distance in relation to an arbitrary reference origin ''O'', and ...
s ''A'' and ''B'' in
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 ...
is formed by
adding each vector in ''A'' to each vector in ''B'':
The Minkowski difference (also ''Minkowski subtraction'', ''Minkowski decomposition'', or ''geometric difference'') is the corresponding inverse, where
produces a set that could be summed with ''B'' to recover ''A''. This is defined as the
complement of the Minkowski sum of the complement of ''A'' with the reflection of ''B'' about the origin.
This definition allows a symmetrical relationship between the Minkowski sum and difference. Note that alternately taking the sum and difference with ''B'' is not necessarily equivalent. The sum can fill gaps which the difference may not re-open, and the difference can erase small islands which the sum cannot recreate from nothing.
In 2D
image processing
An image or picture is a visual representation. An image can be two-dimensional, such as a drawing, painting, or photograph, or three-dimensional, such as a carving or sculpture. Images may be displayed through other media, including a pr ...
the Minkowski sum and difference are known as
dilation
wiktionary:dilation, Dilation (or dilatation) may refer to:
Physiology or medicine
* Cervical dilation, the widening of the cervix in childbirth, miscarriage etc.
* Coronary dilation, or coronary reflex
* Dilation and curettage, the opening of ...
and
erosion
Erosion is the action of surface processes (such as Surface runoff, water flow or wind) that removes soil, Rock (geology), rock, or dissolved material from one location on the Earth's crust#Crust, Earth's crust and then sediment transport, tran ...
.
An alternative definition of the Minkowski difference is sometimes used for computing intersection of convex shapes. This is not equivalent to the previous definition, and is not an inverse of the sum operation. Instead it replaces the vector addition of the Minkowski sum with a
vector subtraction. If the two convex shapes intersect, the resulting set will contain the origin.
The concept is named for
Hermann Minkowski
Hermann Minkowski (22 June 1864 – 12 January 1909) was a mathematician and professor at the University of Königsberg, the University of Zürich, and the University of Göttingen, described variously as German, Polish, Lithuanian-German, o ...
.
Example

For example, if we have two sets ''A'' and ''B'', each consisting of three position vectors (informally, three points), representing the
vertices of two
triangle
A triangle is a polygon with three corners and three sides, one of the basic shapes in geometry. The corners, also called ''vertices'', are zero-dimensional points while the sides connecting them, also called ''edges'', are one-dimension ...
s in
, with coordinates
and
then their Minkowski sum is
which comprises the vertices of a hexagon and its center.
For Minkowski addition, the ,
containing only the
zero vector
In mathematics, a zero element is one of several generalizations of the number zero to other algebraic structures. These alternate meanings may or may not reduce to the same thing, depending on the context.
Additive identities
An '' additive id ...
, 0, is an
identity element
In mathematics, an identity element or neutral element of a binary operation is an element that leaves unchanged every element when the operation is applied. For example, 0 is an identity element of the addition of real numbers. This concept is use ...
: for every subset ''S'' of a vector space,
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 ...
is important in Minkowski addition, because the empty set annihilates every other subset: for every subset ''S'' of a vector space, its sum with the empty set is empty:
For another example, consider the Minkowski sums of open or closed balls in the field
which is either 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
complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s
. If
is the closed ball of radius