Take x1β<x2β<x3β.
The mean value theorem on [x1β,x2β] and [x2β,x3β] gives c1ββ(x1β,x2β) and c2ββ(x2β,x3β) with fβ²(c1β)=x2ββx1βf(x2β)βf(x1β)β and fβ²(c2β)=x3ββx2βf(x3β)βf(x2β)β.
Since c1β<c2β and fβ² is increasing, fβ²(c1β)β€fβ²(c2β).
With x2β=tx1β+(1βt)x3β we have x3ββx1βx3ββx2ββ=t and x3ββx1βx2ββx1ββ=1βt, so the inequality becomes f(tx1β+(1βt)x3β)β€tf(x1β)+(1βt)f(x3β) β the definition of convexity.
The degenerate cases are trivial: t=0 or t=1 gives equality on both sides, and equal points (x1β=x3β) likewise leave only equality.
Note that fβ²β²β₯0 makes fβ² increasing β under an extra hypothesis: if f is twice differentiable (so fβ² is continuous and differentiable on the interior with derivative fβ²β²), the mean value theorem applied to fβ² gives this.