Optimization
This page contains free practice, typical optimization problems, each with a detailed solution. The only way to get this problem type down is by practicing, so practice here where you won't be penalized for getting stuck or making small errors. You are guaranteed to have an optimization problem on your upcoming exam, so the time to make all those typical errors is now!
We work through how to use our "Problem Solving Strategy: Optimization" step-by-step in our blog post How to Solve Optimization Problems in Calculus, one of our most popular posts.
PROBLEM SOLVING STRATEGY: Optimization
The strategy consists of two Big Stages. The first does not involve Calculus at all; the second is identical to what you did for max/min problems.
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.
Minimize cost of materials for a soda can
What are the dimensions of the poster with the smallest total area?
Shortest time to row, then run, to a point on shore
You are in a boat on a still lake,
near a straight section of shore. The nearest point to shore is 2 km away. You are aiming to get
back to your food and drink supplies, 4 km south of that nearest point. You can row at 5 km/hr, and
run at 8 km/hr. At what point Two boats sailing; when closest together?
What dimensions minimize the cost of a garden fence?
Sam wants to build a garden fence to protect a rectangular 400 square-foot planting area. His next-door neighbor agrees to pay for half of the fence that borders her property; Sam will pay the rest of the cost. What are the dimensions of the planting area that will minimize Sam's cost to build the fence? (You may leave your answer as a square root; you don't have to find a decimal result.)
View/Hide Solution
1. Draw a picture of the physical situation.
See the figure. We've called the width of the garden x (the top and bottom portions of the fence), and the length of the garden y (the left and right sides). Note also that the total area of Sam's garden must be
2. Write an equation that relates the quantity you want to optimize in terms of the relevant variables.
We want to minimize Sam's cost for building the fence, which is the same as minimizing the amount of fence that he's paying for. Let's call that cost C. Remember that Sam is only paying for half of the cost of the right side of the fence, since his neighbor is paying for that other half. Then
3. If necessary, use other given information to rewrite your equation in terms of a single variable.
The cost C currently depends on two variables, y and x. In order to proceed, we must use other information we're given to rewrite the area in terms of just one of those variables. Let's choose x as that single variable.
We must then eliminate y as a variable. To do so, recall that Sam's garden must have area
we can solve for y in terms of x:
Substituting this expression for y into our expression above for the cost C:
The expression for C is now a function of the single variable x, as required.
We've graphed the function, a step you probably wouldn't do yourself — but we want to emphasize that everything you've done so far is to create a function that you're now going to minimize.
4. Take the derivative of your equation with respect to your single variable. Then find the critical points.
The critical points occur when
Note that we choose the positive square root since the width x cannot be negative. Also note that we could have a critical point where
5. Justify your maxima or minima either by reasoning about the physical situation, or with the first derivative test, or with the second derivative test.
Let's examine the second derivative. Above we found the first derivative:
The second derivative is thus
Since
The minimum cost occurs when
6. Determine the maxima and minima as necessary. Remember to check the endpoints if there are any.
Recall that we found above that
Hence Sam's cost is minimized when the garden has
width
and
length
7. Finally, check to make sure you have answered the question as asked:
The question asked us to specify the garden's dimensions, which we have provided.
Rectangle inscribed in ellipse
Rectangle with the greatest area is a square
Shortest ladder required to reach a house over a wall
A wall 10 feet high is six feet
from a house. Find the length of the shortest ladder that will reach the house while leaning against
the fence.
[ Hint: The math works out more easily if you call
Rectangular & square enclosures
Triangle bounded by axes and curve
Note: You may use a calculator to compute the areas.
Please let us know on our Forum:
- What questions do you have about the solutions above?
- Which ones are giving you the most trouble?
- What other Optimization problems are you trying to work through for your class?
If you let us know, we'll do our best to help!