Epigraph of a Function. Jensen’s Inequality


Epigraph of a convex function

To understand convexity deeply, we look at the epigraph of a function.

We already know this:
The graph of a function f(x):RnR is the set of all points (x,f(x)) in the domain of f. It's defined as:

{(x,f(x))xD(f)}

where D(f) is the domain of f.

What is the epigraph?
The epigraph of a function f is the set of all points that lie on or above its graph:

epi(f)={(x,α)xD(f),αf(x)}

Epigraphs.png|600

Key property:
A function is convex if and only if its epigraph is a convex set.

This means that if you look at the "shadow" or "area above" the curve, it has no dents or dips — just a smooth "roof" shape.


Jensen’s inequality: The fingerprint of convexity

For convex functions, the graph lies below every chord between points:
f(λx1+(1λ)x2)λf(x1)+(1λ)f(x2)

Jensen’s inequality is a powerful rule that applies to all convex functions. It says:

f(i=1nλixi)i=1nλif(xi)

where:

What does Jensen’s inequality mean?
It means that if you average inputs before applying the function, the result is always better (or equal) than averaging outputs after applying the function.

So, previously we had i=2 and formula was:

f(λx1+(1λ)x2)λf(x1)+(1λ)f(x2)f(i=12λixi)i=12λif(xi)

Operations that preserve convexity

Convexity is stable — it is not easy to "break" a convex function. Here are two rules that help build new convex functions from old ones:

  1. Sum of convex functions is convex:
    If f1,f2,,fk are convex and λ1,λ2,,λk0, then:

    f(x)=i=1kλifi(x)is convex

    Why? The "average" of several bowls is still a bowl.

  2. Composition with affine functions is convex:
    If f is convex and g(x)=Ax+b is an affine function, then:

    h(x)=f(g(x))=f(Ax+b)is convex

    Why? Affine transformations only "tilt" or "shift" the bowl — they cannot create dents or dips.


Summary of key ideas about convex functions

Concept Meaning
Convex function Graph lies below every chord between points.
Strictly convex function Graph lies strictly below chords — ensures a unique minimum.
Epigraph The region above the graph — convex if the function is convex.
Jensen’s inequality Blending inputs is always better than blending outputs.
Gradient condition Tangent lines stay below the graph.
Hessian condition Positive curvature (Hessian positive semidefinite).
Convexity-preserving operations Sums and affine transformations preserve convexity.

Final intuition: Why convex functions are powerful

Think of a bowl-shaped landscape:

That’s why optimization problems love convex functions — they guarantee a clear, simple route to the best solution. 🚀