Theorem. Let f:I→Rf:I\to\mathbb{R} be differentiable on a nonempty open interval I⊂RI\subset\mathbb{R}. Then ff is on II if and only if f′f' is nondecreasing on II.

Context. This provides a practical test for convexity in one variable and connects geometric convexity with calculus.

Proof sketch.

  • If ff is convex, apply and take limits as x↓ax\downarrow a and x↑bx\uparrow b to get f′(a)≤f′(b)f'(a)\le f'(b) for a<ba<b.
  • If f′f' is nondecreasing, then for a<ba<b the mean value theorem implies the secant slope (f(b)−f(a))/(b−a)(f(b)-f(a))/(b-a) lies between values of f′f', giving Jensen's inequality and hence convexity.