Elio Saade
Note

Convex Functions

Topics: Convex Optimization

Definition

A function ff is convex if and only if:

  • its domain dom f\text{dom} \, f is a convex set
  • ff lies below the line segment connecting any two of its points

That is

f(αx+(1−α)y)≤αf(x)+(1−α)f(y)f(\alpha x + (1-\alpha)y) \leq \alpha f(x) + (1-\alpha) f(y)

Convex_Function.png

First-Order Conditions

If ff is differentiable, then ff is convex if and only if its domain dom f\text{dom} \, f is a convex set and

f(x)+∇f(x)⊤(y−x)≤f(y)f(x) + \nabla f(x)^{\top} (y-x) \leq f(y)

holds for all x,y∈domfx, y \in \text{dom} f.

This condition also constitutes a useful property for algorithm design with convex functions: a differentiable convex function is lower-bounded by its local first-order approximation.

Convex_Function_1st_Order.png

Second-Order Conditions

If ff is twice-differentiable, then ff is convex if and only if its domain dom f\text{dom} \, f is a convex set and its Hessian is positive semidefinite

∇2f(x)⪰0∀x∈dom f\nabla^2 f(x) \succeq 0 \qquad \forall x \in \text{dom } f

Operations Preserving Convexity

  • Positive scaling
  • Sum
  • Composition with affine mapping: (f∘g)(x)=f(Ax+b)(f \circ g)(x) = f(Ax+b)
  • Special compositions: f(x)=h(g(x))f(x) = h(g(x))
    • gg convex, hh non-decreasing & convex
    • gg concave, hh non-increasing & convex
  • Pointwise maximum: F(x)=max⁡(f1(x),f2(x), … ,fn(x))F(x) = \max (f_1(x), f_2(x), \, \dots \,, f_n(x))
  • Pointwise supremum: supa∈A  f(x,a)\underset{a \in \mathcal{A}}{sup} \; f(x,a)

References

  1. S. Boyd and L. Vandenberghe, Convex Optimization. Cambridge: Cambridge University Press, 2004.
  2. Convex Optimization for Trajectory Generation - A Tutorial on Generating Dynamically Feasible Trajectories Reliably and Efficiently

Connections

Direct relationships to this note.