# Minkowski addition

__: Sums vector sets A and B by adding each vector in A to each vector in B__

**Short description**In geometry, the **Minkowski sum** of two sets of position vectors *A* and *B* in Euclidean space is formed by adding each vector in *A* to each vector in *B*:

- [math]\displaystyle{ A + B = \{\mathbf{a}+\mathbf{b}\,|\,\mathbf{a}\in A,\ \mathbf{b}\in B\} }[/math]

The **Minkowski difference** (also *Minkowski subtraction*, *Minkowski decomposition*, or *geometric difference*)^{[1]} is the corresponding inverse, where [math]\displaystyle{ (A - B) }[/math] 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.^{[2]}

- [math]\displaystyle{ -B = \{\mathbf{-b}\,|\,\mathbf{b}\in B\} }[/math]
- [math]\displaystyle{ A - B = (A^\complement + (-B))^\complement }[/math]

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.

- [math]\displaystyle{ (A - B) + B \subseteq A }[/math]
- [math]\displaystyle{ (A + B) - B \supseteq A }[/math]
- [math]\displaystyle{ A - B = (A^\complement + (-B))^\complement }[/math]
- [math]\displaystyle{ A + B = (A^\complement - (-B))^\complement }[/math]

In 2D image processing the Minkowski sum and difference are known as dilation and erosion.

An alternative definition of the Minkowski difference is sometimes used for computing intersection of convex shapes.^{[3]} 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.

- [math]\displaystyle{ A - B = \{\mathbf{a}-\mathbf{b}\,|\,\mathbf{a}\in A,\ \mathbf{b}\in B\} = A + (-B) }[/math]

The concept is named for Hermann Minkowski.

## 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 triangles in [math]\displaystyle{ \mathbb{R}^2 }[/math], with coordinates

- [math]\displaystyle{ A = \{(1,0), (0,1), (0,-1)\} }[/math]

and

- [math]\displaystyle{ B = \{(0,0), (1,1), (1,-1)\} }[/math]

then their Minkowski sum is

- [math]\displaystyle{ A + B = \{(1,0), (2,1), (2,-1), (0,1), (1,2), (1,0), (0,-1), (1,0), (1,-2)\}, }[/math]

which comprises the vertices of a hexagon and the three interior points of that hexagon having integral coordinates.

For Minkowski addition, the *zero set*, [math]\displaystyle{ \{ 0 \}, }[/math] containing only the zero vector, 0, is an identity element: for every subset *S* of a vector space,

- [math]\displaystyle{ S + \{0\} = S. }[/math]

The empty set 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:

- [math]\displaystyle{ S + \emptyset = \emptyset. }[/math]

For another example, consider the Minkowski sums of open or closed balls in the field [math]\displaystyle{ \mathbb{K}, }[/math] which is either the real numbers [math]\displaystyle{ \R }[/math] or complex numbers [math]\displaystyle{ \C. }[/math] If [math]\displaystyle{ B_r := \{ s \in \mathbb{K} : |s| \leq r \} }[/math] is the closed ball of radius [math]\displaystyle{ r \in [0, \infty] }[/math] centered at [math]\displaystyle{ 0 }[/math] in [math]\displaystyle{ \mathbb{K} }[/math] then for any [math]\displaystyle{ r, s \in [0, \infty], }[/math] [math]\displaystyle{ B_r + B_s = B_{r+s} }[/math] and also [math]\displaystyle{ c B_r = B_{|c|r} }[/math] will hold for any scalar [math]\displaystyle{ c \in \mathbb{K} }[/math] such that the product [math]\displaystyle{ |c|r }[/math] is defined (which happens when [math]\displaystyle{ c \neq 0 }[/math] or [math]\displaystyle{ r \neq \infty }[/math]). If [math]\displaystyle{ r, s, }[/math] and [math]\displaystyle{ c }[/math] are all non-zero then the same equalities would still hold had [math]\displaystyle{ B_r }[/math] been defined to be the open ball, rather than the closed ball, centered at [math]\displaystyle{ 0 }[/math] (the non-zero assumption is needed because the open ball of radius [math]\displaystyle{ 0 }[/math] is the empty set). The Minkowski sum of a closed ball and an open ball is an open ball. More generally, the Minkowski sum of an open subset with *any* other set will be an open subset.

If [math]\displaystyle{ G = \{ (x, 1/x) : 0 \neq x \in \R \} }[/math] is the graph of [math]\displaystyle{ f(x) = \frac{1}{x} }[/math] and if and [math]\displaystyle{ Y = \{ 0 \} \times \R }[/math] is the [math]\displaystyle{ y }[/math]-axis in [math]\displaystyle{ X = \R^2 }[/math] then the Minkowski sum of these two closed subsets of the plane is the open set [math]\displaystyle{ G + Y = \{ (x, y) \in \R^2 : x \neq 0 \} = \R^2 \setminus Y }[/math] consisting of everything other than the [math]\displaystyle{ y }[/math]-axis. This shows that the Minkowski sum of two closed sets is not necessarily a closed set. However, the Minkowski sum of two closed subsets will be a closed subset if at least one of these sets is also a compact subset.

## Convex hulls of Minkowski sums

Minkowski addition behaves well with respect to the operation of taking convex hulls, as shown by the following proposition:

- For all non-empty subsets [math]\displaystyle{ S_1 }[/math] and [math]\displaystyle{ S_2 }[/math] of a real vector space, the convex hull of their Minkowski sum is the Minkowski sum of their convex hulls:
- [math]\displaystyle{ \operatorname{Conv}(S_1 + S_2) = \operatorname{Conv}(S_1) + \operatorname{Conv}(S_2). }[/math]

This result holds more generally for any finite collection of non-empty sets:

- [math]\displaystyle{ \operatorname{Conv}\left(\sum{S_n}\right) = \sum\operatorname{Conv}(S_n). }[/math]

In mathematical terminology, the operations of Minkowski summation and of forming convex hulls are commuting operations.^{[4]}^{[5]}

If [math]\displaystyle{ S }[/math] is a convex set then [math]\displaystyle{ \mu S + \lambda S }[/math] is also a convex set; furthermore

- [math]\displaystyle{ \mu S + \lambda S = (\mu + \lambda)S }[/math]

for every [math]\displaystyle{ \mu,\lambda \geq 0 }[/math]. Conversely, if this "distributive property" holds for all non-negative real numbers, [math]\displaystyle{ \mu, \lambda }[/math], then the set is convex.^{[6]}

The figure to the right shows an example of a non-convex set for which [math]\displaystyle{ A + A \supsetneq 2 A. }[/math]

An example in [math]\displaystyle{ 1 }[/math] dimension is: [math]\displaystyle{ B = [1, 2] \cup [4, 5]. }[/math] It can be easily calculated that [math]\displaystyle{ 2 B = [2, 4] \cup [8, 10] }[/math] but [math]\displaystyle{ B + B = [2, 4] \cup [5, 7] \cup [8, 10], }[/math] hence again [math]\displaystyle{ B + B \supsetneq 2 B. }[/math]

Minkowski sums act linearly on the perimeter of two-dimensional convex bodies: the perimeter of the sum equals the sum of perimeters. Additionally, if [math]\displaystyle{ K }[/math] is (the interior of) a curve of constant width, then the Minkowski sum of [math]\displaystyle{ K }[/math] and of its [math]\displaystyle{ 180^{\circ} }[/math] rotation is a disk. These two facts can be combined to give a short proof of Barbier's theorem on the perimeter of curves of constant width.^{[7]}

## Applications

Minkowski addition plays a central role in mathematical morphology. It arises in the brush-and-stroke paradigm of 2D computer graphics (with various uses, notably by Donald E. Knuth in Metafont), and as the solid sweep operation of 3D computer graphics. It has also been shown to be closely connected to the Earth mover's distance, and by extension, optimal transport.^{[8]}

### Motion planning

Minkowski sums are used in motion planning of an object among obstacles. They are used for the computation of the configuration space, which is the set of all admissible positions of the object. In the simple model of translational motion of an object in the plane, where the position of an object may be uniquely specified by the position of a fixed point of this object, the configuration space are the Minkowski sum of the set of obstacles and the movable object placed at the origin and rotated 180 degrees.

### Numerical control (NC) machining

In numerical control machining, the programming of the NC tool exploits the fact that the Minkowski sum of the cutting piece with its trajectory gives the shape of the cut in the material.

### 3D solid modeling

In OpenSCAD Minkowski sums are used to outline a shape with another shape creating a composite of both shapes.

### Aggregation theory

Minkowski sums are also frequently used in aggregation theory when individual objects to be aggregated are characterized via sets.^{[9]}^{[10]}

### Collision detection

Minkowski sums, specifically Minkowski differences, are often used alongside GJK algorithms to compute collision detection for convex hulls in physics engines.

## Algorithms for computing Minkowski sums

### Planar case

#### Two convex polygons in the plane

For two convex polygons `P` and `Q` in the plane with `m` and `n` vertices, their Minkowski sum is a convex polygon with at most `m` + `n` vertices and may be computed in time O(`m` + `n`) by a very simple procedure, which may be informally described as follows. Assume that the edges of a polygon are given and the direction, say, counterclockwise, along the polygon boundary. Then it is easily seen that these edges of the convex polygon are ordered by polar angle. Let us merge the ordered sequences of the directed edges from `P` and `Q` into a single ordered sequence `S`. Imagine that these edges are solid arrows which can be moved freely while keeping them parallel to their original direction. Assemble these arrows in the order of the sequence `S` by attaching the tail of the next arrow to the head of the previous arrow. It turns out that the resulting polygonal chain will in fact be a convex polygon which is the Minkowski sum of `P` and `Q`.

#### Other

If one polygon is convex and another one is not, the complexity of their Minkowski sum is O(*nm*). If both of them are nonconvex, their Minkowski sum complexity is O((*mn*)^{2}).

## Essential Minkowski sum

There is also a notion of the **essential Minkowski sum** +_{e} of two subsets of Euclidean space. The usual Minkowski sum can be written as

- [math]\displaystyle{ A + B = \left\{ z \in \mathbb{R}^{n} \,|\, A \cap (z - B) \neq \emptyset \right\}. }[/math]

Thus, the **essential Minkowski sum** is defined by

- [math]\displaystyle{ A +_{\mathrm{e}} B = \left\{ z \in \mathbb{R}^{n} \,|\, \mu \left[A \cap (z - B)\right] \gt 0 \right\}, }[/math]

where *μ* denotes the *n*-dimensional Lebesgue measure. The reason for the term "essential" is the following property of indicator functions: while

- [math]\displaystyle{ 1_{A \,+\, B} (z) = \sup_{x \,\in\, \mathbb{R}^{n}} 1_{A} (x) 1_{B} (z - x), }[/math]

it can be seen that

- [math]\displaystyle{ 1_{A \,+_{\mathrm{e}}\, B} (z) = \mathop{\mathrm{ess\,sup}}_{x \,\in\, \mathbb{R}^{n}} 1_{A} (x) 1_{B} (z - x), }[/math]

where "ess sup" denotes the essential supremum.

*L*^{p} Minkowski sum

^{p}

For *K* and *L* compact convex subsets in [math]\displaystyle{ \mathbb{R}^n }[/math], the Minkowski sum can be described by the support function of the convex sets:

- [math]\displaystyle{ h_{K+L} = h_K + h_L. }[/math]

For *p* ≥ 1, Firey^{[11]} defined the *L*^{p} Minkowski sum*K* +_{p} *L* of compact convex sets *K* and *L* in [math]\displaystyle{ \mathbb{R}^n }[/math] containing the origin as

- [math]\displaystyle{ h_{K +_p L}^p = h_K^p + h_L^p. }[/math]

By the Minkowski inequality, the function *h _{K+pL}* is again positive homogeneous and convex and hence the support function of a compact convex set. This definition is fundamental in the

*L*

^{p}Brunn-Minkowski theory.

## See also

- Blaschke sum – Polytope combining two smaller polytopes
- Brunn–Minkowski theorem, an inequality on the volumes of Minkowski sums
- Convolution – Integral expressing the amount of overlap of one function as it is shifted over another
- Dilation – Operation in mathematical morphology
- Erosion – Basic operation in mathematical morphology
- Interval arithmetic – Method for bounding the errors of numerical computations
- Mixed volume (a.k.a. Quermassintegral or intrinsic volume)
- Parallel curve
- Shapley–Folkman lemma – Sums of sets of vectors are nearly convex

## Notes

- ↑ Hadwiger, Hugo (1950), [214} "Minkowskische Addition und Subtraktion beliebiger Punktmengen und die Theoreme von Erhard Schmidt"],
*Math. Z.***53**(3): 210–218, doi:10.1007/BF01175656, https://gdz.sub.uni-goettingen.de/id/PPN266833020_0053?tify={%22pages%22:[214]}, retrieved 2023-01-12 - ↑ Li, Wei (Fall 2011).
*GPU-Based Computation of Voxelized Minkowski Sums with Applications*(PhD). UC Berkeley. pp. 13–14. Retrieved 2023-01-10. - ↑ Lozano-Pérez, Tomás (February 1983). "Spatial Planning: A Configuration Space Approach".
*IEEE Transactions on Computers***C-32**(2): 111. doi:10.1109/TC.1983.1676196. https://lis.csail.mit.edu/pubs/tlp/spatial-planning.pdf. Retrieved 2023-01-10. - ↑ Theorem 3 (pages 562–563): Krein, M.; Šmulian, V. (1940). "On regularly convex sets in the space conjugate to a Banach space".
*Annals of Mathematics*. Second Series**41**(3): 556–583. doi:10.2307/1968735. - ↑ For the commutativity of Minkowski addition and convexification, see Theorem 1.1.2 (pages 2–3) in Schneider; this reference discusses much of the literature on the convex hulls of Minkowski sumsets in its "Chapter 3 Minkowski addition" (pages 126–196): Schneider, Rolf (1993).
*Convex bodies: The Brunn–Minkowski theory*. Encyclopedia of mathematics and its applications.**44**. Cambridge: Cambridge University Press. pp. xiv+490. ISBN 978-0-521-35220-8. https://archive.org/details/convexbodiesbrun0000schn. - ↑ Chapter 1: Schneider, Rolf (1993).
*Convex bodies: The Brunn–Minkowski theory*. Encyclopedia of mathematics and its applications.**44**. Cambridge: Cambridge University Press. pp. xiv+490. ISBN 978-0-521-35220-8. https://archive.org/details/convexbodiesbrun0000schn. - ↑ The Theorem of Barbier (Java) at cut-the-knot.
- ↑ Kline, Jeffery (2019). "Properties of the d-dimensional earth mover's problem".
*Discrete Applied Mathematics***265**: 128–141. doi:10.1016/j.dam.2019.02.042. - ↑ Zelenyuk, V (2015). "Aggregation of scale efficiency".
*European Journal of Operational Research***240**(1): 269–277. doi:10.1016/j.ejor.2014.06.038. https://ideas.repec.org/a/eee/ejores/v240y2015i1p269-277.html. - ↑ Mayer, A.; Zelenyuk, V. (2014). "Aggregation of Malmquist productivity indexes allowing for reallocation of resources".
*European Journal of Operational Research***238**(3): 774–785. doi:10.1016/j.ejor.2014.04.003. https://ideas.repec.org/a/eee/ejores/v238y2014i3p774-785.html. - ↑ Firey, William J. (1962), "
*p*-means of convex bodies",*Math. Scand.***10**: 17–24, doi:10.7146/math.scand.a-10510

## References

- Arrow, Kenneth J.; Hahn, Frank H. (1980).
*General competitive analysis*. Advanced textbooks in economics.**12**(reprint of (1971) San Francisco, CA: Holden-Day, Inc. Mathematical economics texts.**6**ed.). Amsterdam: North-Holland. ISBN 978-0-444-85497-1. - Gardner, Richard J. (2002), "The Brunn-Minkowski inequality",
*Bull. Amer. Math. Soc. (N.S.)***39**(3): 355–405 (electronic), doi:10.1090/S0273-0979-02-00941-2 - Green, Jerry; Heller, Walter P. (1981). "1 Mathematical analysis and convexity with applications to economics". in Arrow, Kenneth Joseph; Intriligator, Michael D.
*Handbook of mathematical economics, Volume*. Handbooks in economics.**I****1**. Amsterdam: North-Holland Publishing Co. pp. 15–52. doi:10.1016/S1573-4382(81)01005-9. ISBN 978-0-444-86126-9. -
*Addition Theorems: The Addition Theorems of Group Theory and Number Theory*(Corrected reprint of 1965 Wiley ed.), Huntington, New York: Robert E. Krieger Publishing Company, 1976, ISBN 978-0-88275-418-5 - Rockafellar, R. Tyrrell (1997).
*Convex analysis*. Princeton landmarks in mathematics (Reprint of the 1979 Princeton mathematical series**28**ed.). Princeton, NJ: Princeton University Press. pp. xviii+451. ISBN 978-0-691-01586-6. - Nathanson, Melvyn B. (1996),
*Additive Number Theory: Inverse Problems and Geometry of Sumsets*, GTM,**165**, Springer. - Oks, Eduard; Sharir, Micha (2006), "Minkowski Sums of Monotone and General Simple Polygons",
*Discrete & Computational Geometry***35**(2): 223–240, doi:10.1007/s00454-005-1206-y. - Schneider, Rolf (1993),
*Convex bodies: the Brunn-Minkowski theory*, Cambridge: Cambridge University Press. - Tao, Terence; Vu, Van (2006),
*Additive Combinatorics*, Cambridge University Press. - Mayer, A.; Zelenyuk, V. (2014). "Aggregation of Malmquist productivity indexes allowing for reallocation of resources".
*European Journal of Operational Research***238**(3): 774–785. doi:10.1016/j.ejor.2014.04.003. https://ideas.repec.org/a/eee/ejores/v238y2014i3p774-785.html. - Zelenyuk, V (2015). "Aggregation of scale efficiency".
*European Journal of Operational Research***240**(1): 269–277. doi:10.1016/j.ejor.2014.06.038. https://ideas.repec.org/a/eee/ejores/v240y2015i1p269-277.html.

## External links

- Hazewinkel, Michiel, ed. (2001), "Minkowski addition",
*Encyclopedia of Mathematics*, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=p/m120210 - Howe, Roger (1979),
*On the tendency toward convexity of the vector sum of sets*, Cowles Foundation discussion papers,**538**, Cowles Foundation for Research in Economics, Yale University, http://econpapers.repec.org/RePEc:cwl:cwldpp:538 - Minkowski Sums, in Computational Geometry Algorithms Library
- The Minkowski Sum of Two Triangles and The Minkowski Sum of a Disk and a Polygon by George Beck, The Wolfram Demonstrations Project.
- Minkowski's addition of convex shapes by Alexander Bogomolny: an applet
- Wikibooks:OpenSCAD User Manual/Transformations#minkowski by Marius Kintel: Application
- Application of Minkowski Addition to robotics by Joan Gerard

Original source: https://en.wikipedia.org/wiki/Minkowski addition.
Read more |