| Study Guides
AP · Solving optimization problems · 14 min read · Updated 2026-05-10

Solving optimization problems — AP Calculus BC Study Guide

For: AP Calculus BC candidates sitting AP Calculus BC.

Covers: The 4-step optimization problem-solving framework, domain restriction for critical points, first/second derivative tests for absolute extrema, endpoint optimization, and contextual optimization for geometry, economics, and real-world scenarios.

You should already know: How to compute derivatives of all function types tested on the AP exam. How to find critical points and apply the Extreme Value Theorem. How to use first/second derivative tests to classify local extrema.

A note on the practice questions: All worked questions in the "Practice Questions" section below are original problems written by us in the AP Calculus BC style for educational use. They are not reproductions of past College Board / Cambridge / IB papers and may differ in wording, numerical values, or context. Use them to practise the technique; cross-check with official mark schemes for grading conventions.


1. What Is Solving optimization problems?

Solving optimization problems uses differentiation to find the maximum or minimum possible value of a target quantity, subject to fixed constraints in a contextual or abstract mathematical problem. This topic is a core component of Unit 5: Analytical Applications of Differentiation, which accounts for 15-18% of the total AP Calculus BC exam score, with optimization typically contributing 2-4% of total exam points across both multiple-choice (MCQ) and free-response (FRQ) sections. Synonyms for optimization in AP problems include “find the maximum possible value,” “determine the minimum dimensions,” “maximize profit,” or “minimize cost,” all requiring the same core process. Unlike finding local extrema on an open interval, optimization almost always asks for the absolute (global) maximum or minimum of a function over a specific interval dictated by the problem context. This topic connects basic derivative techniques to real-world problem solving, a key skill the AP exam prioritizes heavily in FRQ sections.

2. The 4-Step General Optimization Framework

The 4-Step General Optimization Framework is the standardized process that applies to every optimization problem you will encounter on the AP exam, regardless of context. Optimization always requires two core components: a target function (the quantity you want to maximize or minimize) and a constraint (a fixed relationship between variables that lets you reduce the problem to a single variable). The four steps are explicitly structured to align with AP exam grading rubrics, so following them ensures you earn all possible process points even if you make an arithmetic error. Step 1: Label all unknown quantities, explicitly name which quantity is your target, and write the constraint as an equation relating your variables. Step 2: Use the constraint to eliminate all but one independent variable, so your target becomes a single-variable function . The most critical part of this step is defining the domain of based on context, not just the mathematical domain of : lengths cannot be negative, production levels cannot exceed factory capacity, and so on. Most optimization problems have a closed interval domain , which guarantees an absolute maximum and minimum exist by the Extreme Value Theorem. Step 3: Find all critical points of on by computing , setting it equal to zero, and solving for . Remember that critical points also include points where is undefined, though these are rare in AP optimization problems. Step 4: Evaluate at every critical point inside the interval and at both endpoints; the largest value is the absolute maximum, the smallest is the absolute minimum. Finally, answer the original question in context, as AP problems often ask for the input that gives the extremum, not the extremum itself.

Worked Example

A rectangle has a perimeter of 120 cm. Find the dimensions that maximize the area of the rectangle.

  1. Define variables: Let = length of one side, = length of the adjacent side, = area (target quantity to maximize). Constraint: Perimeter .
  2. Eliminate : Solve the constraint for to get . Substitute into the area formula to get . Domain: Both sides are positive, so and , giving (we can treat this as closed since area is 0 at the endpoints).
  3. Find critical points: . Set equal to zero: . There is one critical point at inside the interval.
  4. Evaluate and conclude: , , . The maximum area occurs at , so . The optimal dimensions are 30 cm by 30 cm (a square) with maximum area 900 cm².

Exam tip: Always answer the question the problem asks: if it asks for dimensions, don't just stop at the maximum area; if it asks for minimum cost, don't just give the production level that minimizes it.

3. Classifying Absolute Extrema on Open Intervals

Many optimization problems have open domains (e.g., with no upper bound from context), so the Extreme Value Theorem does not guarantee an extremum exists. However, if you find only one critical point on the domain, you can use the first or second derivative test to confirm that the local extremum is also the global (absolute) extremum. This is a common scenario on the AP exam, especially for abstract problems and unbounded real-world scenarios. For a single critical point : if the second derivative , is a local maximum, which must be the absolute maximum (since the function decreases on both sides of for all in the domain). If , is a local minimum, which must be the absolute minimum. This approach saves time compared to checking limits at the endpoints of open domains, and it is accepted as full justification on AP FRQ.

Worked Example

Find the positive number that minimizes the sum for .

  1. Define target: We need to minimize , with domain (open interval, no constraints other than ).
  2. Find critical points: Compute the derivative . Set equal to zero: There is only one critical point at in the domain.
  3. Classify with the second derivative test: Compute , which is always positive for all . , so is a local minimum.
  4. Conclude: Since there is only one critical point on the open domain, is the absolute minimum. The sum is minimized at .

Exam tip: On an open domain, always explicitly confirm that your critical point is indeed an absolute extremum by referencing the first/second derivative test for full credit; AP graders take points off for skipping this justification.

4. Contextual Applied Optimization

The AP exam prioritizes applied optimization problems in real-world contexts, with common scenarios including geometry (maximizing volume/minimizing surface area), economics (maximizing profit/minimizing cost), and engineering (minimizing material cost or travel time). The key challenge for applied problems is correctly translating the verbal description into the target function and constraint, which is where most students lose points. For example, in economics, profit is always revenue minus total cost; in geometry, always confirm if a container is open-top or closed-top before writing the surface area formula, as this changes the function entirely.

Worked Example

A small business produces custom backpacks per week. The total weekly cost in dollars is given by . The selling price per backpack is R(x) = 80x$. Find the number of backpacks the business should produce per week to maximize weekly profit.

  1. Define variables: Target is weekly profit , which we need to maximize. The constraint is (cannot produce negative backpacks).
  2. Write the target function: Profit = Revenue - Cost, so: Domain is (the upper bound comes from requiring profit to be non-negative).
  3. Find critical points: . Set equal to zero: , which is inside the domain.
  4. Classify and conclude: for all , so is a local maximum, which is the absolute maximum. The maximum weekly profit is . The business should produce 3000 backpacks per week to maximize profit.

Exam tip: For economic optimization, remember that maximum profit occurs where marginal profit equals zero, which simplifies to marginal revenue = marginal cost; this is a common shortcut that saves time on MCQs.

5. Common Pitfalls (and how to avoid them)

  • Wrong move: Stopping after finding the critical point , and reporting as the answer when the problem asks for the maximum value of the target function (or vice versa). Why: Students rush after finding the critical point and forget to check what the question is actually asking for. Correct move: After finding all extrema, re-read the question stem to confirm what quantity you need to report, and explicitly compute that quantity.
  • Wrong move: Using the mathematical domain of the target function instead of the context-imposed domain, leading to including negative lengths or impossible production levels. Why: Students often skip writing down the domain entirely, so they end up with extraneous critical points outside the valid range. Correct move: Always write the domain of the target function explicitly after defining it, using context to set bounds on the independent variable.
  • Wrong move: Forgetting to check endpoint values when the domain is closed, assuming the extremum must be at an interior critical point. Why: Students are used to finding extrema at critical points and forget that endpoints can give absolute extrema in optimization problems. Correct move: For any closed interval domain, always evaluate the target function at both endpoints and all interior critical points before selecting the absolute maximum/minimum.
  • Wrong move: On an open domain with one critical point, failing to justify that the critical point is an absolute extremum, just stating it is the answer. Why: Students think finding a critical point is enough, but AP grading requires justification that it's the global extremum. Correct move: Always apply the first or second derivative test to show the critical point is a local extremum, then note that since it's the only critical point it must be the global extremum.
  • Wrong move: Making an error when rearranging the constraint to eliminate a variable, leading to an incorrect target function. Why: Students rush the algebra step to get to differentiation, and small sign or coefficient errors change the entire problem. Correct move: After writing the target function, plug in a test value to check that it satisfies the original constraint to catch algebra errors before differentiating.

6. Practice Questions (AP Calculus BC Style)

Question 1 (Multiple Choice)

Which of the following gives the radius that minimizes the surface area of a closed right circular cylinder with fixed volume ? (Note: The surface area of a closed cylinder is , and volume is .) A) B) C) D)

Worked Solution: First, use the volume constraint to eliminate : . Substitute into the surface area formula to get the target function: . The domain is , an open interval. Take the derivative: . Set equal to zero: . The second derivative is always positive for , so this is a minimum. Correct answer is B.


Question 2 (Free Response)

Consider an open-top box made by cutting equal-sized squares from each corner of a 10 inch by 15 inch rectangular sheet of cardboard, then folding up the sides. (a) Write the volume of the box as a function of , the side length of the cut-out squares, and state the domain of . (b) Find all critical points of on the domain, and classify each as a local maximum or local minimum. (c) Find the maximum possible volume of the box, and the value of that gives this volume.

Worked Solution: (a) When folding the box after cutting out squares of side , the base dimensions are and , and the height is . So: All side lengths must be positive, so , and , so the domain is (or for evaluation).

(b) Compute the derivative: . Set equal to zero and simplify: . Use the quadratic formula: Only is inside the domain. The second derivative is , and , so this critical point is a local maximum. No other critical points exist on the domain.

(c) Evaluate at the critical point and endpoints: , , cubic inches. The maximum volume is approximately , achieved at inches (or exact inches).


Question 3 (Application / Real-World Style)

A cable TV company needs to run a new cable from a distribution box on the edge of a straight road to a new house located 4 miles inland, perpendicular to the road. The house is 5 miles along the road from the distribution box. Running cable along the road costs 500 per mile. Find the minimum total cost to run the cable from the distribution box to the house.

Worked Solution: Let = number of miles of cable run along the road from the distribution box to the turn-off point. The inland distance is , so total cost is: Take the derivative: . Set equal to zero: Evaluate cost at all candidates: , , . The minimum total cost to run the cable is , achieved by running 2 miles along the road before turning inland to the house.

7. Quick Reference Cheatsheet

Category Formula/Process Notes
General 4-Step Framework 1. Define variables → 2. Write target + domain → 3. Find critical points → 4. Evaluate for absolute extremum Aligns with AP grading rubrics for full process points
Absolute Extrema on Closed Evaluate at all interior critical points and ; largest = absolute max Guaranteed to exist for continuous by the Extreme Value Theorem
Absolute Extrema on Open Domain (1 critical point) If gives absolute max; if gives absolute min Must include this justification for full AP credit
Profit Maximization (Economics) ; maximum at = marginal revenue, = marginal cost
Closed Cylinder Surface Area , Subtract for an open-top cylinder
Open-Top Box from Cut-Out Sheet Domain:
Mixed Path Cost Minimization Always check endpoints in addition to the critical point

8. What's Next

Solving optimization problems is a capstone skill for Unit 5: Analytical Applications of Differentiation, and it builds directly into the next topic of related rates, which also requires translating contextual relationships into equations with multiple variables, just like optimization. Without mastering the skill of defining variables, writing constraint equations, and simplifying to a single-variable function, you will struggle with the setup step for related rates, which is the most heavily weighted part of those FRQ questions. Optimization also connects to the study of parametric and vector motion, where you may be asked to find the maximum speed or minimum distance between two moving objects, a common AP BC exam question. Next topics you should study after mastering optimization:

← Back to topic

Stuck on a specific question?
Snap a photo or paste your problem — Ollie (our AI tutor) walks through it step-by-step with diagrams.
Try Ollie free →