Maxima and minima on closed intervals
A hiker on a mountain trail might stand on the highest bump nearby — a local peak — without being anywhere close to the tallest summit on the whole trail. Local maxima and minima only compare a point to its immediate neighbours; they say nothing about the single highest or lowest value the function reaches over an entire stretch. This article fixes that gap for a continuous function on a closed interval . Because the domain is closed and bounded and is continuous, the function is guaranteed to attain an absolute maximum and an absolute minimum somewhere on — possibly at an interior critical point, possibly right at one of the two endpoints. We build a short, reliable checklist — the closed-interval test — that finds both values every time, and we work two examples, a cubic and a trigonometric function, to see the endpoints actually win the day.
On a closed interval , the absolute maximum and minimum of a continuous are found simply by comparing the values of at every interior critical point and at both endpoints and .
The core idea
Local versus absolute. A local maximum or minimum only beats its immediate neighbours; an absolute (or global) maximum or minimum beats every point in the whole interval under consideration. A function can have several local peaks and valleys, but on a closed interval it has exactly one absolute maximum value and one absolute minimum value (though these values may be repeated at more than one point).
Why endpoints matter. Endpoints are not local extrema in the usual sense — a point needs neighbours on both sides to be tested that way, and an endpoint has neighbours on only one side. Yet endpoints are still valid candidates for the absolute extrema, precisely because the domain of stops there and nothing beyond can be compared.
The guarantee. If is continuous on a closed, bounded interval , then attains an absolute maximum value and an absolute minimum value somewhere in . This existence fact (the Extreme Value Theorem) is used here only as a background guarantee — it is not proved with limits in this course — but it is what makes the checklist below trustworthy: the search for the largest and smallest value is guaranteed to succeed and can be reduced to a short finite list.
where: and are the two endpoints of the closed interval, and ranges over the critical points of that lie strictly inside — points where the derivative is zero or fails to exist. The absolute maximum is the largest number in this candidate set, and the absolute minimum is the smallest.
No classification needed. Unlike hunting for local extrema, this method skips the first-derivative sign test and the second-derivative test entirely. Once the candidate list is built, the job is arithmetic: evaluate at each candidate and compare the numbers directly.
The closed-interval test — derivation
The goal is to justify, step by step from the definitions of local extremum and derivative, why comparing at critical points and both endpoints is enough to catch the absolute maximum and minimum of a continuous function on , without needing any sign-change or second-derivative classification of the critical points.
Step 1. Assume is continuous on the closed, bounded interval . By the Extreme Value Theorem, attains an absolute maximum value at some point and an absolute minimum value at some point . This is a statement of existence: such points and are known to exist, though we do not yet know where.
Step 2. Consider the point where the absolute maximum occurs. There are only two possibilities: either is an endpoint ( or ), or lies strictly inside .
Step 3. If lies inside , then because is the absolute maximum on all of , it is certainly at least as large as at every nearby point too — so is also a local maximum. If is differentiable at , this forces (the tangent must be flat, since the curve cannot be rising into from one side and falling away on the other otherwise); if is not differentiable at , then is a critical point by definition anyway. Either way, an interior point giving the absolute maximum must be a critical point.
Step 4. So the point where the absolute maximum occurs is always one of: the endpoint , the endpoint , or an interior critical point. The exact same argument, run for a minimum instead of a maximum, shows the point giving the absolute minimum is also one of these same candidates. Since both and must appear somewhere in the finite candidate list , comparing the values on that list and picking the largest and smallest is guaranteed to find the true absolute maximum and minimum — nothing is missed, and no further classification of each critical point is needed. Verified: the argument only uses that a differentiable interior extremum forces (else the one-sided difference quotients around would force to not be extremal), matching the closed-interval test used in both worked examples below.
Worked example
Find the absolute maximum and absolute minimum values of on the interval .
Step 1. Differentiate: .
Step 2. Set : this gives critical points and , and both lie inside , so both are valid candidates.
Step 3. Evaluate at the critical points and at both endpoints: , , , and .
Step 4. Compare the candidate list . The largest value is , at ; the smallest is , occurring at both and . Absolute maximum at (an endpoint); absolute minimum at and .
Competitive stretch
For on , the same method gives at , with , , and . Comparing : the absolute maximum is at (an interior critical point this time), and the absolute minimum is , tied at both endpoints — a reminder that sometimes the interior point wins and sometimes the endpoints do, which is exactly why every candidate must be checked.
Common traps
- Forgetting to check the endpoints. As Worked Example 1 shows, the true absolute maximum can sit at an endpoint rather than at any interior critical point — skipping the endpoints is the single most common error on this topic.
- Including critical points outside . Solving can produce roots that fall outside the given interval; only roots strictly inside belong on the candidate list.
- Running an unnecessary sign test. For absolute extrema you never need to classify a critical point as a local max or min with the first- or second-derivative test — just compute the numerical value of there and compare it against the rest of the list.
- Confusing local with absolute. A local minimum need not be the absolute minimum on the interval, and an endpoint can be an absolute extremum without being a local extremum at all — always finish by comparing every value in the full candidate list.
Ask the tutor: Want to try the closed-interval test on a rational or modulus function, or see a worked example where the interval is open instead of closed?
Why don't we need the first-derivative or second-derivative test here?
Those tests classify a critical point as a local maximum, local minimum, or neither by studying how behaves in a small neighbourhood around it. For the closed-interval test we do not care about that local behaviour at all — we only want to know the actual numerical value of at each candidate point, then compare all the numbers directly. A point could even be a local minimum and still turn out to be part of the overall absolute maximum comparison in unusual cases, so skipping the classification and comparing raw values is both simpler and safer.
What happens if f is not differentiable at some point inside the interval?
That point still counts as a critical point and must be included in the candidate list, alongside the points where . The definition of a critical point is any interior point where the derivative is either zero or does not exist. Most NCERT-level problems use polynomials, sine and cosine, which are differentiable everywhere, so this case rarely arises in this chapter, but the definition is written to cover it.
Does the closed-interval test work if the interval is open instead of closed, like (a, b)?
No, and this is an important limitation. The Extreme Value Theorem needs the interval to be closed and bounded; on an open interval the function is never actually evaluated at or because they are excluded from the domain, so the function may keep climbing or falling as approaches an endpoint without ever reaching a maximum or minimum there. For example, on has no absolute maximum or minimum at all. The closed-interval test as given here applies specifically to closed intervals .