Chapter 2: Convex Sets
2.1 Mathematical Background
2.1.1 Inner Product of Vectors
Definition (Inner Product). For vectors
, the inner product (dot product) is
Geometric Interpretation: The inner product measures the alignment between two vectors:
vectors are in the same direction. vectors are orthogonal (perpendicular).
Example:
2.1.2 Angle Between Vectors
The angle
Example:
2.1.3 Inner Product of Matrices
Definition (Frobenius Inner Product). For matrices
, the Frobenius inner product is
Frobenius Norm:
Angle Between Matrices:
Example:
2.1.4 Common Vector Norms
Euclidean Norm (
norm): 1-Norm (
norm): Chebyshev Norm (
norm): -Norm (general norm, ):
2.1.5 Symmetric Matrices
Definition. A square matrix
is symmetric if
Key Properties:
- All eigenvalues are real.
- Eigenvectors corresponding to distinct eigenvalues are orthogonal.
- Symmetric matrices are diagonalizable by an orthogonal matrix.
2.1.6 Eigenvalue Decomposition
Theorem (Eigenvalue Decomposition). If
is symmetric, it admits where:
is orthonormal: with - Each term
is a rank-1 symmetric matrix.
2.1.7 Positive Semidefinite (PSD) Matrices
Definition. A symmetric matrix
is positive semidefinite (PSD) if (denoted as
)
Key Properties:
- All eigenvalues of
are nonnegative: . - PSD matrices are symmetric, hence diagonalizable by orthogonal matrices.
- If
, then for some (Cholesky factorization or matrix square root). - The set of PSD matrices forms a convex cone.
2.1.8 Gradient and Hessian of Multivariate Functions
Gradient: For
Hessian: The Hessian (local curvature) is the matrix of second-order partial derivatives:
Quadratic Example: Let
2.2 Lines, Line Segments, and Rays
Let
Line through
and :
Line segment from
to :
Ray starting at
going through :
2.3 Definition of Convex Sets
Definition (Convex Set). A set
is convex if for any and any ,
is called a convex combination of and .
Intuition: Every line segment between two points in
Examples of convex sets: line, line segment, ray, single point, empty set, subspace, affine space, hyperplane, halfspace, convex cone, positive semidefinite cone, Euclidean balls and ellipsoids, norm balls and norm cones, polyhedra.
Why convex sets are important: In convex optimization, the feasible region of a convex optimization problem is a convex set. This property guarantees that any local optimum is also a global optimum.
2.4 Subspaces and Affine Sets
2.4.1 Subspace
Definition (Subspace). A subset
is a subspace if:
(contains the zero vector) (closed under addition) (closed under scaling)
Examples:
for for - Any line through the origin in
2.4.2 Affine Space
Definition (Affine Space). A subset
is an affine space if for any and any ,
Intuition: Affine spaces are like subspaces, but they need not pass through the origin. They are "shifted subspaces."
Examples:
- Any line in
(not necessarily through the origin) - Any plane in
(not necessarily through the origin) - More generally:
, where and is a subspace
2.4.3 Affine Space vs. Hyperplane
- A hyperplane in
has dimension . - Affine spaces can have any dimension
.
Examples:
- A line in
: , . Not a hyperplane (hyperplanes in have dimension 2). - A plane in
: , . Not a hyperplane (hyperplanes in have dimension 3).
2.5 Hyperplanes and Halfspaces
Definition (Hyperplane). A hyperplane in
is a set of the form where
and .
Intuition:
is a normal vector to the hyperplane. shifts the hyperplane; if , is a subspace. - Hyperplanes have dimension
.
Examples:
- In
: a line (e.g., ) - In
: a plane (e.g., )
Definition (Halfspace). A closed halfspace is defined by
It contains all points on one side of the hyperplane
.
A hyperplane divides
2.6 Convex Cones and Polar Cones
Definition (Cone). A set
is a cone if
Definition (Convex Cone). A set
is a convex cone if it is a cone and is convex, equivalently:
is called a conic combination of with .
Example:
Definition (Polar Cone). The polar cone of
is It contains all vectors forming a nonpositive inner product with all elements of
.
Example: The polar of the first quadrant (
Properties of Polar Cones:
is always a closed, convex cone, even if is not convex. - If
is closed and convex, (bipolar property). .
Examples:
- If
, then . - If
is a subspace , then (the orthogonal complement).
Types of Combinations
| Type | Form | Coefficient constraints | Resulting set |
|---|---|---|---|
| Linear combination | Subspace ( | ||
| Conic combination | Convex cone | ||
| Affine combination | Affine space | ||
| Convex combination | Convex set |
2.7 Tangent Cone and Normal Cone
Let
Definition (Tangent Cone). The tangent cone of
at is
- Represents directions in which you can "leave
while staying in infinitesimally." - Describes feasible directions from
.
Definition (Normal Cone). The normal cone of
at is
- Contains vectors/directions perpendicular (obtuse) to the tangent cone at
. - Often used in optimality conditions and convex analysis.
2.8 Separating Hyperplane Theorem
Theorem (Separating Hyperplane). Let
be two nonempty, disjoint, convex sets. Then there exists a nonzero vector and a scalar such that This means there exists a hyperplane
that separates and (i.e., , ).
Simple interpretation: There is a hyperplane that can separate any point outside a convex set from the set itself.
Examples:
The nonnegative orthant in
: - Separating hyperplane:
,
- Separating hyperplane:
Positive semidefinite matrices
: - Separating hyperplane:
,
- Separating hyperplane:
Note: Convexity is required; non-convex sets may not be separable.
2.9 Generalized Inequalities
Let
Definition (Generalized Inequality). For
:
Strict version:
Examples:
: for all (componentwise inequality). (PSD cone): .
Note: We can have
and at the same time (incomparable). Generalized inequalities are partial orders in general.
2.10 Minimum and Minimal Elements
Let
Definition (Minimum Element).
is the minimum if It is the smallest element; unique if it exists. Equivalently,
.
Definition (Minimal Element).
is a minimal if there is no such that There may be multiple minimal elements. Equivalently,
.
2.11 Dual Cone
Definition (Dual Cone). Let
be a cone. The dual cone of is defined as
Properties:
is always a closed, convex cone. - If
is closed and convex, (bipolar property). . - Relation to polar cone:
.
Examples:
(self-dual). (PSD cone) (self-dual).
2.12 Positive Semidefinite (PSD) Cone
is the set of symmetric matrices. is the positive semidefinite cone. for all . - Equivalently, all eigenvalues
.
is the positive definite cone.
2.13 Operations That Preserve Convexity
Practical methods for establishing convexity of a set
Apply the definition of convexity:
Show that
is obtained from simple convex sets (hyperplanes, halfspaces, norm balls, etc.) by operations that preserve convexity: - Intersection
- Affine function
- Perspective function
- Linear-fractional function
2.13.1 Intersection of Convex Sets
Property. The intersection of any (finite or infinite) collection of convex sets is convex:
Example:
Interpretation: Adding constraints (intersections) preserves convexity.
2.13.2 Affine Mapping
Property. If
is convex and is a matrix, a vector, then the image under an affine map is convex:
Example: Scaling and translating a convex set preserves convexity:
Interpretation: Linear transformations and translations do not "bend" the set — they preserve convexity.