Given a function $z=f(x,y)$, we are often interested in points where $z$ takes on the largest or smallest values. For instance, if $z$ represents a cost function, we would likely want to know what $(x,y)$ values minimize the cost. If $z$ represents the ratio of a volume to surface area, we would likely want to know where $z$ is greatest. This leads to the following definition.
Let $z=f(x,y)$ be defined on a set $S$ containing the point $P=({x}_{0},{y}_{0})$.
If there is an open disk $D$ so that $S$ contains $D$ which contains $P$ and $f({x}_{0},{y}_{0})\ge f(x,y)$ for all $(x,y)$ in $D$, then $f$ has a relative maximum at $P$; if $f({x}_{0},{y}_{0})\le f(x,y)$ for all $(x,y)$ in $D$, then $f$ has a relative minimum at $P$.
If $f({x}_{0},{y}_{0})\ge f(x,y)$ for all $(x,y)$ in $S$, then $f$ has an absolute maximum at $P$; if $f({x}_{0},{y}_{0})\le f(x,y)$ for all $(x,y)$ in $S$, then $f$ has an absolute minimum at $P$.
If $f$ has a relative maximum or minimum at $P$, then $f$ has a relative extremum at $P$; if $f$ has an absolute maximum or minimum at $P$, then $f$ has an absolute extremum at $P$.
If $f$ has a relative or absolute maximum at $P=({x}_{0},{y}_{0})$, it means every curve on the surface of $f$ through $P$ will also have a relative or absolute maximum at $P$. Recalling what we learned in Section 3.1, the slopes of the tangent lines to these curves at $P$ must be 0 or undefined. Since directional derivatives are computed using ${f}_{x}$ and ${f}_{y}$, we are led to the following definition and theorem.
Let $z=f(x,y)$ be continuous on an open set $S$. A critical point $P=({x}_{0},{y}_{0})$ of $f$ is a point in $S$ such that
${f}_{x}({x}_{0},{y}_{0})=0$ and ${f}_{y}({x}_{0},{y}_{0})=0$, or
${f}_{x}({x}_{0},{y}_{0})$ or ${f}_{y}({x}_{0},{y}_{0})$ is undefined.
Let $z=f(x,y)$ be defined on an open set $S$ containing $P=({x}_{0},{y}_{0})$. If $f$ has a relative extrema at $P$, then $P$ is a critical point of $f$.
Therefore, to find relative extrema, we find the critical points of $f$ and determine which correspond to relative maxima, relative minima, or neither.
Watch the video:
Local Maximum and Minimum Values / Function of Two Variables from https://youtu.be/Hm5QnuDjNmY
The following examples demonstrate this process.
Let $f(x,y)={x}^{2}+{y}^{2}-xy-x-2$. Find the relative extrema of $f$.
SolutionWe start by computing the partial derivatives of $f$:
^{†}^{†}margin:
(fullscreen)
Λ
$${f}_{x}(x,y)=2x-y-1\mathit{\hspace{1em}\hspace{1em}}\text{and}\mathit{\hspace{1em}\hspace{1em}}{f}_{y}(x,y)=2y-x.$$ |
Each is never undefined. A critical point occurs when ${f}_{x}$ and ${f}_{y}$ are simultaneously 0, leading us to solve the following system of linear equations:
$$2x-y-1=0\mathit{\hspace{1em}\hspace{1em}}\text{and}\mathit{\hspace{1em}\hspace{1em}}-x+2y=0.$$ |
This solution to this system is $x=2/3$, $y=1/3$. (Check that at $(2/3,1/3)$, both ${f}_{x}$ and ${f}_{y}$ are 0.)
The graph in Figure 13.8.1 shows $f$ along with this critical point. It is clear from the graph that this is a relative minimum; further consideration of the function shows that this is actually the absolute minimum.
Let $f(x,y)=-\sqrt{{x}^{2}+{y}^{2}}+2$. Find the relative extrema of $f$.
SolutionWe start by computing the partial derivatives of $f$:
$${f}_{x}(x,y)=\frac{-x}{\sqrt{{x}^{2}+{y}^{2}}}\mathit{\hspace{1em}\hspace{1em}}\text{and}\mathit{\hspace{1em}\hspace{1em}}{f}_{y}(x,y)=\frac{-y}{\sqrt{{x}^{2}+{y}^{2}}}.$$ |
It is clear that ${f}_{x}=0$ when $x=0$ & $y\ne 0$, and that ${f}_{y}=0$ when $y=0$ & $x\ne 0$. At $(0,0)$, both ${f}_{x}$ and ${f}_{y}$ are not $0$, but rather undefined. The point $(0,0)$ is still a critical point, though, because the partial derivatives are undefined. This is the only critical point of $f$.
The surface of $f$ is graphed in Figure 13.8.2 along with the point $(0,0,2)$. The graph shows that this point is the absolute maximum of $f$.
In each of the previous two examples, we found a critical point of $f$ and then determined whether or not it was a relative (or absolute) maximum or minimum by graphing. It would be nice to be able to determine whether a critical point corresponded to a max or a min without a graph. Before we develop such a test, we do one more example that sheds more light on the issues our test needs to consider.
Let $f(x,y)={x}^{3}-3x-{y}^{2}+4y$. Find the relative extrema of $f$.
SolutionOnce again we start by finding the partial derivatives of $f$:
$${f}_{x}(x,y)=3{x}^{2}-3\mathit{\hspace{1em}\hspace{1em}}\text{and}\mathit{\hspace{1em}\hspace{1em}}{f}_{y}(x,y)=-2y+4.$$ |
Each is always defined. Setting each equal to 0 and solving for $x$ and $y$, we find
${f}_{x}(x,y)=0\mathit{\hspace{1em}}$ | $\Rightarrow x=\pm 1$ | ||
${f}_{y}(x,y)=0\mathit{\hspace{1em}}$ | $\Rightarrow y=2.$ |
We have two critical points: $(-1,2)$ and $(1,2)$. To determine if they correspond to a relative maximum or minimum, we consider the graph of $f$ in Figure 13.8.3.
^{†}^{†}margin:
(fullscreen)
Λ
The critical point $(-1,2)$ clearly corresponds to a relative maximum. However, the critical point at $(1,2)$ is neither a maximum nor a minimum, displaying a different, interesting characteristic.
If one walks parallel to the $y$-axis towards this critical point, then this point becomes a relative maximum along this path. But if one walks towards this point parallel to the $x$-axis, this point becomes a relative minimum along this path. A point that seems to act as both a max and a min is a saddle point. A formal definition follows.
Let $P=({x}_{0},{y}_{0})$ be in the domain of $f$ where ${f}_{x}=0$ and ${f}_{y}=0$ at $P$. We say $P$ is a saddle point of $f$ if, for every open disk $D$ containing $P$, there are points $({x}_{1},{y}_{1})$ and $({x}_{2},{y}_{2})$ in $D$ such that $f({x}_{0},{y}_{0})>f({x}_{1},{y}_{1})$ and $$.
At a saddle point, the instantaneous rate of change in all directions is 0 and there are points nearby with $z$-values both less than and greater than the $z$-value of the saddle point.
Before Example 13.8.3 we mentioned the need for a test to differentiate between relative maxima and minima. We now recognize that our test also needs to account for saddle points. To do so, we consider the second partial derivatives of $f$.
Recall that with single variable functions, such as $y=f(x)$, if ${f}^{\prime \prime}(c)>0$, then $f$ is concave up at $c$, and if ${f}^{\prime}(c)=0$, then $f$ has a relative minimum at $x=c$. (We called this the Second Derivative Test.) Note that at a saddle point, it seems the graph is “both” concave up and concave down, depending on which direction you are considering.
It would be nice if the following were true:
${f}_{xx}$ and ${f}_{yy}>0$ | $\Rightarrow $ | relative minimum |
${f}_{xx}$ and $$ | $\Rightarrow $ | relative maximum |
${f}_{xx}$ and ${f}_{yy}$ have opposite signs | $\Rightarrow $ | saddle point. |
However, this is not the case. Functions $f$ exist where ${f}_{xx}$ and ${f}_{yy}$ are both positive but a saddle point still exists. In such a case, while the concavity in the $x$-direction is up (i.e., ${f}_{xx}>0$) and the concavity in the $y$-direction is also up (i.e., ${f}_{yy}>0$), the concavity switches somewhere in between the $x$- and $y$-directions.
To account for this, consider $D={f}_{xx}{f}_{yy}-{f}_{xy}{f}_{yx}$. Since ${f}_{xy}$ and ${f}_{yx}$ are equal when continuous (refer back to Theorem 13.3.1), we can rewrite this as $D={f}_{xx}{f}_{yy}-{f}_{xy}^{\mathrm{\hspace{0.17em}2}}$. Then $D$ can be used to test whether the concavity at a point changes depending on direction. If $D>0$, the concavity does not switch (i.e., at that point, the graph is concave up or down in all directions). If $$, the concavity does switch. If $D=0$, our test fails to determine whether concavity switches or not. We state the use of $D$ in the following theorem.
Let $z=f(x,y)$ be defined on an open set containing a critical point $P=({x}_{0},{y}_{0})$ where all second order derivatives of $f$ are continuous at $P$. Define
$$D={f}_{xx}({x}_{0},{y}_{0}){f}_{yy}({x}_{0},{y}_{0})-{f}_{xy}^{\mathrm{\hspace{0.17em}2}}({x}_{0},{y}_{0}).$$ |
If $D>0$ and ${f}_{xx}({x}_{0},{y}_{0})>0$, then $P$ is a relative minimum of $f$.
If $D>0$ and $$, then $P$ is a relative maximum of $f$.
If $$, then $P$ is a saddle point of $f$.
If $D=0$, the test is inconclusive.
Let $\overrightarrow{u}=\u27e8h,k\u27e9$ be a unit vector. Then at the critical point $P$, ${D}_{\overrightarrow{u}}f=0$. This means that along the line $h(y-{y}_{0})=k(x-{x}_{0})$, $P$ is a critical point that is a maximum or minimum according to the sign of ${D}_{\overrightarrow{u}}^{2}f$. Now,
${D}_{\overrightarrow{u}}^{2}f$ | $={D}_{\overrightarrow{u}}({f}_{x}h+{f}_{y}k)$ | ||
$={({f}_{x}h)}_{x}h+{({f}_{x}h)}_{y}k+{({f}_{y}k)}_{x}h+({f}_{y}k)$ | |||
$={f}_{xx}{h}^{2}+2{f}_{xy}hk+{f}_{yy}{k}^{2}$ |
because ${f}_{xy}$ and ${f}_{yx}$ are continuous and therefore equal.
Suppose now that $D>0$. Then we must have ${f}_{xx}\ne 0$, and we can complete the square to see that
$${D}_{\overrightarrow{u}}^{2}f={f}_{xx}{\left(h+\frac{{f}_{xy}k}{{f}_{xx}}\right)}^{2}+{f}_{yy}{k}^{2}-\frac{{f}_{xy}^{\mathrm{\hspace{0.17em}2}}{k}^{2}}{{f}_{xx}}={f}_{xx}\left[{\left(h+\frac{{f}_{xy}k}{{f}_{xx}}\right)}^{2}+\frac{D{k}^{2}}{{f}_{xx}^{\mathrm{\hspace{0.17em}2}}}\right].$$ |
Because we assumed $D>0$, everything in the brackets is positive, and ${D}_{\overrightarrow{u}}^{2}f$ always has the same sign as ${f}_{xx}$. This shows parts 1 and 2.
If $$, our task is easier because we only need to find two different $\overrightarrow{u}$ that give ${D}_{\overrightarrow{u}}^{2}f$ opposite signs. If ${f}_{xx}\ne 0$, let $\overrightarrow{v}=\u27e8-{f}_{xy},{f}_{xx}\u27e9$ and we can choose
$$\begin{array}{cc}\hfill {\overrightarrow{u}}_{1}& =\frac{1}{\parallel \overrightarrow{v}\parallel}\overrightarrow{v}\hfill \\ \hfill {\overrightarrow{u}}_{2}& =\u27e81,0\u27e9\hfill \end{array}\mathit{\hspace{1em}\hspace{1em}}\Rightarrow \mathit{\hspace{1em}\hspace{1em}}\begin{array}{cc}\hfill {D}_{{\overrightarrow{u}}_{1}}^{2}f& =\frac{1}{{\parallel \overrightarrow{v}\parallel}^{2}}{f}_{xx}D\hfill \\ \hfill {D}_{{\overrightarrow{u}}_{2}}^{2}f& ={f}_{xx}.\hfill \end{array}$$ |
Similarly, if ${f}_{yy}\ne 0$, let $\overrightarrow{v}=\u27e8{f}_{yy},-{f}_{xy}\u27e9$ and we can choose
$$\begin{array}{cc}\hfill {\overrightarrow{u}}_{1}& =\frac{1}{\parallel \overrightarrow{v}\parallel}\overrightarrow{v}\hfill \\ \hfill {\overrightarrow{u}}_{2}& =\u27e80,1\u27e9\hfill \end{array}\mathit{\hspace{1em}\hspace{1em}}\Rightarrow \mathit{\hspace{1em}\hspace{1em}}\begin{array}{cc}\hfill {D}_{{\overrightarrow{u}}_{1}}^{2}f& =\frac{1}{{\parallel \overrightarrow{v}\parallel}^{2}}{f}_{yy}D\hfill \\ \hfill {D}_{{\overrightarrow{u}}_{2}}^{2}f& ={f}_{yy}.\hfill \end{array}$$ |
Finally, if ${f}_{xx}={f}_{yy}=0$, then ${D}_{\overrightarrow{u}}^{2}f=2{f}_{xy}hk$ has opposite signs for the vectors ${\overrightarrow{u}}_{1}=\frac{1}{\sqrt{2}}\u27e81,1\u27e9$ and ${\overrightarrow{u}}_{2}=\frac{1}{\sqrt{2}}\u27e81,-1\u27e9$. ∎
We first practice using this test with the function in the previous example, where we visually determined we had a relative maximum and a saddle point.
Let $f(x,y)={x}^{3}-3x-{y}^{2}+4y$ as in Example 13.8.3. Determine whether the function has a relative minimum, maximum, or saddle point at each critical point.
SolutionWe determined previously that the critical points of $f$ are $(-1,2)$ and $(1,2)$. To use the Second Derivative Test, we must find the second partial derivatives of $f$:
$${f}_{xx}=6x;{f}_{yy}=-2;{f}_{xy}=0.$$ |
Thus $D(x,y)=-12x$.
At $(-1,2)$: $D(-1,2)=12>0$, and ${f}_{xx}(-1,2)=-6$. By the Second Derivative Test, $f$ has a relative maximum at $(-1,2)$.
At $(1,2)$: $$. The Second Derivative Test states that $f$ has a saddle point at $(1,2)$.
The Second Derivative Test confirmed what we determined visually.
Find the relative extrema of $f(x,y)={x}^{2}y+{y}^{2}+xy$.
SolutionWe start by finding the first and second partial derivatives of $f$:
${f}_{x}$ | $=2xy+y$ | ${f}_{y}$ | $={x}^{2}+2y+x$ | ||
${f}_{xx}$ | $=2y$ | ${f}_{yy}$ | $=2$ | ||
${f}_{xy}$ | $=2x+1$ | ${f}_{yx}$ | $=2x+1.$ |
We find the critical points by finding where ${f}_{x}$ and ${f}_{y}$ are simultaneously 0 (they are both never undefined). Setting ${f}_{x}=0$, we have:
$${f}_{x}=0\mathit{\hspace{1em}}\Rightarrow \mathit{\hspace{1em}}2xy+y=0\mathit{\hspace{1em}}\Rightarrow \mathit{\hspace{1em}}y(2x+1)=0.$$ |
This implies that for ${f}_{x}=0$, either $y=0$ or $2x+1=0$.
Assume $y=0$ then consider ${f}_{y}=0$:
${f}_{y}$ | $=0$ | ||
${x}^{2}+2y+x$ | $=0,\text{and since}y=0\text{, we have}$ | ||
${x}^{2}+x$ | $=0$ | ||
$x(x+1)$ | $=0.$ |
Thus if $y=0$, we have either $x=0$ or $x=-1$, giving two critical points: $(-1,0)$ and $(0,0)$.
Going back to ${f}_{x}$, now assume $2x+1=0$, i.e., that $x=-1/2$, then consider ${f}_{y}=0$:
${f}_{y}$ | $=0$ | ||
${x}^{2}+2y+x$ | $=0,\text{and since}x=-1/2\text{, we have}$ | ||
$1/4+2y-1/2$ | $=0$ | ||
$y$ | $=1/8.$ |
Thus if $x=-1/2$, $y=1/8$ giving the critical point $(-1/2,1/8)$.
With $D=4y-{(2x+1)}^{2}$, we apply the Second Derivative Test to each critical point.
At $(-1,0)$, $$, so $(-1,0)$ is a saddle point.
At $(0,0)$, $$, so $(0,0)$ is also a saddle point.
At $(-1/2,1/8)$, $D>0$ and ${f}_{xx}>0$, so $(-1/2,1/8)$ is a relative minimum.
^{†}^{†}margin:
(fullscreen)
Λ
Figure 13.8.4 shows a graph of $f$ and the three critical points. Note how this function does not vary much near the critical points — that is, visually it is difficult to determine whether a point is a saddle point or relative minimum (or even a critical point at all!). This is one reason why the Second Derivative Test is so important to have.
When optimizing functions of one variable such as $y=f(x)$, we made use of Theorem 3.1.1, the Extreme Value Theorem, that said that over a closed interval $I$, a continuous function has both a maximum and minimum value. To find these maximum and minimum values, we evaluated $f$ at all critical points in the interval, as well as at the endpoints (the “boundary”) of the interval.
A similar theorem and procedure applies to functions of two variables. A continuous function over a closed set also attains a maximum and minimum value (see the following theorem). We can find these values by evaluating the function at the critical points in the set and over the boundary of the set. After formally stating this extreme value theorem, we give examples.
Let $z=f(x,y)$ be a continuous function on a closed, bounded set $S$. Then $f$ has an absolute maximum and an absolute minimum value on $S$.
Let $f(x,y)={x}^{2}-{y}^{2}+5$ and let $S$ be the triangle with vertices $(-1,-2)$, $(0,1)$ and $(2,-2)$. Find the maximum and minimum values of $f$ on $S$.
SolutionIt can help to see a graph of $f$ along with the set $S$. In Figure 13.8.5(a) the triangle defining $S$ is shown in the $x$-$y$ plane in a dashed line. Above it is the surface of $f$; we are only concerned with the portion of $f$ enclosed by the “triangle” on its surface.
We begin by finding the critical points of $f$. With ${f}_{x}=2x$ and ${f}_{y}=-2y$, we find only one critical point, at $(0,0)$.
We now find the maximum and minimum values that $f$ attains along the boundary of $S$, that is, along the edges of the triangle. In Figure 13.8.5(b) we see the triangle sketched in the plane with the equations of the lines forming its edges labeled.
Start with the bottom edge, along the line $y=-2$. If $y$ is $-2$, then on the surface, we are considering points $f(x,-2)$; that is, our function reduces to $f(x,-2)={x}^{2}-{(-2)}^{2}+5={x}^{2}+1={f}_{1}(x)$. We want to maximize/minimize ${f}_{1}(x)={x}^{2}+1$ on the interval $[-1,2]$. To do so, we evaluate ${f}_{1}(x)$ at its critical points and at the endpoints. The critical points of ${f}_{1}$ are found by setting its derivative equal to 0:
$${f}_{1}^{\prime}(x)=0\mathit{\hspace{1em}\hspace{1em}}\Rightarrow \mathit{\hspace{1em}\hspace{1em}}x=0,$$ |
so that we will need to evaluate $f$ at the points $(-1,-2)$, $(0,-2)$, and $(2,-2)$.
We need to do this process twice more, for the other two edges of the triangle.
Along the left edge, along the line $y=3x+1$, we substitute $3x+1$ in for $y$ in $f(x,y)$:
$$f(x,y)=f(x,3x+1)={x}^{2}-{(3x+1)}^{2}+5=-8{x}^{2}-6x+4={f}_{2}(x).$$ |
We want the maximum and minimum values of ${f}_{2}$ on the interval $[-1,0]$, so we evaluate ${f}_{2}$ at its critical points and the endpoints of the interval. We find the critical points:
$${f}_{2}^{\prime}(x)=-16x-6=0\mathit{\hspace{1em}\hspace{1em}}\Rightarrow \mathit{\hspace{1em}\hspace{1em}}x=-3/8,$$ |
so that we will need to evaluate $f$ at the points $(-1,-2)$, $(-\frac{3}{8},-\frac{1}{8})$, and $(0,1)$.
Finally, we evaluate $f$ along the right edge of the triangle, where $y=-3/2x+1$.
$$f(x,y)=f(x,-3/2x+1)={x}^{2}-{(-3/2x+1)}^{2}+5=-\frac{5}{4}{x}^{2}+3x+4={f}_{3}(x).$$ |
The critical points of ${f}_{3}(x)$ are:
$${f}_{3}^{\prime}(x)=0\mathit{\hspace{1em}\hspace{1em}}\Rightarrow \mathit{\hspace{1em}\hspace{1em}}x=6/5,$$ |
so that we will need to evaluate $f$ at the points $(0,1)$, $(\frac{6}{5},-\frac{4}{5})$, and $(2,-2)$.
We now evaluate $f$ at a total of 7 different places, all shown in Figure 13.8.6.
$$\begin{array}{c}f(-1,-2)=2,f(0,-2)=1,f(2,-2)=5,\hfill \\ \hfill f(-\frac{3}{8},-\frac{1}{8})=\frac{41}{8},f(0,1)=4,\text{and}\hspace{1em}f(\frac{6}{5},-\frac{4}{5})=\frac{29}{5}.\end{array}$$ |
Of all the $z$-values found, the maximum is $\frac{29}{5}$, found at $(\frac{6}{5},-\frac{4}{5})$; the minimum is 1, found at $(0,-2)$.
This portion of the text is entitled “Constrained Optimization” because we want to optimize a function (i.e., find its maximum and/or minimum values) subject to a constraint — some limit to what values the function can attain. In the previous example, we constrained ourselves by considering a function only within the boundary of a triangle. This was largely arbitrary; the function and the boundary were chosen just as an example, with no real “meaning” behind the function or the chosen constraint.
However, solving constrained optimization problems is a very important topic in applied mathematics. The techniques developed here are the basis for solving larger problems, where more than two variables are involved.
We illustrate the technique once more with a classic problem.
The U.S. Postal Service states that the girth+length of Standard Post Package must not exceed 130”. Given a rectangular box, the “length” is the longest side, and the “girth” is twice the width+height.
Given a rectangular box where the width and height are equal, what are the dimensions of the box that give the maximum volume subject to the constraint of the size of a Standard Post Package?
SolutionLet $w$, $h$, and $\mathrm{\ell}$ denote the width, height, and length of a rectangular box; we assume here that $w=h$. The girth is then $2(w+h)=4w$. The volume of the box is $V(w,\mathrm{\ell})=wh\mathrm{\ell}={w}^{2}\mathrm{\ell}$. We wish to maximize this volume subject to the constraint $4w+\mathrm{\ell}\le 130$, or $\mathrm{\ell}\le 130-4w$. (Common sense also indicates that $\mathrm{\ell}>0,w>0$, so that we don’t need to check the boundary where either is zero.)
We begin by finding the critical points of $V$. We find that ${V}_{w}=2w\mathrm{\ell}$ and ${V}_{\mathrm{\ell}}={w}^{2}$; these are simultaneously 0 only when $w=0$. These give a volume of 0, so we can ignore these critical points.
We now consider the volume along the constraint $\mathrm{\ell}=130-4w.$ Along this line, we have:
$$V(w,\mathrm{\ell})=V(w,130-4w)={w}^{2}(130-4w)=130{w}^{2}-4{w}^{3}={V}_{1}(w).$$ |
The constraint is applicable on the $w$-interval $[0,32.5]$ as indicated in the figure. Thus we want to maximize ${V}_{1}$ on $[0,32.5]$.
Finding the critical points of ${V}_{1}$, we take the derivative and set it equal to 0:
$$\begin{array}{c}{V}_{1}^{\prime}(w)=260w-12{w}^{2}=0\hspace{1em}\Rightarrow \hfill \\ \hfill w(260-12w)=0\hspace{1em}\Rightarrow \\ \hfill w=0,\frac{260}{12}\approx 21.67.\end{array}$$ |
We found two critical points: when $w=0$ and when $w=21.67$. We again ignore the $w=0$ solution; the maximum volume, subject to the constraint, comes at $w=h=21.67$, $\mathrm{\ell}=130-4(21.6)=43.33.$ This gives a volume of $V(21.67,43.33)\approx 20,347$in^{3}.
The volume function $V(w,\mathrm{\ell})$ is shown in Figure 13.8.7 along with the constraint $\mathrm{\ell}=130-4w$. As done previously, the constraint is drawn dashed in the $x$-$y$ plane and also along the surface of the function. The point where the volume is maximized is indicated.
It is hard to overemphasize the importance of optimization. In “the real world,” we routinely seek to make something better. By expressing the something as a mathematical function, “making something better” means “optimize some function.”
The techniques shown here are only the beginning of an incredibly important field. Many functions that we seek to optimize are incredibly complex, making the step of “find the gradient and set it equal to $\overrightarrow{0}$” highly nontrivial. Mastery of the principles here are key to being able to tackle these more complicated problems.
T/F: Theorem 13.8.1 states that if $f$ has a critical point at $P$, then $f$ has a relative extrema at $P$.
T/F: A point $P$ is a critical point of $f$ if ${f}_{x}$ and ${f}_{y}$ are both 0 at $P$.
T/F: A point $P$ is a critical point of $f$ if ${f}_{x}$ or ${f}_{y}$ are undefined at $P$.
Explain what it means to “solve a constrained optimization” problem.
In Exercises 5–18., find the critical points of the given function. Use the Second Derivative Test to determine if each critical point corresponds to a relative maximum, minimum, or saddle point.
$f(x,y)=\frac{1}{2}{x}^{2}+2{y}^{2}-8y+4x$
$f(x,y)={x}^{2}+4x+{y}^{2}-9y+3xy$
$f(x,y)={x}^{2}+3{y}^{2}-6y+4xy$
$f(x,y)={\displaystyle \frac{1}{{x}^{2}+{y}^{2}+1}}$
$f(x,y)={x}^{2}+{y}^{3}-3y+1$
$f(x,y)={\displaystyle \frac{1}{3}}{x}^{3}-x+{\displaystyle \frac{1}{3}}{y}^{3}-4y$
$f(x,y)={x}^{2}{y}^{2}$
$f(x,y)={x}^{4}-2{x}^{2}+{y}^{3}-27y-15$
$f(x,y)=\sqrt{16-{\left(x-3\right)}^{2}-{y}^{2}}$
$f(x,y)=\sqrt{{x}^{2}+{y}^{2}}$
$f(x,y)={x}^{3}+3x{y}^{2}-3{x}^{2}-3{y}^{2}+4$
$f(x,y)={y}^{3}+{x}^{2}-6xy+3x+6y-7$
$f(x,y)=3{x}^{2}y+{x}^{2}-6x-3y-2$
$f(x,y)=\left({x}^{2}+3{y}^{2}\right){e}^{-2x}$
In Exercises 19–24., find the absolute maximum and minimum of the function subject to the given constraint.
$f(x,y)={x}^{2}+{y}^{2}+y+1$, constrained to the triangle with vertices $(0,1)$, $(-1,-1)$ and $(1,-1)$.
$f(x,y)=5x-7y$, constrained to the region bounded by $y={x}^{2}$ and $y=1$.
$f(x,y)={x}^{2}+2x+{y}^{2}+2y$, constrained to the region bounded by the circle ${x}^{2}+{y}^{2}=4$.
$f(x,y)=3y-2{x}^{2}$, constrained to the region bounded by the parabola $y={x}^{2}+x-1$ and the line $y=x$.
$f(x,y)=4\left(x+y\right)-\left(2{x}^{2}+{y}^{2}\right)$, constrained to the square with vertices $(0,0)$, $(3,0)$, $(3,3)$, and $(0,3)$.
$f(x,y)={x}^{2}+xy+{y}^{2}$, constrained to the region bounded by the circle ${x}^{2}+{y}^{2}=9$.
Find the dimensions of the box without a top that has a volume of $500$ and the least possible surface area.
Show that there are boxes without a top that have a volume of $500$ and arbitrarily large surface area.