Jensen’s Inequality: How Curvature Controls Averages

Why does the square of an average never exceed the average of the squares? Why does the geometric mean never exceed the arithmetic mean? And why can variability increase the average value of some quantities while decreasing others?

These seemingly different observations are manifestations of one mathematical principle: Jensen’s inequality.

1. A surprising property of averages

Consider two numbers, 2 and 8. Their average is 5. If we square the average, we obtain

\left(\frac{2+8}{2}\right)^2=25.

But if we square first and then average, we obtain

\frac{2^2+8^2}{2}=34.

The second result is larger. This is not a coincidence. For any real numbers a,b,

\left(\frac{a+b}{2}\right)^2\leq\frac{a^2+b^2}{2}.

Indeed, the difference between the right and left sides is \frac{(a-b)^2}{4}\geq0.

What property of the squaring function makes this inequality true? The answer is convexity.

2. Convexity: The geometry behind the inequality

A function f defined on an interval is called convex if, for every a,b in that interval and every 0\leq t\leq1,

f(ta+(1-t)b)\leq tf(a)+(1-t)f(b).

Geometrically, the graph of a convex function lies below or on the chord connecting any two points of its graph.

Graph of f(x) = x squared with the chord from (2, 4) to (8, 64); at x = 5 the chord is at 34 and the curve at 25
The example from section 1: at the mean 5, the chord (average of the squares, 34) lies above the curve (square of the average, 25). The gap, 9, equals (8 − 2)²/4.

If f is twice differentiable, the condition f''(x)\geq0 throughout an interval guarantees convexity.

For example, f(x)=x^2 is convex because f''(x)=2>0. In contrast, f(x)=\sqrt{x} is concave on x>0, because

f''(x)=-\frac{1}{4x^{3/2}}<0.

For concave functions, the convexity inequality is reversed. Thus, the direction of the inequality depends on the curvature of the graph.

3. Jensen’s inequality

Let f be convex on an interval, and let x_1,\ldots,x_n belong to that interval. If the weights satisfy

w_i\geq0,\qquad\sum_{i=1}^n w_i=1,

then Jensen’s inequality states that

\boxed{f\left(\sum_{i=1}^n w_i x_i\right)\leq\sum_{i=1}^n w_i f(x_i).}

For equal weights, this becomes

\boxed{f\left(\frac{x_1+\cdots+x_n}{n}\right)\leq\frac{f(x_1)+\cdots+f(x_n)}{n}.}

For a convex function, evaluating the function at the average gives no more than averaging the function values. For a concave function, the inequality reverses.

If f is strictly convex and all weights are positive, equality occurs precisely when all x_i are equal.

4. Why Jensen’s inequality is true

There is an elegant proof using tangent lines. Suppose f is differentiable and convex, and let

\mu=\sum_{i=1}^n w_i x_i.

Because f is convex, its graph lies above every tangent line:

f(x_i)\geq f(\mu)+f'(\mu)(x_i-\mu).

Multiply by w_i and sum:

\sum_{i=1}^n w_i f(x_i)\geq f(\mu)+f'(\mu)\sum_{i=1}^n w_i(x_i-\mu).

But \sum_{i=1}^n w_i(x_i-\mu)=0. Consequently,

\sum_{i=1}^n w_i f(x_i)\geq f(\mu),

which proves Jensen’s inequality. The linear term disappears because we are averaging about the mean.

5. Application: Arithmetic mean versus geometric mean

The logarithm is concave because

\frac{d^2}{dx^2}\ln x=-\frac1{x^2}<0.

For positive numbers a_1,\ldots,a_n, Jensen’s inequality gives

\ln\left(\frac{a_1+\cdots+a_n}{n}\right)\geq\frac{\ln a_1+\cdots+\ln a_n}{n}.

Exponentiating both sides,

\boxed{\frac{a_1+\cdots+a_n}{n}\geq(a_1a_2\cdots a_n)^{1/n}.}

This is the arithmetic mean–geometric mean inequality. Equality holds precisely when all the numbers are equal. What is often taught as an isolated algebraic inequality is a direct consequence of the concavity of the logarithm.

6. Application: Why variability increases the average square

Let x_1,\ldots,x_n have mean \mu. Applying Jensen’s inequality to f(x)=x^2,

\frac1n\sum_{i=1}^n x_i^2\geq\mu^2.

In fact, we have the exact identity

\frac1n\sum_{i=1}^n x_i^2-\mu^2=\frac1n\sum_{i=1}^n(x_i-\mu)^2.

The right side is the population variance. Variability creates a positive gap between the average square and the square of the average.

For example, the datasets 4,4,4 and 1,4,7 have the same mean, but their average squares are 16 and 22, respectively. The second dataset has greater variability, and its average square is correspondingly larger.

7. Application: A geometric optimization problem

Suppose a rectangular box has positive side lengths a,b,c and fixed volume abc=V. Its surface area is S=2(ab+bc+ca). We want to minimize S.

Apply Jensen’s inequality to the convex exponential function f(x)=e^x, using the numbers \ln(ab),\ \ln(bc),\ \ln(ca). We obtain

\frac{ab+bc+ca}{3}\geq\exp\left(\frac{\ln(ab)+\ln(bc)+\ln(ca)}{3}\right).

Since ab\cdot bc\cdot ca=V^2,

ab+bc+ca\geq3V^{2/3}.

Therefore,

\boxed{S\geq6V^{2/3}.}

Equality holds when ab=bc=ca, which, for positive side lengths, implies a=b=c. Hence among all rectangular boxes with a fixed volume, the cube has the smallest surface area. This solves an optimization problem without differentiation or Lagrange multipliers.

8. Application: Probability and expected values

If X is a random variable and f is convex, then, provided the relevant expectations exist,

\boxed{f(E[X])\leq E[f(X)].}

Consider a random investment return R, where 1+R>0. The logarithm is concave, so

E[\ln(1+R)]\leq\ln(1+E[R]).

For example, suppose an investment gains 50% in one year and loses 50% in the next. Its arithmetic average annual return is zero:

\frac{0.5+(-0.5)}2=0.

But the total growth factor is 1.5(0.5)=0.75. The investment loses 25% over the two years.

The equivalent constant annual return is

\sqrt{0.75}-1\approx-0.1340,

or approximately -13.40\%. The difference between arithmetic and compounded growth reflects the concavity of the logarithm.

9. A less obvious application: Reciprocal inequalities

The function f(x)=1/x, for x>0, is convex because

f''(x)=\frac2{x^3}>0.

Jensen’s inequality therefore gives

\frac1n\sum_{i=1}^n\frac1{x_i}\geq\frac1{\frac1n\sum_{i=1}^n x_i}.

After rearranging,

\boxed{\left(\sum_{i=1}^n x_i\right)\left(\sum_{i=1}^n\frac1{x_i}\right)\geq n^2.}

This inequality can also be obtained from Cauchy–Schwarz. Different classical inequalities sometimes express the same underlying structure.

10. How much does curvature matter?

Jensen’s inequality tells us the direction of the difference, but curvature can also help estimate its size.

Suppose f is twice differentiable and

m\leq f''(x)\leq M

throughout an interval containing the numbers x_i, where m\geq0. Let

\mu=\sum_{i=1}^n w_i x_i,\qquad\sigma^2=\sum_{i=1}^n w_i(x_i-\mu)^2.

Taylor’s theorem, applied around \mu, gives the bounds

\boxed{\frac m2\sigma^2\leq\sum_{i=1}^n w_i f(x_i)-f(\mu)\leq\frac M2\sigma^2.}

Thus, the Jensen gap is controlled by two quantities: the curvature of the function and the variance of the inputs.

For the squaring function f(x)=x^2, we have m=M=2, so the bounds become the exact identity

\sum_{i=1}^n w_i x_i^2-\mu^2=\sigma^2.

This explains the title of our article: curvature controls what happens when we average.

11. Challenge problems

Problem 1. Let a,b,c>0 with a+b+c=3. Prove that

\frac1{1+a}+\frac1{1+b}+\frac1{1+c}\geq\frac32.

Determine when equality holds.

Problem 2. Let x_1,\ldots,x_n>0 and x_1+\cdots+x_n=S. Use Jensen’s inequality to determine the largest possible value of x_1x_2\cdots x_n.

Problem 3. Suppose X is a random variable taking values in [1,3], with E[X]=2. Prove that

E[e^X]\geq e^2.

When can equality occur?

Problem 4. For positive numbers a_1,\ldots,a_n, prove that

\frac1n\sum_{i=1}^n a_i^3\geq\left(\frac1n\sum_{i=1}^n a_i\right)^3.

Explain why positivity is relevant to applying Jensen’s inequality to x^3.

Conclusion

Jensen’s inequality unifies a remarkable collection of mathematical ideas. It explains the relationship between arithmetic and geometric means, connects variance to nonlinear transformations, solves geometric optimization problems, and clarifies why randomness and compounding interact in unexpected ways.

Averages and nonlinear functions do not generally commute. The curvature of the function determines which order produces the larger result.

Continue exploring: Section 5 gives one proof of AM–GM: Why Multiplication and Addition Are Connected. The same concavity of the logarithm gives Young’s inequality, which in turn proves Hölder’s Inequality: Beyond Cauchy–Schwarz.

For more applications of fundamental inequalities, including the Cauchy–Schwarz inequality, see our article Classical Inequalities and Their Applications .

Leave a Reply

Your email address will not be published. Required fields are marked *