Skip to main content
United StatesCalculusSyllabus dot point

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.

Generated by Claude Opus 4.88 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this topic is asking
  2. The setup procedure
  3. A worked setup
  4. Why the domain matters
  5. The constraint is what makes it one variable
  6. A reliable checklist for the setup
  7. Why this is examined separately from solving

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 0<x<60 < x < 6 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 A=xyA = xy 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 4040. If one side is xx, its area as a function of xx is (A) A=40xA = 40x (B) A=x(40βˆ’x)A = x(40 - x) (C) A=x(20βˆ’x)A = x(20 - x) (D) A=20xβˆ’xA = 20x - x
Show worked answer β†’

The correct answer is (C), A=x(20βˆ’x)A = x(20 - x).

Perimeter 2x+2y=402x + 2y = 40 gives y=20βˆ’xy = 20 - x. Area A=xy=x(20βˆ’x)A = xy = x(20 - x).

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 600600 m of fencing for the other three sides. Let xx be the length of each side perpendicular to the river. (a) Write the side parallel to the river in terms of xx. (b) Express the enclosed area AA as a function of xx alone, and state the domain.
Show worked answer β†’

A 3-point setup question.

(a) (1 point) Two sides of length xx plus the parallel side use the fence: 2x+(parallel)=6002x + (\text{parallel}) = 600, so the parallel side is 600βˆ’2x600 - 2x.
(b) (2 points) A(x)=x(600βˆ’2x)=600xβˆ’2x2A(x) = x(600 - 2x) = 600x - 2x^2. The domain is 0<x<3000 < x < 300 (both side lengths must be positive).

Related dot points

Sources & how we know this