Mathwords logoMathwords

Closed Convex Function — Definition, Formula & Example

A closed convex function is a convex function that never jumps up at a point. Its value at each point is no larger than the values it approaches nearby, so the region on and above its graph contains all of its edge points.

A proper convex function f:Rn→(−∞,+∞]f:\mathbb{R}^n \to (-\infty, +\infty] is closed if its epigraph epi⁡f={(x,t)∈Rn×R:f(x)≤t}\operatorname{epi} f = \{(x, t) \in \mathbb{R}^n \times \mathbb{R} : f(x) \le t\} is a closed set. Equivalently, ff is lower semicontinuous: every sublevel set {x:f(x)≤α}\{x : f(x) \le \alpha\} is closed. Some authors, such as Rockafellar, also count the improper constant functions f≡+∞f \equiv +\infty and f≡−∞f \equiv -\infty as closed. This page covers only proper functions.

Key Formula

f(x0)≤lim inf⁡x→x0f(x)for every x0∈Rnf(x_0) \le \liminf_{x \to x_0} f(x) \quad \text{for every } x_0 \in \mathbb{R}^n
Where:
  • ff = A convex function. It may take the value +∞+\infty outside its domain.
  • x0x_0 = Any point in Rn\mathbb{R}^n, including boundary points of the domain.
  • lim inf⁡x→x0f(x)\liminf_{x \to x_0} f(x) = The smallest value that f(x)f(x) approaches as xx gets close to x0x_0.

Worked Example

Problem: Define f(x)=x2f(x) = x^2 for −1<x<1-1 < x < 1, f(−1)=f(1)=2f(-1) = f(1) = 2, and f(x)=+∞f(x) = +\infty for ∣x∣>1|x| > 1. This function is convex, because raising the endpoint values only raises the chords that start there. Is ff closed? If not, find the closed function that agrees with ff on (−1,1)(-1, 1).
Step 1: Find the value ff approaches as xx moves toward the boundary point 11 from inside the domain.
lim⁡x→1−x2=1\lim_{x \to 1^-} x^2 = 1
Step 2: Compare this limit with the assigned value. Since f(1)=2>1f(1) = 2 > 1, the condition f(1)≤lim inf⁡x→1f(x)f(1) \le \liminf_{x \to 1} f(x) fails, so ff is not lower semicontinuous at 11. You can also see this in the epigraph. The point (0.9,1.5)(0.9, 1.5) lies in epi⁡f\operatorname{epi} f because 0.92=0.81≤1.50.9^2 = 0.81 \le 1.5. The points (x,1.5)(x, 1.5) with x→1−x \to 1^- all lie in epi⁡f\operatorname{epi} f, but their limit (1,1.5)(1, 1.5) does not, because f(1)=2>1.5f(1) = 2 > 1.5.
f(1)=2>1=lim inf⁡x→1f(x)f(1) = 2 > 1 = \liminf_{x \to 1} f(x)
Step 3: Close ff by lowering each boundary value to its limit. The result is the closure cl⁡f\operatorname{cl} f, whose epigraph is the closure of epi⁡f\operatorname{epi} f. The same fix applies at x=−1x = -1.
(cl⁡f)(x)={x2,−1≤x≤1+∞,∣x∣>1(\operatorname{cl} f)(x) = \begin{cases} x^2, & -1 \le x \le 1 \\ +\infty, & |x| > 1 \end{cases}
Answer: ff is convex but not closed, because it jumps up to 22 at x=±1x = \pm 1 while approaching 11 there. Its closure equals x2x^2 on [−1,1][-1, 1] and +∞+\infty elsewhere, and this function is closed and convex.

Why It Matters

In convex optimization, closedness guarantees that a convex function with a bounded nonempty sublevel set actually attains its absolute minimum. A sequence of better and better guesses then cannot converge to a point where the value suddenly jumps up. Closedness is also the exact hypothesis of the Fenchel–Moreau theorem: a proper convex ff satisfies f∗∗=ff^{**} = f (it equals its double convex conjugate) if and only if ff is closed. That fact underlies duality in linear programming and machine learning.

Common Mistakes

Mistake: Assuming every convex function is automatically closed because convex functions are continuous.
Correction: A convex function is guaranteed to be continuous only on the interior of its domain. Closedness can fail only at boundary points of the domain, as at x=±1x = \pm 1 in the example. A convex function that is finite on all of Rn\mathbb{R}^n is continuous everywhere, so it is closed.

Related Terms