U5.10 Optimization Problems
Master AP Calculus BC optimization: identify the quantity to optimize, use a constraint to reduce to one variable, and find extrema with critical points.
What you'll do in this lesson
A voice-first session with the Crimsora tutor on U5.10 Optimization Problems, then targeted practice and FRQs — with the tutor adapting to where you get stuck.
What this lesson covers
Optimization problems ask you to find the biggest or smallest possible value of something real — the largest area, the cheapest box, the shortest distance. They are word problems wearing a calculus disguise, and they reward students who can translate English into a function and then hunt down its extreme value.
In this lesson you will build a reliable four-step routine: name the quantity to optimize, write it using the variables in the problem, use a constraint equation to eliminate all but one variable, and then apply the derivative tools you already know from earlier in Unit 5. The hardest part is almost never the calculus — it is the setup and confirming that your critical point really gives a maximum or minimum on the allowed domain.
In this lesson you will build a reliable four-step routine: name the quantity to optimize, write it using the variables in the problem, use a constraint equation to eliminate all but one variable, and then apply the derivative tools you already know from earlier in Unit 5. The hardest part is almost never the calculus — it is the setup and confirming that your critical point really gives a maximum or minimum on the allowed domain.
The Optimization Workflow
Every optimization problem follows the same skeleton. First, identify the objective function — the quantity you must maximize or minimize (area, volume, cost, distance). Second, identify the constraint — an equation that ties your variables together (a fixed perimeter, a fixed surface area, a fixed budget). Third, use the constraint to rewrite the objective as a function of a single variable. Fourth, differentiate, find critical points, and test them.
The objective is what the question asks you to make extreme. The constraint is the fixed condition, usually signaled by words like "fixed," "total," "available," or a given number. Keep them straight: mixing them up is the most common setup error.
| Step | What you do | Example phrase |
|---|---|---|
| 1 | Define variables, draw a picture | let = width, = height |
| 2 | Write the objective | maximize |
| 3 | Write the constraint | |
| 4 | Substitute to one variable | |
| 5 | Optimize | , then test |
Reducing to One Variable
Calculus tools like the first and second derivative tests work on single-variable functions, so you must eliminate every variable except one. The constraint equation is your tool for this. Solve the constraint for one variable and substitute it into the objective.
Suppose you want to maximize area subject to . Solve the constraint: . Substitute: . Now is a clean function of alone.
Before differentiating, determine the domain of the reduced function from the physical situation. Lengths cannot be negative, so ; and since , we need . The domain is . This closed interval matters: the Extreme Value Theorem guarantees a max and min exist, and you may need to check endpoints as well as interior critical points.
A misconception to avoid: students sometimes substitute the constraint into the wrong equation or forget to substitute at all and try to differentiate a two-variable expression. Always end Step 4 with a function that depends on exactly one letter.
Suppose you want to maximize area subject to . Solve the constraint: . Substitute: . Now is a clean function of alone.
Before differentiating, determine the domain of the reduced function from the physical situation. Lengths cannot be negative, so ; and since , we need . The domain is . This closed interval matters: the Extreme Value Theorem guarantees a max and min exist, and you may need to check endpoints as well as interior critical points.
A misconception to avoid: students sometimes substitute the constraint into the wrong equation or forget to substitute at all and try to differentiate a two-variable expression. Always end Step 4 with a function that depends on exactly one letter.
Finding and Justifying the Extremum
Once you have a single-variable objective, set the derivative equal to zero to find critical points. Then justify that the critical point is the max or min the problem wants — the AP exam frequently docks points for an unjustified answer.
There are three standard justifications. The First Derivative Test checks the sign of on either side of the critical point: if changes to , that point is a local max. The Second Derivative Test checks at the critical point: means a local max, means a local min. The Closed Interval (Candidates) Test evaluates the objective at every critical point and every endpoint, then compares values.
For : gives . Since , the graph is concave down everywhere, so is a maximum. Then , giving maximum area .
Always answer the actual question. If it asks for the dimensions, report and ; if it asks for the maximum area, report square units. State units and confirm the answer makes physical sense.
There are three standard justifications. The First Derivative Test checks the sign of on either side of the critical point: if changes to , that point is a local max. The Second Derivative Test checks at the critical point: means a local max, means a local min. The Closed Interval (Candidates) Test evaluates the objective at every critical point and every endpoint, then compares values.
For : gives . Since , the graph is concave down everywhere, so is a maximum. Then , giving maximum area .
Always answer the actual question. If it asks for the dimensions, report and ; if it asks for the maximum area, report square units. State units and confirm the answer makes physical sense.
How the Exam Tests Optimization
On multiple-choice questions, optimization often appears compressed: you are handed the objective already reduced, or given a formula and asked for the value of that maximizes it. Speed matters, so recognize that you usually just need plus a quick concavity check.
Free-response optimization questions demand full communication. A typical rubric awards points for the correct objective function, the correct use of the constraint, the derivative and critical point, and — crucially — a justification that the critical point produces the desired extremum. Writing " at " is not enough; you must add why gives a maximum.
Many optimization scenarios involve minimizing distance. A useful trick: minimizing distance is equivalent to minimizing , because the square root is increasing. Optimizing avoids messy derivatives and yields the same .
Free-response optimization questions demand full communication. A typical rubric awards points for the correct objective function, the correct use of the constraint, the derivative and critical point, and — crucially — a justification that the critical point produces the desired extremum. Writing " at " is not enough; you must add why gives a maximum.
| Common pitfall | Fix |
|---|---|
| No justification | State sign of or |
| Wrong domain | Derive domain from physical limits |
| Answered wrong quantity | Reread what is asked |
| Forgot endpoints | Use candidates test on closed intervals |
Key terms
- Objective function.
- The quantity being maximized or minimized, expressed as a formula (for example area, volume, cost, or distance).
- Constraint.
- A fixed condition relating the variables, such as a set perimeter or surface area, used to eliminate variables.
- Critical point.
- A value in the domain where the derivative equals zero or is undefined; a candidate for a local extremum.
- Second Derivative Test.
- A method that classifies a critical point using concavity: indicates a local max, a local min.
- Closed Interval (Candidates) Test.
- Evaluating the objective at all critical points and endpoints to find the absolute extremum on a closed interval.
- Domain restriction.
- The set of input values allowed by the physical situation, such as nonnegative lengths, which bounds the search for extrema.
- Extreme Value Theorem.
- Guarantees a continuous function on a closed interval attains an absolute max and min, ensuring optimization has a solution.
Worked example
A rancher has 400 meters of fencing and wants to enclose a rectangular field along a straight river, using the river as one full side (so no fence is needed there). What dimensions maximize the enclosed area, and what is that maximum area?
Draw the rectangle with the river as the top side. Let be the length of each of the two sides perpendicular to the river, and let be the side parallel to the river.
Objective: maximize area .
Constraint: only three sides need fencing (two of length , one of length ), so .
Solve the constraint for : . Substitute into the objective: .
Domain: and give .
Differentiate: . Set equal to zero: , so .
Justify: , so the function is concave down and is a maximum.
Find the other dimension: .
Maximum area: square meters. The optimal field is 100 m deep and 200 m along the river, enclosing square meters.
Objective: maximize area .
Constraint: only three sides need fencing (two of length , one of length ), so .
Solve the constraint for : . Substitute into the objective: .
Domain: and give .
Differentiate: . Set equal to zero: , so .
Justify: , so the function is concave down and is a maximum.
Find the other dimension: .
Maximum area: square meters. The optimal field is 100 m deep and 200 m along the river, enclosing square meters.
Practice questions
An open-top box is made from a square base of side length and height , with a fixed volume of cubic units. The material cost is proportional to the surface area . Which equation, after using the constraint, gives as a function of alone?
Answer:
The volume constraint is , so . Substitute into . The key move is solving the constraint for and substituting, which reduces two variables to one.
A company models profit as dollars, where is the number of units produced (in hundreds). Find the production level that maximizes profit and justify that it is a maximum.
Answer: (that is, 6000 units), giving maximum profit of $6200.
Differentiate: . Set : , so . Justify with the second derivative: , so is concave down and yields a maximum. Evaluate: dollars. Always state both the location and the justification for full credit.
Find the point on the line that is closest to the origin.
Answer:
Distance from the origin to is . Minimize instead. Substitute the constraint : . Then gives . Since , this is a minimum. Then . The closest point is .
FAQ
- How do I know which quantity is the objective and which is the constraint?
- The objective is what the problem asks you to make as large or as small as possible — look for words like maximize, minimize, largest, smallest, or cheapest. The constraint is the fixed condition, usually a specific number attached to a total: a fixed amount of fencing, a set volume, or a given budget. The objective becomes the function you optimize; the constraint becomes the equation you use to eliminate a variable.
- Do I have to use the Second Derivative Test to justify my answer?
- No. Any valid justification earns credit: the First Derivative Test (sign change of ), the Second Derivative Test (sign of ), or the Candidates Test on a closed interval. Choose whichever is easiest for your function. The Second Derivative Test is fast when is simple, but if is messy, the First Derivative Test may be cleaner.
- Why can I minimize distance squared instead of distance?
- Because the square root function is strictly increasing, and reach their minimum at the same input. Minimizing instead of produces the identical optimal while avoiding the chain rule on a square root, which keeps the derivative much simpler and reduces algebra errors.
- What should I do if the critical point falls outside the physical domain?
- Discard it and check the endpoints. The physical domain (nonnegative lengths, realistic quantities) restricts valid answers. If the only critical point is outside the domain, the extremum must occur at an endpoint. This is exactly why you should determine the domain before optimizing and use the Candidates Test on closed intervals.
Learn this with a teacher, not a page
The Crimsora tutor teaches U5.10 Optimization Problems live — explaining on a whiteboard, asking you questions, and adapting to where you get stuck.