Skip to content

Chapter 2: Convex Sets ​

2.1 Mathematical Background ​

2.1.1 Inner Product of Vectors ​

Definition (Inner Product). For vectors x,y∈Rn, the inner product (dot product) is

⟨x,y⟩=x⊤y=∑i=1nxiyi

Geometric Interpretation: The inner product measures the alignment between two vectors:

  • θ=0∘⇒ vectors are in the same direction.
  • θ=90∘⇒ vectors are orthogonal (perpendicular).

Example:

x=[12],y=[31]⇒⟨x,y⟩=1⋅3+2⋅1=5

2.1.2 Angle Between Vectors ​

The angle θ between x and y is defined by:

cos⁡θ=⟨x,y⟩∥x∥∥y∥,∥x∥=⟨x,x⟩

Example:

x=[12],y=[31]⇒θ=cos−1(5510)

2.1.3 Inner Product of Matrices ​

Definition (Frobenius Inner Product). For matrices A,B∈Rm×n, the Frobenius inner product is

⟨A,B⟩F=∑i=1m∑j=1nAijBij=trace(A⊤B)

Frobenius Norm:

∥A∥F=⟨A,A⟩F=∑i,jAij2

Angle Between Matrices:

cos⁡θ=⟨A,B⟩F∥A∥F∥B∥F

Example:

A=[1203],B=[2110]⇒⟨A,B⟩F=1⋅2+2⋅1+0⋅1+3⋅0=4

2.1.4 Common Vector Norms ​

  1. Euclidean Norm (ℓ2 norm):

    ∥x∥2=∑i=1nxi2
  2. 1-Norm (ℓ1 norm):

    ∥x∥1=∑i=1n|xi|
  3. Chebyshev Norm (ℓ∞ norm):

    ∥x∥∞=maxi|xi|
  4. p-Norm (general ℓp norm, p≥1):

    ∥x∥p=(∑i=1n|xi|p)1/p

2.1.5 Symmetric Matrices ​

Definition. A square matrix A∈Rn×n is symmetric if

A=A⊤or equivalentlyAij=Aji for all i,j

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 A is symmetric, it admits

A=QΛQ⊤=∑i=1nλiqiqi⊤

where:

  • Q=[q1⋯qn] is orthonormal: Q⊤Q=I
  • Λ=diag(λ1,…,λn) with λi∈R
  • Each term λiqiqi⊤ is a rank-1 symmetric matrix.

2.1.7 Positive Semidefinite (PSD) Matrices ​

Definition. A symmetric matrix A∈Rn×n is positive semidefinite (PSD) if

x⊤Ax≥0∀x∈Rn

(denoted as A⪰0)

Key Properties:

  • All eigenvalues of A are nonnegative: λi≥0.
  • PSD matrices are symmetric, hence diagonalizable by orthogonal matrices.
  • If A⪰0, then A=BB⊤ for some B∈Rn×n (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 f:Rn→R, the gradient (direction of steepest increase) is

∇f(x)=[∂f∂x1⋮∂f∂xn]∈Rn

Hessian: The Hessian (local curvature) is the matrix of second-order partial derivatives:

∇2f(x)=[∂2f∂x12⋯∂2f∂x1∂xn⋮⋱⋮∂2f∂xn∂x1⋯∂2f∂xn2]∈Rn×n

Quadratic Example: Let f(x)=x⊤Ax+b⊤x+c, with A∈Rn×n symmetric, b∈Rn, c∈R. Then

∇f(x)=2Ax+b,∇2f(x)=2A

2.2 Lines, Line Segments, and Rays ​

Let x,y∈Rn and define the direction vector d:=y−x.

Line through x and y:

ℓx,y={x+θd∣θ∈R}

Line segment from x to y:

[x,y]={x+θd∣θ∈[0,1]}={(1−θ)x+θy∣θ∈[0,1]}

Ray starting at x going through y:

xy→={x+θd∣θ≥0}

2.3 Definition of Convex Sets ​

Definition (Convex Set). A set C⊆Rn is convex if for any x,y∈C and any θ∈[0,1],

z=(1−θ)x+θy∈C

z is called a convex combination of x and y.

Intuition: Every line segment between two points in C lies entirely inside C.

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 W⊆Rn is a subspace if:

  1. 0∈W (contains the zero vector)
  2. x,y∈W⇒x+y∈W (closed under addition)
  3. x∈W,α∈R⇒αx∈W (closed under scaling)

Examples:

  • span{v1,…,vk}={∑i=1kαivi|αi∈R} for v1,…,vk∈Rn
  • null(M)={x∈Rn∣Mx=0} for M∈Rm×n
  • Any line through the origin in Rn

2.4.2 Affine Space ​

Definition (Affine Space). A subset A⊆Rn is an affine space if for any x,y∈A and any θ∈R,

(1−θ)x+θy∈A

Intuition: Affine spaces are like subspaces, but they need not pass through the origin. They are "shifted subspaces."

Examples:

  • Any line in R2 (not necessarily through the origin)
  • Any plane in R3 (not necessarily through the origin)
  • More generally: A=x0+W, where x0∈Rn and W is a subspace

2.4.3 Affine Space vs. Hyperplane ​

  • A hyperplane in Rn has dimension n−1.
  • Affine spaces can have any dimension 0,1,…,n.

Examples:

  1. A line in R3: A={(θ,1,0)∣θ∈R}, dim⁡(A)=1. Not a hyperplane (hyperplanes in R3 have dimension 2).
  2. A plane in R4: A={x0+θ1v1+θ2v2∣θ1,θ2∈R}, dim⁡(A)=2. Not a hyperplane (hyperplanes in R4 have dimension 3).

2.5 Hyperplanes and Halfspaces ​

Definition (Hyperplane). A hyperplane in Rn is a set of the form

H={x∈Rn∣a⊤x=b}

where a∈Rn∖{0} and b∈R.

Intuition:

  • a is a normal vector to the hyperplane.
  • b shifts the hyperplane; if b=0, H is a subspace.
  • Hyperplanes have dimension n−1.

Examples:

  • In R2: a line (e.g., x1+2x2=3)
  • In R3: a plane (e.g., 2x1−x2+x3=5)

Definition (Halfspace). A closed halfspace is defined by

Ha,b−={x∈Rn∣a⊤x≤b},a≠0

It contains all points on one side of the hyperplane H.

A hyperplane divides Rn into two halfspaces.


2.6 Convex Cones and Polar Cones ​

Definition (Cone). A set K⊆Rn is a cone if

x∈K,α≥0⇒αx∈K

Definition (Convex Cone). A set K⊆Rn is a convex cone if it is a cone and is convex, equivalently:

x,y∈K,α,β≥0⇒αx+βy∈K

αx+βy is called a conic combination of x,y with α,β≥0.

Example: K={(x1,x2)∈R2∣x1≥0,x2≥0} (the first quadrant).

Definition (Polar Cone). The polar cone of K is

K∘={y∈Rn∣y⊤x≤0∀x∈K}

It contains all vectors forming a nonpositive inner product with all elements of K.

Example: The polar of the first quadrant (R+2) is the third quadrant (R−2).

Properties of Polar Cones:

  • K∘ is always a closed, convex cone, even if K is not convex.
  • If K is closed and convex, (K∘)∘=K (bipolar property).
  • K1⊆K2⇒K2∘⊆K1∘.

Examples:

  • If K=R+n, then K∘=R−n.
  • If K is a subspace L, then K∘=L⊥ (the orthogonal complement).

Types of Combinations ​

TypeFormCoefficient constraintsResulting set
Linear combination∑i=1kθixiθi∈RSubspace (span{xi})
Conic combination∑i=1kθixiθi≥0Convex cone
Affine combination∑i=1kθixi∑i=1kθi=1Affine space
Convex combination∑i=1kθixiθi≥0,∑i=1kθi=1Convex set

2.7 Tangent Cone and Normal Cone ​

Let C⊆Rn be a set and x∈C.

Definition (Tangent Cone). The tangent cone of C at x is

TC(x)={d∈Rn∣∃tk↓0,dk→d with x+tkdk∈C}
  • Represents directions in which you can "leave x while staying in C infinitesimally."
  • Describes feasible directions from x.

Definition (Normal Cone). The normal cone of C at x is

NC(x)={y∈Rn∣y⊤d≤0∀d∈TC(x)}
  • Contains vectors/directions perpendicular (obtuse) to the tangent cone at x.
  • Often used in optimality conditions and convex analysis.

2.8 Separating Hyperplane Theorem ​

Theorem (Separating Hyperplane). Let C,D⊆Rn be two nonempty, disjoint, convex sets. Then there exists a nonzero vector a∈Rn and a scalar b∈R such that

a⊤x≤b≤a⊤yfor all x∈C,y∈D

This means there exists a hyperplane {x∣a⊤x=b} that separates C and D (i.e., C⊆Ha,b−, D⊆Ha,b+).

Simple interpretation: There is a hyperplane that can separate any point outside a convex set from the set itself.

Examples:

  1. The nonnegative orthant in Rn: R+n={x∈Rn∣xi≥0,i=1,…,n}

    • Separating hyperplane: a=e1, b=0
  2. Positive semidefinite matrices S+n:

    • Separating hyperplane: a=q1q1⊤, b=0

Note: Convexity is required; non-convex sets may not be separable.


2.9 Generalized Inequalities ​

Let K⊆Rn be a proper cone (a convex cone that is closed, pointed, and has nonempty interior).

Definition (Generalized Inequality). For x,y∈Rn:

x⪯Ky⟺y−x∈K

Strict version:

x≺Ky⟺y−x∈int(K)

Examples:

  • K=R+n: x⪯Ky⟺xi≤yi for all i (componentwise inequality).
  • K=S+n (PSD cone): X⪯KY⟺Y−X⪰0.

Note: We can have x⋠Ky and y⋠Kx at the same time (incomparable). Generalized inequalities are partial orders in general.


2.10 Minimum and Minimal Elements ​

Let X⊆Rn and K be a proper cone.

Definition (Minimum Element). x∗∈X is the minimum if

x∗⪯Kx∀x∈X

It is the smallest element; unique if it exists. Equivalently, X⊆x∗+K.

Definition (Minimal Element). x∈X is a minimal if there is no y∈X such that

y⪯Kxandy≠x

There may be multiple minimal elements. Equivalently, (x−K)∩X={x}.


2.11 Dual Cone ​

Definition (Dual Cone). Let K⊆Rn be a cone. The dual cone of K is defined as

K∗={y∈Rn∣y⊤x≥0∀x∈K}

Properties:

  • K∗ is always a closed, convex cone.
  • If K is closed and convex, (K∗)∗=K (bipolar property).
  • K1⊆K2⇒K2∗⊆K1∗.
  • Relation to polar cone: K∗=−K∘.

Examples:

  • K=R+n⇒K∗=R+n (self-dual).
  • K=S+n (PSD cone) ⇒K∗=S+n (self-dual).

2.12 Positive Semidefinite (PSD) Cone ​

  • Sn={X∈Rn×n∣X⊤=X} is the set of n×n symmetric matrices.
  • S+n={X∈Sn∣X⪰0} is the positive semidefinite cone.
    • z⊤Xz≥0 for all z∈Rn.
    • Equivalently, all eigenvalues ≥0.
  • S++n={X∈Sn∣X≻0} is the positive definite cone.

2.13 Operations That Preserve Convexity ​

Practical methods for establishing convexity of a set C:

  1. Apply the definition of convexity:

    x1,x2∈C,0≤θ≤1⇒θx1+(1−θ)x2∈C
  2. Show that C 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:

C=⋂i∈ICi is convex if each Ci is convex.

Example:

C1={x∣x1≥0},C2={x∣x2≥0}⇒C1∩C2=R+2

Interpretation: Adding constraints (intersections) preserves convexity.

2.13.2 Affine Mapping ​

Property. If C is convex and A is a matrix, b a vector, then the image under an affine map is convex:

{y∣y=Ax+b,x∈C} is convex.

Example: Scaling and translating a convex set preserves convexity:

C={x∣∥x∥2≤1}⇒AC+b={y∣y=Ax+b,∥x∥2≤1} is convex.

Interpretation: Linear transformations and translations do not "bend" the set — they preserve convexity.