Skip to main content

Section 3.4 Applied Optimization

In application problems the function to optimize is generally not explicitly provided. Rather, one must first try to understand the problem, and then seek to develop a formula for a function that models the quantity to be optimized. Once the function is established, you should consider what domain is appropriate. At this point, you are finally ready to apply the ideas of calculus to determine the absolute minimum or maximum.

Throughout what follows in the current section, the primary emphasis is on the reader solving problems. Initially, some substantial guidance is provided, with the problems progressing to require greater independence as we move along.

Preview Activity 3.4.1.

According to U.S. postal regulations, the girth plus the length of a parcel sent by mail may not exceed 108 inches, where by “girth” we mean the perimeter of the smallest end. What is the largest possible volume of a rectangular parcel with a square end that can be sent by mail? What are the dimensions of the package of largest volume?

  1. Let \(x\) represent the length of one side of the square end and \(y\) the length of the longer side. Label these quantities appropriately on the image shown in Figure 3.4.1.

    Figure 3.4.1. A rectangular parcel with a square end.
  2. What is the quantity to be optimized in this problem? Find a formula for this quantity in terms of \(x\) and \(y\text{.}\)

  3. The problem statement tells us that the parcel's girth plus length may not exceed 108 inches. In order to maximize volume, we assume that we will actually need the girth plus length to equal 108 inches. What equation does this produce involving \(x\) and \(y\text{?}\)

  4. Solve the equation you found in (c) for one of \(x\) or \(y\) (whichever is easier).

  5. Now use your work in (b) and (d) to determine a formula for the volume of the parcel so that this formula is a function of a single variable.

  6. Over what domain should we consider this function? Note that both \(x\) and \(y\) must be positive; how does the constraint that girth plus length is 108 inches produce intervals of possible values for \(x\) and \(y\text{?}\)

  7. Find the absolute maximum of the volume of the parcel on the domain you established in (f) and hence also determine the dimensions of the box of greatest volume. Justify that you've found the maximum using calculus.

Subsection 3.4.1 More applied optimization problems

Many of the steps in Preview Activity 3.4.1 are ones that we will execute in any applied optimization problem. We briefly summarize those here to provide an overview of our approach in subsequent questions.

Note 3.4.2.
  • Draw a picture and introduce variables. It is essential to first understand what quantities are allowed to vary in the problem and then to represent those values with variables. Constructing a figure with the variables labeled is almost always an essential first step. Sometimes drawing several diagrams can be especially helpful to get a sense of the situation. A nice example of this can be seen at http://gvsu.edu/s/99, where the choice of where to bend a piece of wire into the shape of a rectangle determines both the rectangle's shape and area.

  • Identify the quantity to be optimized as well as any key relationships among the variable quantities. Essentially this step involves writing equations that involve the variables that have been introduced: one to represent the quantity whose minimum or maximum is sought, and possibly others that show how multiple variables in the problem may be interrelated.

  • Determine a function of a single variable that models the quantity to be optimized; this may involve using other relationships among variables to eliminate one or more variables in the function formula. For example, in Preview Activity 3.4.1, we initially found that \(V = x^2 y\text{,}\) but then the additional relationship that \(4x + y = 108\) (girth plus length equals 108 inches) allows us to relate \(x\) and \(y\) and thus observe equivalently that \(y = 108-4x\text{.}\) Substituting for \(y\) in the volume equation yields \(V(x) = x^2(108-4x)\text{,}\) and thus we have written the volume as a function of the single variable \(x\text{.}\)

  • Decide the domain on which to consider the function being optimized. Often the physical constraints of the problem will limit the possible values that the independent variable can take on. Thinking back to the diagram describing the overall situation and any relationships among variables in the problem often helps identify the smallest and largest values of the input variable.

  • Use calculus to identify the absolute maximum and/or minimum of the quantity being optimized. This always involves finding the critical numbers of the function first. Then, depending on the domain, we either construct a first derivative sign chart (for an open or unbounded interval) or evaluate the function at the endpoints and critical numbers (for a closed, bounded interval), using ideas we've studied so far in Chapter 3.

  • Finally, we make certain we have answered the question: does the question seek the absolute maximum of a quantity, or the values of the variables that produce the maximum? That is, finding the absolute maximum volume of a parcel is different from finding the dimensions of the parcel that produce the maximum.

Activity 3.4.2.

A soup can in the shape of a right circular cylinder is to be made from two materials. The material for the side of the can costs $0.015 per square inch and the material for the lids costs $\(0.027\) per square inch. Suppose that we desire to construct a can that has a volume of 16 cubic inches. What dimensions minimize the cost of the can?

  1. Draw a picture of the can and label its dimensions with appropriate variables.

  2. Use your variables to determine expressions for the volume, surface area, and cost of the can.

  3. Determine the total cost function as a function of a single variable. What is the domain on which you should consider this function?

  4. Find the absolute minimum cost and the dimensions that produce this value.

Hint
  1. Note that both the radius and the height of the can are variable.

  2. Remember that volume is the area of the base times the height, while surface are can be thought of in terms of the area of the two lids, plus the area of the “side” of the can.

  3. Use the fact that \(V = 16\) to write one of the variables in terms of the other to get the cost as a function of a single variable.

  4. Differentiate the total cost function and find its critical number(s) first.

Answer
  1. Let the can have radius \(r\) and height \(h\text{.}\)

  2. V\(V = \pi r^2 h\text{;}\) \(S = 2 \pi r^2 + 2 \pi r h\text{;}\) \(C = 2 \pi r^2 \cdot 0.027 + 2 \pi r h \cdot 0.015\text{.}\)

  3. \(C(r) = 0.054 \pi r^2 + 0.48 \frac{1}{r}\text{,}\) \(r \gt 0\text{.}\)

  4. \(r = \sqrt[3]{ \frac{0.48}{0.108 \pi} } \approx 1.12259\text{;}\) \(h \approx 4.041337\text{;}\) minimum cost \(C(1.12259) \approx 0.64137\text{.}\)

Solution
  1. We let \(r\) be the radius of the base of the cylindrical can and \(h\) be its height.

  2. Volume is the area of the base times the height, so \(V = \pi r^2 h\text{.}\) Surface area is the area of the lids plus the area of the side, the latter of which is a rectangle with height \(h\) and width the perimeter of the base. Hence, \(S = 2 \pi r^2 + 2 \pi r h\text{.}\) Finally, the total cost is the cost of the lids plus the cost of the sides, which is

    \begin{equation*} C = 2 \pi r^2 \cdot 0.027 + 2 \pi r h \cdot 0.015\text{.} \end{equation*}
  3. Because the volume is fixed at 16 cubic inches, we know that \(16 = \pi r^2 h\text{.}\) Solving for \(h\text{,}\) \(h = \frac{16}{\pi r^2}\text{.}\) Substituting this expression for \(h\) in the formula for total cost, we now have that

    \begin{equation*} C = 2 \pi r^2 \cdot 0.027 + 2 \pi r \left( \frac{16}{\pi r^2} \right) \cdot 0.015 = 0.054 \pi r^2 + 0.48 \frac{1}{r}\text{.} \end{equation*}

    With \(C(r) = 0.054 \pi r^2 + 0.48 \frac{1}{r}\text{,}\) we note that the only constraint on \(r\) is that \(r \gt 0\text{,}\) hence this is the domain on which we seek to minimize \(C\text{.}\)

  4. Noting that \(C'(r) = 0.108 \pi r - 0.48 \frac{1}{r^2}\text{,}\) we set \(C'(r) = 0\) and solve for \(r\) to find that

    \begin{equation*} 0.108 \pi r = \frac{0.48}{r^2}\text{,} \end{equation*}

    so that \(r^3 = \frac{0.48}{0.108 \pi} \approx 1.41471\text{,}\) from which it follows that \(r = \sqrt[3]{ \frac{0.48}{0.108 \pi} } \approx 1.12259\) is the only critical number of \(C\text{.}\) At this point, we can use either the first or second derivative test to justify that \(C\) has an absolute minimum at \(r = 1.12259\text{.}\) We choose to use the second derivative test; note that \(C''(r) = 0.108 \pi + 0.96 \frac{1}{r^3}\text{,}\) which is always positive for \(r \gt 0\text{,}\) hence \(C\) is always concave up on the relevant domain (\(r \gt 0\)), which makes \(r = \sqrt[3]{ \frac{0.48}{0.108 \pi} } \approx 1.12259\) where the absolute minimum of \(C\) occurs. In addition, we note that since \(h = \frac{16}{\pi r^2}\text{,}\) the corresponding \(h\) value is \(h \approx 4.041337\text{,}\) and the overall minimum cost is \(C(1.12259) \approx 0.64137\text{.}\)

Familiarity with common geometric formulas may be helpful in formulating equations to solve problems. Sometimes those involve perimeter, area, volume, or surface area. At other times, the constraints of a problem introduce right triangles (where the Pythagorean Theorem applies) or other functions whose formulas provide relationships among the variables.

A 20 cm piece of wire is cut into two pieces. One piece is used to form a square and the other to form an equilateral triangle. How should the wire be cut to maximize the total area enclosed by the square and triangle? to minimize the area?

Solution

We begin by sketching a picture that illustrates the situation. The variable in the problem is where we decide to cut the wire. We thus label the cut point at a distance \(x\) from one end of the wire, and note that the remaining portion of the wire then has length \(20-x\)

As shown in Figure 3.4.4, we see that the \(x\) cm of wire that is used to form the equilateral triangle with three sides of length \(\frac{x}{3}\text{.}\) For the remaining \(20-x\) cm of wire, the square that results will have each side of length \(\frac{20-x}{4}\text{.}\)

Figure 3.4.4. A 20 cm piece of wire cut into two pieces, one of which forms an equilateral triangle, the other which yields a square.

At this point, we note that there are obvious restrictions on \(x\text{:}\) in particular, \(0 \le x \le 20\text{.}\) In the extreme cases, all of the wire is being used to make just one figure. For instance, if \(x = 0\text{,}\) then all 20 cm of wire are used to make a square that is \(5 \times 5\text{.}\)

Now, our overall goal is to find the minimum and maximum areas that can be enclosed. Because the height of an equilateral triangle is \(\sqrt{3}\) times half the length of the base, the area of the triangle is

\begin{equation*} A_{\Delta} = \frac{1}{2} bh = \frac{1}{2} \cdot \frac{x}{3} \cdot \frac{x\sqrt{3}}{6}\text{.} \end{equation*}

The area of the square is \(A_{\Box} = s^2 = \left( \frac{20-x}{4} \right)^2\text{.}\) Therefore, the total area function is

\begin{equation*} A(x) = \frac{\sqrt{3}x^2}{36} + \left( \frac{20-x}{4} \right)^2\text{.} \end{equation*}

Remember that we are considering this function only on the restricted domain \([0,20]\text{.}\)

Differentiating \(A(x)\text{,}\) we have

\begin{equation*} A'(x) = \frac{\sqrt{3}x}{18} + 2\left( \frac{20-x}{4} \right)\left( -\frac{1}{4} \right) = \frac{\sqrt{3}}{18} x + \frac{1}{8}x - \frac{5}{2}\text{.} \end{equation*}

When we set \(A'(x) = 0\text{,}\) we find that \(x = \frac{180}{4\sqrt{3}+9} \approx 11.3007\) is the only critical number of \(A\) in the interval \([0,20]\text{.}\)

Evaluating \(A\) at the critical number and endpoints, we see that

  • \(A\left(\frac{180}{4\sqrt{3}+9}\right) = \frac{\sqrt{3}(\frac{180}{4\sqrt{3}+9})^2}{4} + \left( \frac{20-\frac{180}{4\sqrt{3}+9}}{4} \right)^2 \approx 10.8741\)

  • \(A(0) = 25\)

  • \(A(20) = \frac{\sqrt{3}}{36}(400) = \frac{100}{9} \sqrt{3} \approx 19.2450\)

Thus, the absolute minimum occurs when \(x \approx 11.3007\) and results in the minimum area of approximately \(10.8741\) square centimeters. The absolute maximum occurs when we invest all of the wire in the square (and none in the triangle), resulting in 25 square centimeters of area. These results are confirmed by a plot of \(y = A(x)\) on the interval \([0,20]\text{,}\) as shown in Figure 3.4.5.

Figure 3.4.5. A plot of the area function from Example 3.4.3.
Activity 3.4.3.

A hiker starting at a point \(P\) on a straight road walks east towards point \(Q\text{,}\) which is on the road and 3 kilometers from point \(P\text{.}\)

Two kilometers due north of point \(Q\) is a cabin. The hiker will walk down the road for a while, at a pace of 8 kilometers per hour. At some point \(Z\) between \(P\) and \(Q\text{,}\) the hiker leaves the road and makes a straight line towards the cabin through the woods, hiking at a pace of 3 kph, as pictured in Figure 3.4.6. In order to minimize the time to go from \(P\) to \(Z\) to the cabin, where should the hiker turn into the forest?

Figure 3.4.6. A hiker walks from \(P\) to \(Z\) to the cabin, as pictured.
Hint

Let \(x\) be the distance from \(Z\) to \(Q\text{.}\) What is then the distance from \(P\) to \(Z\) in terms of \(x\text{?}\) How about the distance from \(Z\) to the cabin? How does time depend on distance and rate?

Answer

The absolute minimum time the hiker can achieve is \(0.99302\) hours, which is attained by hiking about 2.2 km from \(P\) to \(Q\) and then turning into the woods for the remainder of the trip.

Solution

We begin by letting \(x\) be the distance from \(Z\) to \(Q\text{.}\) Since it is 3 km from \(P\) to \(Q\text{,}\) the distance from \(P\) to \(Z\) is \(3-x\text{.}\) Further, by the Pythagorean Theorem, the distance from \(Z\) to the cabin is \(\sqrt{4+x^2}\text{.}\)

Next, we want to determine the hiker's time as a function of \(x\text{.}\) Because distance equals rate times time, time is thus distance divided by rate. Along the road, the hiker's distance is \(3-x\) km and her rate is \(8\) km/hr, thus her time on the road, \(T_r\) is

\begin{equation*} T_r = \frac{3-x}{8}\text{.} \end{equation*}

Once she enters the woods, her rate drops to \(3\) km/hr and travels a distance of \(\sqrt{4+x^2}\) km, making her time in the woods, \(T_w\text{,}\) given by

\begin{equation*} T_w = \frac{\sqrt{4+x^2}}{3}\text{.} \end{equation*}

Thus, the hiker's total time is given by the function

\begin{equation*} T(x) = \frac{3-x}{8} + \frac{\sqrt{4+x^2}}{3}\text{.} \end{equation*}

Because the only values of \(x\) that make sense to use are \(0 \le x \le 3\) (using either negative values or values greater than 3 clearly add unnecessary time to the trip), we use this domain for \(T\) and now seek the absolute minimum of \(T\) on \([0,3]\text{.}\) First, we find that

\begin{equation*} T'(x) = -\frac{1}{8} + \frac{1}{3} \cdot \frac{1}{2} (4+x^2)^{-1/2} (2x) = -\frac{1}{8} + \frac{x}{3\sqrt{4+x^2}}\text{.} \end{equation*}

Setting \(T'(x) = 0\) and solving for \(x\text{,}\) we have \(\frac{x}{3\sqrt{4+x^2}} = \frac{1}{8}\text{,}\) so \(8x = 3\sqrt{4+x^2}\text{.}\) Squaring both sides, \(64x^2 = 9(4+x^2) = 36 + 9x^2\text{.}\) Hence, \(55x^2 = 36\text{,}\) so \(x = \sqrt{\frac{36}{55}} \approx 0.80904\text{.}\) (We don't consider the critical number \(x = -\sqrt{\frac{36}{55}}\) because this doesn't lie in the relevant domain of \(T\text{.}\))

Finally, we evaluate \(T\) at the only critical number in the interval and at the interval's endpoints. Doing so, we find \(T(0) = \frac{3}{8} + \frac{2}{3} \approx 1.0417\text{,}\) \(T(3) = \frac{\sqrt{13}}{3} \approx 1.20185\text{,}\) and \(T(\sqrt{\frac{36}{55}}) = \frac{3}{8} + \frac{\sqrt{55}}{12} \approx 0.99302\text{,}\) and thus the absolute minimum time the hiker can achieve is \(0.99302\) hours, which is attained by hiking about 2.2 km from \(P\) to \(Q\) and then turning into the woods for the remainder of the trip.

In more geometric problems, we often use curves or functions to provide natural constraints. For instance, we could investigate which isosceles triangle that circumscribes a unit circle has the smallest area, which you can explore for yourself at http://gvsu.edu/s/9b. Or similarly, for a region bounded by a parabola, we might seek the rectangle of largest area that fits beneath the curve, as shown at http://gvsu.edu/s/9c. The next activity is similar to the latter problem.

Activity 3.4.4.

Consider the region in the \(x\)-\(y\) plane that is bounded by the \(x\)-axis and the function \(f(x) = 25-x^2\text{.}\) Construct a rectangle whose base lies on the \(x\)-axis and is centered at the origin, and whose sides extend vertically until they intersect the curve \(y = 25-x^2\text{.}\) Which such rectangle has the maximum possible area? Which such rectangle has the greatest perimeter? Which has the greatest combined perimeter and area? (Challenge: answer the same questions in terms of positive parameters \(a\) and \(b\) for the function \(f(x) = b-ax^2\text{.}\))

Hint

Let \(x\) represent half the width of the rectangle's base. How does the rectangle's height depend on \(x\text{?}\)

Answer

Maximum area: \(A(\frac{5}{\sqrt{3}}) = \frac{500}{9}\sqrt{3} \approx 96.225\text{.}\) Maximum perimeter: \(P(1) = 52\text{.}\) At \(x = \frac{\sqrt{82}-1}{3}\) the absolute maximum of combined perimeter and area occurs.

Solution

Letting \(x\) represent half the width of the rectangle's base, it follows that the rectangle's height is \(25-x^2\text{.}\) Hence the area of the rectangle is

\begin{equation*} A(x) = 2x(25-x^2) = 50x - 2x^3\text{.} \end{equation*}

Based on the region, the only possible values of \(x\) are for \(0 \le x \le 5\text{;}\) moreover, it is evident that for either \(x = 0\) or \(x = 5\text{,}\) the area of the corresponding rectangle is zero, which can't be where the maximum occurs. Differentiating,

\begin{equation*} A'(x) = 50 - 6x^2\text{,} \end{equation*}

so we find the critical number of \(A\) by solving \(6x^2 = 50\text{,}\) which yields \(x = \frac{5}{\sqrt{3}} \approx 2.8868\text{,}\) which results in the maximum possible area of

\begin{equation*} A(\frac{5}{\sqrt{3}}) = \frac{500}{9}\sqrt{3} \approx 96.225 \end{equation*}

square units.

To maximize perimeter, we note that the rectangle's perimeter is

\begin{equation*} P(x) = 2x + (25-x^2) + 2x + (25 - x^2) = -2x^2 + 4x + 50\text{.} \end{equation*}

It is straightforward to show that the only critical number of the quadratic function \(P\) occurs when \(x = 1\) and that the corresponding absolute maximum value is \(P(1) = 52\text{.}\)

Finally, to consider combined area and perimeter, examine the function \(f(x) = A(x) + P(x)\) on the interval \(0 \le x \le 5\text{.}\) You should find that the only relevant critical number is \(x = \frac{\sqrt{82}-1}{3}\) and that the absolute maximum of \(f\) occurs at that value.

Activity 3.4.5.

A trough is being constructed by bending a \(4 \times 24\) (measured in feet) rectangular piece of sheet metal.

Two symmetric folds 2 feet apart will be made parallel to the longest side of the rectangle so that the trough has cross-sections in the shape of a trapezoid, as pictured in Figure 3.4.7. At what angle should the folds be made to produce the trough of maximum volume?

Figure 3.4.7. A cross-section of the trough formed by folding to an angle of \(\theta\text{.}\)
Hint

Drop altitudes from the top of the trough to the base of length 2. In the two triangles that are formed, what are the lengths of the legs in terms of \(\theta\text{?}\)

Answer

\(A(1.19606) \approx 2.2018\) is the absolute maximum cross-sectional area, which leads to the absolute maximum volueme.

Solution

Once we choose the angle \(\theta\text{,}\) the two right triangles in the trapezoid are determined, and each has a horizontal leg of length \(\cos(\theta)\) and a vertical leg of length \(\sin(\theta)\text{.}\) Thus, the sum of the areas of the two triangles is \(\sin(\theta) \cos(\theta)\text{,}\) and the area of the rectangle between them is \(2\sin(\theta)\text{.}\) Hence, the area of the trapezoidal cross-section is \(A(\theta) = \sin(\theta) \cos(\theta) + 2 \sin(\theta)\text{.}\) Because the length of the trough is constant, the trough's volume will be maximized by maximizing cross-sectional area. Note, too, that the domain for \(\theta\) is \(0 \le \theta \le \frac{\pi}{2}\text{.}\)

Differentiating, we find that

\begin{equation*} A'(\theta) = \sin(\theta) (-\sin(\theta)) + \cos(\theta) \cos(\theta) + 2 \cos(\theta) = -\sin^2(\theta) + \cos^2(\theta) + 2 \cos(\theta)\text{.} \end{equation*}

Using the identity \(\sin^2(\theta) = 1 - \cos^2(\theta)\text{,}\) it follows that

\begin{equation*} A'(\theta) = \cos^2(\theta) - 1 + \cos^2(\theta) + 2 \cos(\theta) = 2\cos^2(\theta) + 2 \cos(\theta) - 1\text{.} \end{equation*}

This most recent equation is quadratic in \(\cos(\theta)\text{,}\) so letting \(u = \cos(\theta)\text{,}\) we can start to solve the equation \(A'(\theta) = 0\) by solving \(2u^2 + 2u - 1 = 0\text{.}\) Doing so, we find that

\begin{equation*} u = \frac{-1 \pm \sqrt{3}}{2} \approx 0.3660254, -1.3660254\text{,} \end{equation*}

so only \(u = \frac{-1 + \sqrt{3}}{2}\) will be a potential value of the cosine function from an angle that lies in the interval \([0,\frac{\pi}{2}]\text{.}\) Now, recalling that \(\cos(\theta) = u\text{,}\) to find the critical number \(\theta\text{,}\) we solve \(\cos(\theta) = \frac{-1 + \sqrt{3}}{2}\text{,}\) which implies \(\theta = \arccos(\frac{-1 + \sqrt{3}}{2}) \approx 1.19606\) radians, or \(\theta \approx 68.5292^\circ\text{.}\)

Finally, to confirm that \(A\) has an absolute maximum at \(\theta = \arccos(\frac{-1 + \sqrt{3}}{2}) \approx 1.19606\text{,}\) we consider this value as well as the endpoints of \([0, \frac{\pi}{2}]\text{,}\) and evaluate \(A\) to find that \(A(0) = 0\text{,}\) \(A(\frac{\pi}{2}) = 2\text{,}\) and \(A(1.19606) \approx 2.2018\text{,}\) which is the absolute maximum possible cross-sectional area.

Subsection 3.4.2 Summary

  • While there is no single algorithm that works in every situation where optimization is used, in most of the problems we consider, the following steps are helpful: draw a picture and introduce variables; identify the quantity to be optimized and find relationships among the variables; determine a function of a single variable that models the quantity to be optimized; decide the domain on which to consider the function being optimized; use calculus to identify the absolute maximum and/or minimum of the quantity being optimized.

Exercises 3.4.3 Exercises

1. Maximizing the volume of a box.
2. Minimizing the cost of a container.
3. Maximizing area contained by a fence.
4. Minimizing the area of a poster.
5. Maximizing the area of a rectangle.
6.

A rectangular box with a square bottom and closed top is to be made from two materials. The material for the side costs $1.50 per square foot and the material for the top and bottom costs $3.00 per square foot. If you are willing to spend $15 on the box, what is the largest volume it can contain? Justify your answer completely using calculus.

Answer

The absolute maximum volume is \(V\left( \sqrt{\frac{5}{3}} \right) = \frac{15}{12}\left( \sqrt{\frac{5}{3}} \right) - \frac{1}{4}\left( \sqrt{\frac{5}{3}} \right)^3 \approx 1.07583\) cubic feet.

Solution

Let \(x\) be the length of one side of the square bottom and \(h\) the height of one of the sides. We first note that the volume, \(V\text{,}\) of the box is \(V = x^2 h\text{,}\) and the surface area of the box is \(S = 2x^2 + 4xh\text{,}\) since there are two square sides (bottom and top) of area \(x^2\) and four identical sides of area \(xh\text{.}\) Since the material for the top and bottom costs $3.00 per square foot and the material for the sides costs $1.50 per square foot, it follows that the total cost of a box with surface area \(S\) is

\begin{equation*} C = 1.50 (2x^2) + 3.00 (4xh) = 3x^2 + 12xh\text{.} \end{equation*}

We are interested in building box of largest volume for which we spend $15. This cost constraint implies that

\begin{equation*} 15 = 3x^2 + 12xh\text{,} \end{equation*}

which allows us to express \(h\) as a function of \(x\) by solving for \(h\text{.}\) Doing so, we see that \(12xh = 15 - 3x^2\text{,}\) so

\begin{equation*} h = \frac{15-3x^2}{12x}\text{.} \end{equation*}

Using this relationship, we are now able to express the volume, \(V\text{,}\) of the box as a function of the single variable \(x\text{.}\) Subsituting the expression for \(h\text{,}\) we have

\begin{equation*} V = x^2 h = x^2 \frac{15-3x^2}{12x} = \frac{1}{12}x(15 - 3x^2) = \frac{15}{12}x - \frac{1}{4}x^3\text{.} \end{equation*}

Note particularly that in order to have a box, we require that both \(x \gt 0\) and \(h \gt 0\text{.}\) The latter condition along with the fact that \(h = \frac{15-3x^2}{12x}\) shows that we need \(15 - 3x^2 \gt 0\text{,}\) and thus \(x^2 \lt 5\text{,}\) so \(x \lt \sqrt{5}\text{.}\) Hence we are considering \(V(x)\) on the domain \(0 \lt x \lt \sqrt{5}\text{.}\)

It is apparent that the box vanishes (and its volume tends to zero) as either \(x \to 0^+\) or \(x \to \sqrt{5}^-\text{,}\) and thus the absolute maximum volume must appear between these values at a critical number. Differentiating \(V\text{,}\) we find that \(V'(x) = \frac{15}{12} - \frac{3}{4}x^2\text{.}\) Solving \(V'(x) = 0\) to find all critical numbers of \(V\) in the domain, we see that \(x^2 = \frac{15}{12} \cdot \frac{4}{3} = \frac{5}{3}\text{,}\) and thus \(x = \pm \sqrt{\frac{5}{3}}\text{,}\) so only \(x = \sqrt{\frac{5}{3}}\) is a critical number that lies in \(0 \lt x \lt \sqrt{5}\text{.}\) Noting that the absolute minimum volume \(V = 0\) occurs at each endpoint, it must be the case that the absolute maximum volume is \(V\left( \sqrt{\frac{5}{3}} \right) = \frac{15}{12}\left( \sqrt{\frac{5}{3}} \right) - \frac{1}{4}\left( \sqrt{\frac{5}{3}} \right)^3 \approx 1.07583\) cubic feet.

7.

A farmer wants to start raising cows, horses, goats, and sheep, and desires to have a rectangular pasture for the animals to graze in. However, no two different kinds of animals can graze together. In order to minimize the amount of fencing she will need, she has decided to enclose a large rectangular area and then divide it into four equally sized pens by adding three segments of fence inside the large rectangle that are parallel to two existing sides. She has decided to purchase 7500 ft of fencing. What is the maximum possible area that each of the four pens will enclose?

Answer

Exercise Answer

Solution

The farmer will fence a rectangular area whose length \(x\) and width \(y\) are unknown. The total area of the rectangular area is composed of 4 equal area rectangles. There are two ways to do this as shown in the figure below.

We want to maximize the area of each subrectangular region, which is the same as maximizing the total area \(A = xy\) of the entire rectangular region. Since \(A\) has two variables, we can't yet directly apply calculus techniques to it. We use the information about the amount of fencing to relate \(x\) and \(y\) in order to write \(A\) in terms of just one variable.

In the case of the fencing option on the left in the figure, the total amount of fencing that is needed to enclose the four grazing areas is \(2x+5y\text{.}\) We assume that all of the \(7500\) feet of fencing will be used, so \(2x+5y=7500\text{.}\) Solving for \(x\text{,}\) \(x = 3750 - 2.5y\text{.}\) Substituting this expression for \(x\) into the area formula allows us to write \(A\) in terms of \(y\) alone:

\begin{equation*} A(y) = (3750-2.5y)y = 3750y - 2.5y^2\text{.} \end{equation*}

To enclose any area, we of course must have \(y \gt 0\) and \(x \gt 0\text{,}\) and since \(x = 3750 - 2.5y\text{,}\) it follows that we need to have \(2.5y \lt 3750\) so \(y \lt 1500\text{.}\) To find the maximum value of \(A\) on this domain, we find the critical numbers of \(A\text{.}\) Since \(A'(y) = 3750 - 5y\text{,}\) we see that \(A'(y) = 0\) when and only when \(y = 750\text{.}\) For \(0 \lt y \lt 750\text{,}\) we see that \(A'(y) \gt 0\) and for \(750 \lt y \lt 1500\) we have \(A'(y) \lt 0\text{.}\) So \(A(750) = 1406250\) square feet is the absolute maximum value of \(A\text{.}\) The maximum possible area that each of the four pens can enclose is one quarter of the total, or \(351562.5\) square feet.

In the case of the fencing option on the right in the figure, the total amount of fencing that is needed to enclose the four grazing areas is \(3x+3y\text{.}\) We assume that all of the \(7500\) feet of fencing will be used, so \(3x + 3y = 7500\text{.}\) Solving for \(x\) and substituting into \(A\text{,}\) we find \(x = 2500 - y\) and

\begin{equation*} A(y) = (2500-y)y = 2500y - y^2\text{.} \end{equation*}

To enclose any area, we of course must have \(y \gt 0\) and \(x \gt 0\text{,}\) and since \(x = 2500 - y\text{,}\) it follows that we need to have \(y \lt 2500\text{.}\) To find the maximum value of \(A\) on this domain, we find the critical numbers of \(A\text{.}\) Since \(A'(y) = 2500 - 2y\text{,}\) we see that \(A'(y) = 0\) when and only when \(y = 1250\text{.}\) For \(0 \lt y \lt 1250\text{,}\) we see that \(A'(y) \gt 0\) and for \(1250 \lt y \lt 2500\) we have \(A'(y) \lt 0\text{.}\) So \(A(1250) = 1406250\) square feet is the absolute maximum value of \(A\text{.}\) The maximum possible area that each of the four pens can enclose is one quarter of the total, or \(390625\) square feet.

So the maximum possible area that each of the four pens can enclose is 390625 square feet.

8.

Two vertical poles of heights 60 ft and 80 ft stand on level ground, with their bases 100 ft apart. A cable that is stretched from the top of one pole to some point on the ground between the poles, and then to the top of the other pole. What is the minimum possible length of cable required? Justify your answer completely using calculus.

Answer

\(172.047\) feet of cable.

Solution

We start by constructing a careful diagram of the overall situation. Let \(x\) be the distance from the first pole to the second pole where the cable touches the ground, and let \(y\) be the length of the cable from the top of the first tower to the ground, and \(z\) the length of cable from the ground to the top of the second tower, as pictured in the following figure. Note that we have included the given heights of the towers and the distance between them.

The total amount of cable, \(L\text{,}\) used (which we wish to minimize) is given by \(L = y + z\text{.}\) We can use the geometry of the situation to write both \(y\) and \(z\) in terms of \(x\text{.}\) In the first right triangle, by the Pythagorean Theorem we know that \(x^2 + 60^2 = y^2\text{,}\) and thus \(y = \sqrt{x^2 + 3600}\text{.}\) In the second right triangle, note that the horizontal leg of the triangle has length \(100-x\text{,}\) and thus \((100-x)^2 + 80^2 = z^2\text{,}\) so \(z = \sqrt{(100-x)^2 + 6400}\text{.}\) It follows that with \(L = y + z\text{,}\)

\begin{equation*} L(x) = \sqrt{x^2 + 3600} + \sqrt{6400 + (100-x)^2}\text{.} \end{equation*}

It is also apparent from the given situation that the relevant domain for \(L\) is \(0 \le x \le 100\text{.}\) Given that we want to minimize \(L\) on this closed interval, it remains to find any critical numbers of \(L\text{.}\)

We note by the chain rule that

\begin{equation*} L'(x) = \frac{2x}{2(x^2+3600)^{1/2}} + \frac{-2(100-x)}{2((100-x)^2 + 6400)^{1/2}} \end{equation*}

We use technology to solve the equation \(L'(x) = 0\) and find that it has a single solution in the interval \(0 \le x \le 100\text{:}\) \(x \approx 42.85714\text{.}\)

To find the absolute minimum of \(L\) on the relevant domain, we evaluate \(L\) at the endpoints and the only critical number. Doing so, we fine \(L(0) \approx 188.062\text{,}\) \(L(100) \approx 196.619\text{,}\) and \(L(42.85714) \approx 172.047\text{.}\) Hence the least amount of cable we can use is approximately \(172.047\) feet and is accomplished by anchoring the cable about \(42.85714\) feet from the first tower.

9.

A company is designing propane tanks that are cylindrical with hemispherical ends. Assume that the company wants tanks that will hold 1000 cubic feet of gas, and that the ends are more expensive to make, costing $5 per square foot, while the cylindrical barrel between the ends costs $2 per square foot. Use calculus to determine the minimum cost to construct such a tank.

Answer

The minimum cost is $1165.70.

Solution

We let the length of the cylindrical part of the tank be \(h\) with the radius of the cylinder given by \(r\text{.}\) It follows that the radius of the hemispherical ends of the tank is also \(r\text{.}\) We first identify formulas for both the volume and surface area of the tank by looking at the cylindrical and hemispherical pieces.

The cylindrical part of the tank has volume \(V_c = \pi r^2 h\text{,}\) and the surface area of its sides is \(A_c = 2\pi r h\) (which is the circumference of the cylinder's base times the cylinder's height -- think about how a cylinder unfurls to form a rectangle). The two hemispherical ends together constitute a full sphere, and the volume of a sphere is \(V_s = \frac{4}{3} \pi r^3\text{,}\) while the surface area of a sphere is \(A_s = 4 \pi r^2\text{.}\)

The overall volume of the tank is therefore

\begin{equation*} V = V_c + V_s = \pi r^2 h + \frac{4}{3} \pi r^3\text{,} \end{equation*}

and its total surface area is

\begin{equation*} A = A_c + A_s = 2\pi r h + 4 \pi r^2\text{.} \end{equation*}

Moreover, taking into account the different costs of material for the cylindrical sides and hemispherical ends, we find that the total cost of the tank is

\begin{equation*} C = 2(2\pi r h) + 5(4 \pi r^2) = 4 \pi r h + 20 \pi r^2\text{.} \end{equation*}

Our goal is to minimize the total cost of the tank given that we want it to hold 1000 cubic meters of volume. From this constraint, we have the equation \(1000 = \pi r^2 h + \frac{4}{3} \pi r^3\text{,}\) which we can solve for \(h\) to get \(\pi r^2 h = 1000 - \frac{4}{3} \pi r^3\text{,}\) so

\begin{equation*} h = \frac{1000 - \frac{4}{3} \pi r^3}{\pi r^2}\text{.} \end{equation*}

This allows us to now write cost as a function of the single variable \(r\) by substituting the expression for \(h\) into the earlier formula we found for cost. In particular,

\begin{equation*} C(r) = 4 \pi r \frac{1000 - \frac{4}{3} \pi r^3}{\pi r^2} + 20 \pi r^2 = 4 \frac{1000 - \frac{4}{3} \pi r^3}{r} + 20\pi r^2 \end{equation*}

Simplifying further, we have found that

\begin{equation*} C(r) = \frac{4000}{r} - \frac{16}{3}\pi r^2 + 20 \pi r^2 = \frac{4000}{r} + \frac{44}{3}r^2\text{.} \end{equation*}

Based on the physical constraints of the problem, we obviously will only consider values of \(r \gt 0\) and \(h \gt 0\text{.}\) Since \(h = \frac{1000 - \frac{4}{3} \pi r^3}{\pi r^2}\text{,}\) we must have

\begin{equation*} \frac{4}{3} \pi r^3 \lt 1000 \end{equation*}

so \(r^3 \lt \frac{3}{4} \cdot 1000 = 750\text{,}\) and thus \(r \lt \sqrt[3]{750} \approx 9.086\text{.}\) We now work to minimize \(C(r)\) on the interval \(0 \lt r \lt \sqrt[3]{750}\text{.}\)

Taking the derivative of \(C\text{,}\) we find that \(C'(r) = -\frac{4000}{r^2} + \frac{88}{3}r\text{.}\) Setting \(C'(r) = 0\text{,}\) it follows that

\begin{equation*} \frac{4000}{r^2} = \frac{88}{3}r \end{equation*}

and thus

\begin{equation*} 4000 \cdot \frac{3}{88} = r^3\text{.} \end{equation*}

Therefore, \(r^3 = \frac{1500}{11}\text{,}\) so \(r = \sqrt[3]{\frac{1500}{11}} \approx 5.147\) is the only critical number of \(C\text{;}\) observe that it lies within the interval \(0 \lt r \lt \sqrt[3]{750}\text{.}\)

If we plot the derivative function, \(y = C'(r)\text{,}\) on the interval \(0 \lt r \lt \sqrt[3]{750}\text{,}\) we see that for \(0 \lt r \lt 5.147\text{,}\) \(C'(r) \lt 0\text{,}\) and for \(5.147 \lt r \lt 9.086\text{,}\) \(C'(r) \gt 0\text{,}\) which shows that \(C\) is decreasing before the critical number and increasing after the critical number, and hence \(C\) has a global minimum of \(C(\sqrt[3]{\frac{1500}{11}}) \approx 1165.70\text{,}\) so $1165.70 is the minimum cost to build the desired tank under the given constraints.