Lesson 5.7 · Analytical Applications of Differentiation
Optimization
How should a farmer lay out a fence to enclose the most land? What shape of can uses the least metal? Problems like these ask you to make a quantity as large or as small as possible, and they're where everything in this unit pays off. You'll turn the words into a function, then use critical points and the tests you already know to find and justify the best value.
The optimization process
Most optimization problems follow the same five steps.
Solving an optimization problem
- Draw and label. Sketch the situation and name the variables.
- Write the objective function: a formula for the quantity you want to maximize or minimize.
- Use the constraint (a fixed amount of fence, a fixed volume, a curve the point must lie on) to write the objective in terms of one variable. State the domain that makes physical sense.
- Find critical points by setting the derivative equal to (or finding where it's undefined).
- Justify that you've found the maximum or minimum, using the candidates test, the first derivative test, or the second derivative test. Then answer the question that was asked, with units.
Step 3 is where most of the thinking happens. You usually start with two variables, and the constraint equation lets you eliminate one of them.
Justifying an absolute extremum
A critical point by itself proves nothing. You need one of these arguments:
- Candidates test. If the domain is a closed interval , compare the objective's values at the critical points and at both endpoints.
- Only one critical point. If the domain is an interval and the function has exactly one critical point, and it's a relative maximum by the first or second derivative test, then it's the absolute maximum on that interval. (The same goes for a minimum.) The function can't turn around to go higher without creating a second critical point.
Worked example: Fencing along a river
A farmer has 600 feet of fencing to enclose a rectangular field along a straight river. No fence is needed along the river. What dimensions give the largest area?
Solution. Let be the length of each side perpendicular to the river and the length of the side parallel to it. The fence covers , so . The area is
gives . Use the candidates test on the closed interval :
The maximum area is square feet, with the field feet deep and feet along the river.
Worked example: An open-top box
A square sheet of cardboard 12 inches on a side has an equal square of side cut from each corner. The flaps are folded up to make an open-top box. What value of gives the largest volume, and what is that volume?
Solution. After cutting, the base is by and the height is , so
By the product rule,
at and . Candidates: , , . The maximum volume is cubic inches, when inches.
Common mistake
Always state the domain and check that your answer makes sense in context. In the box problem, is a critical point too, but it cuts the whole sheet away and gives zero volume. A length can't be negative, and a cut can't be bigger than half the sheet. Solutions outside the domain, or at the endpoints, are rarely the answer to a maximum problem, but you still have to check them.
Minimizing distance
To find the point on a curve closest to a given point, minimize the square of the distance instead of the distance itself. The square root is increasing, so and are smallest at the same place, and is much easier to differentiate.
Worked example: Closest point on a curve
Find the point on the curve that is closest to the point .
Solution. A point on the curve is with . The squared distance to is
, which is at . Since , this is a relative minimum, and as the only critical point on it is the absolute minimum. (Also check the endpoint: , versus .) The closest point is , at a distance of .
Worked example: Minimizing material for a can
A closed cylindrical can must hold cubic centimeters. Find the radius that uses the least material (surface area).
Solution. With radius and height , the volume constraint is , so . The surface area (top, bottom and side) is
gives , so cm. Since for all , this single critical point is the absolute minimum. The best can has radius about cm (and, it turns out, height equal to its diameter).
Tip
Before you answer, reread the question. It might ask for the maximum value (the area), for the input that produces it (the width), or for a different quantity entirely (the height, the cost). Many lost points come from correct calculus that answers the wrong question.
Practice
Two positive numbers have a sum of . What is the largest possible value of their product?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A rectangle has an area of square meters. What is the smallest possible perimeter, in meters?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
An open-top box is made from an -inch by -inch sheet by cutting equal squares of side from each corner and folding up the sides. What is the maximum possible volume, in cubic inches?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A rectangle has its base on the -axis and its upper corners on the parabola . What is the largest possible area of the rectangle?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A rancher has feet of fencing to enclose a rectangular pasture and divide it into two equal pens with one extra fence parallel to one pair of sides. What is the largest total area she can enclose, in square feet?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Find the shortest distance from the point to the curve . Round to three decimal places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
An open-top cylindrical tank (bottom and side, no lid) must hold cubic feet. Find the radius, in feet, that minimizes the material used. Round to two decimal places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A student finds that the area function for a design problem has exactly one critical point on , at , and that . Which conclusion is justified?