Suppose you want to find the maximum value of a surface on the boundary of the unit circle, .
True or false: you should always check the points and , since these are the endpoints of the circle.
Optimization of multivariable functions
19 problems · hints, answers and solutions shown beside each one
Suppose you want to find the maximum value of a surface on the boundary of the unit circle, .
True or false: you should always check the points and , since these are the endpoints of the circle.
What is an endpoint of a circle?
false
False. A common mistake is to think that the intercepts of a circle are somehow “endpoints," in the same way that the interval has endpoints and . But circles don't have endpoints!
When (At least in this section, this is how we do it.. but we'll learn other ways that also don't involve optimizing and separately) we're finding the extrema of a function over a closed curve, we use the equation of the curve to get a function of one variable. Then we look for critical points and endpoints of that function. These may or may not occur at or .
Now, you might notice that school problems often end up having their extrema at the extreme values of and/or in the boundary. This is a result of writing problems with relatively easy algebra, rather than the result of some universal law.
Find the high and low points of the surface with varying over the square , . Discuss the values of there. Do not evaluate any derivatives in answering this question.
Interpret the height geometrically.
The minimum height is zero at . The derivatives and do not exist there. The maximum height is at . There and exist but are not zero — those points would not be the highest points if it were not for the restriction .
The height at is the distance from to . So the minimum height is zero at . The surface is a cone. The cone has a point at and the derivatives and do not exist there. The maximum height is achieved when is as far as possible from . The highest points are at . There and exist but are not zero. These points would not be the highest points if it were not for the restriction .
Find the maximum and minimum values of when runs over the square , .
Check the boundary of the square as well as critical points inside the square.
$\text{min}=0\qquad \text{max}=\frac{2}{3\sqrt{3}}\approx0.385$
The specified function and its first order derivatives are
First, we find the critical points. The first partial derivatives are defined everywhere and so the critical points are the solution of
If , we cannot have , so we must have .
If , we cannot have , so we must have . Dividing gives which is impossible.
So the only critical point in the square is . There .
Next, we look at the part of the boundary with . There .
Next, we look at the part of the boundary with . There .
Next, we look at the part of the boundary with . There . As , the max and min of for must occur either at , where , or at , where , or at , where .
Next, we look at the part of the boundary with . There . As , the max and min of for must occur either at , where , or at , where , or at , where .
All together, we have the following candidates for max and min.
| point | |||||||||
| value of | |||||||||
| min | min | min | min | min | min | max | min |
The largest and smallest values of in this table are
Let .
Find and classify the critical points of as local maxima, local minima or saddle points.
Find the maximum and minimum values of on the disk .
(a)
| type | |
| local max | |
| local min | |
| saddle point | |
| saddle point |
(b) The maximum and minimum values of in are (at ) and (at ), respectively.
(a) To find the critical points we will need the first order partial derivatives of and to apply the second derivative test of Theorem 16.1.14 in the text we will need all second order partial derivatives. So we need all partial derivatives of up to order two. Here they are.
(Of course, and have to be the same. It is still useful to compute both, as a way to catch some mechanical errors.)
The first partial derivatives are defined everywhere and so the critical points are the solutions of
The first equation is satisfied if at least one of , are satisfied.
If , the second equation reduces to , which is satisfied if .
If , the second equation reduces to which is satisfied if .
So there are four critical points: , , , .
The classification is
| type | |||
| $\left(\frac{-4}{\sqrt{3}}\right)\times \left(-\frac{12}{\sqrt{3}}\right)-(0)^2> 0$ | local max | ||
| $\left(\frac{4}{\sqrt{3}}\right)\times \left(\frac{12}{\sqrt{3}}\right)-(0)^2>0$ | local min | ||
| saddle point | |||
| saddle point |
(b) The absolute max and min can occur either in the interior of the disk or on the boundary of the disk. The boundary of the disk is the circle .
Any absolute max or min in the interior of the disk must also be a local max or min and, must also be a critical point of . We found all of the critical points of in part (a). Since and none of the critical points are in the disk.
At each point of we have with . Clearly the maximum value is (at ) and the minimum value is (at ).
So all together, the maximum and minimum values of in are (at ) and (at ), respectively.
Find the absolute maximum and minimum values of the function on the rectangular region
There are five places to check: the interior and four boundaries.
The minimum is and the maximum is .
The maximum and minimum must either occur at a critical point or on the boundary of .
The critical points are the points where the first order partial derivatives are zero or one does not exist. Here and and so they are defined everywhere. Therefore, the critical points are the solutions of
So the only critical point is .
On the side , of the boundary of
This function decreases as increases. So its maximum value on is achieved at and its minimum value is achieved at .
On the side , of the boundary of
This function decreases as increases. So its maximum value on is achieved at and its minimum value is achieved at .
On both sides , of the boundary of
This function decreases as increases. So its maximum value on is achieved at and its minimum value is achieved at and (both of whom are a distance from ).
So we have the following candidates for the locations of the min and max
| point | ||||||
| value of | ||||||
| max | min | min |
So the minimum is and the maximum is .
Find the minimum of the function on the closed bounded domain defined by .
Since exists and is never zero, has no critical points and the minimum of on the disk must be taken on the boundary, , of the disk.
To find the minimum on the boundary, we need to use the equation to turn into a function of one variable. We can break the boundary up into two pieces: , , and , .
Define as the value of along the boundary curve , .
To find the minimum of , we first find its critical points.
Squaring both sides,
From line (*), we see must be positive, so the only one of these roots that actually solves our equation is the positive one
So, the minimum of will occur at its CP or at an endpoint or .
So the minimum of is .
Define as the value of along the boundary curve , .
From line (*), we see that must be negative, so the only solution that works it the negative one
We see that the minimum of will occur at its sole critical point , or at its endpoints .
So, the minimum of is .
All together, the minimum value achieves over the boundary is . Since we already decided the global minimum would occur on the boundary, that tells us our global minimum is .
Let .
Find all critical points of , and classify each one as a local maximum, a local minimum, or saddle point.
Find the location and value of the absolute maximum and minimum of on the triangular region , , .
Since the region is a triangle, your boundary will have three separate parts to check.
(a)
(0,0) and (3,0) and (0,3) are saddle points
(1,1) is a local min
(b) The minimum is at and the maximum is at .
(a) Thinking a little way ahead, to find the critical points we will need the first order partial derivatives of and to apply the second derivative test of Theorem 16.1.14 in the text we will need all second order partial derivatives. So we need all partial derivatives of up to order two. Here they are.
(Of course, and have to be the same. It is still useful to compute both, as a way to catch some mechanical errors.)
The first order partial derivatives are defined everywhere and so the critical points are the solutions of
The first equation is satisfied if at least one of , are satisfied.
If , the second equation reduces to , which is satisfied if either or .
If , the second equation reduces to which is satisfied if or .
So there are four critical points: , , , .
The classification is
| type | |||
| saddle point | |||
| saddle point | |||
| saddle point | |||
| 2 | local min |
(b) The absolute max and min can occur either in the interior of the triangle or on the boundary of the triangle. The boundary of the triangle consists of the three line segments.
Any absolute max or min in the interior of the triangle must also be a local max or min and, must also be a critical point of . We found all of the critical points of in part (a). Only one of them, namely is in the interior of the triangle. (The other three critical points are all on the boundary of the triangle.) We have .
At each point of we have and so .
At each point of we have and so .
At each point of we have with . As , the max and min of on must be one of or or .
So all together, we have the following candidates for max and min, with the max and min indicated.
| point(s) | ||||||
| value of | ||||||
| min | max |
Consider the function
Find and classify all of the critical points of .
Find the maximum and minimum values of in the triangle with vertices , and .
(a) is a saddle point and is a local min
(b) The min and max are and , respectively.
(a) Since
the first order partial derivatives are defined everywhere and the critical points are the solutions of
So, there are two critical points: .
| type | |||
| saddle point | |||
| local min |
(b) There are no critical points in the interior of the allowed region, so both the maximum and the minimum occur only on the boundary. The boundary consists of the line segments (i) , , (ii) , $0\le x\le 1$ and (iii) , .
First, we look at the part of the boundary with . There . As vanishes only at , the max and min of for must occur either at , where , or at , where .
Next, we look at the part of the boundary with . There . As , the max and min of for must occur either at , where , or at , where .
Next, we look at the part of the boundary with . There $f=2x^3-6x(1-x) +(1-x)^2+4(1-x)=2x^3+7x^2-12x+5$. As $\diff{}{x}(2x^3+7x^2-12x+5)=6x^2+14x-12 =2\big(3x^2+7x-6\big) =2(3x-2)(x+3)$, the max and min of for must occur either at , where , or at , where , or at , where $f=2(\frac{8}{27})-6(\frac{2}{3})(\frac{1}{3})+\frac{1}{9}+\frac{4}{3} =\frac{16-36+3+36}{27} =\frac{19}{27}$.
So all together, we have the following candidates for max and min, with the max and min indicated.
| point | ||||
| value of | ||||
| max | min |
Let
Find every critical point of and classify each one.
Let be the region in the plane between the hyperbola and the line . Find the maximum and minimum values of on .
There are two boundary lines. You'll want to find their intersections.
(a) , , are saddle points and is a local min
(b) The maximum value is and the minimum value is $4(4\sqrt{2}-6) \approx -1.37$.
(a) We have
The first partial derivatives are defined everywhere. So the critical points are the solution of
Here is a table giving the classification of each of the four critical points.
| type | |||
| saddle point | |||
| saddle point | |||
| saddle point | |||
| 2 | local min |
(b) Observe that and intersect when and
The shaded region in the sketch below is .
None of the critical points are in . So the max and min must occur at either or or on , (in which case obeys ) or on , (in which case is identically zero). So the min and max must occur at one of
The maximum value is and the minimum value is $4(4\sqrt{2}-6) \approx -1.37$.
A metal plate is in the form of a semi-circular disc bounded by the -axis and the upper half of . The temperature at the point is given by
Find the coldest point on the plate, explaining your steps carefully. (Note: , )
Plugging in the boundaries should be quite easy if you choose your variables wisely
The coldest temperture is and the coldest point is .
The coldest point must be either on the boundary of the plate or in the interior of the plate.
On the semi–circular part of the boundary and so that . The smallest value of is taken when is as large as possible, i.e. when , and is .
On the flat part of the boundary, and so that . The smallest value of is taken when is as small as possible, i.e. when , and is .
If the coldest point is in the interior of the plate, it must be at a critical point of . Since
a critical point must have and , which is the case if and only if and . So the only critical point is , where .
Since , the coldest temperature is and the coldest point is .
Consider the function $g(x,y)=x^2-10y-y^2 .$
Find and classify all critical points of .
Find the absolute extrema of on the bounded region given by
When you see “classify critical points," think “second derivative test."
(a) is a saddle point
(b) The smallest value of is at and the largest value is at .
(a) We have
The first partial derivatives are defined everywhere. So the critical points are the solution of
Since , the critical point is a saddle point.
(b) The extrema must be either on the boundary of the region or in the interior of the region.
On the semi-elliptical part of the boundary and so that . This has a minimum value of 16 (at ) and a maximum value of 21 (at ). You could also come to this conclusion by checking the critical point of (i.e. solving ) and checking the end points of the allowed interval (namely and ).
On the flat part of the boundary and
so that .
The smallest value is taken when and is and the largest value
is taken when and is .
If an extremum is in the interior of the plate, it must be at a critical point of . The only critical point is not in the prescribed region.
Here is a table giving all candidates for extrema:
From the table the smallest value of is at and the largest value is at .
Equal-angle bends are made at equal distances from the two ends of a 100 metre long fence, so that the resulting three-segment fence can be placed along an existing wall to make an enclosure of trapezoidal shape. What is the largest possible area for such an enclosure?
Suppose that the bends are made a distance from the ends of the fence and that the bends are through an angle . Draw a sketch of the enclosure and figure out its area, as a function of and .
Suppose that the bends are made a distance from the ends of the fence and that the bends are through an angle . Here is a sketch of the enclosure.
It consists of a rectangle, with side lengths and , together with two triangles, each of height and base length . So the enclosure has area
The maximize the area, we need find the critical points.
Note that and are define everywhere in their domain and so to find the critical points we only needed to find the points where the first order partial derivatives are zero.
Here we have used that the fence of maximum area cannot have or , because in either of these two cases, the area enclosed will be zero. The first equation forces and hence . Substituting these into the second equation gives
Find the most economical shape of a rectangular box that has a fixed volume and that has no top.
Suppose that the box has side lengths , and .
The box has dimensions .
Suppose that the box has side lengths , and . Here is a sketch.
Because the box has to have volume we need that . We wish to minimize the area of the four sides and bottom. Substituting in ,
To minimize, we want , which is the case when . This forces . Since is nonzero, neither nor may be zero. So , .
The temperature at a point of the –plane is given by
Find the maximum and minimum values of on the disk defined by .
Suppose the ant is constrained to stay on the curve . Where should the ant go if it wants to be as warm as possible?
(a) The maximum and minimum values of in are (at ) and (at ), respectively.
(b)
(a) The maximum and minimum can occur either in the interior of the disk or on the boundary of the disk. The boundary of the disk is the circle .
Any absolute max or min in the interior of the disk must also be a local max or min and must also be a critical point of . Since and , the only critical point is , where . Since , we have . So the maximum value of (even in ) is .
At each point of we have with . So is a minimum when is a maximum. Thus the minimum value of on the disk is .
So all together, the maximum and minimum values of in are (at ) and (at ), respectively.
(b) We are being asked to find the which maximizes
The maximum of is obviously at . So the ant should go to .
Find the largest and smallest values of in the part of the plane where , and . Also find all points where those extreme values occur.
If is on the plane, then you know . So, you can write as a function of only and by eliminating .
The minimum value is on
The maximum value is at .
The region of interest is
First observe that, on the boundary of this region, at least one of , and is zero. So is zero on the boundary. As takes values which are strictly bigger than zero at all points of that are not on the boundary, the minimum value of is on
The maximum value of will be taken at a critical point. On
So the critical points are the solutions of
(note that the first order partial derivatives are defined everywhere) or, dividing by the first equation by and the second equation by , (recall that )
Substituting , from the first equation, into the second equation gives
So the maximum value of is at .
Show that the function has exactly one critical point in the first quadrant , , and find its value at that point.
Use the second derivative test to classify the critical point in part (a).
Explain why the inequality is valid for all positive real numbers and .
(a) , , (b) local minimum
(c) As or tends to infinity (with the other at least zero),
tends to . As tends to any point on the first quadrant part of the - and –axes, tends to .
Hence as or tends to the boundary of the first quadrant
(counting infinity as part of the boundary), tends to .
As a result is a global (and not just local) minimum
for in the first quadrant. Hence
for all .
(a) For , and are well-defined and so the critical points are the solutions of
Substituting , from the first equation, into the second gives which forces , . At , ,
(b) The second derivatives are
In particular
Since $f_{xx}\big(1,\half\big)f_{yy}\big(1,\half\big)- f_{xy}\big(1,\half\big)^2=4\times 16-4^2=48>0$ and , the point is a local minimum.
(c) As or tends to infinity (with the other at least zero),
tends to . As tends to any point on the first quadrant part of the - and –axes, tends to .
Hence as or tends to the boundary of the first quadrant
(counting infinity as part of the boundary), tends to .
As a result is a global (and not just local) minimum
for in the first quadrant. Hence
for all .
Let be a constant real number. Find all points on the surface
that have minimum distance from the point .
The answer will be piecewise, depending on what exactly is.
If , then the closest point is the origin. If , then the closest points are the level curve where .
First, let's visualize what's going on. Our surface looks like a bowl, sitting on the origin, opening upwards. It is radially symmetric about the -axis, with circular level curves. That means every point on a level curve is equidistant from the -axis. Since the point is on the -axis, if there is a point that has minimum distance to the point, then its entire level curve has the same minimum distance. So we expect our answer to look like a circle (or possibly a single point – a “circle" of radius 0). If is a negative number, it seems natural that the closest point would be .
The distance from to an arbitrary point is . If the point is on our surface, then . Rather than deal with square roots, we'll minimize the distance squared:
From our observations above, there will be no global maximum; the global minimum will be a local minimum; the global minimum will depend on in a less-than-simple way; and there are likely to be multiple points that are all minimum distance to .
We start by finding critical points.
For any value of , is a critical point.
If , then the only critical point is .
If , then all points on the level curve are critical points.
So if , we're done: the single closest point on the surface is .
Suppose . Now we need to decide whether is closer to the origin or to a poitn on the level curve .
If , then:
All together, the origin is closer than the level curve when:
which never happens. So the origin is never closer than the level curve, again provided .
So, all together: if , then the closest point is the origin. If , then the closest points are the level curve where .
The Scranton branch of a well-known paper company has two sizes of paper for sale - A4 and A3.
Each ream of A4 is sold at ; each ream of A3 is sold at . Assume that every ream produced is sold.
Suppose is the quantity of materials that go into making A4 and is the quantity of materials that go into making A3. Then the costs involved in turning these materials into paper are $ for A4 and $ for A3.
There are different production procedures to produce each paper size. The production functions below give the number of reams of paper produced out of a given amount of materials.
Build the (total) profit equation in terms of and . That is, find an equation that gives the total profit (revenue minus cost) over both paper types.
Find the production quantities of both sizes of paper that maximizes profit.
If the branch stops producing A4, what is the optimal production for A3 to maximize profit?
Instead of maximizing the total profit function, maximize the profit functions of each type of paper.
The total profit is given by
The optimal production: leading to 51840 reams of A4 and leading to 640 reams of A3
In this case, the optimal production is still reams of A3
Let us first find the profit equations for each of the paper sizes separately and then we sum them up to get the total profit function.
and therefore, the total profit equation is given by
Note that the production functions of the two paper types aren't really linked. It's as if one firm is doing all the A4, and a different firm is doing all the A3. So to maximize , we can just find the maximum value of and the maximum value of separately.
Note that as we cannot produce negative amount of papers. (Maybe that would mean turning papers into trees?) Note also:
Now let's consider critical points of each function.
(Also and are critical points, since the derivatives are undefined there, but we've already considered them when we thought about endpoints.)
Since and , we see our maximum will occur when and . Then the number of reams produced will be:
As we saw before, the two reams are optimized separately. So the optimal production of A3 isn't affected by how much A4 is produced. That is, the branch should stick with leading to 640 reams of A3.
Ayan and Pipe each have a lemonade boutique. Making each pitcher of lemonade costs . If Ayan wants to sell lemonades, and Pipe want to sell lemonades, then each pitcher of lemonade will be sold for this price:
Build the profit equation in terms of and for Ayan. Treating as a constant, find the value of that maximizes Ayan's profit. (Your answer will depend on .)
Build the profit equation in terms of and for Pipe. Treating as a constant, find the value of that maximizes Pipe's profit. (Your answer will depend on .)
Guess, using your intuition, how many pitchers are Ayan and Pipe are going to produce proportional to one another so that both of them maximize their respective profit functions.
Verify your answer for (c) mathematically.
Calculate the profit that each seller generates under these assumptions.
What would be their joint profit if they collaborate? Build a new profit equation where Ayan and Pipe are collaborating and find the optimal joint profit. Compare this to their individual profit when they are competing and decide whether it would be better for them to collaborate or compete.
Is it better for thirsty consumers when the two sellers collaborate, or when they compete?
Profit is (revenue) minus (costs). If Ayan and Pipe work separately, then each seller only sees the cost and revenue from the lemonade that they themselves sold.
To find how much each seller will sell when they are working separately, find out which values of and end up with both individual profit functions being maximized.
To find out how much they'll sell when they're working together, use your assumption from part (c) to make the solving smoother.
; maximum profit when
; maximum profit when
Their businesses are identical, so we predict they will sell the same amounts of lemonade.
If Ayan and Pipe sell pitchers they will maximize their respective profit functions.
They would each make dollars in profit.
Their optimal joint profit will be dollars. But, they need to share this profit among the two of them. So if they collaborate, they will each earn dollars. This is more than their individual optimal profit in the scenario where they are competing found in part (e) (we found this to be ). So it is better for them to collaborate!
Collaborating sellers lead to higher prices and fewer goods, so it's better for consumers with the sellers compete
To find Ayan's profit equation, which we denote by , we just plug in the information we are given in the general profit equation (revenue minus cost).
This is a parabola pointing down, so its maximum will be at its only critical point.
So Ayan would maximize their profit by selling servings of lemonade.
This is very similar to the last part. We find Pipe's profit function.
Note that this is if we switch the places of and . So Pipe would maximize their profit by selling pitchers of lemonade.
Ayan's and Pipe's cost and price for every pitcher of lemonade produced are the same. Their businesses are identical. So we predict that they will sell the same amount of lemonade to maximize their respective profits.
To find how much each seller will sell when they are working separately, find out which values of and end up with both individual profit functions being maximized. Therefore we solve the system of equations we get from (a) and (b).
So, as predicted, both sellers sell the same number of pitchers.
We need to plug in in and :
And similarly, . So, they would each make dollars in profit.
The joint profit function is . Note that here, Ayan and Pipe are helping each other to make the most profit, instead of competing. Using the same intuition as before, we can conclude that in this case too. (So they share the workload fairly!)
So to make things easier let us assume and denote this quantity by . Then . This means
This is a parabola pointing down, so its global min is at its sole critical point, .
So maximizes the joint profit. Let us compute the corresponding joint profit
So their optimal joint profit will be dollars. But, they need to share this profit among the two of them. So if they collaborate, they will each earn dollars. This is more than their individual optimal profit in the scenario where they are competing found in part (e) (we found this to be ). So it is better for them to collaborate!
When the two sellers collaborate, they sell fewer lemonades (30 pitchers total instead of 40 total) and the lemonade costs more ($60 instead of $40). So it's better for consumers when the sellers compete.
From the UBC Math 100 open textbook project, © Joel Feldman, Andrew Rechnitzer, Elyse Yeager and others. Licensed CC BY-NC-SA 4.0; this HTML adaptation is released under the same licence. Full attribution.