SECTION 1
Historical Context & Motivation
The desire to find the "best" outcome—the largest area, the shortest path, the least cost—has driven mathematical inquiry for millennia. Ancient Greek mathematicians wrestled with problems like enclosing the maximum area with a fixed perimeter, a question known as the isoperimetric problem. However, without a systematic tool for locating extrema, solutions relied on geometric insight and ad hoc argument. The invention of calculus in the seventeenth century transformed optimization from a collection of clever tricks into a general, algorithmic discipline. By connecting the sign of a derivative to the increase or decrease of a function, Newton and Leibniz gave mathematicians—and later engineers, economists, and scientists—a universal method for identifying maximum and minimum values.
~300 BCE • Euclid & Greek Extrema
1638 • Fermat's Method of Adequality
1684 • Leibniz Publishes Calculus
1696 • The Brachistochrone Problem
Modern Era • Industrial & Computational Optimization
The central question this lesson addresses is deceptively simple: given a real-world quantity that depends on one or more variables, and given constraints that restrict those variables, how do we systematically determine the absolute maximum or minimum of that quantity? The answer lies in translating the verbal description into a single-variable function, applying derivative tests, and verifying that the critical point yields a global—not merely local—extremum.
SECTION 2
Core Principles of Optimization
Every optimization problem in calculus follows a predictable logical arc. You begin by understanding the physical or geometric scenario, identify the quantity to be optimized, express it as a function of a single variable, find critical points via differentiation, and then confirm that your candidate is indeed the global extremum on the relevant domain. Mastering these steps converts even intimidating word problems into manageable algebra and calculus.
Identify the Objective Function
Establish the Constraint
Determine the Domain
Differentiate and Find Critical Points
Verify the Global Extremum
KEY TAKEAWAY
SECTION 3
Visual Explanation — The Optimization Workflow
The following diagram illustrates the complete optimization workflow as a flowchart. Each stage corresponds to one of the core principles from Section 2. Following these steps in order ensures that you translate the word problem faithfully, reduce the problem to single-variable calculus, and arrive at a verified global extremum.
Notice that the flowchart separates the algebraic modeling (steps 1–4) from the calculus execution (steps 5–6). On the AP exam, the modeling phase is typically where points are lost. Students who rush to differentiate before correctly writing the objective function and eliminating variables often optimize the wrong quantity or produce an expression in two variables that cannot be differentiated with respect to a single variable. A careful, methodical approach to setup prevents these costly errors.
SECTION 4
Mathematical Framework
The theoretical backbone of optimization is the Extreme Value Theorem: if f is continuous on a closed interval [a, b], then f attains both an absolute maximum and an absolute minimum on that interval. These extreme values must occur at critical points in the interior or at the endpoints. When the domain is not a closed interval—say, an open interval or a half-line—we rely on derivative tests and limiting behavior to confirm that a critical point delivers a global extremum.
EXTREME VALUE THEOREM
Here c is the location of the absolute minimum and d is the location of the absolute maximum on the interval.
FIRST DERIVATIVE CONDITION
All local (and hence global) extrema of a differentiable function occur at critical points. However, not every critical point is an extremum—always verify.
SECOND DERIVATIVE TEST
If f ″(c) = 0, the test is inconclusive; use the First Derivative Test or higher-order derivatives instead.
CLOSED INTERVAL METHOD
Evaluate f at every critical point c₁, c₂, … inside (a, b) and at both endpoints a and b. Compare all values. The largest is the absolute maximum; the smallest is the absolute minimum.
AP Exam Tip
SECTION 5
Common Optimization Problem Types
Although optimization problems appear in endless real-world guises, the AP Calculus BC exam draws from a relatively small family of recurring problem types. Recognizing which family a problem belongs to immediately suggests the correct geometric or algebraic setup. The diagram below classifies these families, and the table that follows summarizes the typical objective function and constraint for each.
| Problem Family | Typical Objective | Typical Constraint | Key Tip |
|---|---|---|---|
| Geometric (inscribed shapes) | Maximize area or perimeter | Point lies on a given curve | Substitute y = f(x) directly into the area formula |
| Container / Box | Minimize surface area or material | Fixed volume | Solve the volume constraint for h and substitute into surface area |
| Distance / Path | Minimize distance or squared distance | Point constrained to a curve | Minimize D² instead of D to avoid the square root |
| Economic / Cost | Maximize profit P(x) = R(x) − C(x) | Production capacity 0 ≤ x ≤ N | P ′(x) = 0 ⟹ marginal revenue = marginal cost |
| Time / Rate (Snell's Law type) | Minimize total travel time | Two different speeds in two media | Express distances via Pythagorean theorem in terms of entry point |
Summary of the five main optimization problem families and their setup strategies.
SECTION 6
Worked Example — Open-Top Box Problem
A manufacturer needs to construct an open-top rectangular box with a square base from 1200 cm² of sheet metal. Find the dimensions that maximize the volume of the box.
Maximize the Volume of an Open-Top Box
- 1
Step 1 — Identify Variables and Draw
Let the side length of the square base be x cm and the height of the box be h cm. The box has one square base (area x²) and four rectangular sides (each of area x × h). There is no top. - 2
Step 2 — Write the Objective Function
The volume to maximize is V = x² × h. This currently depends on two variables, so we need the constraint to eliminate one. - 3
Step 3 — Write the Constraint and Reduce to One Variable
The total surface area of the open-top box is: S = x² + 4xh = 1200. Solving for h: h = (1200 − x²) / (4x). Substituting into V: V(x) = x² × (1200 − x²) / (4x) = x(1200 − x²) / 4 = 300x − x³/4.V(x) = 300x − x³/4 - 4
Step 4 — Determine the Domain
Physical constraints require x > 0 and h > 0. Since h = (1200 − x²)/(4x) > 0, we need x² < 1200, so x < √1200 = 20√3 ≈ 34.64. Also, when x = 0 or x = 20√3, the volume is zero. Thus the domain is the open interval (0, 20√3), but V → 0 at both endpoints, guaranteeing any interior maximum is the global maximum.Domain: 0 < x < 20√3 - 5
Step 5 — Differentiate and Find Critical Points
V ′(x) = 300 − 3x²/4. Set V ′(x) = 0: 300 − 3x²/4 = 0 → 3x²/4 = 300 → x² = 400 → x = 20 (taking the positive root since x > 0).Critical point: x = 20 cm - 6
Step 6 — Verify Global Maximum (Second Derivative Test)
V ″(x) = −3x/2. At x = 20: V ″(20) = −3(20)/2 = −30 < 0. Since V ″(20) < 0, the function is concave down at x = 20, confirming a local maximum. Because this is the only critical point on the interval and V → 0 at both ends of the domain, this local maximum is also the absolute maximum.V ″(20) = −30 < 0 → confirmed maximum - 7
Step 7 — Compute the Optimal Dimensions and Volume
With x = 20: h = (1200 − 400)/(4 × 20) = 800/80 = 10 cm. Volume: V = 20² × 10 = 4000 cm³.Optimal dimensions: 20 cm × 20 cm × 10 cm, giving V = 4000 cm³
Common Mistake
For an open-top square-base box with 1,200 cm² of material, x² + 4xh = 1,200. Volume is largest at base side 20 cm and height 10 cm, giving 4,000 cm³.
For an open-top square-base box with 1,200 cm² of material, x² + 4xh = 1,200. Volume is largest at base side 20 cm and height 10 cm, giving 4,000 cm³.
SECTION 7
Comparing Verification Methods
After finding a critical point, you must verify that it gives a global extremum, not merely a local one. Three standard verification strategies are available, each with distinct strengths and limitations. Choosing the right one depends on whether the domain is a closed interval, whether the second derivative is easy to compute, and how many critical points exist.
| Method | Procedure | When to Use | Limitations |
|---|---|---|---|
| Closed Interval Method | Evaluate f at all critical points and both endpoints; compare values. | Domain is a closed interval [a, b] and f is continuous. | Cannot be used on open or unbounded domains. |
| First Derivative Test | Analyze the sign of f ′ on intervals around the critical point. | Any domain; especially useful when f ″ is hard to compute. | Confirms local extremum; need additional argument for global. |
| Second Derivative Test | Compute f ″(c); sign determines concavity and thus local max or min. | f ″ is easy to compute and f ″(c) ≠ 0. | Inconclusive when f ″(c) = 0; only confirms local, not global, unless additional reasoning is provided. |
Comparison of three standard verification strategies for extrema.
KEY TAKEAWAY
SECTION 8
Connections to Advanced Theory
The single-variable optimization techniques in AP Calculus BC form the gateway to much deeper optimization theory. In multivariable calculus, the gradient replaces the derivative, and the method of Lagrange multipliers generalizes the constraint-elimination step you learned here. In the calculus of variations, the unknown is an entire function rather than a single number, and the Euler–Lagrange equation plays the role of setting the derivative to zero. Understanding the logical skeleton of single-variable optimization—objective, constraint, critical point, verification—prepares you for all of these extensions.
| Concept | AP Calculus BC (Single Variable) | Advanced Extension |
|---|---|---|
| Critical point condition | f ′(x) = 0 | ∇f = 0 (gradient equals zero vector in ℝⁿ) |
| Constraint handling | Substitute constraint into objective to reduce variables | Lagrange multipliers: ∇f = λ∇g (no substitution needed) |
| Second-order verification | Sign of f ″(c) | Sign-definiteness of the Hessian matrix |
| Functional optimization | Not covered | Calculus of variations: Euler–Lagrange equation |
How single-variable optimization concepts generalize in advanced mathematics.
For the AP exam, the key insight is that every optimization problem ultimately reduces to finding where a derivative (or gradient) is zero and then checking a second-order condition. If you internalize this pattern now, the multivariable generalization in college will feel like a natural broadening of familiar ideas rather than an entirely new subject.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
- A. 3
- B. 7
- C. 12
- D. It cannot be determined without knowing f ′(5).
- E. It cannot be determined without knowing f on the entire interval.
Show answer (C)
Question 2: BASIC CALCULATION
- A. 10 and 40, with product 400
- B. 20 and 30, with product 600
- C. 25 and 25, with product 625
- D. 15 and 35, with product 525
- E. 1 and 49, with product 49
Show answer (C)
Question 3: INTERMEDIATE
- A. 200 m × 200 m = 40,000 m²
- B. 300 m × 150 m = 45,000 m²
- C. 400 m × 100 m = 40,000 m²
- D. 250 m × 175 m = 43,750 m²
- E. 600 m × 0 m = 0 m²
Show answer (B)
Question 4: APPLIED
4 ptsShow answer
Question 5: CRITICAL THINKING
3 ptsShow answer
SUMMARY
Lesson Summary
Summary
Solving optimization problems in calculus requires a systematic approach: identify the objective function (the quantity to maximize or minimize), use the constraint to reduce the problem to a single variable, determine the feasible domain, find critical points by setting the first derivative equal to zero, and verify the global extremum using the Closed Interval Method, the First Derivative Test, or the Second Derivative Test.
The Extreme Value Theorem guarantees that a continuous function on a closed interval attains its absolute maximum and minimum. On open or unbounded domains, the single critical point argument—combined with behavior at the boundary—provides the necessary justification. Common problem families include geometric, container, distance, and economic optimization, and recognizing the family accelerates setup. Always justify your answer on the AP exam—stating the method and showing the computation that confirms a global extremum is essential for earning full credit.