Prove Darboux's theorem: if is differentiable on , then takes every value between and . (Hint: use the Extreme Value Theorem scene and Fermat's interior-extremum lemma.)
Show proof
First Fermat's lemma: if has a local max (or min) at an interior point and exists, then .
For a local min, for small and for ; the two-sided limit defining the derivative is forced to 0.
A local max is the same with signs flipped.
Assume (apply the argument to if ; the equal case is trivial).
Fix between them and put : then is differentiable, hence continuous, on , and gives .
By the Extreme Value Theorem (the EVT scene), attains its minimum at some .
The point is interior: since , , so for small β is not the minimizer.
Likewise gives for small β is not the minimizer either.
Hence .
Applying Fermat's lemma at the interior minimizer gives , hence . Since was arbitrary between and , has the intermediate value property β even though it may be discontinuous.