Real function/Derivative zero/Constant/Fact/Proof

Proof

If is not constant, then there exists some such that . Then there exists, due to the mean value theorem, some , , such that , which contradicts the assumption.