maths.free › Multivariable Calculus › 4. Differentiation of Functions of Several Variables › Maxima/Minima Problems
Maxima/Minima Problems
Use partial derivatives to locate critical points for a function of two variables.
Critical Points
For functions of a single variable, we defined critical points as the values of the function when the derivative equals zero or does not exist. For functions of two or more variables, the concept is essentially the same, except for the fact that we are now working with partial derivatives.
The main purpose for determining critical points is to locate relative maxima and minima, as in single-variable calculus. When working with a function of one variable, the definition of a local extremum involves finding an interval around the critical point such that the function value is either greater than or less than all the other function values in that interval. When working with a function of two or more variables, we work with an open disk around the point.
In Maxima and Minima, we showed that extrema of functions of one variable occur at critical points. The same is true for functions of more than one variable, as stated in the following theorem.
Condensed — the full section is in OpenStax Calculus Volume 3.
Second Derivative Test
Consider the function \(f(x)={x}^{3}.\) This function has a critical point at \(x=0,\) since \(f'(0)=3{(0)}^{2}=0.\) However, \(f\) does not have an extreme value at \(x=0.\) Therefore, the existence of a critical value at \(x={x}_{0}\) does not guarantee a local extremum at \(x={x}_{0}.\) The same is true for a function of two or more variables. One way this can happen is at a saddle point. An example of a saddle point appears in the following figure.
In this graph, the origin is a saddle point. This is because the first partial derivatives of \(f(x,y)={x}^{2}-{y}^{2}\) are both equal to zero at this point, but it is neither a maximum nor a minimum for the function. Furthermore the vertical trace corresponding to \(y=0\) is \(z={x}^{2}\) (a parabola opening upward), but the vertical trace corresponding to \(x=0\) is \(z=\text{-}{y}^{2}\) (a parabola opening downward). Therefore, it is both a global maximum for one trace and a global minimum for another.
The second derivative test for a function of one variable provides a method for determining whether an extremum occurs at a critical point of a function. When extending this result to a function of two variables, an issue arises related to the fact that there are, in fact, four different second-order partial derivatives, although equality of mixed partials reduces this to three. The second derivative test for a function of two variables, stated in the following theorem, uses a discriminant \(D\) that replaces \({f}^{″}({x}_{0})\) in the second derivative test for a function of one variable.
To apply the second derivative test, it is necessary that we first find the critical points of the function. There are several steps involved in the entire procedure, which are outlined in a problem-solving strategy.
Condensed — the full section is in OpenStax Calculus Volume 3.
Absolute Maxima and Minima
When finding global extrema of functions of one variable on a closed interval, we start by checking the critical values over that interval and then evaluate the function at the endpoints of the interval. When working with a function of two variables, the closed interval is replaced by a closed, bounded set. A set is bounded if all the points in that set can be contained within a ball (or disk) of finite radius. First, we need to find the critical points inside the set and calculate the corresponding critical values. Then, it is necessary to find the maximum and minimum value of the function on the boundary of the set. When we have all these values, the largest function value corresponds to the global maximum and the smallest function value corresponds to the absolute minimum. First, however, we need to be assured that such values exist. The following theorem does this.
Now that we know any continuous function \(f\) defined on a closed, bounded set attains its extreme values, we need to know how to find them.
The proof of this theorem is a direct consequence of the extreme value theorem and Fermat’s theorem. In particular, if either extremum is not located on the boundary of \(D,\) then it is located at an interior point of \(D.\) But an interior point \(({x}_{0},{y}_{0})\) of \(D\) that’s an absolute extremum is also a local extremum; hence, \(({x}_{0},{y}_{0})\) is a critical point of \(f\) by Fermat’s theorem. Therefore the only possible values for the global extrema of \(f\) on \(D\) are the extreme values of \(f\) on the interior or boundary of \(D.\)
Finding the maximum and minimum values of \(f\) on the boundary of \(D\) can be challenging. If the boundary is a rectangle or set of straight lines, then it is possible to parameterize the line segments and determine the maxima on each of these segments, as seen in . The same approach can be used for other shapes such as circles and ellipses.
Condensed — the full section is in OpenStax Calculus Volume 3.
Key Concepts
- A critical point of the function \(f(x,y)\) is any point \(({x}_{0},{y}_{0})\) where either \({f}_{x}({x}_{0},{y}_{0})={f}_{y}({x}_{0},{y}_{0})=0,\) or at least one of \({f}_{x}({x}_{0},{y}_{0})\) and \({f}_{y}({x}_{0},{y}_{0})\) do not exist.
- A saddle point is a point \(({x}_{0},{y}_{0})\) where \({f}_{x}({x}_{0},{y}_{0})={f}_{y}({x}_{0},{y}_{0})=0,\) but \(({x}_{0},{y}_{0})\) is neither a maximum nor a minimum at that point.
- To find extrema of functions of two variables, first find the critical points, then calculate the discriminant and apply the second derivative test.
Maxima/Minima Problems
For the following exercises, find all critical points.
For the following exercises, find the critical points of the function by using algebraic techniques (completing the square) or by examining the form of the equation. Verify your results using the partial derivatives test.
For the following exercises, use the second derivative test to classify any critical points and determine whether each critical point is a maximum, minimum, saddle point, or none of these.
For the following exercises, determine the extreme values and the saddle points. Use a CAS to graph the function.
Find the absolute extrema of the given function on the indicated closed and bounded set \(R.\)
Practice (40)
Try each one on paper first. Reveal the answer to check; verified ones can be opened in the solver for every step.
-
Find the critical points of each of the following functions:
- \(f(x,y)=\sqrt{4{y}^{2}-9{x}^{2}+24y+36x+36}\)
- \(g(x,y)={x}^{2}+2xy-4{y}^{2}+4x-6y+4\)
Zbulo përgjigjen
- First, we calculate \({f}_{x}(x,y)\ \text{and}\ {f}_{y}(x,y)\text{:}\)
\[\begin{array}{lll}{f}_{x}(x,y) & = & \frac{1}{2}(-18x+36){(4{y}^{2}-9{x}^{2}+24y+36x+36)}^{-1\text{/}2} \\ & = & \frac{-9x+18}{\sqrt{4{y}^{2}-9{x}^{2}+24y+36x+36}} \\ {f}_{y}(x,y) & = & \frac{1}{2}(8y+24){(4{y}^{2}-9{x}^{2}+24y+36x+36)}^{-1\text{/}2} \\ & = & \frac{4y+12}{\sqrt{4{y}^{2}-9{x}^{2}+24y+36x+36}}.\end{array}\]
Next, we set each of these expressions equal to zero:
\[\begin{array}{lll}\frac{-9x+18}{\sqrt{4{y}^{2}-9{x}^{2}+24y+36x+36}} & = & 0 \\ \frac{4y+12}{\sqrt{4{y}^{2}-9{x}^{2}+24y+36x+36}} & = & 0.\end{array}\]
Then, multiply each equation by its common denominator:
\[\begin{array}{lll}-9x+18 & = & 0 \\ 4y+12 & = & 0.\end{array}\]
Therefore, \(x=2\) and \(y=-3,\) so \((2,-3)\) is a critical point of \(f.\)
We must also check for the possibility that the denominator of each partial derivative can equal zero, thus causing the partial derivative not to exist. Since the denominator is the same in each partial derivative, we need only do this once:
\[4{y}^{2}-9{x}^{2}+24y+36x+36=0.\]
This equation represents a hyperbola. We should also note that the domain of \(f\) consists of points satisfying the inequality
\[4{y}^{2}-9{x}^{2}+24y+36x+36\ge 0.\]
Therefore, any points on the hyperbola are not only critical points, they are also on the boundary of the domain. To put the hyperbola in standard form, we use the method of completing the square:
\[\begin{array}{lll}4{y}^{2}-9{x}^{2}+24y+36x+36 & = & 0 \\ 4{y}^{2}-9{x}^{2}+24y+36x & = & -36 \\ 4{y}^{2}+24y-9{x}^{2}+36x & = & -36 \\ 4({y}^{2}+6y)-9({x}^{2}-4x) & = & -36 \\ 4({y}^{2}+6y+9)-9({x}^{2}-4x+4) & = & -36+36-36 \\ 4{(y+3)}^{2}-9{(x-2)}^{2} & = & -36.\end{array}\]
Dividing both sides by \(-36\) puts the equation in standard form:
\[\begin{array}{lll}\frac{4{(y+3)}^{2}}{-36}-\frac{9{(x-2)}^{2}}{-36} & = & 1 \\ \frac{{(x-2)}^{2}}{4}-\frac{{(y+3)}^{2}}{9} & = & 1.\end{array}\]
Notice that point \((2,-3)\) is the center of the hyperbola. - First, we calculate \({g}_{x}(x,y)\ \text{and}\ {g}_{y}(x,y)\text{:}\)
\[\begin{array}{lll}{g}_{x}(x,y) & = & 2x+2y+4 \\ {g}_{y}(x,y) & = & 2x-8y-6.\end{array}\]
Next, we set each of these expressions equal to zero, which gives a system of equations in \(x\ \text{and}\ y\text{:}\)
\[\begin{array}{lll}2x+2y+4 & = & 0 \\ 2x-8y-6 & = & 0.\end{array}\]
Subtracting the second equation from the first gives \(10y+10=0,\ \text{so}\ y=-1.\) Substituting this into the first equation gives \(2x+2(-1)+4=0,\) so \(x=-1.\) Therefore \((-1,-1)\) is a critical point of \(g\) (). There are no points in \({ℝ}^{2}\) that make either partial derivative not exist.
-
Find the critical point of the function \(f(x,y)={x}^{3}+2xy-2x-4y.\)
Zbulo përgjigjen
\((2,-5)\)
-
Find the critical points for each of the following functions, and use the second derivative test to find the local extrema:
- \(f(x,y)=4{x}^{2}+9{y}^{2}+8x-36y+24\)
- \(g(x,y)=\frac{1}{3}{x}^{3}+{y}^{2}+2xy-6x-3y+4\)
Zbulo përgjigjen
- Step \(1\) of the problem-solving strategy involves finding the critical points of \(f.\) To do this, we first calculate \({f}_{x}(x,y)\) and \({f}_{y}(x,y),\) then set each of them equal to zero:
\[\begin{array}{lll}{f}_{x}(x,y) & = & 8x+8 \\ {f}_{y}(x,y) & = & 18y-36.\end{array}\]
Setting them equal to zero yields the system of equations
\[\begin{array}{lll}8x+8 & = & 0 \\ 18y-36 & = & 0.\end{array}\]
The solution to this system is \(x=-1\) and \(y=2.\) Therefore \((-1,2)\) is a critical point of \(f.\)
Step 2 of the problem-solving strategy involves calculating \(D.\) To do this, we first calculate the second partial derivatives of \(f\text{:}\)
\[\begin{array}{lll}{f}_{xx}(x,y) & = & 8 \\ {f}_{xy}(x,y) & = & 0 \\ {f}_{yy}(x,y) & = & 18.\end{array}\]
Therefore, \(D={f}_{xx}(-1,2){f}_{yy}(-1,2)-{({f}_{xy}(-1,2))}^{2}=(8)(18)-{(0)}^{2}=144.\)
Step 3 states to check the Second Derivative Test for Functions of Two Variables.. Since \(D>0\) and \({f}_{xx}(-1,2)>0,\) this corresponds to case 1. Therefore, \(f\) has a local minimum at \((-1,2)\) as shown in the following figure.
- For step 1, we first calculate \({g}_{x}(x,y)\) and \({g}_{y}(x,y),\) then set each of them equal to zero:
\[\begin{array}{lll}{g}_{x}(x,y) & = & {x}^{2}+2y-6 \\ {g}_{y}(x,y) & = & 2y+2x-3.\end{array}\]
Setting them equal to zero yields the system of equations
\[\begin{array}{lll}{x}^{2}+2y-6 & = & 0 \\ 2y+2x-3 & = & 0.\end{array}\]
To solve this system, first solve the second equation for y. This gives \(y=\frac{3-2x}{2}.\) Substituting this into the first equation gives
\[\begin{array}{lll}{x}^{2}+3-2x-6 & = & 0 \\ {x}^{2}-2x-3 & = & 0 \\ (x-3)(x+1) & = & 0.\end{array}\]Therefore, \(x=-1\) or \(x=3.\) Substituting these values into the equation \(y=\frac{3-2x}{2}\) yields the critical points \((-1,\frac{5}{2})\) and \((3,-\frac{3}{2}).\)
Step 2 involves calculating the second partial derivatives of \(g\text{:}\)
\[\begin{array}{lll}{g}_{xx}(x,y) & = & 2x \\ {g}_{xy}(x,y) & = & 2 \\ {g}_{yy}(x,y) & = & 2.\end{array}\]
Then, we find a general formula for \(D\text{:}\)
\[\begin{array}{ll}D & ={g}_{xx}({x}_{0},{y}_{0}){g}_{yy}({x}_{0},{y}_{0})-{({g}_{xy}({x}_{0},{y}_{0}))}^{2} \\ & =(2{x}_{0})(2)-{2}^{2} \\ & =4{x}_{0}-4.\end{array}\]
Next, we substitute each critical point into this formula:
\[\begin{array}{lll}D(-1,\frac{5}{2}) & = & (2(-1))(2)-{(2)}^{2}=-4-4=-8 \\ D(3,-\frac{3}{2}) & = & (2(3))(2)-{(2)}^{2}=12-4=8.\end{array}\]
In step 3, we note that, applying the Second Derivative Test for Functions of Two Variables. to point \((-1,\frac{5}{2})\) leads to case \(3,\) which means that \((-1,\frac{5}{2})\) is a saddle point. Applying the theorem to point \((3,-\frac{3}{2})\) leads to case 1, which means that \((3,-\frac{3}{2})\) corresponds to a local minimum as shown in the following figure.
-
Use the second derivative to find the local extrema of the function
\[f(x,y)={x}^{3}+2xy-6x-4{y}^{2}.\]Zbulo përgjigjen
\((\frac{4}{3},\frac{1}{3})\) is a saddle point, \((-\frac{3}{2},-\frac{3}{8})\) is a local maximum.
-
Use the problem-solving strategy for finding absolute extrema of a function to determine the absolute extrema of each of the following functions:
- \(f(x,y)={x}^{2}-2xy+4{y}^{2}-4x-2y+24\) on the domain defined by \(0\le x\le 4\) and \(0\le y\le 2\)
- \(g(x,y)={x}^{2}+{y}^{2}+4x-6y\) on the domain defined by \({x}^{2}+{y}^{2}\le 16\)
Zbulo përgjigjen
- Using the problem-solving strategy, step \(1\) involves finding the critical points of \(f\) on its domain. Therefore, we first calculate \({f}_{x}(x,y)\) and \({f}_{y}(x,y),\) then set them each equal to zero:
\[\begin{array}{lll}{f}_{x}(x,y) & = & 2x-2y-4 \\ {f}_{y}(x,y) & = & -2x+8y-2.\end{array}\]
Setting them equal to zero yields the system of equations
\[\begin{array}{lll}2x-2y-4 & = & 0 \\ -2x+8y-2 & = & 0.\end{array}\]
The solution to this system is \(x=3\) and \(y=1.\) Therefore \((3,1)\) is a critical point of \(f.\) Calculating \(f(3,1)\) gives \(f(3,1)=17.\)
The next step involves finding the extrema of \(f\) on the boundary of its domain. The boundary of its domain consists of four line segments as shown in the following graph:
\({L}_{1}\) is the line segment connecting \((0,0)\) and \((4,0),\) and it can be parameterized by the equations \(x(t)=t,y(t)=0\) for \(0\le t\le 4.\) Define \(g(t)=f(x(t),y(t)).\) This gives \(g(t)={t}^{2}-4t+24.\) Differentiating g leads to \({g}^{'}(t)=2t-4.\) Therefore, \(g\) has a critical value at \(t=2,\) which corresponds to the point \((2,0).\) Calculating \(f(2,0)\) gives the z-value \(20.\)
\({L}_{2}\) is the line segment connecting \((4,0)\) and \((4,2),\) and it can be parameterized by the equations \(x(t)=4,y(t)=t\) for \(0\le t\le 2.\) Again, define \(g(t)=f(x(t),y(t)).\) This gives \(g(t)=4{t}^{2}-10t+24.\) Then, \({g}^{'}(t)=8t-10.\) \(g\) has a critical value at \(t=\frac{5}{4},\) which corresponds to the point \((4,\frac{5}{4}).\) Calculating \(f(4,\frac{5}{4})\) gives the z-value \(17.75.\)
\({L}_{3}\) is the line segment connecting \((0,2)\) and \((4,2),\) and it can be parameterized by the equations \(x(t)=t,y(t)=2\) for \(0\le t\le 4.\) Again, define \(g(t)=f(x(t),y(t)).\) This gives \(g(t)={t}^{2}-8t+36.\) The critical value \(\) corresponds to the point \((4,2).\) So, calculating \(f(4,2)\) gives the z-value \(20.\)
\({L}_{4}\) is the line segment connecting \((0,0)\) and \((0,2),\) and it can be parameterized by the equations \(x(t)=0,y(t)=t\) for \(0\le t\le 2.\) This time, \(g(t)=4{t}^{2}-2t+24\) and the critical value \(t=\frac{1}{4}\) correspond to the point \((0,\frac{1}{4}).\) Calculating \(f(0,\frac{1}{4})\) gives the z-value \(23.75.\)
We also need to find the values of \(f(x,y)\) at the corners of its domain. These corners are located at \((0,0),(4,0),(4,2)\ \text{and}\ (0,2)\text{:}\)
\[\begin{array}{lllll} \\ f(0,0) & = & {(0)}^{2}-2(0)(0)+4{(0)}^{2}-4(0)-2(0)+24 & = & 24 \\ f(4,0) & = & {(4)}^{2}-2(4)(0)+4{(0)}^{2}-4(4)-2(0)+24 & = & 24 \\ f(4,2) & = & {(4)}^{2}-2(4)(2)+4{(2)}^{2}-4(4)-2(2)+24 & = & 20 \\ f(0,2) & = & {(0)}^{2}-2(0)(2)+4{(2)}^{2}-4(0)-2(2)+24 & = & 36.\end{array}\]
The absolute maximum value is \(36,\) which occurs at \((0,2),\) and the global minimum value is \(17,\) which occurs at \((3,1)\) as shown in the following figure.
- Using the problem-solving strategy, step \(1\) involves finding the critical points of \(g\) on its domain. Therefore, we first calculate \({g}_{x}(x,y)\) and \({g}_{y}(x,y),\) then set them each equal to zero:
\[\begin{array}{lll}{g}_{x}(x,y) & = & 2x+4 \\ {g}_{y}(x,y) & = & 2y-6.\end{array}\]
Setting them equal to zero yields the system of equations
\[\begin{array}{lll}2x+4 & = & 0 \\ 2y-6 & = & 0.\end{array}\]
The solution to this system is \(x=-2\) and \(y=3.\) Therefore, \((-2,3)\) is a critical point of \(g.\) Calculating \(g(-2,3),\) we get
\[g(-2,3)={(-2)}^{2}+{3}^{2}+4(-2)-6(3)=4+9-8-18=-13.\]
The next step involves finding the extrema of g on the boundary of its domain. The boundary of its domain consists of a circle of radius \(4\) centered at the origin as shown in the following graph.
The boundary of the domain of \(g\) can be parameterized using the functions \(x(t)=4\ \text{cos}\ t,y(t)=4\ \text{sin}\ t\) for \(0\le t\le 2\pi .\) Define \(h(t)=g(x(t),y(t))\text{:}\)
\[\begin{array}{ll}h(t) & =g(x(t),y(t)) \\ & ={(4\ \text{cos}\ t)}^{2}+{(4\ \text{sin}\ t)}^{2}+4(4\ \text{cos}\ t)-6(4\ \text{sin}\ t) \\ & =16{\text{cos}}^{2}\ t+16{\text{sin}}^{2}\ t+16\ \text{cos}\ t-24\ \text{sin}\ t \\ & =16+16\ \text{cos}\ t-24\ \text{sin}\ t.\end{array}\]
Setting \({h}^{'}(t)=0\) leads to
\[\begin{array}{lll}-16\ \text{sin}\ t-24\ \text{cos}\ t & = & 0 \\ -16\ \text{sin}\ t & = & 24\ \text{cos}\ t \\ \frac{-16\ \text{sin}\ t}{-16\ \text{cos}\ t} & = & \frac{24\ \text{cos}\ t}{-16\ \text{cos}\ t} \\ \text{tan}\ t & = & -\frac{3}{2}.\end{array}\]
This equation has two solutions over the interval \(0\le t\le 2\pi .\) One is \(t=\pi -\text{arctan}(\frac{3}{2})\) and the other is \(t=2\pi -\text{arctan}(\frac{3}{2}).\) For the first angle,
\[\begin{array}{lll}\text{sin}\ t & = & \text{sin}(\pi -\text{arctan}(\frac{3}{2}))=\text{sin}(\text{arctan}(\frac{3}{2}))=\frac{3\sqrt{13}}{13} \\ \text{cos}\ t & = & \text{cos}(\pi -\text{arctan}(\frac{3}{2}))=\text{-}\text{cos}(\text{arctan}(\frac{3}{2}))=-\frac{2\sqrt{13}}{13}.\end{array}\]
Therefore, \(x(t)=4\ \text{cos}\ t=-\frac{8\sqrt{13}}{13}\) and \(y(t)=4\ \text{sin}\ t=\frac{12\sqrt{13}}{13},\) so \((-\frac{8\sqrt{13}}{13},\frac{12\sqrt{13}}{13})\) is a critical point on the boundary and
\[\begin{array}{ll}g(-\frac{8\sqrt{13}}{13},\frac{12\sqrt{13}}{13}) & ={(-\frac{8\sqrt{13}}{13})}^{2}+{(\frac{12\sqrt{13}}{13})}^{2}+4(-\frac{8\sqrt{13}}{13})-6(\frac{12\sqrt{13}}{13}) \\ & =\frac{144}{13}+\frac{64}{13}-\frac{32\sqrt{13}}{13}-\frac{72\sqrt{13}}{13} \\ & =\frac{208-104\sqrt{13}}{13}\approx -12.844.\end{array}\]
For the second angle,
\[\begin{array}{lll}\text{sin}\ t & = & \text{sin}(2\pi -\text{arctan}(\frac{3}{2}))=\text{-}\text{sin}(\text{arctan}(\frac{3}{2}))=-\frac{3\sqrt{13}}{13} \\ \text{cos}\ t & = & \text{cos}(2\pi -\text{arctan}(\frac{3}{2}))=\text{cos}(\text{arctan}(\frac{3}{2}))=\frac{2\sqrt{13}}{13}.\end{array}\]
Therefore, \(x(t)=4\ \text{cos}\ t=\frac{8\sqrt{13}}{13}\) and \(y(t)=4\ \text{sin}\ t=-\frac{12\sqrt{13}}{13},\) so \((\frac{8\sqrt{13}}{13},-\frac{12\sqrt{13}}{13})\) is a critical point on the boundary and
\[\begin{array}{ll}g(\frac{8\sqrt{13}}{13},-\frac{12\sqrt{13}}{13}) & ={(\frac{8\sqrt{13}}{13})}^{2}+{(-\frac{12\sqrt{13}}{13})}^{2}+4(\frac{8\sqrt{13}}{13})-6(-\frac{12\sqrt{13}}{13}) \\ & =\frac{144}{13}+\frac{64}{13}+\frac{32\sqrt{13}}{13}+\frac{72\sqrt{13}}{13} \\ & =\frac{208+104\sqrt{13}}{13}\approx 44.844.\end{array}\]
The absolute minimum of g is \(-13,\) which is attained at the point \((-2,3),\) which is an interior point of D. The absolute maximum of g is approximately equal to 44.844, which is attained at the boundary point \((\frac{8\sqrt{13}}{13},-\frac{12\sqrt{13}}{13}).\) These are the absolute extrema of g on D as shown in the following figure.
-
Use the problem-solving strategy for finding absolute extrema of a function to find the absolute extrema of the function
\[f(x,y)=4{x}^{2}-2xy+6{y}^{2}-8x+2y+3\]on the domain defined by \(0\le x\le 2\) and \(-1\le y\le 3.\)
Zbulo përgjigjen
The absolute minimum occurs at \((1,0)\text{:}\) \(f(1,0)=-1.\)
The absolute maximum occurs at \((0,3)\text{:}\) \(f(0,3)=63.\)
-
Pro-\(\text{T}\) company has developed a profit model that depends on the number x of golf balls sold per month (measured in thousands), and the number of hours per month of advertising y, according to the function
\[z=f(x,y)=48x+96y-{x}^{2}-2xy-9{y}^{2},\]where \(z\) is measured in thousands of dollars. The maximum number of golf balls that can be produced and sold is \(50,000,\) and the maximum number of hours of advertising that can be purchased is \(25.\) Find the values of \(x\) and \(y\) that maximize profit, and find the maximum profit.
Zbulo përgjigjen
Using the problem-solving strategy, step \(1\) involves finding the critical points of \(f\) on its domain. Therefore, we first calculate \({f}_{x}(x,y)\) and \({f}_{y}(x,y),\) then set them each equal to zero:
\[\begin{array}{lll}{f}_{x}(x,y) & = & 48-2x-2y \\ {f}_{y}(x,y) & = & 96-2x-18y.\end{array}\]Setting them equal to zero yields the system of equations
\[\begin{array}{lll}48-2x-2y & = & 0 \\ 96-2x-18y & = & 0.\end{array}\]The solution to this system is \(x=21\) and \(y=3.\) Therefore \((21,3)\) is a critical point of \(f.\) Calculating \(f(21,3)\) gives \(f(21,3)=48(21)+96(3)-{21}^{2}-2(21)(3)-9{(3)}^{2}=648.\)
The domain of this function is \(0\le x\le 50\) and \(0\le y\le 25\) as shown in the following graph.
\({L}_{1}\) is the line segment connecting \((0,0)\) and \((50,0),\) and it can be parameterized by the equations \(x(t)=t,y(t)=0\) for \(0\le t\le 50.\) We then define \(g(t)=f(x(t),y(t))\text{:}\)
\[\begin{array}{ll}g(t) & =f(x(t),y(t)) \\ & =f(t,0) \\ & =48t+96(0)-{t}^{2}-2(t)(0)-9{(0)}^{2} \\ & =48t-{t}^{2}.\end{array}\]Setting \({g}^{'}(t)=0\) yields the critical point \(t=24,\) which corresponds to the point \((24,0)\) in the domain of \(f.\) Calculating \(f(24,0)\) gives \(576.\)
\({L}_{2}\) is the line segment connecting \(\) and \((50,25),\) and it can be parameterized by the equations \(x(t)=50,y(t)=t\) for \(0\le t\le 25.\) Once again, we define \(g(t)=f(x(t),y(t))\text{:}\)
\[\begin{array}{ll}g(t) & =f(x(t),y(t)) \\ & =f(50,t) \\ & =48(50)+96t-{50}^{2}-2(50)t-9{t}^{2} \\ & =-9{t}^{2}-4t-100.\end{array}\]This function has a critical point at \(t=-\frac{2}{9},\) which corresponds to the point \((50,-\frac{2}{9}).\) This point is not in the domain of \(f.\)
\({L}_{3}\) is the line segment connecting \((0,25)\ \text{and}\ (50,25),\) and it can be parameterized by the equations \(x(t)=t,y(t)=25\) for \(0\le t\le 50.\) We define \(g(t)=f(x(t),y(t))\text{:}\)
\[\begin{array}{ll}g(t) & =f(x(t),y(t)) \\ & =f(t,25) \\ & =48t+96(25)-{t}^{2}-2t(25)-9({25}^{2}) \\ & =\text{-}{t}^{2}-2t-3225.\end{array}\]This function has a critical point at \(t=-1,\) which corresponds to the point \((-1,25),\) which is not in the domain.
\({L}_{4}\) is the line segment connecting \((0,0)\ \text{to}\ (0,25),\) and it can be parameterized by the equations \(x(t)=0,y(t)=t\) for \(0\le t\le 25.\) We define \(g(t)=f(x(t),y(t))\text{:}\)
\[\begin{array}{ll}g(t) & =f(x(t),y(t)) \\ & =f(0,t) \\ & =48(0)+96t-{(0)}^{2}-2(0)t-9{t}^{2} \\ & =96t-{t}^{2}.\end{array}\]This function has a critical point at \(t=\frac{16}{3},\) which corresponds to the point \((0,\frac{16}{3}),\) which is on the boundary of the domain. Calculating \(f(0,\frac{16}{3})\) gives \(256.\)
We also need to find the values of \(f(x,y)\) at the corners of its domain. These corners are located at \((0,0),(50,0),(50,25)\ \text{and}\ (0,25)\text{:}\)
\[\begin{array}{lll}f(0,0) & = & 48(0)+96(0)-{(0)}^{2}-2(0)(0)-9{(0)}^{2}=0 \\ f(50,0) & = & 48(50)+96(0)-{(50)}^{2}-2(50)(0)-9{(0)}^{2}=-100 \\ f(50,25) & = & 48(50)+96(25)-{(50)}^{2}-2(50)(25)-9{(25)}^{2}=-5825 \\ f(0,25) & = & 48(0)+96(25)-{(0)}^{2}-2(0)(25)-9{(25)}^{2}=-3225.\end{array}\]The maximum critical value is \(648,\) which occurs at \((21,3).\) Therefore, a maximum profit of \(\text{\$}648,000\) is realized when \(21,000\) golf balls are sold and \(3\) hours of advertising are purchased per month as shown in the following figure.
-
\(f(x,y)=1+{x}^{2}+{y}^{2}\)
-
\(f(x,y)={(3x-2)}^{2}+{(y-4)}^{2}\)
Zbulo përgjigjen
\((\frac{2}{3},4)\)
-
\(f(x,y)={x}^{4}+{y}^{4}-16xy\)
-
\(f(x,y)=15{x}^{3}-3xy+15{y}^{3}\)
Zbulo përgjigjen
\((0,0)\) \((\frac{1}{15},\frac{1}{15})\)
-
\(f(x,y)=\sqrt{{x}^{2}+{y}^{2}+1}\)
-
\(f(x,y)=\text{-}{x}^{2}-5{y}^{2}+8x-10y-13\)
Zbulo përgjigjen
Maximum at \((4,-1,8)\)
-
\(f(x,y)={x}^{2}+{y}^{2}+2x-6y+6\)
-
\(f(x,y)=\sqrt{{x}^{2}+{y}^{2}}+1\)
Zbulo përgjigjen
Relative minimum at \((0,0,1)\)
-
\(f(x,y)=\text{-}{x}^{3}+4xy-2{y}^{2}+1\)
-
\(f(x,y)={x}^{2}{y}^{2}\)
Zbulo përgjigjen
The second derivative test fails. Since \({x}^{2}{y}^{2}>0\) for all x and y different from zero, and \({x}^{2}{y}^{2}=0\) when either x or y equals zero (or both), then the absolute minimum occurs at \((0,0).\)
-
\(f(x,y)={x}^{2}-6x+{y}^{2}+4y-8\)
-
\(f(x,y)=2xy+3x+4y\)
Zbulo përgjigjen
\(f(-2,-\frac{3}{2})=-6\) is a saddle point.
-
\(f(x,y)=8xy(x+y)+7\)
-
\(f(x,y)={x}^{2}+4xy+{y}^{2}\)
Zbulo përgjigjen
\(f(0,0)=0;\) \((0,0,0)\) is a saddle point.
-
\(f(x,y)={x}^{3}+{y}^{3}-300x-75y-3\)
-
\(f(x,y)=9-{x}^{4}{y}^{4}\)
Zbulo përgjigjen
The only critical point(s) are where both \({f}_{x}=0\) and \({f}_{y}=0\) and that is \(f(0,0)=9\). However, since \({f}_{xx}{f}_{xy}-{\left({f}_{xy}\right)}^{2}=0\) at the critical point, the Second Derivative Test fails. By graphing, we can see that this point is a local maximum.
-
\(f(x,y)=7{x}^{2}y+9x{y}^{2}\)
-
\(f(x,y)=3{x}^{2}-2xy+{y}^{2}-8y\)
Zbulo përgjigjen
Relative minimum located at \((2,6).\)
-
\(f(x,y)=3{x}^{2}+2xy+{y}^{2}\)
-
\(f(x,y)={y}^{2}+xy+3y+2x+3\)
Zbulo përgjigjen
\((1,-2)\) is a saddle point.
-
\(f(x,y)={x}^{2}+xy+{y}^{2}-3x\)
-
\(f(x,y)={x}^{2}+2{y}^{2}-{x}^{2}y\)
Zbulo përgjigjen
\((2,1)\) and \((-2,1)\) are saddle points; \((0,0)\) is a relative minimum.
-
\(f(x,y)={x}^{2}+y-{e}^{y}\)
-
\(f(x,y)={e}^{\text{-}({x}^{2}+{y}^{2}+2x)}\)
Zbulo përgjigjen
\((-1,0)\) is a relative maximum.
-
\(f(x,y)={x}^{2}+xy+{y}^{2}-x-y+1\)
-
\(f(x,y)={x}^{2}+10xy+{y}^{2}\)
Zbulo përgjigjen
\((0,0)\) is a saddle point.
-
\(f(x,y)=\text{-}{x}^{2}-5{y}^{2}+10x-30y-62\)
-
\(f(x,y)=120x+120y-xy-{x}^{2}-{y}^{2}\)
Zbulo përgjigjen
The relative maximum is at \((40,40).\)
-
\(f(x,y)=2{x}^{2}+2xy+{y}^{2}+2x-3\)
-
\(f(x,y)={x}^{2}+x-3xy+{y}^{3}-5\)
Zbulo përgjigjen
\((\frac{1}{4},\frac{1}{2})\) is a saddle point and \((1,1)\) is the relative minimum.
-
\(f(x,y)=2xy{e}^{\text{-}{x}^{2}-{y}^{2}}\)
-
[T] \(f(x,y)=y{e}^{x}-{e}^{y}\)
Zbulo përgjigjen
A saddle point is located at \((0,0).\)
-
[T] \(f(x,y)=x\ \text{sin}(y)\)
Symbols used here
The non-negative number whose square (n-th power) is x.
Inequalities that allow equality; < and > exclude it.
Derivative with respect to x, holding the other variables fixed.
Vector of partial derivatives; points uphill.
Antiderivative (indefinite) or signed area from a to b (definite).
Integral over a region of the plane; integral around a closed curve.
A quantity with magnitude and direction; a column of numbers.
Σ u_i v_i; the length of v, √(v·v).
How to: Maxima/Minima Problems
- Use partial derivatives to locate critical points for a function of two variables.
- Apply a second derivative test to identify a critical point as a local maximum, local minimum, or saddle point for a function of two variables.
- Examine critical points and boundary points to find absolute maximum and minimum values for a function of two variables.
- Either
- First, we calculate
- First, we calculate
- If
- If
Questions people ask
What is a partial derivative?
The ordinary derivative with respect to one variable while every other variable is frozen — the slope of the surface in one coordinate direction.
What does the gradient point at?
Uphill: the direction of steepest increase, with length equal to that steepest slope. It is perpendicular to the level curves.
Provo timen.
Parts of this page are adapted from OpenStax Calculus Volume 3 (CC BY-NC-SA 4.0). Condensed and re-explained here; errors are ours.
Më shumë në Multivariable Calculus
Functions of several variablesPartial derivatives and the gradientOptimisation in several variablesDouble and triple integralsVector fields, line integrals and the big theorems