Slope inequalities for convex functions

Secant slopes of a convex function are ordered
Slope inequalities for convex functions

Lemma. Let f:IRf:I\to\mathbb{R} be a on a nonempty interval IRI\subset\mathbb{R}. For any a,bIa,b\in I with a<ba<b and any x(a,b)x\in(a,b),

f(x)f(a)xa    f(b)f(a)ba    f(b)f(x)bx. \frac{f(x)-f(a)}{x-a}\;\le\;\frac{f(b)-f(a)}{b-a}\;\le\;\frac{f(b)-f(x)}{b-x}.

Context. Convexity forces secant slopes to increase as you move to the right. This lemma is the key step in relating convexity to monotonicity of derivatives.

Proof sketch. Write x=tb+(1t)ax=tb+(1-t)a with t=(xa)/(ba)(0,1)t=(x-a)/(b-a)\in(0,1) and apply Jensen’s inequality to compare f(x)f(x) with the linear interpolation between f(a)f(a) and f(b)f(b); rearranging yields the slope bounds.