Convex Functions
Definition
A function g : I → R is called convex if
g(λx + (1 − λ)y) ≤ λg(x) + (1 − λ)g(y)
for all x, y ∈ I and all
0 ≤ λ ≤ 1.
Interpretation: λx + (1 − λ)y is a weighted average of x and y, and convexity says g(average) ≤ average of g.
Geometrically: the graph of a convex function always lies below its secant lines.
Second Derivative Test
If g is twice differentiable, then:
g′′(x) ≥ 0 for all x
implies that g is convex.
Examples of convex functions:
g(x) = x2,
g(x) = ex .
Arman Jahangiri
Summer 2026 13