AP · Calculus AB · The Mean Value and Extreme Value Theorems

The Extreme Value Theorem and Absolute Extrema

17 min readUpdated November 30, 2026FreeAP Calculus AB, Analyzing Functions with Derivatives

The Extreme Value Theorem says that a function continuous on a closed interval [a,b][a, b] must reach an absolute maximum and an absolute minimum on that interval. To find them, you use the candidates test: evaluate ff at every critical point inside the interval and at both endpoints, then pick the largest and smallest values. On the AP® Calculus AB exam, that table of values is also your justification.

Quick check

  1. Where is f′(x)=0f'(x) = 0 for f(x)=x3−12xf(x) = x^3 - 12x?Show answerHide answer

    At x=−2x = -2 and x=2x = 2, because f′(x)=3x2−12=3(x−2)(x+2)f'(x) = 3x^2 - 12 = 3(x - 2)(x + 2).

  2. Is f(x)=1xf(x) = \dfrac{1}{x} continuous on [−1,1][-1, 1]?Show answerHide answer

    No. It is undefined at x=0x = 0, which lies inside [−1,1][-1, 1].

  3. On [0,3][0, 3], where does f(x)=x2f(x) = x^2 take its largest value?Show answerHide answer

    At the endpoint x=3x = 3, where f(3)=9f(3) = 9. The derivative is never 00 inside (0,3)(0, 3), so the largest value sits at an endpoint.

Know these already? Jump to the practice questions

What you'll be able to do

  • State when a function must have an absolute maximum and an absolute minimum on an interval.
  • Explain the difference between an absolute extremum and a relative extremum.
  • Find the critical points of a function, including points where f′f' does not exist.
  • Determine the absolute extrema on a closed interval with the candidates test, and justify them.

Key terms

Absolute maximum and minimum

f(c)f(c) is the absolute maximum of ff on an interval if f(c)≥f(x)f(c) \ge f(x) for every xx in the interval; the absolute minimum uses ≤\le instead.

In plain English
The highest and lowest output anywhere on the interval.
Don't write
"the maximum is x=3x = 3". The maximum is the output f(3)f(3); x=3x = 3 is where it happens.

Relative maximum and minimum

f(c)f(c) is a relative maximum if f(c)≥f(x)f(c) \ge f(x) for every xx in some open interval around cc; a relative minimum uses ≤\le.

In plain English
A peak or valley compared with nearby points on both sides.
Don't write
"relative maximum" for a value at an endpoint; there are no inputs on both sides there.

Critical point

A value cc in the domain of ff where f′(c)=0f'(c) = 0 or f′(c)f'(c) does not exist.

In plain English
An input where the graph is flat, or has a corner, cusp or vertical tangent.
Don't write
A value where ff itself is undefined; a critical point must be in the domain.

When must a function have a largest and smallest value?

Learn this (there is no formula sheet): if ff is continuous on the closed interval [a,b][a, b], then ff has an absolute maximum and an absolute minimum on [a,b][a, b].

Both conditions matter. On the open interval (0,1)(0, 1), f(x)=xf(x) = x has no largest value: it gets close to 11 but never reaches it, because x=1x = 1 is excluded. And on [−1,1][-1, 1], f(x)=1xf(x) = \frac{1}{x} has no largest value, because it grows without bound near x=0x = 0, where it is not continuous.

Key idea

Continuous on a closed interval means the largest and smallest values must exist; the candidates test then finds them.

The theorem tells you the extrema exist, not where they are. It is the reason the candidates test can stop after checking a short list: the extrema must be somewhere, and the next section shows they can only be at critical points or endpoints.

Check yourself

Must f(x)=1x−3f(x) = \dfrac{1}{x - 3} have an absolute maximum on [0,2][0, 2]? On [2,4][2, 4]?
Show answerHide answer

On [0,2][0, 2], yes: the only problem point, x=3x = 3, is outside the interval, so ff is continuous there. On [2,4][2, 4], the theorem does not apply, because ff is undefined at x=3x = 3; in fact ff grows without bound as x→3+x \to 3^+, so there is no maximum.

Where can the extreme values be?

If ff has a relative extremum at an interior point cc and f′(c)f'(c) exists, then f′(c)=0f'(c) = 0: at the top of a smooth peak the tangent line is flat. So on a closed interval, every absolute extremum is at a critical point or at an endpoint.

Critical points come in two kinds. Take f(x)=x2/3(x−5)=x5/3−5x2/3f(x) = x^{2/3}(x - 5) = x^{5/3} - 5x^{2/3}. Then

f′(x)=53x2/3−103x−1/3=5(x−2)3x1/3f'(x) = \frac{5}{3}x^{2/3} - \frac{10}{3}x^{-1/3} = \frac{5(x - 2)}{3x^{1/3}}

The numerator is 00 at x=2x = 2, so f′(2)=0f'(2) = 0. The denominator is 00 at x=0x = 0, so f′(0)f'(0) does not exist, yet f(0)=0f(0) = 0 is defined. Both x=0x = 0 and x=2x = 2 are critical points. Missing the "does not exist" kind is a common way to lose an extremum.

A critical point does not have to be an extremum; that question belongs to the note on Relative Extrema and the First Derivative Test.

Check yourself

Find the critical points of g(x)=x−3x1/3g(x) = x - 3x^{1/3}.
Show answerHide answer

x=−1x = -1, x=0x = 0 and x=1x = 1. Here g′(x)=1−x−2/3g'(x) = 1 - x^{-2/3}, which is 00 when x2/3=1x^{2/3} = 1, so x=±1x = \pm 1, and does not exist at x=0x = 0, where gg is defined.

What is the difference between absolute and relative extrema?

An absolute extremum compares f(c)f(c) with every value on the interval. A relative extremum compares it only with values nearby. So a relative maximum can lose to a higher point elsewhere, and an absolute maximum can sit at an endpoint, where it is not a relative maximum at all.

The graph of y=x3−3xy = x^3 - 3x on [−1.5,3][-1.5, 3] shows all of this. Here f′(x)=3x2−3f'(x) = 3x^2 - 3, so the critical points are x=−1x = -1 and x=1x = 1.

  • At x=−1x = -1, f(−1)=2f(-1) = 2 is a relative maximum, but not the absolute maximum.
  • At x=3x = 3, f(3)=18f(3) = 18 is the absolute maximum, at an endpoint.
  • At x=1x = 1, f(1)=−2f(1) = -2 is both a relative minimum and the absolute minimum.

Check yourself

Is an absolute maximum always a relative maximum?
Show answerHide answer

No. An absolute maximum at an endpoint, like f(3)=18f(3) = 18 for x3−3xx^3 - 3x on [−1.5,3][-1.5, 3], has inputs on one side only, so it is not a relative maximum.

How does the candidates test work?

The candidates test (also called the closed interval method) turns the theorem into four steps:

  1. Confirm that ff is continuous on [a,b][a, b], so the extrema exist.
  2. Find every critical point of ff in (a,b)(a, b), discarding any outside the interval.
  3. Evaluate ff at each critical point and at aa and bb, and list the values in a table.
  4. The largest value is the absolute maximum, and the smallest is the absolute minimum.

For x3−3xx^3 - 3x on [−1.5,3][-1.5, 3], the table is:

xx−1.5-1.5−1-11133
f(x)f(x)1.1251.12522−2-21818

So the absolute maximum is 1818, at x=3x = 3, and the absolute minimum is −2-2, at x=1x = 1. You need no sign chart: comparing outputs is enough.

Examiner's eye

Marks go to the table of candidate values with a sentence naming the largest and smallest. A correct value with no comparison shown is not a justification.

Check yourself

Find the absolute extrema of f(x)=x2−4xf(x) = x^2 - 4x on [0,5][0, 5].
Show answerHide answer

The critical point is x=2x = 2. The candidates are f(0)=0f(0) = 0, f(2)=−4f(2) = -4 and f(5)=5f(5) = 5, so the absolute maximum is 55 at x=5x = 5, and the absolute minimum is −4-4 at x=2x = 2.

Worked example 1: The candidates test on a cubic

Question: Find the absolute maximum and minimum values of f(x)=2x3−3x2−12x+4f(x) = 2x^3 - 3x^2 - 12x + 4 on [−2,3][-2, 3].

What tells you the method

"absolute maximum and minimum" on a closed interval, with a continuous function, calls for the candidates test.

  1. Step 1: Check continuity.

    ff is a polynomial, so it is continuous on [−2,3][-2, 3].

    Why

    This is what guarantees the extrema exist.

  2. Step 2: Find the critical points.

    f′(x)=6x2−6x−12=6(x−2)(x+1)f'(x) = 6x^2 - 6x - 12 = 6(x - 2)(x + 1), so x=−1x = -1 and x=2x = 2, both inside (−2,3)(-2, 3).

    Why

    f′f' exists everywhere, so the only critical points are where f′=0f' = 0.

  3. Step 3: Evaluate the candidates.

    f(−2)=0f(-2) = 0, f(−1)=11f(-1) = 11, f(2)=−16f(2) = -16 and f(3)=−5f(3) = -5.

    Why

    The extrema can only be at these four inputs.

  4. Step 4: Compare.

    The largest value is 1111, and the smallest is −16-16.

    Why

    The absolute extrema are the largest and smallest outputs in the list.

Check it

f(2)=16−12−24+4=−16f(2) = 16 - 12 - 24 + 4 = -16, and the endpoint values 00 and −5-5 both lie between −16-16 and 1111.

Answer

The absolute maximum is 1111, at x=−1x = -1, and the absolute minimum is −16-16, at x=2x = 2.

Worked example 2: A critical point where f′ does not exist

Question: Find the absolute extrema of f(x)=x2/3(x−5)f(x) = x^{2/3}(x - 5) on [−1,4][-1, 4].

What tells you the method

The fractional power means f′f' may fail to exist somewhere, so look for both kinds of critical point.

  1. Step 1: Check continuity.

    x2/3x^{2/3} is defined and continuous for all xx, so ff is continuous on [−1,4][-1, 4].

    Why

    The extrema must exist before you look for them.

  2. Step 2: Find the critical points.

    f′(x)=5(x−2)3x1/3f'(x) = \dfrac{5(x - 2)}{3x^{1/3}}, which is 00 at x=2x = 2 and does not exist at x=0x = 0.

    Why

    Both kinds of critical point are candidates.

  3. Step 3: Evaluate the candidates.

    f(−1)=(1)(−6)=−6f(-1) = (1)(-6) = -6, f(0)=0f(0) = 0, f(2)=−343≈−4.762f(2) = -3\sqrt[3]{4} \approx -4.762 and f(4)=−163≈−2.520f(4) = -\sqrt[3]{16} \approx -2.520.

    Why

    (−1)2/3=1(-1)^{2/3} = 1, 22/3=432^{2/3} = \sqrt[3]{4} and 42/3=1634^{2/3} = \sqrt[3]{16}.

  4. Step 4: Compare.

    The largest value is 00, and the smallest is −6-6.

    Why

    −6<−4.762<−2.520<0-6 < -4.762 < -2.520 < 0.

Check it

The maximum sits at the cusp x=0x = 0, which you would have missed by solving only f′(x)=0f'(x) = 0.

Answer

The absolute maximum is 00, at x=0x = 0, and the absolute minimum is −6-6, at x=−1x = -1.

Worked example 3: Extrema in context

Question: The temperature in a greenhouse is T(t)=60+8sin⁡(πt6)T(t) = 60 + 8\sin\left(\dfrac{\pi t}{6}\right) degrees Fahrenheit, where tt is hours after 6 a.m., for 0≤t≤100 \le t \le 10. (a) Explain why TT must have an absolute minimum on [0,10][0, 10]. (b) Find the absolute maximum and minimum temperatures. Justify your answer.

What tells you the method

"explain why … must have" points to the Extreme Value Theorem; "find the absolute maximum and minimum" points to the candidates test.

  1. Step 1: Apply the theorem.

    TT is a sum of continuous functions, so it is continuous on the closed interval [0,10][0, 10].

    Why

    By the Extreme Value Theorem, an absolute minimum (and maximum) must exist.

  2. Step 2: Find the critical points.

    T′(t)=4π3cos⁡(πt6)=0T'(t) = \dfrac{4\pi}{3}\cos\left(\dfrac{\pi t}{6}\right) = 0 when πt6=π2\dfrac{\pi t}{6} = \dfrac{\pi}{2} or 3π2\dfrac{3\pi}{2}, so t=3t = 3 or t=9t = 9.

    Why

    The chain rule gives the factor π6\frac{\pi}{6}, and 8⋅π6=4π38 \cdot \frac{\pi}{6} = \frac{4\pi}{3}; the next zero, t=15t = 15, is outside the interval.

  3. Step 3: Evaluate the candidates.

    T(0)=60T(0) = 60, T(3)=68T(3) = 68, T(9)=52T(9) = 52 and T(10)=60−43≈53.072T(10) = 60 - 4\sqrt{3} \approx 53.072.

    Why

    sin⁡π2=1\sin\frac{\pi}{2} = 1, sin⁡3π2=−1\sin\frac{3\pi}{2} = -1 and sin⁡5π3=−32\sin\frac{5\pi}{3} = -\frac{\sqrt{3}}{2}.

  4. Step 4: Compare.

    The largest value is 6868 and the smallest is 5252.

    Why

    The candidates table is the justification.

Check it

The temperature stays within 60±860 \pm 8, so 6868 and 5252 are the highest and lowest values a sine term of size 88 allows.

Answer

(a) TT is continuous on [0,10][0, 10], so the Extreme Value Theorem applies. (b) The maximum is 6868 degrees Fahrenheit, at t=3t = 3, and the minimum is 5252 degrees Fahrenheit, at t=9t = 9.

Your turn

Question: Find the absolute extrema of f(x)=x+2cos⁡xf(x) = x + 2\cos x on [0,π][0, \pi].

  1. Step 1:

    f′(x)=1−2sin⁡xf'(x) = 1 - 2\sin x, which is 00 when sin⁡x=12\sin x = \frac{1}{2}, so x=π6x = \frac{\pi}{6} or x=5π6x = \frac{5\pi}{6}.

  2. Step 2:

    The candidates are x=0x = 0, π6\frac{\pi}{6}, 5π6\frac{5\pi}{6} and π\pi.

  3. Step 3: Your go: evaluate ff at each candidate and compare.

Show the full solutionHide the solution

f(0)=2f(0) = 2, f(π6)=π6+3≈2.256f\left(\frac{\pi}{6}\right) = \frac{\pi}{6} + \sqrt{3} \approx 2.256, f(5π6)=5π6−3≈0.886f\left(\frac{5\pi}{6}\right) = \frac{5\pi}{6} - \sqrt{3} \approx 0.886 and f(π)=π−2≈1.142f(\pi) = \pi - 2 \approx 1.142.

Answer: The absolute maximum is π6+3≈2.256\frac{\pi}{6} + \sqrt{3} \approx 2.256, at x=π6x = \frac{\pi}{6}, and the absolute minimum is 5π6−3≈0.886\frac{5\pi}{6} - \sqrt{3} \approx 0.886, at x=5π6x = \frac{5\pi}{6}.

Traps

Trap

Checking only the critical points and leaving out the endpoints.

It seems right because extrema are usually taught as places where f′=0f' = 0. But on a closed interval the largest or smallest value often sits at an endpoint, where f′f' need not be 00, so the endpoints always go in the table.

Check yourself

For f(x)=x2−4xf(x) = x^2 - 4x on [0,5][0, 5], the only critical point gives f(2)=−4f(2) = -4. What is the absolute maximum?
Show answerHide answer

55, at the endpoint x=5x = 5. Only the endpoints can supply the maximum here.

Trap

Using a critical point that lies outside the interval.

It seems right because it solves f′(x)=0f'(x) = 0. But the candidates test only looks inside [a,b][a, b], and the value at an outside point can be larger or smaller than anything on the interval.

Check yourself

For f(x)=x3−3x2+1f(x) = x^3 - 3x^2 + 1 on [1,4][1, 4], which critical points are candidates?
Show answerHide answer

Only x=2x = 2. The other solution of f′(x)=3x(x−2)=0f'(x) = 3x(x - 2) = 0 is x=0x = 0, which is outside [1,4][1, 4].

What's examined

The Extreme Value Theorem and absolute extrema belong to Unit 5 (Analyzing Functions with Derivatives) of the AP® Calculus AB exam. Multiple-choice items ask for an absolute maximum or minimum value, or for a function that must have one. Free-response parts say "Find the absolute maximum value … Justify your answer", sometimes in context with units. The justification is the candidates table with a concluding sentence. When f′(x)=0f'(x) = 0 can't be solved by hand, a graphing calculator finds the critical points.

Practice questions

  1. Recall Which function must have both an absolute maximum and an absolute minimum on the given interval?
    • A) f(x)=1xf(x) = \dfrac{1}{x} on [−1,1][-1, 1]
    • B) f(x)=xf(x) = \sqrt{x} on [0,9][0, 9]
    • C) f(x)=x2f(x) = x^2 on (0,2)(0, 2)
    • D) f(x)=x+1x−2f(x) = \dfrac{x + 1}{x - 2} on [0,3][0, 3]
Show answer

Answer: B) f(x)=xf(x) = \sqrt{x} on [0,9][0, 9].

Marking points:

  • x\sqrt{x} is continuous on the closed interval [0,9][0, 9], so the Extreme Value Theorem applies.
  • A and D are not continuous on their intervals (at x=0x = 0 and x=2x = 2). C uses an open interval.
  1. Recall Find the critical points of g(x)=x−3x1/3g(x) = x - 3x^{1/3}.
Show answer

Answer: x=−1x = -1, x=0x = 0 and x=1x = 1.

Marking points:

  • g′(x)=1−x−2/3g'(x) = 1 - x^{-2/3}.
  • g′(x)=0g'(x) = 0 when x2/3=1x^{2/3} = 1, so x=±1x = \pm 1.
  • g′(0)g'(0) does not exist, and g(0)=0g(0) = 0 is defined, so x=0x = 0 is also a critical point.
  1. Apply Find the absolute maximum and minimum values of f(x)=x3−3x2+1f(x) = x^3 - 3x^2 + 1 on [1,4][1, 4].
Show answer

Answer: The absolute maximum is 1717, at x=4x = 4, and the absolute minimum is −3-3, at x=2x = 2.

Marking points:

  • f′(x)=3x(x−2)f'(x) = 3x(x - 2), so the critical points are 00 and 22; only x=2x = 2 is in [1,4][1, 4].
  • f(1)=−1f(1) = -1, f(2)=−3f(2) = -3 and f(4)=17f(4) = 17.
  • Compare: largest 1717, smallest −3-3.
  1. Apply What is the absolute maximum value of f(x)=xe−xf(x) = xe^{-x} on [0,3][0, 3]?
    • A) 00
    • B) 3e3\dfrac{3}{e^3}
    • C) 1e\dfrac{1}{e}
    • D) 11
Show answer

Answer: C) 1e\dfrac{1}{e}.

Marking points:

  • f′(x)=e−x(1−x)f'(x) = e^{-x}(1 - x), so the critical point is x=1x = 1.
  • f(0)=0f(0) = 0, f(1)=1e≈0.368f(1) = \frac{1}{e} \approx 0.368 and f(3)=3e3≈0.149f(3) = \frac{3}{e^3} \approx 0.149.
  • A is the absolute minimum. B is only the right endpoint value. D is the input where the maximum occurs, not the maximum.
  1. Exam-style A company's profit is P(x)=−2x3+15x2+36xP(x) = -2x^3 + 15x^2 + 36x thousand dollars, where xx is the number of units made, in hundreds, for 0≤x≤100 \le x \le 10. (a) Explain why PP must have an absolute maximum on [0,10][0, 10]. (b) Find the absolute maximum and minimum profit on [0,10][0, 10]. Justify your answer.
Show answer

Answer: (a) PP is a polynomial, so it is continuous on [0,10][0, 10], and the Extreme Value Theorem applies. (b) The maximum profit is 324324 thousand dollars, at x=6x = 6, and the minimum is −140-140 thousand dollars, at x=10x = 10.

Marking points:

  • P′(x)=−6x2+30x+36=−6(x−6)(x+1)P'(x) = -6x^2 + 30x + 36 = -6(x - 6)(x + 1), so the only critical point in [0,10][0, 10] is x=6x = 6.
  • P(0)=0P(0) = 0, P(6)=324P(6) = 324 and P(10)=−140P(10) = -140.
  • The candidates table justifies the answer: largest 324324, smallest −140-140, each with units.
  1. Exam-style A function ff is continuous on [0,6][0, 6] and differentiable on (0,6)(0, 6), and its only critical points are x=2x = 2 and x=5x = 5. Also, f(0)=3f(0) = 3, f(2)=−1f(2) = -1, f(5)=7f(5) = 7 and f(6)=4f(6) = 4. Which statement is true?
    • A) The absolute maximum value of ff on [0,6][0, 6] is 55.
    • B) The absolute minimum value of ff on [0,6][0, 6] is 33.
    • C) The absolute maximum value of ff on [0,6][0, 6] is 44.
    • D) The absolute minimum value of ff on [0,6][0, 6] is −1-1.
Show answer

Answer: D) The absolute minimum value of ff on [0,6][0, 6] is −1-1.

Marking points:

  • The candidates are 33, −1-1, 77 and 44, so the minimum is −1-1 (at x=2x = 2) and the maximum is 77 (at x=5x = 5).
  • A gives the input of the maximum instead of its value. B and C compare only the endpoint values.
  1. Apply For f(x)=x2−4xf(x) = x^2 - 4x, on which interval is the absolute minimum of ff at an endpoint?
    • A) [3,6][3, 6]
    • B) [0,5][0, 5]
    • C) [1,3][1, 3]
    • D) [−1,4][-1, 4]
Show answer

Answer: A) [3,6][3, 6].

Marking points:

  • The only critical point is x=2x = 2, where ff has its lowest value, −4-4.
  • On [3,6][3, 6], x=2x = 2 is outside the interval, so the candidates are f(3)=−3f(3) = -3 and f(6)=12f(6) = 12, and the minimum is at the endpoint x=3x = 3.
  • B, C and D all contain x=2x = 2, so their absolute minimum is −4-4, at that interior point.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • Continuity on a closed interval guarantees an absolute maximum and minimum; an open interval or a break removes the guarantee.
  • Absolute extrema on [a,b][a, b] occur only at critical points or endpoints.
  • Critical points are inputs in the domain where f′=0f' = 0 or f′f' does not exist.
  • The candidates test: list ff at the endpoints and the critical points inside, then pick the largest and smallest.
  • State the extreme value as an output of ff, and give the input where it occurs.

Figures

The cubic y = x cubed minus 3x drawn from x = -1.5 to x = 3. It rises to a relative maximum at (-1, 2), falls to a minimum at (1, -2), then climbs steeply to its highest point at the right endpoint (3, 18). (open full size in a new tab)
The graph of y = x³ − 3x on [−1.5, 3], with its relative maximum, absolute maximum and absolute minimum marked

Keep learning

Explore AP Calculus AB tutoring →

View the full Calculus AB syllabus →

More in this unit

Analyzing Functions with Derivatives

All The Mean Value and Extreme Value Theorems notes

Part of Novark's AP Calculus AB notes