- Practice
- About 15 min
- 5 practice questions
Greatest and least values on closed intervals: speed and traps
Find the greatest and least values of a function on a closed interval by listing candidates, including end points, points where the derivative fails and ties, and avoid the usual exam traps.
If something looks wrong, please tell us.
You have the closed interval method: the greatest and least values occur at stationary points inside the interval or at the end points. Exam questions add twists: a stationary point that lies outside the interval, a trigonometric function, a function with a corner, and values that tie. This lesson trains you to apply the method as a fixed checklist so that none of the twists catch you.
The candidate list
- The end points of the interval.
- Stationary points inside the interval (f′ = 0 with the point strictly between the ends).
- Points inside the interval where f′ does not exist, such as the corner of |x − 2|.
- Evaluate f at every candidate, then pick the largest and smallest values.
Absolute extremes live at end points, at stationary points inside the interval, or at corners. Write the values in a list, then choose.
Worked example 1: a stationary point outside the interval
Find the greatest and least values of f(x) = x + 1/x on [2, 4]. f′ = 1 − 1/x² = 0 at x = 1, which is not in [2, 4], so we ignore it. The candidates are only the end points: f(2) = 2.5 and f(4) = 4.25. So the least value is 5/2 and the greatest is 17/4. (On [2, 4] the function is increasing, since f′ > 0 for x > 1.)
Worked example 2: ties
Find the greatest and least values of f(x) = x³ − 3x² on [−1, 3]. f′ = 3x² − 6x = 3x(x − 2) = 0 at x = 0 and x = 2, both inside the interval. Candidates: f(−1) = −1 − 3 = −4, f(0) = 0, f(2) = 8 − 12 = −4, f(3) = 27 − 27 = 0. The greatest value is 0, reached at x = 0 and at x = 3. The least value is −4, reached at x = −1 and at x = 2. A value can be reached at more than one point; the question asks for the value.
Worked example 3: a trigonometric function
Find the greatest and least values of f(x) = sin x + cos x on [0, π]. f′ = cos x − sin x = 0 gives tan x = 1, so x = π/4 inside the interval. f(0) = 1, f(π/4) = √2/2 + √2/2 = √2, f(π) = −1. The greatest value is √2 and the least value is −1, which occurs at the end point x = π, not at a stationary point.
Worked example 4: a corner
Find the greatest and least values of f(x) = |x² − 4| on [−3, 3]. For −2 < x < 2 we have x² − 4 < 0, so f = 4 − x², which has its peak at x = 0 with value 4. At x = ±2 the graph has corners where f′ does not exist, and f(±2) = 0. At the end points f(±3) = 9 − 4 = 5. The candidates are 4, 0 and 5, so the greatest value is 5 and the least value is 0. Solving f′ = 0 alone would have missed the least value, which sits at a corner.
Traps to avoid
- Choosing the 'biggest turning point' instead of comparing with the end points: in example 3 the least value is at an end.
- Using a stationary point that lies outside the interval.
- Assuming that a turning point must be the greatest or least value, when an end point may beat it.
- Stopping when f′ = 0 has no solution: then the extreme values are at the end points.
Key takeaways: make a list of candidates, evaluate them all and compare. Ignore stationary points outside the interval, include corners, and remember that a value can occur at several points. A function that is monotonic on the interval has its extremes at the end points.
Check your understanding
-
1. What is the greatest value of f(x) = x² − 4x + 5 on [0, 5]?
- 15
- 5
- 10
- 1
Show answer
Answer: C. f′ = 2x − 4 = 0 at x = 2, with f(2) = 1. The end points give f(0) = 5 and f(5) = 25 − 20 + 5 = 10. The greatest value is 10.
-
2. What is the least value of f(x) = x + 1/x on [2, 4]?
- 5/2
- 2
- 17/4
- 1
Show answer
Answer: A. The stationary point x = 1 lies outside [2, 4], so only the end points count: f(2) = 5/2 and f(4) = 17/4. The least is 5/2.
-
3. What is the greatest value of f(x) = sin x + cos x on [0, π]?
- 1
- 2
- −1
- √2
Show answer
Answer: D. f′ = 0 at x = π/4, where f = √2. The end points give 1 and −1. The greatest value is √2.
-
4. What is the least value of f(x) = x³ − 3x² on [−1, 3]?
- 0
- −4
- −2
- −3
Show answer
Answer: B. The candidates are f(−1) = −4, f(0) = 0, f(2) = −4 and f(3) = 0. The least value is −4, reached at x = −1 and x = 2.
-
5. What is the least value of f(x) = |x² − 4| on [−3, 3]?
- 0
- 1
- 4
- 5
Show answer
Answer: A. The absolute value is never negative, and f(2) = f(−2) = 0. These are corners where f′ does not exist, so f′ = 0 would not find them. The least value is 0.
Sign in to keep track of the lessons you finish.