Skip to content
Infinitesimal Dynamics home
Notebook: 0 XP

Optimization / Smooth optimization

Convexity

The property that makes optimization easy: every local minimum is global.

3 min read · 1 sections · 2 checks

Contents 2 sections
  1. §1Bowls, not egg crates
  2. ?Check yourself

By the end you can

  • Define convex sets and convex functions
  • Test convexity with second derivatives
  • Explain why convex problems have no bad local minima

Helps to know: Optimality Conditions

§1Bowls, not egg crates

A twice-differentiable function is convex exactly when its Hessian is positive semidefinite everywhere; in one variable, when f′′≥0f'' \ge 0. Examples: x2x^2, exe^x, ∣x∣|x|, and any linear function.

Check yourself

  1. Q1
    Is f(x)=x4f(x) = x^4 convex?
  2. Q2
    Is sin⁡x\sin x convex on all of R\mathbb{R}?