Freshmark
← Back to all writing

draft

Hermite-Hadamard Inequality

Introduction (Hermite-Hadamard)

For convex functions, its geometric characteristics (area) can be used to derive the Hermite-Hadamard inequality (hereinafter collectively referred to as the H-H inequality).

alt text
P1

(b−a)f(a+b2)≤∫abf(x)dx≤(b−a)f(a)+f(b)2(b≥a)\begin{gathered} \boxed{(b-a)f(\frac{a+b}{2})\leq \int_{a}^b f(x)dx\leq (b-a)\frac{f(a)+f(b)}{2}(b\geq a)} \end{gathered}

As shown in P-1, for the convex function f(x)f(x), the following correspondence can be made:

Hermite-Hadamard inequalities geometric correspondence table

Components of inequalitiesCorresponding areas in the figureExplanation of geometric meaning
Left side items:
(b−a)f(a+b2)(b-a)f\left(\frac{a+b}{2}\right)
Red translucent rectangle
(the base is b−ab-a, the height is f(a+b2)f(\frac{a+b}{2}))
Midpoint rectangle area: represents the area of the trapezoid surrounded by the tangent line at the midpoint (think about why). Since the function is convex, the tangent is completely under the curve, so the rectangle has the smallest area.
Middle term:
∫abf(x)dx\int_a^b f(x) dx
Green filled area
(the area under the curve f(x)f(x))
Integral average: represents the actual area under the curve. In the figure, the green area covers the red rectangle but is contained by the outermost yellow trapezoid.
**Right-side item: **
(b−a)f(a)+f(b)2(b-a)\frac{f(a)+f(b)}{2}
The entire yellow shaded trapezoid
(below the secant connecting (a,f(a))(a, f(a)) and (b,f(b))(b, f(b)))
Secant trapezoid area: represents the area enclosed by the secant (chord) connecting the end points of the interval and the xx axis. Since the secant of the convex function is located above the curve, its area is the largest.

We prove this inequality below: (b−a)f(a+b2)≤∫abf(x)dx(b-a)f(\frac{a+b}{2})\leq \int_{a}^b f(x)dxLet the original functions of f(x)f(x) be F(x)F(x), g(x)=(x−a)f(x+a2)−(F(x)−F(a))(x≥a)g(x)=(x-a)f(\frac{x+a}{2})-(F(x)-F(a))(x\geq a) g′(x)=f(x+a2)+x−a2f′(x+a2)−f(x)g'(x)=f(\frac{x+a}{2})+\frac{x-a}{2}f'(\frac{x+a}{2})-f(x)g′′(x)=f′(x+a2)+x−a4f′′(x+a2)−f′(x)g''(x)=f'(\frac{x+a}{2})+\frac{x-a}{4}f''(\frac{x+a}{2})-f'(x)Because f(x)f(x) is a convex function, f′′(x+a)>0,f′(x+a2)≥f′(x)f''(x+a)>0,f'(\frac{x+a}{2})\geq f'(x), so g′′(x)≥0g''(x)\geq 0.

Also g′(a)=0≤g′(x),g'(a)=0\leq g'(x), so g(x)≥g(a)=0g(x)\ge g(a)=0

Another proof (added by Claude)

This section was added by Claude, an AI model made by Anthropic, after the author's proof. It is not written by the original author.

First, a problem in the proof above. For a convex ff, f′f' is increasing and x+a2≤x\frac{x+a}{2}\le x, so f′ ⁣(x+a2)≤f′(x)f'\!\left(\frac{x+a}{2}\right)\le f'(x), the opposite of what is written; g′′(x)≥0g''(x)\ge0 therefore does not follow. Also, the goal is (x−a)f ⁣(x+a2)≤F(x)−F(a)(x-a)f\!\left(\frac{x+a}{2}\right)\le F(x)-F(a), i.e. g(x)≤0g(x)\le0, not g(x)≥0g(x)\ge0.

A proof without derivatives. The definition of convexity proves both sides at once. Let m=a+b2m=\frac{a+b}{2} and h=b−a2h=\frac{b-a}{2}.

Left side: convexity gives f(m−t)+f(m+t)≥2f(m)f(m-t)+f(m+t)\ge 2f(m), so

∫abf(x) dx=∫0h[f(m−t)+f(m+t)]dt ≥ 2h f(m)=(b−a)f ⁣(a+b2).\int_a^b f(x)\,dx=\int_0^{h}\bigl[f(m-t)+f(m+t)\bigr]dt\ \ge\ 2h\,f(m)=(b-a)f\!\left(\tfrac{a+b}{2}\right).

Right side: with x=a+s(b−a)x=a+s(b-a), s∈[0,1]s\in[0,1], convexity gives f(x)≤(1−s)f(a)+sf(b)f(x)\le(1-s)f(a)+sf(b), so

∫abf(x) dx=(b−a)∫01f(a+s(b−a))ds ≤ (b−a)∫01[(1−s)f(a)+sf(b)]ds=(b−a)f(a)+f(b)2.\int_a^b f(x)\,dx=(b-a)\int_0^1 f\bigl(a+s(b-a)\bigr)ds\ \le\ (b-a)\int_0^1\bigl[(1-s)f(a)+sf(b)\bigr]ds=(b-a)\frac{f(a)+f(b)}{2}.

This proof does not need ff to be differentiable, and it matches the two pictures in the figure: the average of two points symmetric about the midpoint is at least the midpoint value, and the chord lies above the curve.

Comments

Comments

Sign in to join the discussion. Email is verified only when you register.

Loading comments…

Checking your session…