Convex

For all definitions in this note, whenever a set is mentioned, it is assumed to be a set of points in Rn\mathbb{R}^n.

Convex Combination

A point x=∑i=1kλixix = \sum_{i=1}^{k} \lambda_i x_i is a convex combination of x1,…,xkx_1, \dots, x_k if λi≥0\lambda_i \ge 0 for every ii and ∑i=1kλi=1\sum_{i=1}^{k} \lambda_i = 1.

Convex Set

A set is convex iff it contains every convex combination of its points.

A set SS is convex iff for every pair of points x,y∈Sx, y \in S, the line segment joining them lies entirely in SS.

λx+(1−λ)y∈Sfor all λ∈[0,1]\lambda x + (1 - \lambda) y \in S \quad \text{for all } \lambda \in [0, 1]

The intersection of convex sets is convex. The union of convex sets is not necessarily convex.

For example: a half-space.

Verifying Convexity

To prove SS is convex:

  1. Take arbitrary x,y∈Sx, y \in S and arbitrary λ∈[0,1]\lambda \in [0, 1].
  2. Form z=λx+(1−λ)yz = \lambda x + (1 - \lambda) y.
  3. Check zz satisfies every defining condition of SS, using only x∈Sx \in S, y∈Sy \in S, and λ∈[0,1]\lambda \in [0, 1].
  4. If it always holds, SS is convex.

To prove SS is not convex: give one explicit counterexample, i.e. points x,y∈Sx, y \in S and a value λ∈[0,1]\lambda \in [0, 1] with λx+(1−λ)y∉S\lambda x + (1 - \lambda) y \notin S.

Shortcuts for the “is convex” case:

  • S={x∣aTx≤b}S = \{x \mid a^T x \le b\} or {x∣aTx=b}\{x \mid a^T x = b\} (half-space, hyperplane): convex.
  • A finite intersection of convex sets is also convex.
  • Image or preimage of a convex set under an affine map: convex.
  • S={x∣f(x)≤c}S = \{x \mid f(x) \le c\} with ff convex: convex.

Set of Convex Combinations

For a convex set SS, the set of all convex combinations of points of SS (say HH) is also convex.

H={∑λixi∣λi≥0,∑λi=1,xi∈S}H = \left\{ \sum \lambda_i x_i \mid \lambda_i \ge 0, \sum \lambda_i = 1, x_i \in S\right\}

Extreme Point

A point in a convex set that cannot be written as a convex combination of 2 other distinct points in the set. A bounded convex polyhedron has finitely many extreme points.

For example: the corners of a polygon, or every point on the boundary of a disk.

Equivalently, xx is an extreme point iff no non-zero direction dd lets both x+ϵdx + \epsilon d and x−ϵdx - \epsilon d stay in the set for small ϵ>0\epsilon > 0. Otherwise xx is the midpoint of two distinct points of the set.

Convex Polygon

A polygon that is a convex set. All segments joining any 2 of its points stays inside it.

Geometrically, a convex polygon is a polygon where every interior angle is ≤180°\le 180°.

For a finite point set, the convex hull is a convex polygon whose vertices are a subset of the given points.

Convex Polyhedron

The intersection of finitely many half-spaces. Always a convex set, since the intersection of convex sets is convex.

Polytope

A bounded convex polyhedron. Every point in it is a convex combination of its extreme points, so a polytope is exactly the convex hull of its extreme points.

This relies on boundedness, not on being a polyhedron specifically. See Minkowski’s Theorem.

Convex Hull

The smallest convex set containing all the points of a set.

Equivalently, the set of all convex combinations of the points.

Minkowski’s Theorem

Any compact (closed and bounded) convex set in Rn\mathbb{R}^n equals the convex hull of its extreme points.

For example: polytopes.

Every point in the set is a convex combination of its extreme points.

Simplex

The convex hull of n+1n+1 affinely independent points in Rn\mathbb{R}^n. Points x0,…,xnx_0, \dots, x_n are affinely independent if the vectors x1−x0,…,xn−x0x_1 - x_0, \dots, x_n - x_0 are linearly independent, i.e. none of the points lies in the affine subspace spanned by the others.

For example:

Dimension (nn)Simplex
0Point
1Line
2Triangle
3Tetrahedron

A simplex is the simplest possible polytope with non-zero volume in its dimension. It has the fewest vertices needed to enclose an nn-dimensional region.

Relationship with Linear Programs

The feasible region of a linear program is a polytope.

Vertex Property

If the LP has an optimal solution, at least one extreme point attains it. This is why the optimal solution can always be found at a vertex, as used in the graphical method and the simplex algorithm.

Simplex Algorithm

Walks vertex to vertex along the edges of the feasible polytope, improving the objective at each step, until no adjacent vertex is better. It does not construct geometric simplices during iteration.

The name is historical. In Dantzig’s original formulation the constraints ∑ixi=1\sum_i x_i = 1, xi≥0x_i \ge 0 appear, whose feasible set is a standard simplex. A basic feasible solution is a vertex of it.

Per iteration (a pivot): at a vertex, nn constraint hyperplanes meet, and the vertex together with its nn neighbouring vertices forms a local nn-simplex. A pivot swaps one basic variable for one non-basic variable, which replaces one vertex of that local simplex with a better one.

Wolfram Mathematica notebook

The summary notebook defines every function used in this module, with documentation and no examples, as a starting point for your own problems.

Written by October 17, 2026 5 min read
Was this helpful?