Matheno Blog
How to Solve Optimization Problems in Calculus
Need to solve Optimization problems in Calculus? Letโs break โem down and develop a strategy that you can use to solve them routinely for yourself.
Overview
Optimization problems will always ask you to maximize or minimize some quantity, having described the situation using words (instead of immediately giving you a function to max/minimize). Typical phrases that indicate an Optimization problem include:
- Find the largest โฆ.
- Find the minimumโฆ.
- What dimensions will give the greatestโฆ?
Most students donโt realize that you need to complete two distinct Stages.
Before you can look for that max/min value, you first have to develop the function that youโre going to optimize. There are thus two distinct Stages to completely solve these problemsโsomething most students donโt initially realize [Ref].
The first stage doesnโt involve Calculus at all, while by contrast the second stage is just a max/min problem that you recently learned how to solve:
Stage II. Maximize or minimize that function. Now maximize or minimize the function you just developed. Youโll use your usual Calculus tools to find the critical points, determine whether each is a maximum or minimum, and so forth.
A cylindrical can, with a top lid, must contain V cm
Stage I. Develop the function
Step 1.
In Optimization problems, always begin by sketching the situation. Always. If nothing else, this step means youโre not staring at a blank piece of paper; instead youโve started to craft your solution.
The problem asks us to minimize the cost of the metal used to construct the can, so weโve shown each piece of metal separately: the canโs circular top, cylindrical side, and circular bottom. Weโve labeled the canโs height h and its radius r. Weโre looking for the values of h and r (in terms of V) that will minimize the cost of constructing the can.
Step 2.
Most frequently youโll use your everyday knowledge of geometry.
Having drawn the picture, the next step is to write an equation for the quantity we want to optimize. Most frequently youโll use your everyday knowledge of geometry for this step. In this problem, for instance, we want to minimize the cost of constructing the can, which means we want to use as little metal as possible. Hence we want to minimize the canโs surface area. So letโs write an equation for that total surface area:
Thatโs it; youโre done with Step 2! Youโve written an equation for the quantity you want to minimize
Step 3.
Hereโs a key thing to know about how to solve Optimization problems: youโll almost always have to use detailed information given in the problem to rewrite the equation you developed in Step 2 to be in terms of one single variable.
Above, for instance, our equation for
Begin subproblem.
To accomplish this substitution, we look back to see what other constraints/information the problem gave us: recall that the can must hold an amount V of liquid, where V is some number. (V might be 355 cm
thus
Thatโs our expression for h in terms of r (and the constants V and
End subproblem.
We can now make this substitution
Weโre done with Step 3: we now have the function in terms of a single variable, r:
Weโre now writing
This also concludes Stage I of our work: in these threes steps, weโve developed the function weโre now going to minimize!
Notice, by the way, that so far in our solution we havenโt used any Calculus at all. That will always be the case when you solve an Optimization problem: you donโt use Calculus until you come to Stage II.
Stage II: Maximize or minimize your function
Many students donโt realize that an Optimization problem is really a max/min problem
Many students donโt realize that an Optimization problem is really a max/min problem; itโs just one where you first have to develop the function youโre going to maximize or minimize, as we did in Stage I above. Having done that, the remaining steps are exactly the same as they are for the max/min problems you recently learned how to solve.For instance, a few weeks ago you could have gotten this as a standard max/min homework problem:
Typical Max/Min Homework Question
โThe surface area of a can is given byYou would probably automatically find the derivative
Step 4.
We want to minimize the function
and so of course we must take the derivative, and then find the critical points.
Letโs thus first find the derivative. (Time to use Calculus!) Remember that V is just a constant โ itโs some number, like 355.
The critical points occur when
Step 5.
Next we must justify that the critical point weโve found represents a minimum for the canโs surface area (as opposed to a maximum, or a saddle point). We could reason physically, or use the First Derivative Test, but we think itโs easiest in this case to use the Second Derivative Test. Letโs quickly compute the second derivative, starting with the first derivative that we found above:
Since
The minimum surface area occurs when
Step 6.
Now that weโve found the critical point that corresponds to the canโs minimum surface area (thereby minimizing the cost), letโs finish answering the question: The problem asked us to find the dimensions โ the radius and height โ of the least-expensive can. Weโve already found the relevant radius,
To find the corresponding height, recall that in the Subproblem above we found that since the can must hold a volume V of liquid, its height is related to its radius according to
Hence when
and so
To summarize, we conclude that the optimum dimensions for a closed-topped can that must contain a volume V of liquid are
Step 7. One last check
Youโll lose points if you donโt answer the question that was asked.
Because Optimization solutions can be long, we recommend that before finishing you go back and check what quantity/quantities the problem requested, and make sure youโve provided that โ especially on an exam, where youโll lose points if you donโt answer the exact question that was asked. For example, the problem could have asked to find the value of the smallest possible surface area A, or the minimum cost.
Instead, in this case, the problem stated, โWhat dimensions
(height and radius) will minimize the cost of metal to construct the can?โ We have provided those two dimensions, and so we are done.
Summary: Problem Solving Strategy
Weโve now illustrated the steps we use to solve every single Optimization problem we encounter, and they always work.
Stage I: Develop the function.
Your first job is to develop a function that represents the quantity you want to optimize. It can depend on only one variable. The steps:
- Draw a picture of the physical situation.
Also note any physical restrictions determined by the physical situation. - Write an equation that relates the quantity you want to optimize in terms of the relevant variables.
- If necessary, use other given information to rewrite your equation in terms of a single variable.
Stage II: Maximize or minimize the function.
You now have a standard max/min problem to solve.
- Take the derivative of your equation with respect to your single variable. Then find the critical points.
- Determine the maxima and minima as necessary.
Remember to check the endpoints if there are any. - Justify your maxima or minima either by reasoning about the physical situation, or with the first derivative test, or with the second derivative test.
- Finally, check to make sure you have answered the question as asked: Re-read the problem and verify that you are providing the value(s) requested: an x or y value; or coordinates; or a maximum area; or a shortest time; whatever was asked.
Want to see how we solve other example problems?
Want to see how we use this strategy to solve other example problems? Head on over to our Optimization page for more examples with free, complete solutions.For now, over to you:
- What tips do you have to share about how to solve Optimization problems?
- What questions do you have? Optimization problems can be tricky to start, and weโre happy to help!
- How can we make posts such as this one more useful to you?
Please head to our Forum and let us know!
Reference
[Thanks to S. Campbell for his specific research into studentsโ learning of Optimization:
โCollege Student Difficulties with Applied Optimization Problems in Introductory Calculus,โ
unpublished masters thesis, The University of Maine, 2013.]