Zero Derivative Implies Constant
Here is a question that seems almost too obvious to ask: if a car's speedometer reads exactly zero for an entire trip, did the car move? Intuition screams no. Calculus lets us prove this with total rigor. But the proof requires more machinery than one might expect. A function can have derivative zero at every single point of an interval without that fact alone telling us anything. We need the derivative to be zero everywhere. And we need the domain to be an interval, connected with no gaps. This result, "zero derivative implies constant," looks like a footnote. But it is actually a linchpin of single-variable calculus. It is the theorem that justifies writing "" after every indefinite integral. It tells us that two antiderivatives of the same function on an interval can only ever differ by a constant. They never differ by some wilder function that happens to have the same slope everywhere. Without this fact, the entire framework of indefinite integration would rest on sand. Eventually, the Fundamental Theorem of Calculus would rest on sand too. The proof itself is a beautiful, minimal application of the Mean Value Theorem. We don't reinvent anything. We simply notice that MVT hands us exactly the estimate we need on any subinterval. Then we let two points chase each other across the domain. The subtlety worth dwelling on is why the domain must be an interval. Connectedness is doing real work here. A carefully built counterexample on a disconnected set will show exactly where the argument collapses. This article states and proves the theorem in full. It explores the geometric picture of "flat graphs." It works two asymmetric examples. It shows precisely how the connectedness hypothesis is essential. It closes by pointing toward Taylor's Theorem with Remainder. There, the same MVT-based machinery is pushed further. It is used to control not just derivatives but entire polynomial approximations of a function.
- If for every in an interval , then is constant on .
- The proof is a direct, one-line consequence of the Mean Value Theorem applied to any two points of .
- Corollary: if on an interval, then is constant there — the origin of "."
- The hypothesis that the domain is an interval (connected) is not decorative — it is essential.
- On a disconnected domain, a function can have zero derivative everywhere yet take different values on different pieces.
- Key idea: the Mean Value Theorem converts a pointwise fact ( everywhere) into a global fact (constancy), because it links the difference to a single derivative value in between.
Where this lives today
This theorem is invisible infrastructure: it is used constantly, rarely cited by name. Every time a calculus student writes , they are relying on the Corollary above to guarantee that no other antiderivative sneaks in beyond a constant shift. In differential equations, uniqueness of solutions to initial value problems of the simplest type () depends on exactly this fact, and it is the base case that more sophisticated uniqueness theorems (Picard–Lindelöf, Gronwall's inequality) build upon. In physics, it justifies the statement that an object with zero velocity throughout an interval of time has not moved — the intuitive starting point of kinematics made airtight. In numerical analysis and control theory, monotonicity and constancy tests derived from sign conditions on the derivative (a close relative of this theorem, proved by the identical MVT technique) underlie root-finding, stability analysis, and Lyapunov-function arguments. In cryptography and coding theory, seemingly distant fields, algebraic identities of the type appearing in Example 1 are frequently verified by exactly this derivative-vanishing trick rather than direct algebraic manipulation, since differentiating a claimed identity and showing the result is identically zero is often far easier than manipulating the original expression. Finally, this theorem is the direct logical ancestor of Taylor's Theorem with Remainder: there, one controls not the zeroth-order difference but the entire remainder after a degree- polynomial approximation, using repeated application of the same Mean-Value-Theorem machinery (in the guise of Cauchy's or Lagrange's remainder forms) to pin down that remainder exactly.
Ask the tutor: How does this same Mean-Value-Theorem technique generalize to prove Taylor's Theorem with Remainder?
Let be an interval (possibly unbounded, possibly including or excluding endpoints), and let . We say is differentiable on if exists at every point (at an endpoint of a closed interval, this means the appropriate one-sided derivative exists). We say is constant on if there exists such that for every . The object of study is the implication
together with its corollary comparing two functions with identical derivatives.
Intuition
Think of as the instantaneous slope of the graph of at . If the slope is zero at every single point of an interval, the graph can never tilt up or down anywhere along that interval — it must be perfectly flat. This is the "speedometer always reads zero" picture: a car whose speed is identically zero throughout a time interval cannot have moved, because to move even a tiny amount it would need, at some instant, a nonzero average velocity, and the Mean Value Theorem promises that this average velocity is realized as an actual instantaneous velocity somewhere in between. This is the crucial logical move: the Mean Value Theorem is a bridge between local information (the derivative at one particular point) and global information (the total change over an interval). Without MVT, knowing at every point individually says nothing about how compares to ; a priori, the values could still differ. MVT is precisely the tool that forces to be expressible as (length of interval) (some derivative value in between), and if every derivative value is zero, that product is zero no matter which point MVT selects. The picture below shows the flat graph on one connected interval versus the broken picture: two horizontal segments at different heights on two separate intervals, each individually flat, but not equal to each other — because you cannot walk continuously from one piece to the other without leaving the domain.
The dashed line in the second picture emphasizes that nothing legally connects the two flat segments: any path from the left piece to the right piece must jump through a gap in the domain, a gap where is not even defined, so MVT can never be applied across that gap. That is exactly the loophole a genuine interval closes.
Let be an interval, and let be differentiable at every point of , with
Then is constant on : there exists such that for every .
Corollary (functions with equal derivatives). Let be differentiable on the interval with for all . Then there is a constant such that
Technique: fix an arbitrary pair of points and apply the <span class="wiki-link-missing">Mean Value Theorem</span> to the closed sub-segment between them. Step 1 — Set up an arbitrary pair of points. Fix any point , and let . We will show for every . Let be arbitrary with ; without loss of generality assume (the case is identical with the roles swapped). Step 2 — The closed segment lies in . Since is an interval and , by the defining property of an interval, every point with also lies in . (This is precisely what "interval" means: a set is an interval if and only if for any two of its points, every point between them is also in the set.) Hence the closed segment . Step 3 — Verify the hypotheses of the Mean Value Theorem on . Since is differentiable at every point of , and , is differentiable at every point of . Differentiability at a point implies continuity at that point, so is continuous on . Thus is continuous on the closed interval and differentiable on the open interval : exactly the hypotheses of the Mean Value Theorem. Step 4 — Apply the Mean Value Theorem. By the Mean Value Theorem, there exists a point such that
Step 5 — Use the hypothesis . Since , and vanishes at every point of by hypothesis, we have . Substituting into Step 4,
so . Step 6 — Conclude. Since was an arbitrary point distinct from (and the equation holds trivially when ), we have shown for every . Hence is constant on .
Proof of the Corollary. Define by . Since and are each differentiable on , so is (difference of differentiable functions is differentiable, by the linearity of the derivative), and for every ,
by hypothesis. Now satisfies exactly the hypotheses of the theorem just proved: it is differentiable on the interval with derivative identically zero there. By the theorem, is constant on : there is with for all , i.e.
for all .
∎Worked examples
Example 1 — a nontrivial-looking function that is secretly constant. Let and define
This looks like it could be some genuinely interesting curve. Let's check whether it's actually constant by computing . First, recall . For the arcsine term, let . Note that for , (indeed always, with equality only at , which are excluded), so is well defined and differentiable on , with
Compute by the quotient rule:
Compute :
using . For we have , so
Therefore
Now assemble:
The domain is an interval, and is differentiable everywhere on it (both terms are compositions of differentiable functions with well-defined, nonsingular inner expressions on , as checked above). By the theorem, is constant on . To find the constant, evaluate at the convenient point :
Hence for all , i.e.
a genuine trigonometric identity discovered purely by a derivative computation and the theorem — no geometric argument required.
Example 2 — using the corollary to solve a differential equation up to a constant. Suppose we are told is differentiable on and satisfies
We want to pin down completely, not just up to a constant. Let . Direct differentiation gives
Since is an interval and are differentiable on it with everywhere, the Corollary applies: there is a constant with
Now use the side condition to solve for :
so , giving . Hence
This is the mechanism, in miniature, behind solving any initial value problem of the form , : find one antiderivative, then use the Corollary to justify that all antiderivatives differ from it by a constant, and finally use the initial condition to fix that constant uniquely.
Drop the hypothesis that the domain is an interval, keeping every other hypothesis of the theorem intact (differentiability, derivative identically zero). Let
Check differentiability and the derivative. On , is the constant function , so for every . On , is the constant function , so for every . There are no other points of to check. Hence is differentiable at every point of , and for all — the pointwise hypothesis of the theorem holds exactly as stated.
Check the conclusion fails. Take and . Then
so is not constant on .
Diagnosing exactly where the proof breaks. Revisit Step 2 of the proof: we needed the closed segment between two chosen points, say , to be a subset of the domain, so that the Mean Value Theorem could be invoked on it. But
since, for instance, but (the gap is entirely missing from ). Because is not even defined at , the Mean Value Theorem cannot be applied to on — its continuity/differentiability hypotheses are meaningless there. The bridge from "local slope zero" to "global value equal" is never built across the gap, and indeed no valid bridge exists: the two pieces of can be assigned completely independent constants. This shows the interval (connectedness) hypothesis is not a technicality but the load-bearing structural assumption of the entire theorem.
Scope, edge cases & common traps
| Situation | Does the theorem apply? | Why |
|---|---|---|
| on an open interval | Yes | Standard case; proof applies directly |
| on a closed interval , one-sided derivatives at endpoints | Yes | MVT works with one-sided differentiability at endpoints included in the closed sub-segment argument |
| on | Yes | is an interval |
| on | No | Domain not an interval — see counterexample above |
| except at one point where is undefined, e.g. on | No | A single missing point already disconnects the domain |
| differentiable a.e. but not everywhere (e.g. a corner) | No, not directly | Theorem requires differentiability (hence continuity) at every point of ; a jump at even one point can break constancy |
The mathematician behind it
Origins · 1 minJoseph-Louis Lagrange and how this was discovered
Lagrange, born in Turin and later a towering figure at the Berlin and Paris academies, is best remembered for reformulating mechanics in terms of generalized coordinates and for foundational contributions to the calculus of variations and number theory. His 1797 treatise Théorie des fonctions analytiques attempted to place calculus on an algebraic footing using power series, and it was in exactly this spirit of demanding proofs from first principles — rather than appeals to infinitesimal intuition — that results like the Mean Value Theorem and its corollaries, including the zero-derivative theorem, were later given the rigorous treatment that Cauchy and his successors made standard.
Do I need to be continuous for this theorem to hold?
No. The theorem only requires that be differentiable at every point of the interval , with there; it says nothing about the derivative being continuous. This is worth emphasizing because derivatives, in general, need not be continuous (Darboux's theorem shows they still satisfy the intermediate value property even when discontinuous, but continuity is a genuinely stronger and unnecessary demand here). The Mean Value Theorem itself only requires continuity of on the closed segment and differentiability on the open segment — no hypothesis on the continuity of appears anywhere in its statement or in this proof.
Does the theorem work if is a single point or empty?
The theorem is vacuously true or trivially true in these degenerate cases, but they are usually excluded by convention since "interval" typically means a set with more than one point. If is a single point, " is constant on " is automatically true for any function, since there is only one value to compare. If , the statement " is constant on " is vacuously true. Neither case is interesting, and the proof as given implicitly assumes at least two distinct points exist to compare, which is the substantive situation.
Can this theorem be extended to vector-valued or multivariable functions?
Yes, with care. For (a curve), if every component function has derivative zero on the interval , the same argument applied componentwise shows each component is constant, so itself is constant. For where is an open set, the correct hypothesis is that be connected (path-connected, or equivalently open-connected for open subsets of ) rather than an "interval," and the proof uses the Mean Value Theorem along straight-line segments (or along a polygonal path) connecting nearby points, then propagates constancy across the connected set. The key structural requirement — connectedness — is the exact higher-dimensional analogue of "being an interval."
How does this theorem justify the "" in indefinite integration?
When we write , we mean: is one function whose derivative equals , and the Corollary guarantees that any other function with on the same interval must satisfy for some constant . Without the Corollary, we would only know that is one solution to ; we could not claim to have found the general solution, since some entirely different function unrelated to by a constant shift could conceivably also have derivative . The Corollary rules this out completely, but only on an interval — which is exactly why textbooks are careful to say "on an interval" when discussing antiderivatives.
What role does the Mean Value Theorem's existence of actually play?
It is the entire mechanism. The equation converts the unknown global quantity into a product involving a single, specific derivative value . We don't need to know exactly which the theorem produces — we only need to know that lies somewhere in , so that the hypothesis " vanishes at every point of " applies to it too. This is what makes the argument work for an arbitrary pair of points: no matter which the Mean Value Theorem hands us, it is trapped inside and therefore forced to be a zero of .
Is the converse true: does constant imply everywhere?
Yes, and this direction is easier, requiring no Mean Value Theorem at all. If for all , then for any ,
directly from the definition of the derivative as a limit of difference quotients. So the full statement is an if and only if: on an interval, is constant exactly when . The content and difficulty of the theorem lies entirely in the forward direction proved above, which is why that is the direction emphasized throughout this article.