Example 4.3.2. Optimization: perimeter and area.
A man has feet of fencing, a large yard, and a small dog. He wants to create a rectangular enclosure for his dog with the fencing that provides the maximal area. What dimensions provide the maximal area?
Solution.
One can likely guess the correct answer — that is great. We will proceed to show how calculus can provide this answer in a context that proves this answer is correct.
It helps to make a sketch of the situation. Our enclosure is sketched twice in Figure 4.3.3, either with treetop grass and nice fence boards or as a simple rectangle. Either way, drawing a rectangle forces us to realize that we need to know the dimensions of this rectangle so we can create an area function — after all, we are trying to maximize the area.
A 3-D rectangular enclosure is drawn with green grass and nice fence boards on the and axis.
The 2-D plane rectangle has sides labeled and The dimensions are both unknown.
We let and denote the lengths of the sides of the rectangle. Clearly,
We do not yet know how to handle functions with two variables; we need to reduce this down to a single variable. We know more about the situation: the man has feet of fencing. By knowing the perimeter of the rectangle must be we can create another equation:
We now have two equations and two unknowns. In the latter equation, we solve for
Now substitute this expression for in the area equation:
Note we now have an equation of one variable; we can truly call the Area a function of
This function only makes sense when otherwise we get negative values of area. So we find the extreme values of on the interval using Key Idea 3.1.18.
To find the critical points, we take the derivative of and set it equal to then solve for
We solve to find this is the only critical point. We evaluate at the endpoints of our interval and at this critical point to find the extreme values; in this case, all we care about is the maximum.
Clearly and whereas ft2. This is the maximum. Since we earlier found we find that is also Thus the dimensions of the rectangular enclosure with perimeter of 100 ft. with maximum area is a square, with sides of length 25 ft.