So far in this chapter the examples and problems we’ve looked at were chosen to emphasize different aspects of optimization problems. Our intention was to show you the subtleties involved one at a time so you could understand them separately.
Of course, this is entirely unrealistic. Real problems rarely tell you where the difficulties will lie, so in this final section we offer you a selection of problems. It is up to you to
Step 6 is more important than it may seem to be. When the problems are complex it is easy to lose track of the actual question and stop too soon, or to compute quantities that weren’t needed. Always make sure you have completely solved the problem stated and not some nearby problem.
Recall that in Example 3.3.4 we observed that most people can see intuitively that of all rectangles with a fixed perimeter the one that encloses the greatest area will be a square. We gave an algebraic demonstration of this in Chapter 3 but now that we know how to use Calculus to optimize let’s revisit this problem.
We first solved this problem algebraically in Example 3.3.4. We solved it again analytically (that is, using Calculus) using Fermat’s Theorem 9.1.1 in Example 9.2.9. But Fermat’s Theorem only allows us to find a maximum that we already know exists. Since we did not have the tools necessary to show that we actually had a maximum, we relied on our intuition and assumed that a maximum existed. We will solve this problem one last time, showing that there must be a maximum this time.
Since we are talking about a length it must be that \(x\ge0\text{.}\) From equation (9.27) we see that \(x\) must be less that or equal to \(\frac{P}{2}\text{.}\) Otherwise the perimeter will be greater than \(P\text{.}\) So the domain of our problem is \(0\le x\le \frac{P}{2}\text{.}\)
Notice that, strictly speaking, if \(x=0\) or \(x=\frac{P}{2}\) we don’t actually have a rectangle. But it is simpler to use the Extreme Value Theorem 9.5.21 than to find the increasing and decreasing intervals using the First Derivative Test 9.5.4. Since the Extreme Value Theorem requires a closed domain we make things simpler by allowing “zero width” (or height) rectangles.
Since the problem domain is a closed interval we will use the Extreme Value Theorem. To find the POTPs we will need \(\dfdx{A}{x}\text{.}\) From equation (9.26) we see that
The only solution of \(\dfdx{A}{x}=0\) is \(x=\frac{P}{4}\text{,}\) so the POTPs for this problem are the end points, \(x=0\) and \(x=\frac{P}{2}\text{,}\) and \(x=\frac{P}{4}\text{.}\)
The area, \(A=xy\text{,}\) will be zero when \(x=0\) and when \(x=\frac{P}{2}\) (why?) so by the Extreme Value Theorem the maximum occurs when \(x=\frac{P}{4}\text{.}\)
This problem asks us to show that the maximal rectangle must be a square, so we need to show that \(x=y\text{.}\) We know that the maximum occurs when \(x=\frac{P}{4}\text{.}\) Plugging this value into equation (9.30) we see that \(y\) is also equal to \(\frac{P}{4}\text{.}\) Thus the maximal rectangle is a square as stated.
In Example 9.7.1 we were careful to follow the steps we listed at the beginning of this section in the sequence given. That list is helpful. That’s why we wrote it out. However, it would be a mistake to think of it as a recipe to be followed blindly. Think of it as an outline. An outline is a guide, not a recipe. It is not necessary to follow it rigidly, step–by–step. If you find it simpler to do these steps in a different order for some problem there is no reason that you shouldn’t. But before you declare the problem solved look back at this outline and make sure that you have done everything that needs to be done. This is what an outline is for.
In Example 3.4.3 in Chapter 3 we considered the related problem of minimizing the perimeter when the area is fixed. The following problem asks you to solve this problem using Calculus. Notice that just as above we have
\begin{equation*}
A=xy
\end{equation*}
and
\begin{equation*}
P=2x+2y
\end{equation*}
but this time \(A\) is constant, not \(P\text{.}\)
Subsection9.7.2There’s More Than One Way to Optimize
In this subsection we demonstrate how different approaches to the same problem can lead to different challenges. In this case just changing the labels on the diagram makes a big difference.
Suppose the pages of a book are to have an area of \(90\) square centimeters. The side and bottom margins are to be \(1\) centimeter in width and the top margin is to be \(1/2\) centimeter in width.
Since it is the printed area that is to be maximized it seems natural to label the width of the printed area, \(x\text{,}\) and the height, \(y\text{,}\) as shown below.
The width of the entire page will be \(x+2\text{,}\) and the height will be \(y+3/2\text{.}\) The area of each page is constrained to be \(90\) square centimeters so our constraint is,
At this point it is tempting to expand \((x+2)^2\text{,}\) but recall that our goal is to solve for \(x\text{.}\) Multiplying through by \((x+2)^2\) gives
Solving this last equation gives \(x=\pm\sqrt{120}-2\text{.}\) But the width of a page can’t be negative so a negative solution is meaningless for this problem. Thus \(x=\sqrt{120}-2\) is our one and only POTP, and we conclude that we can maximize the printed area by taking \(x=\sqrt{120}-2\approx 8.95\) centimeters.
That was a lot of work but we are not finished The problem asks us to find the dimensions (plural) of the page. To find \(y\) we use equation (9.34) to compute
But we’re still not finished. The problem asks for the dimensions of the page, but we’ve only found the dimensions of the printed area. The dimensions of the page are
\begin{align*}
\text{Width of page} = \textcolor{blue}{\text{width of text}}
+ \textcolor{red}{\text{margins}}\amp{} =\textcolor{blue}{\sqrt{120} -2}
+\textcolor{red}{2} \\
\amp{}=\sqrt{120} \approx 10.95 \text{ cm}\\
\text{Height of page} = \textcolor{blue}{\text{height of text}} + \textcolor{red}{\text{margins}}
\amp{}=\textcolor{blue}{\frac{90}{\sqrt{120}}-3/2} + \textcolor{red}{3/2} \\
\amp{}= \frac{90}{\sqrt{120}}\approx 8.22 \text{ cm}.
\end{align*}
No, clearly not. We never did step 3. As a result we don’t know for certain that we have a maximum. It may be that the critical point we’ve identified is not in the problem domain. It may be that it is in the domain, but that we have a minimum instead of a maximum. Or that we have neither. The point is that we can’t know until we have found the natural domain of the objective function, and verified that there is a global maximum at \(x=\sqrt{120}-2\approx8.95\) centimeters.
We mentioned earlier that the width of the page can’t be negative so the smallest possible value of \(x\text{,}\) the left endpoint of our interval, is zero.
There is often more than one objective function that will work for any given problem. If your first attempt does not seem to be working --- even if you are sure you have an objective that will work --- you always have the option of going back to the beginning and trying to find another valid objective function.
For our second solution we will use the same diagram, but with different labeling. As you can see in the sketch below, this time we’ve let \(x\) and \(y\) represent, respectively, the width and height of the page rather than of the printed area.
from which we see that \(\dx{y}=-\frac{y}{x}\dx{x}\text{.}\) From equation (9.38) we see that \(y=\frac{90}{x}\text{.}\) Substituting these into equation (9.37) we get
This time \(x\) and \(y\) represent the width and height of the page, so the width of the printed text is will be \(\sqrt{120}-2\) as before. Similarly the height of the printed text will be \(\frac{90}{\sqrt{120}}-\frac32\text{.}\)
Determine the natural domain of \(P_A(x)\) and show that \(P_A(x)\) is a global maximum when \(x=\sqrt{120}\text{.}\) Do you get the same page dimensions as before?
You will find that, quite often, simplifying complex expressions as much as possible with Algebra, Geometry, or Trigonometry will lead to easier Calculus computations. Conversely less non-Calculus work often leads to more challenging differentiations. But this is not a hard–and–fast rule. Sometimes you will find that leaving the formulas you generate unsimplified gives better insight into the problem, making things a little simpler overall, even if it makes the differentiation quite onerous.
Which parts of a given problem you find easy or difficult will depend on your skill level with your tools. With experience comes the ability to balance the workload across your skills. When you realize that one approach will lead to a complication that you know you will find difficult to handle, it can be beneficial to stop and look for another approach. If you find one, stop and try again from the beginning.
Then identify where your skill is lacking and give yourself some practice with that particular skill to improve your skills overall. Review, practice, and improve your Algebra, Geometry, and Trigonometry skills as needed.
A common mistake when abandoning a first attempt is to try to preserve and reuse computations left over from your first try. But that attempt didn’t work. You need to try something new.
You want to build a rectangular pen divided into two equally sized internal pens by placing an internal fence parallel to two of the external fences. What is the largest area you can enclose?
You want to build a rectangular pen divided into three equally sized internal pens by placing two internal fences parallel to two of the external fences. What is the largest area you can enclose?
You want to build a rectangular pen divided into \(n\) equally sized internal pens by placing \(n-1\) internal fences parallel to two of the external fences. What is the largest area you can enclose? If \(w\) is the width and \(l\) is the length of the external pen what is \(\frac{w}{l}\text{.}\)
You want to use one side of a building as one full side of your pen as shown in the sketch below. What is the largest area you can enclose? What are the dimensions of the pen?
You want to use one side of a building as one partial side of your pen as shown in the sketch below. What is the largest area you can enclose? What are the dimensions of the pen?
You want to your pen to be subdivided into three parts as shown in the sketch below. What is the largest area you can enclose? What are the dimensions of the pen?
You cut the wire into two pieces and bend one piece to form a rectangle with one side three times as long as the other. Then bend the second piece to form a square.
Consider the side view of a person at point \(P\) looking at a \(20\) foot tall billboard sign that is \(10\) feet off of the ground as shown in the diagram below.
The sketch below depicts water in a circular vessel with a central hub of radius \(r\text{.}\) Notice that the surface of the water is tangent to the top if the hub. Find the value of \(r\) that maximizes the blue shaded area, \(A(r)\text{,}\) in the following diagram:
The strength of a rectangular wooden beam is proportional to its width times the square of its height. What is the ratio of the height to width of the strongest beam that can be cut from a cylindrical log?
The stiffness of a rectangular wooden beam is proportional to its width times the cube of its height. What is the ratio of the height to width of the stiffest beam that can be cut from a cylindrical log? Compare this to the answer in part (a).
The diagram above depicts the view from above of a pole of length \(L\) being maneuvered horizontally around the \(90^\circ\) corner of two hallways of widths \(a\text{,}\) and \(b\text{.}\) Find the longest pole which can be turned around the corner.
In the problem statement we specified that the pole was being maneuvered horizontally, meaning that the pole is kept parallel to the ground at all times. Suppose we remove that constraint and that the height of the hallway is \(h\text{.}\) What is the longest pole we can get around the corner now?
Find the area of the smallest triangle formed by the \(x\) and \(y\) axes and a line passing through the point \((a,b)\text{,}\) where \(a, b\gt 0\text{.}\)
We draw the right triangle whose hypotenuse starts at the origin, \((0,0)\) and ends on the Witch of Agnesi, \(W(x)=\frac{1}{1+x^2}\text{.}\) The other legs are as shown in the figure below:
Now suppose that for each function given below a triangle is constructed in the same manner used in part (a). Assume \(a\text{,}\)\(b\text{,}\)\(c\text{,}\) and \(k\) are constants. Of all possible such triangles for which \(\alpha\) is in the interval \([0,\infty)\) which one has the largest area?
To prevent squirrels from eating her birdseed a mathematician wants to hang a bird feeder so that its top is \(5\) feet above the ground. To do this she attaches each end of a wire between two trees at a height of \(8\) feet above the ground, with the feeder hanging from a second wire, \(x\text{,}\) attached at the midpoint of the first as seen in the sketch below.