Now we put our optimization skills to work.
An optimization problem is a problem where you need to maximize or minimize some quantity given some constraints. This can be accomplished using the tools of differential calculus that we have already developed.
Perhaps the most basic optimization problem is generated by the following question:
Among all rectangles of a fixed perimeter, which has the greatest area?
Let’s not do this problem in the abstract, let’s do it with numbers.
First, let’s draw a generic rectangle of perimeter \(12\).
The area of the rectangle is
To this end, we have to express the variable, say \(y\), in terms of \(x\). How can this be achieved?
Recall, we are given the constraint: “…rectangles of perimeter \(12\)…”
If a rectangle has perimeter \(12\), then \(2x+2y=12\), and we can solve for \(y\) in terms of \(x\),
Hence the area of a rectangle of perimeter \(12\) can be expressed as a function of a single variable, \(x\),
Therefore, the domain of the function \(A\) is the interval \(\left (\answer [given]{0},\answer [given]{6}\right )\).
So, to maximize the area of the rectangle, we have to find the global maximum of the function \(A\) on the interval \((0,6)\). Since the domain of \(A\) is an open interval, the global maximum (if it exists!) has to be a local maximum and, therefore, it occurs at a critical point. So, we have to find all critical points of \(A\) on the interval \((0,6)\). Since
We can make a sign chart for \(A'(x)\) on the interval \((0,6)\):
Since \(A'(x)\) is positive on \((0,3)\) and negative on \((3,6)\), the function \(A\) has a global maximum at \(x=3\). This is exactly when the rectangle is a square!
A key step is to explain why \(x=3\) is actually the maximum. Above we basically used facts about the derivative. Below we use a similar argument.
First we draw a picture. Here is a rectangle with an area of \(100\).
To this end, we have to express the variable, say \(y\), in terms of \(x\), using the constraint, \(A=x\cdot y=100\),
Hence the perimeter of a rectangle with area \(100\) can be expressed as a function of a single variable, \(x\),
Therefore, the domain of the function \(P\) is the interval \((\answer [given]{0},\answer [given]{\infty })\).
So, to minimize the perimeter of the rectangle, we have to find the global minimum of the function \(P\) on the interval \(\left (0,\infty \right )\).
Since the domain of \(P\) is an open interval, the global minimum (if it exists!) has to be a local minimum and, therefore, it occurs at a critical point. So, we have to find all critical points of \(P\) on the interval \((0,\infty )\). Since
So the rectangle with smallest perimeter is the \(10\times 10\) square.
We can illustrate our result with the graph of \(P\).
Hence, calculus gives a reason for why a square is the rectangle with both
- the largest area for a given perimeter.
- the smallest perimeter for a given area.
We may be done with rectangles, but they aren’t done with us. Here is a problem where there are more constraints on the possible side lengths of the rectangle.
The picture below shows three such rectangles. There are infinitely many such rectangles, one for each choice of \(x\) in \((0,\sqrt {a})\).
We want to maximize \(A\), the area of the rectangle. The lower right corner of the rectangle is at \((x,x^2)\), and once this is chosen the rectangle is completely determined. Let \(h\) denote the height and let \(w\) denote the width of the rectangle.
Then
At this point, you should graph the function if you can.
Setting \(0=A'(x)=\answer [given]{-6x^2+2a}\) we find \(x=\answer [given]{\sqrt {a/3}}\) as the only critical point. Testing this and the two endpoints (as the maximum could also be there), we have \(A(0)=A(\sqrt {a})=\answer [given]{0}\) and \(A(\sqrt {a/3})=\answer [given]{(4/9)\sqrt {3}a^{3/2}}\). Hence, the maximum area occurs when the rectangle has dimensions \(2\sqrt {a/3}\times (2/3)a\).
Again, note that above we used the Extreme Value Theorem to guarantee that we found the maximum.