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. Let f:[a,b]→R be continuous on [a,b].
Then there exist xmin,xmax∈[a,b] such that
f(xmin)≤f(x)≤f(xmax)for every x∈[a,b].