AP® Calculus AB · Unit 5 · Topic 5.10
Introduction to Optimization Problems
Optimization problems ask you to find the best possible value of some quantity under a constraint, by writing that quantity as a function of one variable and using calculus to find its max or min.
A farmer with a fixed length of fence gets more area from a square field than a long skinny rectangle, because area depends on how you split the perimeter between length and width, not just how much fence you use. Optimization problems formalize this: some quantity (area, volume, cost) depends on two or more variables linked by a constraint. Use the constraint to eliminate one variable, and you are left with a single function of a single variable — exactly the kind of function you already know how to maximize with derivatives.
The method: name your variables, write down the quantity you want to optimize, write down the constraint, solve the constraint for one variable, and substitute. That gives you one function on some domain. Take its derivative, set it to zero, check critical points and endpoints — the same candidates test from finding absolute extrema earlier in the unit. Nothing new happens at the calculus step; the new work is translating words into that one function.
The shape of the constraint controls the answer, which is why a square is not always optimal. With all four sides fenced, perimeter 2x+2y=P forces the max-area rectangle to be a square. But drop one side — say a river needs no fence — and the constraint becomes 2x+y=P instead. That changes which derivative equals zero, and the optimal rectangle comes out twice as long as it is wide. Same method, different constraint, different answer.
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 eliminate one variable from the objective function.
- Candidates test
- Checking critical points and endpoints of a function's domain to find its absolute maximum or minimum.
- Critical point
- A point where the derivative is zero or undefined, a candidate for a max or min.
Watch it explained
- How it worksHow do you turn a word problem into a single function of a single variable to maximize?
- Worked exampleFind the largest rectangular area you can enclose with 100 meters of fencing.
- Common mistakeWhy isn't the best shape always a square once a constraint gets involved?
- Going furtherWhat changes when one side of the field is a river that needs no fence?
- Ties togetherHow is solving this optimization problem the same candidates test used to find absolute extrema earlier in the unit?
Check yourself
End of topic.