Prove that for a convex function f on a convex set C, every local minimum is a global minimum. Then show on f(x)=max⁡(0,∣x∣−1) that the minimiser need not be unique, and what extra condition makes it unique?

Linear algebra and optimisation, Convexity
Level L3 Intermediate. Length Medium. Nature Th Theoretical.

What's being asked

Whether you can turn the definition of convexity into a short contradiction proof, and know what the result does and does not say.

Key idea

Suppose x is a local minimum but some y∈C has f(y)<f(x). Points on the segment from x to y lie in C, and convexity pushes their values below f(x) however close they are to x. This contradicts local minimality.

Steps

  1. This is the proof behind `convex-set-vs-convex-function`, which gives the picture. Assume x∈C is a local minimum: there is a radius r>0 with f(x)≤f(z) for all z∈C with ∥z−x∥<r.
  2. Suppose, for contradiction, that some y∈C has f(y)<f(x).
  3. For θ∈(0,1] define zθ=(1−θ)x+θy. Because C is convex, zθ∈C. Also ∥zθ−x∥=θ∥y−x∥<r once θ<r/∥y−x∥.
  4. By convexity of f, f(zθ)≤(1−θ)f(x)+θf(y)=f(x)−θ(f(x)−f(y))<f(x). So there are points arbitrarily close to x with a strictly lower value, which contradicts the local minimum.
  5. Conclude f(x)≤f(y) for every y∈C, so x is a global minimum.
  6. Uniqueness. For f(x)=max⁡(0,∣x∣−1) every x∈[−1,1] gives f=0, so the global minimisers form a whole interval. If f is strictly convex, the inequality is strict and the minimiser is unique.

Common mistakes

How long your answer should be

Half a page; about 3 minutes, with the contradiction argument written in full.

Read this

Previous in Linear algebra and optimisation: Derive why the direction of fastest local decrease of f at x is −∇f(x), using a first-order Taylor expansion and the Cauchy–Schwarz inequality. For f(x,y)=x2+3y2 at (1,1), compare the rate of decrease along −∇f/∥∇f∥ with the one along (0,−1)?
Next in Linear algebra and optimisation: Why does momentum speed up gradient descent on ill-conditioned problems?