We learn to optimize surfaces along and within given paths.
When optimizing functions of one variable \(f:\R \to \R \), we have the Extreme Value Theorem:
Below, we see a geometric interpretation of this theorem.
A similar theorem applies to functions of several variables.
When finding extrema of functions in your first calculus course, you had to check inside an interval and at the end-points. Now we need to check the interior of a region and the boundary curve. If we check those critical points, then the Extreme Value Theorem tells us that we have found the extrema! No other tests are necessary.
To check the interior of a region, one finds where the gradient vector is zero or undefined—we did that in the last section. Hence in this section, we will focus on how one finds extrema on the boundary. In this case, the Extreme Value Theorem still applies, and so we will be sure that we found the extrema on the boundary. Let’s see some examples, we start with a classic real-world problem.
Given a rectangular box where the width and height are equal, what are the dimensions of the box that give the maximum volume subject to the constraint of the size of a Standard Post Package?
We now consider the volume along the constraint \(\l =108-4w\). Along this line, we have:
Set \(v(w) = \answer [given]{108w^2-4w^3}\) and find the critical points. Write with me:
We found two critical values: when \(w=0\) and when \(w=18\). We ignore the \(w=0\) solution. Thus the maximum volume, subject to the constraint, comes at \(w=h=18\), \(\l = 108-4(18) =36\). This gives a volume of \(V(18,36) = \answer [given]{11664}\unit {in}^3\).
This portion of the text is entitled “Constrained optimization” because we want to find extrema of a function subject to a constraint, meaning there are limitations to what values the function can attain. In our first example the constraint was set by the U.S. Post office. Constrained optimization problems are an important topic in applied mathematics. The techniques developed here are the basis for solving larger problems, where the constraints are either more complex or more than two variables are involved.
Since we are working within a closed and bounded set \(T\), we now find the maximum and minimum values that \(F\) attains along \(T\). This means we find the extrema of \(F\) along the edges of the triangle.
Start with the bottom edge of the triangle, along the line \(y=\answer [given]{-2}\) while \(x\) runs from \(\left [\answer [given]{-1},\answer [given]{2}\right ]\):
We want the maximum and minimum values of \(f_{\mathrm {left}}\) on the interval \(\left [\answer [given]{-1},\answer [given]{0}\right ]\), so we evaluate \(f_{\mathrm {left}}\) at its critical points and the endpoints of the interval. First find the critical points of \(f_{\mathrm {left}}\):
We want the maximum and minimum values of \(f_{\mathrm {right}}\) on the interval \(\left [\answer [given]{0},\answer [given]{2}\right ]\), so we evaluate \(f_{\mathrm {right}}\) at its critical points and the endpoints of the interval. First find the critical points of \(f_{\mathrm {right}}\):
When working constrained optimization problems, there is often more than one way to proceed. Let’s do the previous problem again, but this time we will use vector-valued functions and the chain rule.
We see that \(t= \answer [given]{1/3}\) is the only critical point of \(F(\vecl _{\mathrm {B}}(t))\). Evaluating this at its critical point and at the endpoints of \(\left [\answer [given]{0},\answer [given]{1}\right ]\) gives:
We need to do this process twice more, for the other two edges of the triangle. For the left edge, write with me:
We see that \(t= \answer [given]{3/8}\) is the only critical point of \(F(\vecl _{\mathrm {B}}(t))\). Evaluating this at its critical point and at the endpoints of \(\left [\answer [given]{0},\answer [given]{1}\right ]\) gives:
Now for the right edge, write with me:
We see that \(t= \answer [given]{3/5}\) is the only critical point of \(F(\vecl _{\mathrm {B}}(t))\). Evaluating this at its critical point and at the endpoints of \(\left [\answer [given]{0},\answer [given]{1}\right ]\) gives:
Again, check out the following graph:
So far, our constraints have all been lines. This doesn’t have to be the case.
Now we set \(\dd [F]{t} = 0\). Here you may be tempted to solve for \(t\), but this author suggestions that you instead solve for \(\cos (t)\) and \(\sin (t)\). Note that if
It is hard to overemphasize the importance of optimization. As humans, we routinely seek to make something better. By expressing the something as a mathematical function, “making something better” means “optimize some function.”