Hermite-Hadamard Inequality — Definition, Formula & Example
The Hermite-Hadamard Inequality is a double inequality for convex functions. It says that the average value of a convex function over an interval is at least its value at the midpoint and at most the average of its two endpoint values.
Let be convex on the closed interval with . Then . If is concave, both inequalities reverse. If is linear, both become equalities.
Key Formula
Where:
- = A convex function on the interval
- = Endpoints of the interval, with a < b
- = The average value of f on [a, b]
How It Works
Each half has a short geometric proof. For the right half, convexity means the chord from to lies on or above the graph. Integrate both and divide by , and the chord's average value is exactly . For the left half, pair each with its mirror point . Convexity gives , and integrating over gives the result. You can also use a supporting line at the midpoint, which lies on or below the graph.
Worked Example
Problem: Use the Hermite-Hadamard Inequality with on to bound .
Step 1: Check convexity. For , , so is convex on . Evaluate at the midpoint .
Step 2: Find the average value. Here , so the average equals the integral.
Step 3: Average the endpoint values and combine all three.
Answer: , that is, . The true value sits between them.
Why It Matters
In numerical analysis, the left side is the midpoint rule and the right side is the trapezoidal rule. So for a convex function, the midpoint rule underestimates the integral and the trapezoidal rule overestimates it. Real analysis and inequality courses use the result to bound integrals and logarithmic or other means.
Common Mistakes
Mistake: Applying the inequality in the same direction to a concave function such as or .
Correction: For a concave function, the chord lies below the graph, so both inequalities flip. Check the sign of on the interval before you choose a direction.
