A subset C⊆Rn is called convex if, for any two points x,y∈C and for every scalar α∈[0,1], the points on the entire line segment joining x and y is within C, such that αx+(1−α)y∈C:
\begin{document}\begin{tikzpicture}[scale=1.5]%---------------------------------% Convex set (left)%---------------------------------\begin{scope} % Draw a green convex blob \draw[thick] plot[smooth cycle] coordinates { (0,1) (1,2) (2,2.5) (3,2) (3,1) (2,0.5) }; % Label it \node at (1.7,0) {Convex Set}; % Define two points x, y inside the blob \coordinate (xLeft) at (1.2,1.2); \coordinate (yLeft) at (2.2,1.5); % Draw the line segment between x and y \draw[thick] (xLeft) -- (yLeft); % Mark the points x, y \fill (xLeft) circle (1pt) node[below left] {$x$}; \fill (yLeft) circle (1pt) node[above right] {$y$};\end{scope}%---------------------------------% Non-convex set (right)%---------------------------------\begin{scope}[shift={(4,0)}] % shift everything 6 units to the right % Draw a green *non-convex* blob with a 'dent' \draw[thick] plot[smooth cycle] coordinates { (0,1) (1,2.2) (2,2.5) (1.5, 1) (2.6,1.6) (2,0.4) (0.5,0.5) }; % Label it \node at (1.3,0) {Non-Convex Set}; % Define two points x, y that appear 'inside' visually, % but the line segment between them will cross outside the shape \coordinate (xRight) at (1.6,2.1); \coordinate (yRight) at (2.3,1.2); % Draw the line segment \draw[thick] (xRight) -- (yRight); % Mark the points x, y \fill (xRight) circle (2pt) node[above left] {$x$}; \fill (yRight) circle (2pt) node[above right] {$y$};\end{scope}\end{tikzpicture}\end{document}
The dimension of C is equal to the dimension of its affine hull (i.e., dimC=dimaff(C)).
Convex Hull C is convex if co({x,y})⊂C for all x,y∈C.
One can be quick to notice that
Properties
(Separation Theorem) For a closed convex set C⊂X , and x0∈X\C, there exist some x∗∈X∗ and δ>0, such that ⟨x∗,x0⟩+δ≤⟨x∗,c⟩ holds for all c∈C.
Removing all the abstraction, the separation theorem states that a separating hyperplane x∗ exists, represented as a linear functional (i.e., as a vector of function coefficients), that separates C from x0. We now prove the separation theorem.
(Support Function Representation) Let C be a closed convex set, x∈X, and hC(x∗)=x∈Xsup⟨x∗,x⟩ be a support function. Then, C=x∗∈X∗⋂{x:⟨x∗,x⟩≤hC(x∗)}.
This outcome of the separation theorem states that any closed and convex set C can be represented as the intersection of all of its supporting half-spaces. Think of it as intersecting the 3 half-spaces of a triangle, in order to form that triangle based on their overlap.
Why is hC(x∗) a support function? We can imagine this closely if C is also compact (i.e., well-defined). Then, the hyperplane H={x:⟨x∗,x⟩=hC(x∗)} for all x∗∈X∗ is tangent to C.
(Convex Projection) For a closed convex C, let
Examples
Convex Set Potpourri
Consider the set S1={x∈Rn∣f(x)≤0}, where f:Rn→R is a convex function.
Show that S1 is a convex set.
Consider points x1,x2, such that f(x1)≤0 and f(x2)≤0. Since f is convex, it follows that
Now, consider the set S2={x∈R3∣e−x1−2x2−3x3+5(x1+x2+x3)8≤x1+x2+x3+10,x14+x24+x34≤2}.
Show that S2 is a convex set.
It is enough to show that each constraint defines a convex set, and the overall set is formed by intersections of those constraints.