Differential Calculus
Extreme Values and the Mean Value Theorem
Optimization is the payoff of differential calculus: derivatives exist largely so that we can find the highest and lowest values a quantity can take. This topic supplies the vocabulary (absolute vs. local extrema, critical numbers), the existence theorems that guarantee you are not hunting for something that is not there (the Extreme Value Theorem, Rolle, the Mean Value Theorem), and the finite checklist — the Closed Interval Method — that turns the search into an algorithm. The Mean Value Theorem then closes the loop back to theory: nearly every later statement about deduced from is a corollary of it.
Absolute vs. local extrema
Let have domain and let be a number in .
- has an absolute (global) maximum at if for every in . It has an absolute minimum at if for every in .
- has a local (relative) maximum at if for all in some open interval that contains and lies inside . Local minimum: reverse the inequality.
- The extreme value is the number ; the location is . A complete answer names both: "the absolute maximum value is , attained at ."
Two consequences of the definitions. An absolute extremum that occurs at an interior point of is automatically a local extremum. With the "open interval" convention above, an endpoint of a closed-interval domain is never a local extremum (no open interval around it fits inside ) — but it may perfectly well be an absolute one, which is exactly why the Closed Interval Method tests endpoints separately.
Critical numbers
Definition. A number is a critical number of if is an interior point of the domain of and either
Both branches are compulsory. Students lose marks almost exclusively on the second one.
| Function | Critical numbers | What happens there | |
|---|---|---|---|
| local max, local min | |||
| cusp, absolute min | |||
| vertical tangent, no extremum | |||
| stationary inflection, no extremum | |||
| none | is not in the domain, so it is not critical |
Fermat's Theorem
Theorem (Fermat). If has a local maximum or a local minimum at , and is an interior point of the domain, and exists, then .
Why. Suppose a local max at . For small , , so and the right-hand limit is . For small the same numerator is but , so the quotient is and the left-hand limit is . Because exists, the two one-sided limits both equal , forcing and , hence .
The converse is false. does not imply an extremum at : for , , yet for every , so is strictly increasing and is not an extremum. Nor does an extremum force — it may not exist, as at for .
What Fermat is actually used for is its contrapositive: an extremum can only occur at a critical number or at an endpoint of the domain. That is a search strategy, not a test.
The Extreme Value Theorem (EVT)
Theorem. If is continuous on a closed and bounded interval , then attains an absolute maximum value and an absolute minimum value for some numbers and in .
Every hypothesis is load-bearing:
| Hypothesis dropped | Example | Failure |
|---|---|---|
| closed | on | neither max nor min attained |
| bounded | on | no absolute maximum |
| continuous | for together with , on | values climb toward but never reach it: no maximum |
EVT is sufficient, not necessary: a discontinuous function can still have both extrema. It is also purely an existence theorem — it never tells you where.
The Closed Interval Method
For continuous on :
- Find all critical numbers of that lie in the open interval .
- Evaluate at each of them.
- Evaluate and .
- The largest of these values is the absolute maximum; the smallest is the absolute minimum.
It is valid because EVT says the extrema exist, and Fermat says an interior extremum must sit at a critical number — so the finite list is exhaustive. It fails if is not continuous on all of , or if has infinitely many critical numbers there.
Worked Example 1 — both types of critical number
Find the absolute extrema of on .
is continuous on because is defined and continuous for all real . Differentiate:
requires , i.e. . And fails to exist at , which is in the domain — so is also a critical number (a cusp). Critical numbers: and .
Absolute maximum at ; absolute minimum at . Note that both occur at endpoints and neither at a critical number — losing the endpoints would have produced two wrong answers. (For the record, the sign of shows is a local minimum and a local maximum.)
Rolle's Theorem
Theorem (Rolle). If is continuous on , differentiable on , and , then there is at least one with such that .
Why. By EVT, has an absolute max and min on . If both occur at endpoints then, since , the max and min values are equal, so is constant and for every interior . Otherwise some extremum occurs at an interior point, and Fermat gives there.
Drop differentiability and it dies: on has and is continuous, but is never and does not exist at .
The Mean Value Theorem (MVT)
Theorem (MVT). If is continuous on and differentiable on , then there is at least one with such that
Geometrically: somewhere strictly inside the interval, the tangent line is parallel to the secant line through and . Physically: at some instant your instantaneous speed equals your average speed over the trip.
Proof. Let be the secant line and set . Then inherits continuity on and differentiability on , and . Rolle gives with , i.e. .
Rolle is the special case . MVT asserts existence only: need not be unique and usually cannot be found in closed form.
Worked Example 2 — finding , and using MVT as a tool
(a) For on : is a polynomial, hence continuous on and differentiable on . The secant slope is
Solve : , so . Only lies in . Check: . ✔
(b) Prove for all real . If it is trivial; otherwise apply MVT to (continuous and differentiable everywhere) on the interval with endpoints and : for some between them. Since ,
Consequences of the MVT
- Zero derivative constant. If for all in an interval , then is constant on . Proof: pick in ; MVT on gives , so .
- Equal derivatives differ by a constant. If for all in an interval , apply (1) to : on . This is precisely why the antiderivative carries "".
- Derivative bounds transfer to the function. If is continuous on , differentiable on , and for every in , then . Proof: MVT gives for some in , and , so the bounds on carry across. The continuity hypothesis is not decoration: without it the endpoint values and are not controlled by at all.
The word "interval" in (1) and (2) is a hypothesis, not decoration. On the domain of — the union of and , which is not an interval — everywhere, yet takes the values and . All you may conclude is that is constant on each separate interval.
Common mistakes
| Wrong | Right |
|---|---|
| "Critical numbers are where ." | Also where fails to exist, provided is an interior point of the domain: has critical number . |
| For , calling a critical number because blows up there. | is not in the domain, so it is not a critical number. |
| Using the Closed Interval Method but forgetting and . | Endpoints often are the answer — see Worked Example 1. |
| ", therefore has a local extremum at ." | That is the false converse of Fermat: at . You need a First/Second Derivative Test. |
| Applying Rolle to on and concluding some . | is not differentiable at , so the hypothesis fails; no such exists — the graph has a cusp at , not a horizontal tangent. |
| Applying MVT to on . | is not continuous on (it is not even defined at ); the "conclusion" (the secant slope) has no solution, since always. |
| Reporting the location as the extreme value. | Max value is ; the max occurs at . State both. |
| Assuming MVT's is unique, or solvable. | MVT is an existence theorem; on has two valid 's. |
| " everywhere on their domains, so ." | Only on an interval. and have equal derivatives off but differ by on one side and on the other. |
Key terms
- absolute (global) maximum
- absolute (global) minimum
- local (relative) extremum
- critical number
- stationary point
- cusp / vertical tangent
- Fermat's Theorem
- false converse of Fermat
- Extreme Value Theorem
- closed and bounded interval
- Closed Interval Method
- endpoint evaluation
- Rolle's Theorem
- Mean Value Theorem
- secant line vs. tangent line
- average rate of change
- zero derivative implies constant
- functions with equal derivatives
- existence theorem
Practice Problems
Find all critical numbers of .
Show hint
Every critical number is either a solution of or a point of the domain where fails to exist. This is a polynomial, so only one of those two possibilities can occur.
Show answer
A polynomial is differentiable at every real number, so never fails to exist: the only critical numbers come from .
Factor:
Setting this to gives and , both in the domain (all real numbers).
Check by substitution: ✔ and ✔.
Critical numbers: and .
(For orientation, the sign of is on , , , so has a local maximum and a local minimum .)
Find all critical numbers of , and state which type each one is ( or undefined).
Show hint
Differentiate with the power rule, then factor out the most negative power of so you can see both where the derivative vanishes and where it blows up.
Show answer
The domain of is all real numbers, since is defined for every real and .
Where : the numerator vanishes, .
Where does not exist: the denominator vanishes at . Since is in the domain of , it is a critical number too.
Critical numbers: (derivative undefined) and (derivative zero).
Verification of the factoring at a sample point, say : from the factored form ; from the unfactored form ✔.
Worth noticing: for all , so has the sign of . Thus decreases on and increases on : gives a local (indeed absolute) minimum , while is a critical number that is not an extremum — simply passes through a vertical tangent while still decreasing.
Use the Closed Interval Method to find the absolute maximum and absolute minimum values of on .
Show hint
First confirm the hypothesis that makes the method legal, then list the critical numbers that actually lie strictly inside the interval — and do not forget the two endpoints.
Show answer
Step 0 (hypothesis). is a polynomial, so it is continuous on the closed bounded interval . By the Extreme Value Theorem both absolute extrema exist, and the Closed Interval Method will find them.
Step 1 (critical numbers).
so at and . Both lie in . There are no points where fails to exist.
Step 2 (evaluate at critical numbers and endpoints).
Step 3 (compare). The four values are .
Absolute maximum value , attained at ; absolute minimum value , attained at .
Independent check on the shape: is positive on , negative on , positive on . So rises to a local max at , falls to a local min at , then rises to the right endpoint — consistent with the minimum at and the maximum at the right endpoint.
Find the absolute maximum and minimum values of on its natural domain .
Show hint
Use the product rule, then combine the two terms over the common denominator before solving. Ask separately where the derivative is zero and where it blows up.
Show answer
Domain and continuity. exactly when , so the natural domain is the closed bounded interval , on which is continuous. EVT applies.
Derivative. By the product rule with ,
Critical numbers. when , i.e. , i.e. . Both lie in . The derivative also fails to exist at , but those are the endpoints of the domain, not interior points — the method evaluates them anyway.
Evaluate.
Absolute maximum value at ; absolute minimum value at .
Check: is odd, since , so the extreme values must be negatives of each other and occur at opposite points — they do. Numerically, ✔.
For each of the following, decide whether the Extreme Value Theorem guarantees that attains an absolute maximum and an absolute minimum. If it does not, name the hypothesis that fails and say whether the extrema happen to exist anyway.
(a) on .
(b) on .
(c) on .
(d) on .
Show hint
EVT has exactly three hypotheses: the interval is closed, the interval is bounded, and is continuous on it. Check them one at a time — and remember EVT is a one-way guarantee, not a test.
Show answer
(a) on . The only discontinuity of is at , which is not in ; the interval is closed and bounded. All hypotheses hold, so EVT applies. Since , is decreasing: absolute maximum , absolute minimum .
(b) on . The interval is not closed (it omits the left endpoint), so EVT does not apply. And indeed the maximum fails: as , , so is unbounded above and has no absolute maximum. The minimum does still exist — is decreasing, so its smallest value is . This shows EVT is sufficient, not necessary: losing a hypothesis loses the guarantee, not necessarily the conclusion.
(c) on . The interval is not closed, so EVT does not apply. There is no absolute maximum: for every in , but values get arbitrarily close to , so no single point achieves a largest value. The absolute minimum does exist: .
(d) The piecewise on . The interval is closed and bounded, but is not continuous: while . EVT does not apply. There is no absolute maximum: for and , so values approach without reaching it. The absolute minimum is , attained at both and .
Summary: EVT applies only in (a). In (b), (c) and (d) the maximum genuinely fails to exist, while a minimum survives in all three by accident of the particular function.
State Fermat's Theorem with all of its hypotheses. Then give explicit counterexamples showing that each of the following statements is false:
(a) If then has a local extremum at .
(b) If has a local extremum at then .
(c) If has an absolute extremum at on then .
Show hint
Fermat needs three things: an extremum, an interior point, and an existing derivative. Each false statement below is obtained by deleting one of them (or by reversing the implication).
Show answer
Fermat's Theorem. If has a local maximum or a local minimum at , and is an interior point of the domain of , and exists, then .
(a) is the converse, and it is false. Take and . Then , so . But for every , so is strictly increasing on every interval containing : for any we have . So is neither nor all nearby values, and is not a local extremum. A stationary point need not be an extremum.
(b) is false because the derivative may not exist. Take and . Then for all , so has a local (in fact absolute) minimum at . But
so does not exist. Fermat's differentiability hypothesis is essential.
(c) is false because of endpoints. Take on . Its absolute maximum on is , at ; but . The point is not interior to , so Fermat says nothing. This is exactly why the Closed Interval Method tests the endpoints separately.
Correct use of Fermat (its contrapositive): if is continuous on , then every absolute extremum occurs either at a critical number in or at an endpoint. Fermat narrows the search; it never certifies that a candidate really is an extremum.
(a) Verify that satisfies the hypotheses of Rolle's Theorem on , and find all numbers the theorem provides.
(b) The function satisfies and is continuous on , yet there is no in with . Explain why this does not contradict Rolle's Theorem.
Show hint
For (a), check the three hypotheses in order and then solve a quadratic — expect more than one answer. For (b), work out and look carefully at where it exists.
Show answer
(a) Hypotheses. is a polynomial, so it is continuous on and differentiable on . And
so . All three hypotheses of Rolle's Theorem hold.
Finding .
Solve by the quadratic formula:
Numerically , so and . Both lie in , so both are valid, illustrating that the in Rolle's Theorem need not be unique.
Check: while and , so does change sign twice on ✔.
(b) Differentiate:
The numerator is never zero, so for every where it is defined; and does not exist at , which lies in the open interval .
So fails the hypothesis "differentiable on ". Rolle's Theorem therefore makes no claim about , and no contradiction arises. Geometrically, has a sharp cusp peak at : it does have a maximum there, but the graph turns without ever having a horizontal tangent.
Verify that satisfies the hypotheses of the Mean Value Theorem on , and find the exact value of every that the theorem guarantees.
Show hint
Confirm that the point of discontinuity of this rational function lies outside , then set the derivative equal to the slope of the secant line and solve — watching which root actually lies in the open interval.
Show answer
Hypotheses. is a rational function; it is undefined only at , which is not in . Hence is continuous on and differentiable on . MVT applies.
Secant slope.
Derivative (quotient rule):
Solve .
The root is not in and is rejected. The root
does lie in .
Check: , so ✔, matching the secant slope.
Answer: , the only such value in .
Suppose is continuous on and differentiable on , with and for every in . Determine the smallest and largest possible values of , and show that each bound can actually be achieved.
Show hint
Apply the MVT to on the whole interval and write the conclusion in the form .
Show answer
Apply MVT on . The hypotheses are given, so there is some with and
Insert the bound on . Since lies in , we know . Multiplying the inequality by the positive number :
Use . Adding throughout:
Both bounds are attained.
- is continuous and differentiable with (inside the allowed range) and ; it gives .
- has and ; it gives .
Answer: the smallest possible value of is and the largest is ; that is, , and every value in that range occurs (for instance with produces , which sweeps out all of ).
Use the Mean Value Theorem to prove that for every .
Show hint
Apply the MVT to on the interval , then bound using the fact that is strictly positive.
Show answer
Fix and let .
Hypotheses. On we have , so is continuous on ; and
exists for every in (the denominator is never there). MVT applies.
Apply MVT. There is a number with such that
that is,
Bound the right-hand side. Because we have , hence , hence . Dividing the positive number by a larger positive denominator makes the quotient smaller:
Conclude.
Sanity checks. At : versus ✔. At : versus ✔. Note the strictness genuinely requires ; at both sides equal , so the inequality becomes an equality there.
Let , defined for all .
(a) Show that for every .
(b) Explain why you may not conclude that is constant on its whole domain, and find the exact value of on each piece of the domain.
Show hint
Differentiate using and simplify the compound fraction fully. Then re-read the hypothesis of the corollary "zero derivative implies constant" — what kind of set must the domain be?
Show answer
(a) Differentiate. With and , so :
for every . (The middle step used , whose reciprocal is .)
(b) Why "constant" needs an interval. The corollary of the MVT states: if on an interval , then is constant on . Its proof applies the MVT to , which requires the whole segment between and to lie in the domain. The domain of is the union of and , which is not an interval: the segment from to leaves the domain at . So we may only conclude that is constant on each of the two intervals separately, possibly with different constants.
Evaluate one point in each piece.
For , take :
For , take :
Conclusion.
so takes two different values and is certainly not constant on its domain — no contradiction, because the domain is not an interval.
Numerical check: at , and , summing to ✔; at the sum is ✔.
Let be any constant. Prove that the equation has at most one root in the interval .
Show hint
Argue by contradiction: assume there are two roots, and ask what Rolle's Theorem would then force to exist. Then check whether such a point can live inside .
Show answer
Let , a polynomial, so is continuous and differentiable on every real number — in particular on any closed subinterval of .
Suppose, for contradiction, that has two distinct roots in , say with .
Apply Rolle's Theorem on . The hypotheses hold: is continuous on , differentiable on , and . Therefore there exists with such that
Since , this lies in the open interval .
But has no zero there.
Since , neither nor lies in . So no such exists — a contradiction.
Therefore cannot have two distinct roots in : it has at most one.
Independent confirmation. For we have , so . A function with a strictly negative derivative throughout an interval is strictly decreasing there, and a strictly decreasing function takes each value at most once — the same conclusion, reached without contradiction.
Note the wording "at most one". The statement does not promise a root exists. For , is decreasing on with minimum value , so there is no root at all. For , however, has the single root in (the others, , fall outside).
