In single-variable calculus we learned that the derivative is useful for finding the local maxima and minima of functions. We also saw how these ideas can be employed in applied settings. In particular, if a function \(f\text{,}\) such as the one shown in Figure 11.9.1 is differentiable everywhere, we know that the tangent line is horizontal at any point where \(f\) has a local maximum or minimum. Horizontal tangent lines occur when the derivative \(f'\) is zero. Thus, one way to find possible extreme values of a function is to first find where the function’s derivative is zero. Not every point where \(f'(a)=0\) will correspond to either a local maximum or local minimum, however. You may also recall that the concavity at a location where the derivative is zero can be used to help determine if a point is a local maximum or local minimum.
In multivariable calculus, we are often similarly interested in finding the greatest or least values that a function may achieve. Moreover, there are many applied settings in which a quantity of interest depends on several variables. In the preview activity below, we will use the application of elevation as a function of location to consider the characteristics that are necessary for an input to a function of two variables to correspond to a local maximum or local minimum. An emphasis of this activity is that we can only look at measurements at our current location to determine if a point is a local maximum or minimum.
In this activity, we will use a function that takes a two-dimensional location as its input and outputs the elevation of a surface at that point to explore what properties a point corresponding to a local maximum or local minimum of a function of two variables must have. Similar to Activity 11.7.4, imagine that you are hiking in a foggy park and cannot see anything more than a few feet in front of you. There is nothing blocking you from walking in any particular direction, but because of the fog, you cannot see where the highest point on the mountain is. You want to try to find the top of the mountain, but you don’t have a map to consult or trail to follow or even a line of sight to other landmarks. You do have a compass that works in the fog, which you can use to determine directions. You also have a level that can be placed on the ground at your feet to measure how steep the change in elevation is in a particular direction. In other words, the level can measure the directional derivative at a location. Conceptually, our goal in this preview activity is to understand how the measurements you can take with your level allows you to identify when you have reached the top of the mountain.
In Activity 11.7.4, you saw how you can move toward the top of the mountain by taking steps in the “uphill” direction, which is the direction of greatest rate of increase for elevation. Suppose you are standing at the top of the mountain, which corresponds to a local maximum for elevation, and you set the level at your feet while facing east. Will the level measure that the elevation is increasing, decreasing, or constant? Write a couple of sentences to justify your answer.
Remember that the level measures the instantaneous rate of change of elevation at your current location, but will not describe what happens for a small step to the east.
If you are at the top of the mountain and set the level at your feed while facing south, will the level measure that the elevation is increasing, decreasing, or constant? Write a couple of sentences to justify your answer.
If you took a small step to the west from the top of the mountain, should your level measurement to the west at your new location indicate that the elevation is increasing, decreasing, or constant? Explain your reasoning.
If you took a small step in any direction from the top of the mountain, should your level measurement in the direction you took the step at your new location indicate that the elevation is increasing, decreasing, or constant? Explain your reasoning.
Now imagine that you are at the lowest point in the foggy park. Write a couple of sentences to explain why your level must show a zero rate of change in every direction.
If you took at step in any direction from the lowest point in the park, should your level measurement at your new location in the the direction in which you took the step indicate that the elevation is increasing, decreasing, or constant? Explain your reasoning.
Is it possible on your hike in the fog that you find a point where your level shows constant elevation in every direction but you are not at the top of the mountain or lowest point on the mountain? Explain what the the terrain would look like at this type of location.
As the Preview Activity demonstrates, points corresponding to local minima and local maxima must have a zero slope in every direction and the rate of the change after taking a small step in any direction must also be positive or negative, respectively. This will form the conceptual basis of our attempt to find and classify extreme points of functions of two variables.
One of the important applications of single-variable calculus is the use of derivatives to identify local extremes of functions (that is, local maxima and local minima). Using the tools we have developed so far, we can extend the concept of local maxima and minima to multivariable functions.
Let \(f\) be a function of two variables \(x\) and \(y\text{.}\)
The function \(f\) has a local maximum at a point \((x_0,y_0)\) provided that \(f(x,y) \leq f(x_0,y_0)\) for all points \((x,y)\) near \((x_0,y_0)\text{.}\) In this situation we say that \(f(x_0, y_0)\) is a local maximum value.
The function \(f\) has a local minimum at a point \((x_0,y_0)\) provided that \(f(x,y) \geq f(x_0,y_0)\) for all points \((x,y)\) near \((x_0,y_0)\text{.}\) In this situation we say that \(f(x_0, y_0)\) is a local minimum value.
An absolute maximum point is a point \((x_0,y_0)\) for which \(f(x,y)\leq f(x_0,y_0)\) for all points \((x,y)\) in the domain of \(f\text{.}\) The value of \(f\) at an absolute maximum point is the maximum value of \(f\text{.}\)
An absolute minimum point is a point such that \(f(x,y) \geq f(x_0,y_0)\) for all points \((x,y)\) in the domain of \(f\text{.}\) The value of \(f\) at an absolute minimum point is the minimum value of \(f\text{.}\)
We use the term extremum point to refer to any point \((x_0,y_0)\) at which \(f\) has a local maximum or minimum. In addition, the function value \(f(x_0,y_0)\) at an extremum is called an extremal value. Figure 11.9.3 illustrates the graphs of two functions that have an absolute maximum and minimum, respectively, at the origin \((x_0,y_0) = (0,0)\text{.}\)
In single-variable calculus, we saw that the extrema of a continuous function \(f\) always occur at critical numbers, which are values of \(x\) where \(f\) fails to be differentiable or where \(f'(x) = 0\text{.}\) Said differently, critical numbers provide the locations where the extrema of a function may appear. Our work in Preview Activity 11.9.1 suggests that something similar happens with two-variable functions.
Suppose that a continuous function \(f\) has an extremum at \((x_0,y_0)\text{.}\) In this case, the trace \(f(x,y_0)\) has an extremum at \(x_0\text{,}\) which means that \(x_0\) is a critical number of \(f(x,y_0)\text{.}\) Therefore, either \(f_x(x_0,y_0)\) does not exist or \(f_x(x_0,y_0) = 0\text{.}\) Similarly, either \(f_y(x_0,y_0)\) does not exist or \(f_y(x_0,y_0) = 0\text{.}\) This implies that the extrema of a two-variable function occur at points that satisfy the following definition.
A critical point \((x_0,y_0)\) of a function \(f=f(x,y)\) is a point in the domain of \(f\) at which either \(f_x(x_0,y_0)\) and \(f_y(x_0,y_0)\) are both zero or at least one of \(f_x(x_0,y_0)\) and \(f_y(x_0,y_0)\) fails to exist.
In the analogy of Preview Activity 11.9.1, these critical points correspond to locations where our level will measure no change in elevation for every direction. How can we ensure that directional derivative will be zero in every direction? If \(\nabla f =\vec{0}\text{,}\) then \(Df_{\vu} = \vec{0}\cdot\vu = 0 \) for every direction. Geometrically, if \(\nabla f =\vec{0}\) at a point \((x_0,y_0)\text{,}\) then the tangent plane at this point will be horizontal, meaning its equation has the form \(z=c\) for a constant \(c\text{.}\)
This means that we can find critical points of a function \(f\) by computing partial derivatives and identifying any values of \((x,y)\) for which one of the partials doesn’t exist or for which both partial derivatives are simultaneously zero. For the latter, note that we have to solve the system of equations
In this example, we will look for the critical points of the two-variable function \(f(x,y)=4x^4+y^2-16xy\text{.}\) By the definition of critical points above, we will need to solve for the \((x,y)\) points with both \(f_x\) and \(f_y\) equal to zero. There are no points for which the partial derivatives of \(f\) are undefined for this function because \(f_x=16x^3-16y\) and \(f_y=2y-16x\) are polynomials. The critical points will be solutions to the system of equations
Solving the second equation for \(y\text{,}\) we get \(y=8x\text{,}\) which we can substitute into the first equation: \(16x^3-16(8x)=0\text{.}\) Factoring this equation, we have
which means our critical points must have \(x=0\text{,}\)\(x=\sqrt{8}\text{,}\) or \(x=-\sqrt{8}\text{.}\) We can substitute each of these values into \(y=8x\) to obtain the following critical points:
For each point above, you can use Figure 11.9.6 to show a plot of \(z=f(x,y)\) for a small region around the critical point by selecting from the selector. Pay attention to how the coordinate values on the axes change in each case!
You can see from the plots around each of the critical points in Figure 11.9.6, that the first critical point \((x,y)=(0,0)\) will not be a local maximum or local minimum, but both of \((x,y)=(\sqrt{8},8\sqrt{8})\) and \((x,y)=(-\sqrt{8},-8\sqrt{8})\) will be local minima.
For continuous functions of one variable, you may recall that between two local minima, there must be a local maximum. The previous example shows how for functions of more than one variable, there does not need to be a local maximum between two local minima. We encourage you to think carefully about how possibilities can be different than for one-variable functions as we move forward.
Use Figure 11.9.7 to plot the surface near each critical point. Enter the coordinates of your critical point as \((a,b)\) and the function you are using for \(f(x,y)\text{.}\)
Use your plots of the surfaces \(z=f(x,y)\) near your critical point to decide whether each critical point is a local maximum, a local minimum, or not an extreme point.
Subsection11.9.3Classifying Critical Points: The Second Derivative Test
While the extreme values of a continuous function \(f\) always occur at critical numbers, it is important to note that not every critical point leads to an extremum. Recall, for instance, \(f(x) = x^3\) from single variable calculus. Because \(f'(0)=0\text{,}\) we know that \(x_0=0\) is a critical number. However, \(x_0 = 0\) is not the location of a local maximum or a local minimum of \(f\text{.}\) Geometrically, this corresponds to the tangent line \(x_0=0\) being horizontal as seen in Figure 11.9.8 but at a critical number where \(f(x_0)\) is neither greater than or equal to or less than or equal to all values \(f(x)\) with \(x\) near \(x_0\text{.}\)
As we have seen a few times already, a similar situation can arise in a multivariable setting. Let’s look at the function \(f(x,y) = x^2 - y^2\) whose graph and contour plot are shown in Figure 11.9.9. Because \(\nabla f = \langle 2x, -2y\rangle\text{,}\) we see that the origin \((x_0,y_0)=(0,0)\) is a critical point. However, this critical point is neither a local maximum nor a local minimum. We can explain why this happens by noticing that the origin is a local minimum on the trace defined by \(y=0\text{,}\) while the origin is a local maximum on the trace defined by \(x=0\text{.}\) We call such a critical point a saddle point due to the shape of the graph near the critical point.
As in single-variable calculus, we would like to have an algebraic test to help us identify whether a critical point is a local maximum, local minimum, or neither. Recall that the Second Derivative Test for single-variable functions states that if \(x_0\) is a critical number of a function \(f\) for which \(f'(x_0)=0\) and \(f''(x_0)\) exists, then we can conclude that
if \(f''(x_0) \lt 0\text{,}\) then \(x_0\) is a local maximum,
The first two cases are shown geometrically in Figure 11.9.10. The inconclusive case does not necessarily mean that you have critical number like the one shown in Figure 11.9.8, but that you need more information to determine the behavior of \(f\) at the critical number.
At a critical point for a function of two variables, we must look at the concavity in all directions around our point. Use the dropdown box in Figure 11.9.11 to select three different types of critical point to examine graphically. Use the slider to change the direction in which the red trace is plotted. Notice that no matter what kind of critical point behavior is selected, the blue tangent plane is horizontal and the red trace curve is tangent to the blue plane.
When looking at the local maximum critical point in Figure 11.9.11, use the slider to look at all directions in which you can move away from the critical point. In every direction, the trace curves are concave down at the local maximum.
When looking at the local minimum critical point in Figure 11.9.11, use the slider to look at all directions in which you can move away from the critical point. In every direction, the trace curves are concave up at the local minimum.
When looking at the saddle point, however, changing the direction of movement away from the critical point leads to some directions where the trace curve is concave up and some directions where the trace curve is concave down.
In order to classify our critical points, we will need to figure out if the behavior around a critical point is always concave up, always concave down, or if there is a directional dependence on concave up/down.
We begin with the convenient directions in which to look at concavity: parallel to the \(x\)- and \(y\)-axes. Recall from Section 11.4 that \(f_{xx}\) and \(f_{yy}\) measure the concavity of the traces in the \(x\) and \(y\) directions, respectively. If \(f_{xx} \gt 0\) at a critical point, then in the direction parallel to the \(x\)-axis, the trace curve is concave up. If \(f_{xx} \lt 0\) at a critical point, then in the direction parallel to the \(x\)-axis, the trace curve is concave down. Similar statements hold for \(f_{yy}\text{.}\)
Suppose that \(f_{xx} (a,b) \lt 0\) and \(f_{yy} \gt 0\) at a critical point \((a,b)\text{.}\) Because the concavity is different for two different direction, the critical point \((a,b)\)must be a saddle point. Unfortunately, if \(f_{xx} (a,b) \gt 0\) and \(f_{yy} \gt 0\) at a critical point \((a,b)\text{,}\) then we do not necessarily have a local minimum, as shown in Figure 11.9.12.
As the plot in Figure 11.9.12 shows, we must look at the concavity in more than the directions corresponding to the coordinate axes. Recall from Activities 11.4.3 and Activity 11.4.4 that the mixed second partial derivative \(f_{xy}\) measures the “twist” of the graph as \(y\) varies along a particular trace where \(x\) is held constant. In the same way, \(f_{yx}\) measures how the graph twists as \(x\) varies along a trace with \(y\) fixed. For most functions of interest, remember that Clairaut’s theorem tells us that \(f_{xy} = f_{yx}\text{.}\) Hence, the amount of twisting is the same in both directions. These mixed second partial derivatives are used to see if there is enough twist to change the concavity in the directions between the coordinate axes.
The discriminant of a function of two variables is
\begin{equation*}
D = f_{xx}(x_0,y_0) f_{yy}(x_0,y_0) - f_{xy}(x_0,y_0)^2 \text{.}
\end{equation*}
If the discriminant is negative, then the concavity will change depending on direction. On the other hand, if the discriminant is positive, then all directions have the same concavity. To illustrate this, we consider a few cases:
If \(f_{xx}(x_0,y_0)\) and \(f_{yy}(x_0,y_0)\) have different signs or at least one unmixed second partial is zero, then the discriminant is negative because the second term in \(D\) is always negative. This is the case of the saddle shown above: one coordinate direction is concave up and one is concave down. In this situation, we do not have an extreme point.
If \(f_{xx}(x_0,y_0)\) and \(f_{yy}(x_0,y_0)\) are both positive or both negative, then the first term is positive. If our coordinate directions have the same concavity, then we will need to see if there is enough twist in the surface to change the concavity for directions between the coordinate axes. In other words, if \(f_{xx}(x_0,y_0) f_{yy}(x_0,y_0) \lt f_{xy}(x_0,y_0)^2\text{,}\) there is enough twist to have some direction to have different concavity from the coordinate directions.
If \(f_{xx}(x_0,y_0) f_{yy}(x_0,y_0) \gt f_{xy}(x_0,y_0)^2\text{,}\) then there is not enough twist between the coordinate directions and every direction has the same concavity.
Suppose \((x_0,y_0)\) is a critical point of a function \(f\) for which \(f_x(x_0,y_0) = 0\text{,}\)\(f_y(x_0,y_0) = 0\text{,}\) and all four second-order partial derivatives exist. Let
\begin{equation*}
D = f_{xx}(x_0,y_0) f_{yy}(x_0,y_0) - f_{xy}(x_0,y_0)^2\text{.}
\end{equation*}
If \(D \gt 0\) and \(f_{xx}(x_0,y_0) \lt 0\text{,}\) then \(f\) has a local maximum at \((x_0,y_0)\text{.}\)
A key idea of the Second Partial Derivatives Test is that if the discriminant is positive, all directions have the same concavity, while if the discriminant is negative, then the concavity changes from up to down depending on the direction. The last case of the Second Partial Derivatives Test is similar to the inconclusive case for the Second Derivative Test from single-variable calculus.
To properly understand the origin of the Second Partial Derivatives Test, we would need to introduce a “second-order directional derivative.” If this second-order directional derivative were negative in every direction, for instance, we could guarantee that the critical point is a local maximum. A complete justification of the Second Partial Derivatives Test requires key ideas from linear algebra that are beyond the scope of this book.
As we learned in single-variable calculus, finding extremal values of functions can be particularly useful in applied settings. For instance, we can often use calculus to determine the least expensive way to construct something or to find the most efficient route between two locations. The same possibility holds in settings with two or more variables.
While the quantity of a product demanded by consumers is often a function of the price of the product, the demand for a product may also depend on the price of other products. For instance, the demand for blue jeans at a clothing store may be affected not only by the price of the jeans themselves, but also by the price of khakis.
Suppose we have two goods whose respective prices are \(p_1\) and \(p_2\text{.}\) The demand for these goods, \(q_1\) and \(q_2\text{,}\) depend on the prices by the following relations:
The seller wants to set the prices \(p_1\) and \(p_2\) in order to maximize revenue. We will assume that the seller meets the full demand for each product. Thus, if we let \(R\) be the revenue obtained by selling \(q_1\) items of the first good at price \(p_1\) per item and \(q_2\) items of the second good at price \(p_2\) per item, we have
\begin{equation*}
R = p_1q_1 + p_2q_2\text{.}
\end{equation*}
Subsection11.9.4Optimization on a Restricted Domain
The Second Partial Derivatives Test helps classify critical points for a function of two variables, but it does not tell us if the function has an absolute maximum or minimum at each such point. For single-variable functions, the Extreme Value Theorem says that a continuous function on a closed interval \([a, b]\) must have both an absolute maximum and minimum on that interval, and that these absolute extremes must occur at either an endpoint or at a critical number inside the interval. Thus, finding the absolute maximum and absolute minimum of a single-variable function follows a straightforward list of steps: determine the critical points in the interval, evaluate the function at these critical points and at the endpoints of the interval, and identify the largest and smallest output values as the absolute maximum and absolute minimum respectively.
A similar approach works for functions of two variables, once we have determined the appropriate replacement for the idea of the endpoints of an interval. For functions of two variables, regions in the \(xy\)-plane that are both closed and bounded play the role that closed intervals did for functions of a single variable. A closed region is a region that contains its boundary. The unit disk \(x^2+y^2 \leq 1\) is closed, for example, while its interior \(x^2+y^2 \lt 1\) is not. A bounded region is one that does not stretch to infinity in any direction. Just as for functions of a single variable, continuous functions of several variables that are defined on closed, bounded regions must have absolute maxima and minima in those regions. The endpoints of \([a,b]\) are the boundary of the interval, and the boundary of a region in the \(xy\)-plane will provide the additional locations beyond critical points at which we must check for absolute extremes.
If \(f= f(x,y)\) is a continuous function on a closed and bounded region \(R\) in the \(xy\)-plane, then \(f\) has an absolute maximum and an absolute minimum in \(R\text{.}\)
To find the highest point in a state, you would need to look up the elevations for the tops of the hills/mountains and compare those values to the elevation along the state’s borders. Note that the elevation along a border of a state is a one-dimensional maximization problem, which means that tools from single-variable calculus can be applied.
The absolute extremes must occur at either a critical point in the interior of \(R\) or at a boundary point of \(R\text{.}\) We therefore must test both possibilities, as we demonstrate in the following example.
Consider a heated circular plate of radius 1 meter with location on the plate described relative to the center. The domain \(R=\{(x,y):x^2+y^2 \leq 1\}\) of our temperature function is a closed and bounded region, as shown in Figure 11.9.14.
Because the domain of \(T\) is closed and bounded, the Extreme Value Theorem guarantees that \(T\) has an absolute maximum and minimum on the plate. The graph of \(T\) over its domain \(R\) is shown in Figure 11.9.15. We will find the hottest and coldest points on the plate.
If the absolute maximum or absolute minimum occurs inside the disk, then the absolute extreme point will be at a critical point. We begin by looking for critical points inside the disk. To do this, notice that critical points are given by the conditions \(T_x= 4x=0\) and \(T_y=2y - 1=0\text{.}\) This means that there is one critical point of the function at the point \((x_0,y_0) =(0,1/2)\text{,}\) which does lie inside the disk.
We now find the hottest and coldest points on the boundary of the disk, which is the circle of radius 1. To turn this into a single-variable calculus problem, we use the familiar parameterization of the unit circle as
To find the hottest and coldest points on the boundary, we look for the critical points of this single-variable function on the interval \(0\leq t\leq 2\pi\text{.}\) We have
Therefore, we need to identify the points where \(\cos(t) (-2\sin(t) - 1) =0\text{.}\) These happen when \(\cos(t) = 0\) or \(\sin(t) = -1/2\) on the interval \(0\leq t\leq 2\pi\text{.}\) This occurs when \(t=\pi/2\text{,}\)\(3\pi/2\text{,}\)\(7\pi/6\text{,}\) and \(11\pi/6\text{.}\) Since \(x(t) = \cos(t)\) and \(y(t) = \sin(t)\text{,}\) the corresponding points are
These are the critical points of \(T\) on the boundary which means that this collection of points includes the hottest and coldest points on the boundary.
We now have a list of candidates for the hottest and coldest points: the critical point in the interior of the disk and the critical points on the boundary. We find the hottest and coldest points by evaluating the temperature at each of these points, and find that
Hence, the maximum temperature on the disk \(x^2+y^2\leq 1\) is \(\frac{9}{4}\text{,}\) which occurs at the two points \(\left(\pm\frac{\sqrt{3}}{2},-\frac{1}{2}\right)\) on the boundary, and the minimum value of \(T\) on the disk is \(-\frac{1}{4}\) which occurs at the critical point \(\left(0,\frac{1}{2}\right)\) in the interior of \(R\text{.}\)
From this example, we see that we use the following procedure for determining the absolute maximum and absolute minimum of a function on a closed and bounded domain:
The maximum value of the function is the largest value obtained in Step 3, and the minimum value of the function is the smallest value obtained in Step 3.
Let \(f(x,y) = x^2-3y^2-4x+6y\) with triangular domain \(R\) whose vertices are at \((0,0)\text{,}\)\((4,0)\text{,}\) and \((0,4)\text{.}\) The domain \(R\) is illustrated below. In this activity, you will carry out the steps to find the absolute maximum and absolute minimum of \(f\) on \(R\text{.}\)
Find the absolute maximum and absolute minimum values of \(f\) on \(R\text{.}\) Write a couple of sentences to describe how the surface plot of \(f\) shown below illustrates your results.
To find the extrema of a function \(f=f(x,y)\text{,}\) we first find the critical points, which are points where one of the partials of \(f\) fails to exist or where both \(f_x = 0\) and \(f_y=0\text{.}\)
If \(f\) is defined on a closed and bounded domain, we find the absolute maxima and absolute minima by finding the critical points in the interior of the domain, finding the critical points on the boundary, and testing the value of \(f\) at both sets of critical points.
There are several critical points to be listed. List them lexicographically, that is in ascending order by \(x\)-coordinates, and for equal \(x\)-coordinates in ascending order by \(y\)-coordinates (e.g., (1,1),(1,10), (2, -1), (2, 3) is a correct order)
Explain why \(f\) must have a global minimum at some point in \(R\) (note that \(R\) is unbounded---how does this influence your explanation?). Then find the global minimum.
Each of the following functions has at most one critical point. Graph a few level curves and a few gradients and, on this basis alone, decide whether the critical point is a local maximum, a local minimum, a saddle point, or that there is no critical point.
List the minimum/maximum values as well as the point(s) at which they occur. If a min or max occurs at multiple points separate the points with commas.
(a) Supposed that at \((5,1)\text{,}\) we know that \(f_x=f_y=0\) and \(f_{xx} \lt 0\text{,}\)\(f_{yy} \lt 0\text{,}\) and \(f_{xy} = 0\text{.}\) What can we conclude about the behavior of this function near the point \((5,1)\text{?}\)
(b) Supposed that at \((6,-1)\text{,}\) we know that \(f_x=f_y=0\) and \(f_{xx} \lt 0\text{,}\)\(f_{yy} > 0\text{,}\) and \(f_{xy} = 0\text{.}\) What can we conclude about the behavior of this function near the point \((6,-1)\text{?}\)
(c) Supposed that at \((8,-2)\text{,}\) we know that \(f_x=f_y=0\) and \(f_{xx} = 0\text{,}\)\(f_{yy} \lt 0\text{,}\) and \(f_{xy} > 0\text{.}\) What can we conclude about the behavior of this function near the point \((8,-2)\text{?}\)
Hint: By symmetry, you can restrict your attention to the first octant (where \(x, y, z \ge 0\)), and assume your volume has the form \(V =
8xyz\text{.}\) Then arguing by symmetry, you need only look for points which achieve the maximum which lie in the first octant.
Design a rectangular milk carton box of width \(w\text{,}\) length \(l\text{,}\) and height \(h\) which holds \(498 \text{ cm}^3\) of milk. The sides of the box cost \(3 \ \text{cents/cm}^2\) and the top and bottom cost \(4\ \text{cents/cm}^2\text{.}\) Find the dimensions of the box that minimize the total cost of materials used.
Respond to each of the following prompts to solve the given optimization problem.
Let \(f(x,y) = \sin(x)+\cos(y)\text{.}\) Determine the absolute maximum and minimum values of \(f\text{.}\) At what points do these extreme values occur?
Determine the absolute maximum and absolute minimum of \(f(x,y) = 2 + 2x + 2y - x^2 - y^2\) on the triangular plate in the first quadrant bounded by the lines \(x = 0\text{,}\)\(y = 0\text{,}\) and \(y = 9-x\text{.}\)
Determine the absolute maximum and absolute minimum of \(f(x,y) = 2 + 2x + 2y - x^2 - y^2\) over the closed disk of points \((x,y)\) such that \((x-1)^2 + (y-1)^2 \le 1\text{.}\)
If a continuous function \(f\) of a single variable has two critical numbers \(c_1\) and \(c_2\) at which \(f\) has relative maximum values, then \(f\) must have another critical number \(c_3\text{,}\) because “it is impossible to have two mountains without some sort of valley in between. The other critical point can be a saddle point (a pass between the mountains) or a local minimum (a true valley).” (From Calculus in Vector Spaces by Lawrence J. Corwin and Robert H. Szczarb.) Consider the function \(f\) defined by \(f(x,y) = 4x^2e^y -2x^4 -e^{4y}\text{.}\) (From Ira Rosenholz in the Problems Section of the Mathematics Magazine, Vol. 60 NO. 1, February 1987.) Show that \(f\) has exactly two critical points, and that \(f\) has relative maximum values at each of these critical points. Explain how this function \(f\) illustrates that it really is possible to have two mountains without some sort of valley in between. Use appropriate technology to draw the surface defined by \(f\) to see graphically how this happens.
If a continuous function \(f\) of a single variable has exactly one critical number with a relative maximum at that critical point, then the value of \(f\) at that critical point is an absolute maximum. In this exercise we see that the same is not always true for functions of two variables. Let \(f(x,y) = 3xe^y-x^3-e^{3y}\) (from “The Only Critical Point in Town” Test by Ira Rosenholz and Lowell Smylie in the Mathematics Magazine, VOL 58 NO 3 May 1985.). Show that \(f\) has exactly one critical point, has a relative maximum value at that critical point, but that \(f\) has no absolute maximum value. Use appropriate technology to draw the surface defined by \(f\) to see graphically how this happens.
A manufacturer wants to procure rectangular boxes to ship its product. The boxes must contain 20 cubic feet of space. To be durable enough to ensure the safety of the product, the material for the sides of the boxes will cost $0.10 per square foot, while the material for the top and bottom will cost $0.25 per square foot. In this activity we will help the manufacturer determine the box of minimal cost.
What quantities are constant in this problem? What are the variables in this problem? Provide appropriate variable labels. What, if any, restrictions are there on the variables?
Your formula in part (b) might be in terms of three variables. If so, find a relationship between the variables, and then use this relationship to write \(C\) as a function of only two independent variables.
A rectangular box with length \(x\text{,}\) width \(y\text{,}\) and height \(z\) is being built. The box is positioned so that one corner is stationed at the origin and the box lies in the first octant where \(x\text{,}\)\(y\text{,}\) and \(z\) are all positive. There is an added constraint on how the box is constructed: it must fit underneath the plane with equation \(x + 2y + 3z = 6\text{.}\) In fact, we will assume that the corner of the box “opposite” the origin must actually lie on this plane. The basic problem is to find the maximum volume of the box.
Sketch the plane \(x + 2y + 3z = 6\text{,}\) as well as a picture of a potential box. Label everything appropriately.
Explain how you can use the fact that one corner of the box lies on the plane to write the volume of the box as a function of \(x\) and \(y\) only. Do so, and clearly show the formula you find for \(V(x,y)\text{.}\)
Find all critical points of \(V\text{.}\) (Note that when finding the critical points, it is essential that you factor first to make the algebra easier.)
Without considering the current applied nature of the function \(V\text{,}\) classify each critical point you found above as a local maximum, local minimum, or saddle point of \(V\text{.}\)
Now suppose that we instead stipulated that, while the vertex of the box opposite the origin still had to lie on the plane, we were only going to permit the sides of the box, \(x\) and \(y\text{,}\) to have values in a specified range (given below). That is, we now want to find the maximum value of \(V\) on the closed, bounded region
\begin{equation*}
\frac{1}{2} \le x \le 1, \ \ 1 \le y \le 2.
\end{equation*}
Find the maximum volume of the box under this condition, justifying your answer fully.
Let \(x\text{,}\)\(y\text{,}\) and \(z\) be the length, width, and height (in inches) of a carry on bag. In this problem we find the dimensions of the bag of largest volume, \(V = xyz\text{,}\) that satisfies the second restriction. Assume that we use all 45 inches to get a maximum volume. (Note that this bag of maximum volume might not satisfy the third restriction.)
Write the volume \(V=V(x,y)\) as a function of just the two variables \(x\) and \(y\text{.}\)
Find the maximum value of \(V\) on the boundary of the region \(R\text{,}\) and then determine the dimensions of a bag with maximum volume on the entire region \(R\text{.}\) (Note that most carry-on bags sold today measure \(22\) by \(14\) by \(9\) inches with a volume of \(2772\) cubic inches, so that the bags will fit into the overhead bins.)
According to The Song of Insects by G.W. Pierce (Harvard College Press, 1948) the sound of striped ground crickets chirping, in number of chirps per second, is related to the temperature. So the number of chirps per second could be a predictor of temperature. The data Pierce collected is shown in Table 11.9.16., where \(x\) is the (average) number of chirps per second and \(y\) is the temperature in degrees Fahrenheit.
A scatterplot of the data would show that, while the relationship between \(x\) and \(y\) is not exactly linear, it looks to have a linear pattern. It could be that the relationship is really linear but experimental error causes the data to be slightly inaccurate. Or perhaps the data is not linear, but only approximately linear.
If we want to use the data to make predications, then we need to fit a curve of some kind to the data. Since the cricket data appears roughly linear, we will fit a linear function \(f\) of the form \(f(x) = mx+b\) to the data. We will do this in such a way that we minimize the sums of the squares of the distances between the \(y\) values of the data and the corresponding \(y\) values of the line defined by \(f\text{.}\) This type of fit is called a least squares approximation. If the data is represented by the points \((x_1,y_1)\text{,}\)\((x_2,y_2)\text{,}\)\(\ldots\text{,}\)\((x_n,y_n)\text{,}\) then the square of the distance between \(y_i\) and \(f(x_i)\) is \((f(x_i)-y_i)^2 = (mx_i+b-y_i)^2\text{.}\) So our goal is to minimize the sum of these squares, of minimize the function \(S\) defined by
(Hint: Don’t be daunted by these expressions, the system \(S_m(m,b) = 0\) and \(S_b(m,b) = 0\) is a system of two linear equations in the unknowns \(m\) and \(b\text{.}\) It might be easier to let \(r=\sum_{i=1}^n x_i^2\text{,}\)\(s=\sum_{i=1}^n x_i\text{,}\)\(t = \sum_{i=1}^n y_i\text{,}\) and \(u = \sum_{i=1}^n x_iy_i\) and write your equations using these constants.)
Use the Second Derivative Test to explain why the critical point gives a local minimum. Can you then explain why the critical point gives an absolute minimum?
Use the formula from part (b) to find the values of \(m\) and \(b\) that give the line of best fit in the least squares sense to the cricket data. Draw your line on the scatter plot to convince yourself that you have a well-fitting line.