A derivative gives local slope, but a theorem is needed to convert local information into a conclusion over an interval.
The interval results below use continuity, differentiability and the extreme-value theorem proved from compactness. That is the existence input in Rolle's proof; the derivative arguments themselves do not require studying compactness again. Optional finite-dimensional extension exercises and solutions are available for review.
From Fermat to the mean value theorem
Fermat's necessary condition. At a differentiable interior local maximum or minimum, .
Proof. At a local maximum, sufficiently small positive increments give nonpositive difference quotients and negative increments give nonnegative ones. A two-sided derivative can satisfy both sign limits only by being zero. Negating the function treats a minimum.
The interior hypothesis matters: on has extrema at endpoints despite derivative 1. The converse fails: has zero derivative at zero but no extremum there.
Rolle's theorem. If , is continuous on , differentiable on and , then for some .
Proof. The extreme-value theorem supplies maximum and minimum. If the function is constant, every interior point works. Otherwise a value differs from the equal endpoint values, so either a maximum or a minimum occurs in the interior. Fermat's condition applies there.
Mean value theorem. Under the same continuity and differentiability hypotheses but without equal endpoint values, some satisfies .
Subtract the secant line from and apply Rolle. This proves the theorem without assuming is continuous. Consequences include: derivative zero on an interval makes the function constant; nonnegative derivative makes it nondecreasing; and on an interval gives for points in it. An interval-wide derivative bound cannot be inferred from one derivative value.
Counterexample mode
One corner is enough to break the mean value theorem
It is tempting to think that continuity on the closed interval already forces a tangent parallel to the secant. Take on . It is continuous and , so the conclusion would need some ; but for , for , and does not exist. Continuity at the endpoints matters too: on with has while throughout . With both hypotheses restored, the theorem applies.
From candidates to a justified classification
A stationary point is an interior point with . A critical point is an interior domain point where or the derivative does not exist. Domain endpoints are separate candidates for a global problem. Fermat says a differentiable interior extremum is stationary; it does not say every stationary point is an extremum.
For the first-derivative test, first check that is continuous at and differentiable in a punctured neighborhood on both sides. Then establish the derivative signs on whole one-sided intervals, not just at sampled points.
| Sign of just left of | Sign just right | Conclusion at |
|---|---|---|
| positive | negative | strict local maximum |
| negative | positive | strict local minimum |
| positive | positive | no local extremum; increasing through |
| negative | negative | no local extremum; decreasing through |
For example, in the first row the mean value theorem on gives for nearby . On it gives for nearby . Both sides are below ; reversing the signs proves the minimum row. The same-sign rows similarly give values on opposite sides of . Continuity at is what permits the two closed-interval applications. It cannot be dropped: set for but . Its derivative is positive to the left and negative to the right, yet zero is a strict local minimum because for we have .
For the second-derivative test, require differentiability near , stationarity , and existence of . A positive second derivative gives a strict local minimum and a negative one a strict local maximum; the pointwise proof below does not assume continuity of . If , go back to derivative signs: , and have the same first and second derivatives zero at zero, but have a minimum, maximum and neither, respectively.
Curvature is a different question from extremality. On an interval where , is strictly increasing by the mean value theorem and is strictly convex. An inflection point is a point of a continuous curve where convexity changes. Opposite strict signs of on the two sides provide such a change; a zero value of alone does not. A missing input is not a point of the graph, so the curvature switch of across zero is not an inflection point.
Worked uses of mean-value reasoning
Worked example 4.1.1
(Global optimisation on a closed interval)
Find the maximum and minimum of on . Continuity guarantees both exist. The interior critical points solve , giving . Compare , , , and . Thus the minimum is and the maximum is , each attained at two points. Checking only critical points would omit necessary endpoint candidates.
Worked example 4.1.2
(Related rates)
If the radius of a sphere grows at centimetres per second, then gives by the chain rule. At centimetres, the volume increases at cubic centimetres per second. Differentiate the relationship before substituting the instant's values.
For curve sketching, find the domain and intercepts, then one-sided behaviour at domain boundaries, asymptotes where their defining limits exist, critical points and derivative signs, and curvature. A vertical asymptote at requires at least one one-sided limit to be infinite. A horizontal asymptote requires as or as . These are independent of whether the graph crosses the line elsewhere.
Worked example 4.1.3
(An inequality from a derivative bound)
For , let . Then : negative on and positive on . The mean value theorem makes decrease toward and increase after , so its global minimum is . Consequently for all , with equality only at .
A stationary point has , whereas a critical point may also be a point where the derivative fails to exist. For instance has a minimum at zero even though it is not stationary there. A sketch based solely on stationary points can miss corners and domain endpoints. On an open domain, a supremum need not be attained: on has supremum but no maximum.
Choosing a method
For a global extremum on a closed interval compare endpoints and all interior critical candidates. On an unbounded or open domain an extremum need not exist, so analyse boundary limits and justify attainment. For inequalities, apply the mean value theorem to an appropriate auxiliary function or prove its derivative has a sign. Related rates require consistent units and a relation valid as quantities change.
Exercises
- Show for .
- A rectangle has perimeter . Find the largest possible area, allowing nonnegative side lengths.
- Find all stationary points of and classify them locally.
Full solutions
- Let . For , . The mean value theorem implies .
- If sides are and with , area is . It is continuous, and vanishes only at . Comparing and gives maximum , attained by a square.
- vanishes at . As , the second derivative test gives a local maximum at with value and a local minimum at with value .
Further practice
Quick check
(Verify the hypotheses of the mean value theorem for on and find every that satisfies its conclusion.)
Compute the secant slope first, then solve slope inside the open interval.
Solution · Answer
The function is continuous on and differentiable on with , so the theorem applies. The secant slope is . Solving gives , so . It lies in , and it is the only solution because is strictly decreasing.
Quick check
(Use the mean value theorem for on to prove .)
Write as a derivative value and bound that value from both sides.
Solution · Answer
The hypotheses hold on , so some satisfies . Since , we have , hence . Adding gives . Numerically, and .
Quick check
(Find all critical points of on and classify each one with the first-derivative test.)
One critical point is stationary and one is not; check continuity at each before applying the test.
Solution · Answer
For , the product rule gives . At the difference quotient is unbounded, so does not exist; is continuous there. The critical points are therefore (derivative undefined) and (stationary). The signs are: for , both and are negative, so ; for , ; for , . Hence is a strict local maximum with , and is a strict local minimum with .
Connection
Mean-value reasoning also controls error in Taylor approximations. Optimisation uses the same derivative rules as related rates, but asks a different question: where is a value largest or smallest?
Proofs supporting the methods used in this note
Finite real limit laws and geometric sequences: proofs develops this prerequisite with its hypotheses, proof and examples.
Subsequences develops this prerequisite with its hypotheses, proof and examples.
Heine–Borel in finite-dimensional Euclidean space develops this prerequisite with its hypotheses, proof and examples.
The second-derivative test with only pointwise second differentiability
Let be differentiable on an open interval around , suppose , and suppose is differentiable at . If , then is a strict local minimum. No continuity of on a neighborhood is assumed.
Put . By its definition there is within that open interval such that
Because , this makes for negative and for positive . If , the mean value theorem on gives . If , its version on gives , again . This proves the strict minimum. The theorem applies because differentiability supplies continuity on these closed subintervals. Apply the same result to when to obtain a strict local maximum. When there is no conclusion: , and at zero have respectively a minimum, a maximum and no extremum, while all have first and second derivatives zero there. The stationarity and interior-neighborhood conditions are essential; positivity of alone is not sufficient, as at zero shows.
Proof X-ray
One derivative value turned into a sign pattern
The proof never uses away from . Existence of concerns a single difference quotient of ; together with it yields only that is negative just left of and positive just right of it, not that is monotone there. The mean value theorem is the bridge from these derivative signs to a comparison of function values, and it needs differentiability on the whole open interval, which is why that hypothesis appears. The two one-sided comparisons both put above , which is exactly a strict local minimum.