How do you turn a real-world maximum or minimum question into a calculus problem?
Topic 5.10 Introduction to Optimization Problems: set up an optimization problem by writing the quantity to be optimized as a function of one variable.
A focused answer to AP Calculus AB Topic 5.10, setting up optimization problems by identifying the quantity to optimize, writing a constraint, and reducing to a single-variable objective function, with worked setups.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this topic is asking
The College Board (Topic 5.10) is the setup half of optimization: translating a word problem into an objective function of one variable with a domain. Topic 5.11 then solves it. You must identify the quantity to optimize, use the constraint to eliminate variables, and state the domain.
The setup procedure
A worked setup
Why the domain matters
The domain is not a formality. Optimization problems are usually solved by the candidates test on the closed interval (or by checking the single interior critical point), and that needs the correct endpoints. A box problem with has its maximum at an interior critical point, but many problems have their extremum at an endpoint of the realistic domain, and you cannot find it without stating the domain first. The physical restrictions, all lengths positive, a fixed total of material, set the domain, so read them off the problem before reducing variables.
The constraint is what makes it one variable
The defining feature of an optimization problem is the constraint that links the variables, letting you eliminate all but one. Without a constraint, a two-variable objective like area has no single maximum. The constraint (a fixed perimeter, a fixed volume of material) supplies the second equation, and substituting it collapses the objective to one variable. Identifying the constraint correctly is the step students most often get wrong: misreading which quantity is fixed leads to the wrong objective function and a wrong answer despite correct calculus later. Slow down on the constraint, and the rest follows.
A reliable checklist for the setup
A short checklist turns the setup into a routine. First, draw and label the situation, naming the variable dimensions; a diagram prevents confusion about which length is which. Second, write the objective as an equation, even if it starts in two variables. Third, write the constraint as a separate equation. Fourth, solve the constraint for one variable and substitute into the objective to get a single-variable function. Fifth, read off the domain from the physical limits. Working through these five steps in order, rather than trying to leap straight to a one-variable formula, catches the common errors of mislabelling, picking the wrong constraint, or forgetting the domain. The discipline matters because the later calculus is only as good as the function it is applied to.
Why this is examined separately from solving
The College Board splits optimization into setup (this topic) and solving (the next) because the setup carries distinct, scoreable skills: translating a context into an objective and a constraint, eliminating a variable, and stating a domain. On a free-response question these earn points on their own, and a correct setup with a small later error still scores well. Conversely, flawless differentiation applied to a wrong objective earns little. Investing time to get the one-variable objective and its domain right is therefore the highest-value part of an optimization problem, which is exactly why it has its own topic.
Exam-style practice questions
Practice questions written in the style of College Board exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
AP 2022 (style)1 marksSection I (multiple choice, no calculator). A rectangle has perimeter . If one side is , its area as a function of is (A) (B) (C) (D) Show worked answer β
The correct answer is (C), .
Perimeter gives . Area .
AP 2024 (style)3 marksSection II (free response, no calculator). A farmer encloses a rectangular field against a straight river (no fence needed along the river) using m of fencing for the other three sides. Let be the length of each side perpendicular to the river. (a) Write the side parallel to the river in terms of . (b) Express the enclosed area as a function of alone, and state the domain.Show worked answer β
A 3-point setup question.
(a) (1 point) Two sides of length plus the parallel side use the fence: , so the parallel side is .
(b) (2 points) . The domain is (both side lengths must be positive).
Related dot points
- Topic 5.11 Solving Optimization Problems: solve a complete optimization problem and justify the absolute extremum.
A focused answer to AP Calculus AB Topic 5.11, solving complete optimization problems by differentiating the objective, finding critical points, and justifying the absolute extremum, with worked box and area examples.
- Topic 5.5 Using the Candidates Test to Determine Absolute (Global) Extrema: find absolute extrema by comparing values at critical points and endpoints.
A focused answer to AP Calculus AB Topic 5.5, using the candidates test to find absolute extrema on a closed interval by comparing function values at critical points and endpoints, with worked tabulated examples.
- Topic 5.4 Using the First Derivative Test to Determine Relative (Local) Extrema: classify critical points using sign changes in the first derivative.
A focused answer to AP Calculus AB Topic 5.4, using sign changes of the first derivative to classify critical points as relative maxima, relative minima, or neither, with worked sign-chart classifications and the required justification.
- Topic 4.5 Solving Related Rates Problems: solve complete related-rates problems using a structured method.
A focused answer to AP Calculus AB Topic 4.5, presenting a structured method for full related-rates problems - draw, relate, differentiate, substitute - with worked ladder and cone examples and the order-of-operations that avoids common errors.
- Topic 5.2 Extreme Value Theorem, Global Versus Local Extrema, and Critical Points: identify critical points and distinguish local from global extrema.
A focused answer to AP Calculus AB Topic 5.2, stating the Extreme Value Theorem, defining critical points where the derivative is zero or undefined, and distinguishing global from local extrema, with worked examples.
Sources & how we know this
- AP Calculus AB and BC Course and Exam Description β College Board (2020)