AP® Calculus AB · Unit 5 · Topic 5.11
Solving Optimization Problems
Optimization means writing a quantity as a function of one variable, then using derivatives to find the input that makes it largest or smallest, while checking endpoints too.
Every optimization problem hides two equations: one for the quantity you want to optimize, and one constraint linking the variables. Start by naming variables and writing the objective (area, cost, distance) in terms of more than one variable if needed. Then use the constraint to eliminate all but one variable, so you have a single-variable function to differentiate. Take the derivative, set it to zero, and solve for the critical points. This step only gives candidates. The actual answer depends on the shape of the domain: if the domain is a closed interval, you must also evaluate the function at the endpoints and compare, since the true minimum or maximum can sit there instead of at the critical point. If the domain is all real numbers or an open interval, use the first or second derivative test to confirm the critical point is a genuine max or min, not just a flat spot.
A can's shape depends on the cost of materials because the objective function changes with the problem. If the lid and base cost more per square cm than the side, the surface area formula gets weighted terms, and the optimal radius shifts to use less of the expensive part. The math only reflects whatever costs you build into the function.
This topic is where the whole unit pays off: the shape-reading tools from earlier sections (critical points, first and second derivative tests, concavity) become a method for answering real questions about the best possible value, not just describing a curve.
Key terms
- Objective function
- The quantity you are trying to maximize or minimize, written as a function of one variable.
- Constraint
- An equation relating the variables, used to reduce the objective function to a single variable.
- Candidates Test
- Comparing the function's value at all critical points and at the domain's endpoints to find the true extremum.
- Critical point
- A point where the derivative is zero or undefined, marking a possible maximum or minimum.
Watch it explained
- How it worksHow do you confirm a critical point is really the optimum and not just a candidate?
- Worked exampleFind the dimensions of a 355 cubic cm cylindrical can that uses the least metal.
- Worked exampleFind the point on the parabola y = x2 closest to the point (0, 3).
- Common mistakeWhy isn't the best value always found at a critical point of the function you wrote?
Check yourself
End of topic.