Show that if a function f defined on an open interval (a,b) of R is convex, then f is continuous. Show, by example, if the condition of open interval is dropped, then the convex function need not be continuous.
Technique
Three-point (increasing chord-slope) characterization of convexity ⇒ local two-sided slope bounds ⇒ local Lipschitz ⇒ continuity; counterexample via an endpoint jump on a closed interval.
Solution
Recall f:(a,b)→R is convex if for all x,y∈(a,b) and λ∈[0,1],
f(λx+(1−λ)y)≤λf(x)+(1−λ)f(y).
An equivalent and convenient form is the three-point slope inequality: for x<y<z in (a,b),
y−xf(y)−f(x)≤z−xf(z)−f(x)≤z−yf(z)−f(y).(S)
(The slopes of chords increase from left to right.)
Step 1 — Fix an interior point and trap it strictly inside
Let x0∈(a,b). Since (a,b) is open, choose points
a<p<x0<q<b.
We show f is continuous at x0 by bounding the difference quotients on both sides between two fixed slopes.
Step 2 — Bound the slopes near x0
Take any x with p<x<x0 and any y with x0<y<q. Apply the slope monotonicity (S) repeatedly. Using the points p<x<x0:
The key conclusion is that for x,y in a fixed neighborhood [p,q] of x0, the slopes of chords through x0 are bounded between the fixed constants KL and KR (both finite, since f(p),f(x0),f(q) are finite numbers). Concretely there is a constant M=max(∣KL∣,∣KR∣)<∞ with
x−x0f(x)−f(x0)≤Mfor all x∈[p,q]∖{x0}.
Step 3 — Lipschitz bound forces continuity
From the slope bound,
∣f(x)−f(x0)∣≤M∣x−x0∣(x∈[p,q]).
Hence as x→x0, f(x)→f(x0). So f is continuous at x0. Since x0∈(a,b) was arbitrary, f is continuous on (a,b).
In fact this shows more: f is locally Lipschitz, hence continuous, on the open interval. ■