Convexity and Optimization for Economists

Concave and convex functions

Convexity carried from sets over to functions — the shapes that make maximisation and minimisation behave.

Definition

Let SRnS \subseteq \mathbb{R}^n be convex and f:SRf : S \to \mathbb{R}. Then ff is concave if for all x,xSx, x' \in S and all λ[0,1]\lambda \in [0, 1],

f(λx+(1λ)x)λf(x)+(1λ)f(x).f\big(\lambda x + (1-\lambda)x'\big) \ge \lambda f(x) + (1-\lambda) f(x').

ff is convex if the reverse inequality (\le) holds, and strictly concave or convex if the inequality is strict whenever xxx \ne x' and λ(0,1)\lambda \in (0, 1).

Read geometrically: the chord joining two points on the graph lies below a concave function and above a convex one. The domain must be convex so that λx+(1λ)x\lambda x + (1-\lambda)x' lies in SS and ff of it is defined — exactly the segment condition from Lesson 1.

Key properties

Sign symmetry. ff is convex if and only if f-f is concave.

Upper contour sets. If ff is concave, then for every cc the set {xS:f(x)c}\{x \in S : f(x) \ge c\} is convex (proved below). This is the bridge back to Lesson 1: concave utility produces convex preferences.

In economics

First-order conditions become sufficient. The result the course is built toward: if ff is concave and SS is convex, any interior point xx^* with f(x)=0\nabla f(x^*) = 0 is a global maximum — no second-order test, no comparison of candidates.

Worked examples

Example 1 — an affine function is both concave and convex. Let f(x)=ax+bf(x) = a \cdot x + b. Then

f(λx+(1λ)x)=λ(ax)+(1λ)(ax)+b=λf(x)+(1λ)f(x).f\big(\lambda x + (1-\lambda)x'\big) = \lambda\,(a \cdot x) + (1-\lambda)\,(a \cdot x') + b = \lambda f(x) + (1-\lambda) f(x').

The defining inequality holds with equality, so both the concave (\ge) and convex (\le) conditions hold. Affine functions are the only functions that are simultaneously concave and convex.

Example 2 — a concave function’s upper contour sets are convex. Let f:SRf : S \to \mathbb{R} be concave on a convex set SS, fix cc, and set U={xS:f(x)c}U = \{x \in S : f(x) \ge c\}. Take x,xUx, x' \in U, so f(x)cf(x) \ge c and f(x)cf(x') \ge c. For λ[0,1]\lambda \in [0, 1], concavity gives

f(λx+(1λ)x)λf(x)+(1λ)f(x)λc+(1λ)c=c,f\big(\lambda x + (1-\lambda)x'\big) \ge \lambda f(x) + (1-\lambda) f(x') \ge \lambda c + (1-\lambda) c = c,

so λx+(1λ)xU\lambda x + (1-\lambda)x' \in U. Hence UU is convex — which is precisely why concave utility gives convex preferences.

Exercises

  1. Show directly from the definitions that ff is convex if and only if f-f is concave.
  2. Show that if ff and gg are concave and α,β0\alpha, \beta \ge 0, then αf+βg\alpha f + \beta g is concave.
  3. Show that if ff is convex then each lower contour set {xS:f(x)c}\{x \in S : f(x) \le c\} is convex.
  4. Show that the pointwise minimum min{f,g}\min\{f, g\} of two concave functions is concave.