Intermediate value theorem: Let f:[a,b]Rf:[a,b]\to\mathbb{R} be on [a,b][a,b]. If yy is any number between f(a)f(a) and f(b)f(b) (that is, min{f(a),f(b)}ymax{f(a),f(b)}\min\{f(a),f(b)\}\le y\le \max\{f(a),f(b)\}), then there exists c[a,b]c\in[a,b] such that

f(c)=y.f(c)=y.
Remarks

This is one of the basic consequences of being a on an . A notable application is , which shows that derivatives also satisfy an intermediate value property.

Proof from completeness

It suffices to treat f(a)<y<f(b)f(a)<y<f(b); endpoint equalities are immediate, and replacing ff by f-f handles the reversed case. Let cc be the supremum of S={x[a,b]:f(x)y}S=\{x\in[a,b]:f(x)\le y\}. The set is nonempty and bounded. If f(c)<yf(c)<y, continuity provides points of SS strictly to the right of cc, a contradiction. If f(c)>yf(c)>y, continuity excludes SS from a left neighborhood of cc, also contradicting the definition of supremum. Hence f(c)=yf(c)=y.