The Mean Value Theorem and Monotonicity
Learning Objectives
- State Rolle's theorem and the Mean Value Theorem with every hypothesis, and explain what each hypothesis is for.
- Show with a concrete function that the conclusion fails when continuity on the closed interval or differentiability on the open interval is dropped.
- Use the Mean Value Theorem to prove that a zero derivative on an interval means a constant function, and that two functions with the same derivative differ by a constant.
- Decide where a function increases or decreases from the sign of its derivative, and say why the word "interval" matters.
- Turn the theorem into a quantitative tool: bound a change in a function by a bound on its derivative.
Context & Motivation
A derivative is local information: the slope at one point. Most questions are global. Is the function larger at than at ? By how much at most? If two cars start together and the first is never slower than the second, can the second be ahead at the end? The Mean Value Theorem is the bridge from local to global. It says that if a function is smooth enough, the average rate of change over an interval equals the instantaneous rate at some point inside it.
The consequences are used constantly: the first derivative test for extrema, the fact that a function is determined by its derivative up to a constant, and the error bounds of numerical methods all rest on it. In computing, the same idea appears as a Lipschitz bound: if everywhere, then changing the input by changes the output by at most . Applied to a gradient, this is behind step-size rules in gradient descent; applied to an activation function, it bounds how much noise in the input can reach the output. This lesson builds on the-derivative-as-a-rate-of-change and continuity-and-the-intermediate-value-theorem, and it prepares extrema-concavity-and-optimization.
Core Theory
Fermat's observation
Suppose has a local maximum at an interior point and exists. For small the quotient is at most , and for small it is at least . The limit exists, so it is both and , hence . The same argument covers a local minimum. The hypothesis " exists" matters: has a minimum at where the derivative is not zero, because it does not exist.
Rolle's theorem
Rolle's theorem. Let be continuous on and differentiable on , with . Then there is some with .
The idea: a continuous function on a closed interval attains a largest and a smallest value (the Extreme Value Theorem, stated carefully in the next lesson). If both equal , the function is constant and every point works. Otherwise one of them differs from , so it is attained at an interior point, and Fermat's observation gives .
The Mean Value Theorem
Mean Value Theorem (MVT). Let be continuous on and differentiable on . Then there is some with
Proof from Rolle: let and define . This is minus the secant line, so , and inherits continuity and differentiability. Rolle gives with .
Geometrically, some tangent line is parallel to the secant line. The theorem does not say where is, only that one exists; there can be several.
What fails when a hypothesis is dropped
Each hypothesis earns its place. Three functions show it.
- on : continuous, and , but not differentiable at . For the derivative is , never . Rolle's conclusion fails. On the secant slope is , but wherever it exists, so the MVT conclusion fails too. A single corner is enough.
- on : it equals on and jumps back to at , so and is differentiable on , but it is not continuous at . Here everywhere inside, never .
- The hypotheses are sufficient, not necessary. Let on and . It is discontinuous at , yet the secant slope is and at . Failing a hypothesis makes the theorem silent, not the conclusion false.
Consequences for monotonicity
Let be an interval, and let (and , in item 2) be continuous on and differentiable at its interior points.
- If on the interior of , then is constant on . For any in , the MVT gives .
- If on the interior of , then is constant on . Apply item 1 to , which is continuous on because both functions are. Continuity of on all of is needed: on take and on with . Then on , but is not constant.
- If on the interior of , then is strictly increasing on . The same formula gives . If , is non-decreasing. Reversing the signs gives decreasing.
All three hold on an interval: the proofs need any two points to be joined by a stretch inside the domain.
Worked Examples
Example 1: finding , and a failing case
Rolle on over . Both endpoint values are , because vanishes at . The derivative is , zero at , both inside the interval. Rolle promised at least one; here there are two.
MVT on over : is continuous on and differentiable on . The secant slope is . Solving gives , so .
Now a failing case. Here means , the square of the real cube root, and means , so both are defined for negative . (In code, numpy.power(-1.0, 2/3) returns nan, while numpy.cbrt(-1.0)**2 gives 1.0.) The function on has and a cusp at where does not exist. For , is never , so Rolle's conclusion fails. The habit to build: check differentiability at every interior point, not just the typical ones.
Example 2: bounding a value
How large is ? Apply the MVT to on : for some . Since , , so , which gives . Now , so . Together, , a rigorous bracket that never uses the value of itself. The true value is .
The same technique proves for . For : with , and , so . For : with , so , and multiplying by the negative number flips the inequality: . The sign of changes the argument, which is why both cases are written out.
Example 3: a Lipschitz bound for the sigmoid
The logistic sigmoid has . Since for any , we get everywhere. The MVT then says that for any ,
Take and . The true difference is , the bound gives , and the secant slope is , which equals at . The bound is loose here but holds for every pair of inputs, and also shows is strictly increasing.
Example 4: the constant can change across a gap
Let , defined for . Using , the derivative is for every . So is constant on and constant on , but the domain is not an interval. Indeed while . Two constants, one per piece.
Common Misconceptions & Pitfalls
- "Derivative positive at a point means increasing near it." False. Let with . Then , but for , , and at this equals . Negative slopes occur arbitrarily close to , so is not increasing on any interval around . The theorem needs on a whole interval.
- "Negative derivative everywhere means decreasing." Only on an interval. has at every point of its domain, but . It decreases on and on separately.
- "Strictly increasing requires everywhere." No: has and is still strictly increasing. Positive derivative is sufficient, not necessary. What does follow is that cannot vanish on a whole interval.
- "The MVT gives the point ." It only asserts existence. In Example 3, had to be solved for separately, and in general it may not be expressible in closed form.
Summary
Rolle's theorem and the Mean Value Theorem need continuity on and differentiability on , and Rolle also needs . Dropping either hypothesis can make the conclusion fail: has a corner, has a jump, and in both cases no point has the required slope. From the MVT on an interval follow the three workhorse facts: a zero derivative gives a constant, equal derivatives give functions that differ by a constant, and a positive derivative gives a strictly increasing function. The word "interval" cannot be dropped, as and show. The theorem also converts bounds on into bounds on , which gave a rigorous bracket for and the Lipschitz constant for the sigmoid. The next lesson, extrema-concavity-and-optimization, uses these facts to turn signs of derivatives into maxima and minima.