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

Introduction to optimization problems — AP Calculus AB Study Guide

For: AP Calculus AB candidates sitting AP Calculus AB.

Covers: The 4-step optimization process, identifying objective and constraint functions, domain restriction for contextual problems, testing critical points for absolute extrema, and interpreting optimization solutions in applied context.

You should already know: How to compute first and second derivatives of common functions. How to find critical points of a differentiable function. How to test for absolute extrema on a closed interval.

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 AB 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 Introduction to optimization problems?

Optimization problems are applied calculus questions that ask you to find the maximum or minimum possible value of a real-world quantity (such as area, cost, profit, or volume) given a set of fixed limiting conditions. According to the AP Calculus AB Course and Exam Description (CED), this topic falls under Unit 5: Analytical Applications of Differentiation, which accounts for 15–18% of the total AP exam score. Optimization regularly appears in both multiple-choice (MCQ) and free-response (FRQ) sections of the exam.

Synonyms for optimization in exam questions include “find the maximum possible,” “determine the minimum value,” or “what dimensions will minimize/optimize” the target quantity. Standard notation follows common context: for area, for volume, for cost, for profit or perimeter, with prime notation (, ) for first derivatives. Unlike abstract extrema problems on a given function, optimization requires you to first construct the function to optimize from a verbal description, which is the skill most heavily tested on the AP exam.

2. Identifying Objective and Constraint Functions

The first and most error-prone step of any optimization problem is separating the problem’s information into two core relationships: the objective function and the constraint function. The objective function is the function whose value you need to maximize or minimize. It is always stated explicitly or implicitly in the question: if the question asks “what dimensions minimize the cost of materials,” cost is your objective. The constraint function is the fixed limiting condition that relates multiple variables in the objective, allowing you to reduce the objective to a single-variable function that you can differentiate.

Most AP optimization problems include exactly one constraint, which is sufficient to reduce to one variable. The standard process for this step is: (1) Label all unknown quantities with variables, (2) Write an equation for the quantity you need to optimize (the objective), (3) Write an equation for the fixed constraint that relates your variables, (4) Solve the constraint for one variable and substitute into the objective to get a single-variable function.

Worked Example

A rectangular garden is to be enclosed by 120 feet of fencing. One side of the garden borders a river, so no fencing is needed along the river. Identify the objective function and constraint function, then reduce the objective to a single-variable function for maximizing the garden’s area.

  1. Let = length of each side of the garden perpendicular to the river, and = length of the side parallel to the river. Both are positive lengths, so .
  2. We need to maximize area, so the objective function is .
  3. The total fencing available is 120 feet, and fencing is only needed for two perpendicular sides and one parallel side, so the constraint is .
  4. Solve the constraint for , then substitute into the objective: . This is the final single-variable objective function.

Exam tip: Always draw a labeled diagram for geometric optimization problems; over 70% of student errors in this step come from misinterpreting which sides require fencing or material.

3. Finding the Valid Contextual Domain

Once you have a single-variable objective function, the next step is to find the interval of -values that make physical sense in the problem’s context. This domain is almost always a closed interval, which means the Extreme Value Theorem applies: absolute extrema will occur either at critical points inside the interval or at the endpoints of the interval.

A common mistake is using the algebraic domain of the objective function instead of the contextual domain. For example, a quadratic objective function has an algebraic domain of all real numbers, but length cannot be negative or larger than the total amount of material available, so we restrict it to a closed interval of physically meaningful values. To find the domain: (1) Require all original variables from the problem to be non-negative (zero is allowed for endpoints, even if it gives a trivial zero value for the objective), (2) Write inequalities for each variable, then solve for your single variable to get lower and upper bounds, (3) Confirm the final domain is a closed interval.

Worked Example

Given the single-variable area objective function from the previous garden example, find the valid contextual domain for .

  1. Recall the original variables: (perpendicular length) must be non-negative, so . The parallel length must also be non-negative.
  2. Solve the inequality for : .
  3. Combine the bounds: , so the valid domain is the closed interval .

Exam tip: Never skip finding the contextual domain. If your domain is wrong, your critical point test will give an incorrect answer, and AP exam graders will deduct points even if your derivative calculation is correct.

4. Testing for Optimal Value and Interpreting the Result

The final step of the optimization process is testing to find the absolute maximum or minimum, then answering the question asked. For a closed interval domain, the process is: (1) Compute the first derivative of the objective function, (2) Find all critical points that lie inside the domain, (3) Evaluate the objective function at every interior critical point and at both endpoints, (4) Select the largest value for a maximum, or the smallest for a minimum, then find any other requested values (like dimensions) using the constraint.

If the domain is open (e.g., for a radius) and there is only one critical point, you can use the second derivative test: if for all in the domain, the critical point is an absolute maximum; if , it is an absolute minimum. This works for most open-domain optimization problems on the AP exam.

Worked Example

For the rectangular garden problem (maximize area with 120 feet of fencing, no fencing along the river), find the maximum area and the dimensions that produce it.

  1. We have objective , domain .
  2. First derivative: . Set equal to zero: , which is inside the domain.
  3. Evaluate at all candidate points: , , .
  4. The maximum value is 1800 square feet, at feet. Use the constraint to find : feet.
  5. Final answer: The dimensions that maximize area are 30 ft (perpendicular to the river) by 60 ft (parallel to the river), for a maximum area of 1800 square feet.

Exam tip: Always re-read the question’s final sentence before writing your answer. If the question asks for dimensions and you only give maximum area (or vice versa), you will lose 1 point on FRQ.

5. Common Pitfalls (and how to avoid them)

  • Wrong move: For the river-side garden problem, writing the constraint as instead of . Why: Students default to memorized full perimeter formulas instead of reading that one side does not need fencing. Correct move: Label every side that requires material on your diagram, then add up the lengths explicitly instead of relying on memorized formulas.
  • Wrong move: Using the algebraic domain of the objective function instead of the contextual domain, e.g., leaving the domain as for the garden problem. Why: Students forget that length cannot be negative, and context restricts the variable to a physically meaningful interval. Correct move: After writing the single-variable objective, always write inequalities requiring all original variables to be non-negative, then solve to get the closed contextual domain.
  • Wrong move: Stopping after finding the critical point and not evaluating the objective function at endpoints. Why: Students assume the critical point must be the extremum and forget the Extreme Value Theorem requires checking endpoints. Correct move: Always list all interior critical points and both endpoints, evaluate the objective at all candidates, then select the maximum/minimum.
  • Wrong move: After finding the optimal , forgetting to compute the other requested variables from the constraint, e.g., giving only as the answer to the garden dimension question. Why: Students stop early after finding the critical point and do not confirm what the question asks for. Correct move: Reread the question’s last sentence before writing your final answer to confirm you provided all requested values.
  • Wrong move: Justifying a local maximum instead of an absolute maximum. Why: Students confuse local and absolute extrema, and AP requires explicit justification of absolute extrema for optimization points. Correct move: Either evaluate the objective at all candidates to show your value is the largest, or use the second derivative test to confirm concavity over the entire domain to justify an absolute extremum.
  • Wrong move: Solving the constraint for a squared variable, leading to square roots and unnecessary chain rule steps. Why: Students pick the first variable to solve for without checking which is easier. Correct move: Always solve the constraint for the variable that has a power of 1, to avoid roots and extra algebra errors.

6. Practice Questions (AP Calculus AB Style)

Question 1 (Multiple Choice)

A rectangular box with a square base is to be constructed. The total surface area of all 6 sides is 150 square inches. If is the side length of the square base, which of the following is the correct single-variable objective function for maximizing the volume of the box? A) B) C) D)

Worked Solution: First, let = side length of the square base, = height of the box. The objective is volume: . The constraint is total surface area: . Solve the constraint for : . Substitute into the volume formula: . This matches option C. The other options are common errors: A ignores dividing by , B forgets to multiply by , D is the derivative of the correct volume, not the volume itself. Correct answer: C.


Question 2 (Free Response)

An open-top rectangular box is made by cutting out squares of equal side length from each corner of a 12 inch by 18 inch sheet of cardboard, then folding up the sides. (a) Find the objective function for the volume of the box, and find the valid contextual domain of . (b) Find all critical points of in the domain, and classify each as maximum or minimum. (c) Find the maximum possible volume of the box, and the value of that gives this maximum.

Worked Solution: (a) When folding the box, the height is equal to the cut-out side length . After cutting from both ends of each side, the base dimensions are and . Volume is height × width × length, so . All dimensions must be non-negative: and . The valid domain is the closed interval .

(b) Expand to simplify differentiation: . First derivative: . Set and solve with the quadratic formula: . , which is outside the domain . Only is inside the domain. Second derivative: . At , , so this critical point is a local (and absolute) maximum.

(c) Evaluate at all candidate points: , , cubic inches. The maximum volume is approximately 228 in³, achieved when inches.


Question 3 (Application / Real-World Style)

A small bakery makes custom round 6-inch tall cakes, with the cost of a cake (in dollars) given by , where is the radius of the cake in inches, . What radius will minimize the cost of the cake, and what is the minimum cost?

Worked Solution: This is an open-domain optimization problem, so we use the critical point and second derivative test. First, compute the first derivative: . Set : inches. Second derivative: , which is always positive for all , so this critical point is an absolute minimum. Evaluate the cost: dollars. In context, a radius of approximately 3.7 inches minimizes the cost of the cake, for a minimum cost of about $6.07 per cake.

7. Quick Reference Cheatsheet

Category Formula/Rule Notes
Objective Function = quantity to maximize/minimize Always single-variable after substituting the constraint
Constraint Function Fixed limiting relationship between variables
Contextual Domain Rule All original variables Endpoints included to form a closed interval
Closed Interval Optimization Evaluate at all interior critical points and endpoints Largest value = absolute maximum, smallest = absolute minimum
Open Domain Single Critical Point If → absolute maximum; if → absolute minimum Applies when domain is and only one critical point exists
Closed Square Base Box Surface Area = base side length, = height
Square Base Box Volume Always include height when setting up the objective
Cut-Out Box Volume = cut-out side length, = original sheet dimensions

8. What's Next

Mastering the 4-step optimization process is the foundation for all applied extremum problems that appear later in the AP Calculus AB curriculum. Next, you will move on to more complex optimization problems involving related rates, where you optimize a changing quantity over time, and you will also connect optimization to implicit differentiation for problems with non-linear constraints. Without mastering the core process of identifying objective and constraint functions, restricting the domain, and testing for absolute extrema, more complex applied problems will be impossible to solve correctly. Optimization also ties together all prior concepts from this unit: derivatives, critical points, and extrema into a single applied framework that is heavily tested on the AP exam.

Finding critical points Absolute and relative extrema Mean Value Theorem Related rates

← 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 →