Jensen's inequality: how to set one up on a competition problem
7 September 2026
Jensen's inequality is one sentence long and almost nobody gets it wrong. What people get wrong is everything either side of it: noticing that a problem wants it, choosing the function, and checking that the function is convex where the variables actually live.
So this is not a proof of Jensen. It is the setup procedure, in the order you should run it under time pressure, with the two places the setup silently fails.
The one line, so we agree on it
For a convex and any inputs in its domain,
with equality exactly when all the coincide. A concave runs the same statement with the inequality reversed. That is the whole theorem: the average of the values beats the value at the average, and curvature decides which way "beats" points.
The shape that calls for Jensen
Competition problems do not announce this. They announce it structurally, and the structure is easy to see once you know it. Reach for Jensen when both of these hold:
- The expression is a sum of the same function applied to each variable. Not a mixed pile of terms: , where the three summands differ only in which letter went in.
- The constraint fixes the sum of those variables, or something you can convert into a sum. , angles summing to , a fixed perimeter.
Those two together are the signature, because Jensen is precisely the theorem that trades a fixed sum for a bound on a symmetric sum. If the constraint fixes a product rather than a sum, you are usually one logarithm away from the shape rather than in it.
The three lines of setup
Write these three lines before any algebra. They are short on purpose, and skipping the second is the single most common way a Jensen attempt dies.
- Name the function and its variables. Rewrite the expression until it is literally with one function and one list of inputs. This step is where the work is, and it usually means a substitution.
- Fix the interval, then check convexity on it. Compute and state the interval where the can actually sit. Convexity is a property of a function and a domain, never a function alone.
- Apply, and evaluate at the average. The constraint hands you the average for free. The bound is , and equality is the balanced point.
Step two is not bureaucracy. Take . It is convex on and the conclusion holds there, but is negative for , and at the average of the cubes is while the cube of the average is . The inequality points the wrong way. Nothing in the algebra warns you; only the domain does.
Reading the direction off the curvature
The other half of step two is which way the sign goes, and it is worth internalising two anchors rather than re-deriving them.
- has , convex everywhere, so . That is QM–AM, and it is Jensen.
- has , concave on the positives, so the average of the logarithms is at most the logarithm of the average. Exponentiate both sides and you have , which is AM–GM.
That second one is worth pausing on, because it collapses a list into a parent. AM–GM is not a separate fact to memorise next to Jensen; it is Jensen with . AM–HM is Jensen with . So proving when and proving are both convexity arguments wearing a different hat, and once you see that, the equality case stops being something you check at the end and becomes something you predicted at the start.
The same logic settles a geometry classic. Sine is concave on , so for a triangle's angles the sum is largest when all three are , giving . And the equilateral triangle maximising area for a given perimeter is the same argument through Heron: with the semiperimeter fixed, the three quantities , , have a fixed sum, so their product peaks when they are equal.
Watching the substitution do the work
Nesbitt's inequality, , does not look like Jensen's shape. The summands are functions of two letters each, and there is no constraint at all.
Both objections dissolve at once. The expression is homogeneous of degree zero, so scaling changes nothing and you may impose . Now , and the sum is
one function, three inputs, fixed sum. Step two: , positive on , which is exactly where the variables live. Step three: the average is , so the sum is at least .
The lesson is in the normalisation, not in the answer. Homogeneity is what lets you invent the constraint you need, and a great many inequalities that appear constraint-free are one scaling away from Jensen's shape.
When the shape is genuinely missing
Sometimes no substitution produces a convex on the right interval, and the packaged theorem does not reach. The fallback is the tangent line trick, which is Jensen's own proof carried out by hand.
Guess the equality point, write the tangent to there, prove the resulting one-variable inequality, and sum. For the Nesbitt function above the tangent at is , and holds across the whole interval with equality only at . Adding the three copies gives again, without ever invoking the theorem.
Two things make this worth having. It survives on functions that are only convex near the equality point, and the one-variable inequality it leaves you is usually a quadratic you can finish by factoring. The cost is that you must guess the equality point first, so it works on symmetric problems and fights you on asymmetric ones.
What to do with this
The bottleneck here is not the theorem. Take a dozen inequalities you have already seen solved, and for each one write only the three setup lines: the function, the interval and its curvature, the average. Do not finish them. You will discover that a surprising fraction of what you were taught as separate named inequalities are the same argument with a different , and that is the compression worth having.
Lemma teaches this as convexity and Jensen rather than as a trick that appears twice, sitting alongside the classical inequalities it generates. The problem archive has the statements above in full with difficulty and expected time on each, and the daily problem posts a new one every day in three tiers, no account needed.
Train it on Lemma
Every technique here is taught explicitly, in order. 125 lessons, 1206 curated problems and unlimited generated practice at six difficulties. Free to start, no card, and every paid plan opens with 3 free days.
Find your level