AP Calculus BC • Analytical Applications of Differentiation

Using the Candidates Test to Determine Absolute (Global) Extrema

A systematic method for finding the largest and smallest values a continuous function attains on a closed interval.

AP Calculus BC illustration with summation, combined graphs, and an orbit
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

Optimization—the quest to find maximum or minimum values of quantities—has been a driving force in mathematics for centuries. Long before calculus was formalized, ancient Greek geometers like Euclid and Apollonius investigated problems of maximizing areas and minimizing distances, but they lacked a general analytical framework. The development of differential calculus in the seventeenth century by Newton and Leibniz finally provided the tools needed to address optimization rigorously, yet it took further theoretical refinement to guarantee that solutions actually exist. The Candidates Test (sometimes called the Closed Interval Method) emerged from this tradition as a direct, elegant procedure for locating absolute (global) extrema of continuous functions on closed intervals, relying on the foundational Extreme Value Theorem.

1665–1676 • Birth of Calculus

Newton and Leibniz independently develop the foundations of differential and integral calculus, introducing the concept of the derivative and enabling systematic study of rates of change and tangent lines.

1748 • Euler's Analytical Methods

Leonhard Euler publishes Introductio in Analysin Infinitorum, advancing the function concept and analytical techniques that underpin optimization in calculus. His work formalized how derivatives identify candidate points for extreme values.

1817–1821 • Bolzano and Cauchy Rigorize Continuity

Bernard Bolzano and Augustin-Louis Cauchy independently develop rigorous definitions of continuity and limits, laying the groundwork for the Extreme Value Theorem which guarantees that a continuous function on a closed interval attains its maximum and minimum.

1861 • Weierstrass Proves the Extreme Value Theorem

Karl Weierstrass provides a fully rigorous proof that every continuous function on a closed, bounded interval [a, b] must achieve both an absolute maximum and an absolute minimum. This theorem is the theoretical backbone of the Candidates Test.

With the Extreme Value Theorem established, a natural question arose: given that a continuous function on [a, b] must attain a global maximum and minimum, how do we find them efficiently? The Candidates Test answers precisely this question by narrowing the search to a finite, manageable set of candidate points—the critical numbers and the endpoints of the interval.

SECTION 2

Core Principles & Definitions

The Candidates Test rests on a small but powerful chain of ideas. Before applying the method, it is essential to understand each component precisely, since a missing hypothesis—such as a function that is not continuous or an interval that is not closed—would invalidate the entire procedure. The following foundational concepts form the logical scaffolding of the test.

1

Extreme Value Theorem (EVT)

If f is continuous on a closed interval [a, b], then f attains both an absolute maximum and an absolute minimum on [a, b]. This existence guarantee is the prerequisite for the Candidates Test.
2

Critical Numbers

A number c in the domain of f is a critical number if f′(c) = 0 or if f′(c) does not exist. Absolute extrema can occur at these interior points where the derivative vanishes or fails to be defined.
3

Endpoint Evaluation

Unlike local extrema, absolute extrema may occur at the endpoints x = a and x = b even when the derivative does not change sign there. Endpoints must always be included in the candidate list.
4

Comparison of Function Values

After evaluating f at every candidate point (critical numbers and endpoints), the largest value is the absolute maximum and the smallest is the absolute minimum. No further derivative tests are needed.
✦

KEY TAKEAWAY

Think of the Candidates Test like judging a talent competition with a fixed roster. The Extreme Value Theorem guarantees that a winner (maximum) and a last-place finisher (minimum) must exist among the contestants. The critical numbers and endpoints are the only contestants eligible to appear on stage. Your job is simply to evaluate each performer's score (function value) and compare. The highest score wins, the lowest score loses—no complicated tie-breaking rules or second-derivative investigations required.

SECTION 3

Visual Explanation

The following diagram illustrates a continuous function on the closed interval [a, b] with three critical numbers labeled c₁, c₂, and c₃. Observe that the absolute maximum and absolute minimum must occur at one of the candidate points—the endpoints or the critical numbers. By evaluating f at each of these five points and comparing the resulting values, we can identify the global extrema without needing to examine any other points on the curve.

Candidates Test: Identifying Global Extrema on [a, b]xyaf(a)c₁f(c₁)c₂f(c₂)c₃f(c₃)bf(b)abs maxabs minEndpointsCritical numbers (f′=0)Abs MaxAbs Min
A continuous function on [a, b] with three critical numbers c₁, c₂, and c₃. The dashed horizontal lines mark the absolute maximum at c₃ and the absolute minimum at c₂. All five candidate points (two endpoints and three critical numbers) are evaluated and compared.

Notice that the absolute maximum in this example occurs at an interior critical number c₃ where f′(c₃) = 0, while the absolute minimum occurs at another interior critical number c₂. Neither extremum occurs at an endpoint—this is perfectly valid. In other functions, the absolute extrema might both occur at endpoints, or one at an endpoint and one at a critical number. The power of the Candidates Test is that it does not require you to predict where the extrema fall; you simply evaluate all candidates and let the largest and smallest values reveal themselves.

SECTION 4

Mathematical Framework

The Candidates Test can be expressed as a precise algorithmic procedure. Given a function f that is continuous on [a, b], the method proceeds in three stages: finding all critical numbers, evaluating the function at every candidate, and comparing values. The theoretical justification comes from combining the Extreme Value Theorem (which guarantees existence) with the fact that any interior absolute extremum must also be a local extremum, which in turn must occur at a critical number by Fermat's Theorem.

FERMAT'S THEOREM (INTERIOR EXTREMA)

Iffhasalocalextremumatcandf′(c)exists,thenf′(c)=0.If f has a local extremum at c and f′(c) exists, then f′(c) = 0.

This theorem tells us that interior extrema can only occur where the derivative is zero or where the derivative does not exist—precisely the critical numbers.

EXTREME VALUE THEOREM

Iffiscontinuouson[a,b],thenthereexistc,d∈[a,b]suchthatf(c)≤f(x)≤f(d)forallx∈[a,b].If f is continuous on [a, b], then there exist c, d ∈ [a, b] such that f(c) ≤ f(x) ≤ f(d) for all x ∈ [a, b].

Here f(c) is the absolute minimum and f(d) is the absolute maximum. Both c and d must lie in the closed interval [a, b], including the possibility that c or d equals a or b.

The Candidates Test Algorithm

  1. Step 1 — Find all critical numbers. Compute f′(x) and solve f′(x) = 0; also identify any x-values in (a, b) where f′(x) does not exist. Discard any critical numbers that lie outside the open interval (a, b).
  2. Step 2 — Evaluate f at each candidate. Compute f(a), f(b), and f(c) for every critical number c found in Step 1.
  3. Step 3 — Compare. The largest of all evaluated values is the absolute maximum of f on [a, b], and the smallest is the absolute minimum.

CANDIDATES SET

Candidates=a,b∪c∈(a,b):f′(c)=0orf′(c)DNECandidates = {a, b} ∪ {c ∈ (a, b) : f′(c) = 0 or f′(c) DNE}

The absolute maximum is max{f(x) : x ∈ Candidates} and the absolute minimum is min{f(x) : x ∈ Candidates}.

⚠

Common Pitfall

Students often forget to check for points where f′(x) does not exist. Functions involving absolute values, cube roots, or piecewise definitions can have critical numbers where the derivative is undefined even though the function itself is continuous. For instance, f(x) = |x − 2| is continuous everywhere but has a critical number at x = 2 where f′(2) does not exist.

SECTION 5

Step-by-Step Decision Flowchart

The following flowchart summarizes the decision process of the Candidates Test, from verifying the hypotheses through to stating the final answer. Each node represents a checkpoint or computation step. Before beginning the test, you must confirm the two prerequisites: (1) f is continuous on [a, b], and (2) the interval is closed and bounded. If either condition fails, the Extreme Value Theorem does not apply, and the Candidates Test cannot guarantee an answer.

Candidates Test FlowchartIs f continuous on [a, b]?YesStep 1: Compute f′(x)Step 2: Solve f′(x) = 0 and find where f′(x) DNE in (a, b)Step 3: List candidates = {a, b, c₁, c₂, …, cₙ}Step 4: Evaluate f at every candidate pointStep 5: Compare all valuesLargest value =Absolute MaximumSmallest value =Absolute MinimumNo → Test does not apply
Decision flowchart for the Candidates Test. The procedure begins by verifying continuity on a closed interval, then moves through derivative computation, critical number identification, function evaluation, and comparison. The two output boxes at the bottom identify the absolute maximum and minimum.
Candidate TypeHow to IdentifyWhy It's a Candidate
Endpoint x = aGiven by the intervalBoundary of domain; not subject to Fermat's Theorem
Endpoint x = bGiven by the intervalBoundary of domain; not subject to Fermat's Theorem
Stationary pointSolve f′(x) = 0 in (a, b)Horizontal tangent; derivative changes sign or has zero slope
Singular pointFind where f′(x) DNE in (a, b), but f(x) existsCusp, corner, or vertical tangent; derivative undefined but function value exists

Types of candidate points in the Candidates Test

SECTION 6

Worked Example

Let us apply the Candidates Test to find the absolute maximum and absolute minimum of f(x) = 2x³ − 3x² − 12x + 1 on the interval [−2, 3]. This polynomial is continuous everywhere, so the hypotheses of the Extreme Value Theorem are satisfied on any closed interval.

Find the absolute extrema of f(x) = 2x³ − 3x² − 12x + 1 on [−2, 3]

  1. 1

    Step 1 — Differentiate f

    Compute the derivative: f′(x) = 6x² − 6x − 12. Since f is a polynomial, f′(x) exists for all x, so the only critical numbers come from f′(x) = 0.
    f′(x) = 6x² − 6x − 12
  2. 2

    Step 2 — Find critical numbers in (−2, 3)

    Set f′(x) = 0: 6x² − 6x − 12 = 0. Divide through by 6: x² − x − 2 = 0. Factor: (x − 2)(x + 1) = 0, giving x = 2 and x = −1. Both values lie in the open interval (−2, 3), so both are valid critical numbers.
    Critical numbers: x = −1 and x = 2
  3. 3

    Step 3 — Evaluate f at all candidates

    The candidate set is {−2, −1, 2, 3}. Evaluate: f(−2) = 2(−8) − 3(4) − 12(−2) + 1 = −16 − 12 + 24 + 1 = −3. f(−1) = 2(−1) − 3(1) − 12(−1) + 1 = −2 − 3 + 12 + 1 = 8. f(2) = 2(8) − 3(4) − 12(2) + 1 = 16 − 12 − 24 + 1 = −19. f(3) = 2(27) − 3(9) − 12(3) + 1 = 54 − 27 − 36 + 1 = −8.
    f(−2) = −3, f(−1) = 8, f(2) = −19, f(3) = −8
  4. 4

    Step 4 — Compare and conclude

    Comparing all four values: the largest is 8 and the smallest is −19. Therefore the absolute maximum of f on [−2, 3] is 8, occurring at x = −1, and the absolute minimum is −19, occurring at x = 2.
    Absolute max = 8 at x = −1; Absolute min = −19 at x = 2
💡

AP Exam Tip

On free-response questions, always state the candidate set explicitly and show each function evaluation. Justifying your answer by citing the Extreme Value Theorem and showing comparisons earns full credit, whereas simply stating the maximum or minimum value without supporting work may not.

SECTION 7

Candidates Test vs. Other Extrema Methods

Calculus provides several tools for identifying extrema, and students sometimes conflate the Candidates Test with derivative tests for local extrema. It is important to understand when each method is appropriate and what conclusions each one supports. The Candidates Test is specifically designed for absolute (global) extrema on closed intervals, while the First and Second Derivative Tests address local (relative) extrema at individual critical numbers.

FeatureCandidates TestFirst Derivative TestSecond Derivative Test
PurposeFind absolute max and min on [a, b]Classify critical numbers as local max, local min, or neitherClassify critical numbers where f′(c) = 0 and f″(c) ≠ 0
Requires closed interval?Yes—essentialNo—works on any intervalNo—works at any interior critical number
Uses endpoints?Yes—always evaluates f(a) and f(b)No—focuses on sign changes of f′No—uses f″(c) only
Conclusion typeGlobal (absolute) extremaLocal (relative) extrema onlyLocal (relative) extrema only
LimitationsOnly applies on closed intervals with continuous functionsRequires analyzing sign of f′ on intervals around each critical numberInconclusive when f″(c) = 0; requires f″ to exist

Comparison of extrema-finding methods in calculus

✦

KEY TAKEAWAY

Think of the Candidates Test as a census of all possible winners, while the First and Second Derivative Tests are more like background checks on individual contestants. The Candidates Test is the right tool when the question asks for the absolute (global) extreme values on a specified closed interval, which is precisely what many AP exam problems request. If the interval is not closed, or if the function is not continuous, you must use other reasoning—often involving limits at endpoints or infinity—to investigate absolute extrema.

SECTION 8

Connections to Advanced Theory

The Candidates Test provides a complete solution for finding absolute extrema of continuous functions on closed intervals, but many real-world optimization problems do not fit neatly into this framework. In multivariable calculus, the analogous procedure uses Lagrange multipliers and examines boundary curves of closed, bounded regions in ℝ². In applied optimization within single-variable calculus, you often encounter problems on open or unbounded domains where the Extreme Value Theorem does not directly apply, requiring additional arguments—such as behavior as x → ±∞ or the sole critical point test—to verify that a local extremum is actually global.

ScenarioCandidates Test Applicable?Alternative Approach
f continuous on [a, b]Yes — ideal caseN/A
f continuous on (a, b) — open intervalNoEvaluate limits as x → a⁺ and x → b⁻; compare with critical values
f on (−∞, ∞) — unbounded domainNoAnalyze end behavior via limits; use sole critical point theorem if applicable
f has a discontinuity in [a, b]NoAnalyze one-sided limits at discontinuities; split into subintervals if possible
f(x, y) continuous on closed, bounded region in ℝ²Generalized version appliesLagrange multipliers for boundary; set ∇f = 0 for interior

When the Candidates Test applies and alternatives when it does not

For the AP Calculus BC exam, applied optimization problems frequently require you to first set up the function and interval from context, then apply the Candidates Test (or, for open domains, justify global extrema through other means). Recognizing when the Candidates Test applies—and when it does not—is itself a testable skill. In later courses such as real analysis, you will encounter the full proof of the Extreme Value Theorem using the completeness property of the real numbers, providing a deeper appreciation for why the closed-interval hypothesis is non-negotiable.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Which of the following is a necessary hypothesis for the Candidates Test to guarantee the existence of absolute extrema of f on an interval I?
  • A. f must be differentiable on all of I
  • B. f must be continuous on a closed interval [a, b]
  • C. f must have at least one critical number in (a, b)
  • D. f must be increasing on part of the interval and decreasing on another part
  • E. f″ must exist at every point in (a, b)
Show answer (B)
B is correct. The Candidates Test relies on the Extreme Value Theorem, which requires f to be continuous on a closed interval [a, b]. (A) is wrong because the function need not be differentiable everywhere—critical numbers include points where f′ does not exist. (C) is wrong because a function might have no critical numbers in the interior (e.g., f(x) = x on [0, 1]), yet the Candidates Test still works using just the endpoints. (D) is wrong because a constant function on [a, b] satisfies the hypotheses and has trivial absolute extrema. (E) is wrong because f″ is not required; the Candidates Test does not use the second derivative.

Question 2: BASIC CALCULATION

Find the absolute maximum value of f(x) = x³ − 6x² + 9x + 2 on [0, 4].
  • A. 2
  • B. 6
  • C. 4
  • D. 8
  • E. −2
Show answer (B)
First, f′(x) = 3x² − 12x + 9 = 3(x² − 4x + 3) = 3(x − 1)(x − 3). Setting f′(x) = 0 gives critical numbers x = 1 and x = 3, both in (0, 4). Evaluating: f(0) = 2, f(1) = 1 − 6 + 9 + 2 = 6, f(3) = 27 − 54 + 27 + 2 = 2, f(4) = 64 − 96 + 36 + 2 = 6. The largest value is 6, attained at both x = 1 and x = 4. B is correct. (A) 2 is the value at x = 0 and x = 3—these are the absolute minimum, not maximum. (C) 4 does not appear as a function value at any candidate. (D) 8 does not correspond to any evaluation. (E) −2 is not a function value in the candidate set.

Question 3: INTERMEDIATE

Let g(x) = x²ᐟ³(x − 5) on the interval [−1, 8]. What is the absolute minimum value of g on [−1, 8]?
  • A. −6
  • B. −3 · 2²ᐟ³
  • C. 0
  • D. −5
  • E. 12
Show answer (A)
Write g(x) = x²ᐟ³(x − 5) = x⁵ᐟ³ − 5x²ᐟ³. Differentiating, g′(x) = (5/3)x²ᐟ³ − (10/3)x⁻¹ᐟ³ = (5x − 10)/(3x¹ᐟ³). Setting the numerator equal to zero gives 5x − 10 = 0, so x = 2. The derivative is also undefined at x = 0 (since x¹ᐟ³ = 0 in the denominator), and 0 lies in [−1, 8], so x = 0 is a critical number as well. The candidates are the critical numbers and the endpoints: x = −1, 0, 2, 8.Evaluate g at each candidate: g(−1) = (−1)²ᐟ³(−1 − 5) = 1 · (−6) = −6. g(0) = 0²ᐟ³(0 − 5) = 0. g(2) = 2²ᐟ³(2 − 5) = −3 · 2²ᐟ³ ≈ −4.76. g(8) = 8²ᐟ³(8 − 5) = 4 · 3 = 12.Comparing all candidate values: −6 < −4.76 < 0 < 12. The smallest value is −6, occurring at the endpoint x = −1. Therefore the absolute minimum value of g on [−1, 8] is −6 (Choice A).(A) −6 = g(−1) is the absolute minimum value. (B) −3 · 2²ᐟ³ ≈ −4.76 = g(2) is a local minimum but not the global minimum on this interval. (C) 0 = g(0) is neither the absolute maximum nor the absolute minimum. (D) −5 does not equal any candidate value. (E) 12 = g(8) is the absolute maximum value, not the minimum.

Question 4: APPLIED

7 pts
A manufacturing company determines that the cost (in thousands of dollars) of producing x units of a product on a given day is modeled by C(x) = x³ − 12x² + 48x + 10 for 1 ≤ x ≤ 8, where x is measured in hundreds of units. (a) Find all critical numbers of C on the interval (1, 8). (b) Use the Candidates Test to find the absolute minimum cost and the production level at which it occurs. (c) Find the absolute maximum cost on [1, 8] and explain its practical significance. (d) Justify why the Candidates Test is valid for this problem.
Show answer
Part (a) — 2 points: C′(x) = 3x² − 24x + 48 = 3(x² − 8x + 16) = 3(x − 4)². Setting C′(x) = 0 gives x = 4, which is in (1, 8). Since C is a polynomial, C′ exists everywhere, so x = 4 is the only critical number. [1 pt for computing C′; 1 pt for identifying x = 4 as the sole critical number.] Part (b) — 2 points: Candidates: {1, 4, 8}. C(1) = 1 − 12 + 48 + 10 = 47. C(4) = 64 − 192 + 192 + 10 = 74. C(8) = 512 − 768 + 384 + 10 = 138. The smallest value is C(1) = 47. The absolute minimum cost is 47 thousand dollars, occurring at a production level of 100 units. [1 pt for evaluating all three candidates; 1 pt for identifying the minimum and its location.] Part (c) — 2 points: The absolute maximum cost is C(8) = 138 thousand dollars at x = 8 (800 units). Practically, this means that the maximum daily production level results in the highest cost, suggesting diminishing efficiency at high output volumes—the cubic term dominates as x increases. [1 pt for identifying the maximum; 1 pt for meaningful practical interpretation.] Part (d) — 1 point: C(x) is a polynomial, and every polynomial is continuous on all of ℝ, so C is continuous on the closed interval [1, 8]. By the Extreme Value Theorem, C attains both an absolute maximum and absolute minimum on [1, 8], and the Candidates Test identifies them. [1 pt for citing continuity on a closed interval and the EVT.]

Question 5: CRITICAL THINKING

5 pts
Consider f(x) = sin(x) + cos(x) on the interval [0, 2π]. (a) Find all critical numbers of f in (0, 2π). (b) Use the Candidates Test to determine the absolute maximum and absolute minimum values of f on [0, 2π]. (c) Express the absolute maximum value in exact simplified form and identify all x-values where each extremum occurs.
Show answer
Part (a) — 2 points: f′(x) = cos(x) − sin(x). Setting f′(x) = 0: cos(x) = sin(x), so tan(x) = 1. In (0, 2π), this gives x = π/4 and x = 5π/4. [1 pt for computing f′; 1 pt for both critical numbers.] Part (b) — 2 points: Candidates: {0, π/4, 5π/4, 2π}. f(0) = sin(0) + cos(0) = 1. f(π/4) = sin(π/4) + cos(π/4) = √2/2 + √2/2 = √2. f(5π/4) = sin(5π/4) + cos(5π/4) = −√2/2 − √2/2 = −√2. f(2π) = sin(2π) + cos(2π) = 1. The largest value is √2 ≈ 1.414 and the smallest is −√2 ≈ −1.414. Absolute maximum is √2; absolute minimum is −√2. [1 pt for evaluating all candidates; 1 pt for correct identification of both extrema.] Part (c) — 1 point: The absolute maximum value is √2, occurring at x = π/4. The absolute minimum value is −√2, occurring at x = 5π/4. Note that using the identity sin(x) + cos(x) = √2 · sin(x + π/4), the maximum of √2 occurs when sin(x + π/4) = 1, i.e., x + π/4 = π/2, giving x = π/4, confirming the result. [1 pt for exact form and supporting justification.]

SUMMARY

Summary

Summary

The Candidates Test is a systematic method for finding the absolute (global) maximum and absolute (global) minimum of a continuous function on a closed interval [a, b]. Its validity rests on the Extreme Value Theorem, which guarantees that such extrema exist. The procedure has three steps: (1) find all critical numbers in the open interval (a, b) by solving f′(x) = 0 and identifying where f′(x) does not exist; (2) evaluate f at each critical number and at both endpoints; and (3) compare all values to identify the largest and smallest.

This method is distinct from the First Derivative Test and Second Derivative Test, which classify local (relative) extrema at individual critical numbers. The Candidates Test is the go-to strategy whenever an AP problem asks for absolute extrema on a closed interval, and it requires no sign charts or second derivatives—just careful evaluation and comparison. Remember: if the interval is not closed, or if f is not continuous, the Extreme Value Theorem does not apply, and you must use alternative reasoning to determine whether absolute extrema exist and where they occur.

Varsity Tutors • AP Calculus BC • Using the Candidates Test to Determine Absolute (Global) Extrema