Let a,b be real numbers with a≤b in the order of the ordered field R, let [a,b] be the closed interval determined by a and b, regarded as a subset of the real line (R,dR), and let the codomain R carry the same metric dR. Write (a,b) for {x∈R:a<x<b}; every x∈(a,b) is an interior point of the interval [a,b], since a,b∈[a,b] and a<x<b.
Let f:[a,b]→R be continuous on [a,b] and differentiable at every point x∈(a,b), with
f′(x)=0for every x∈(a,b).
Then f is constant:
f(x)=f(a)for every x∈[a,b].