Differentiation of Functions of Several Variables

27 Maxima/Minima Problems

Learning Objectives

  • 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.

One of the most useful applications for derivatives of a function of one variable is the determination of maximum and/or minimum values. This application is also important for functions of two or more variables, but as we have seen in earlier sections of this chapter, the introduction of more independent variables leads to more possible outcomes for the calculations. The main ideas of finding critical points and using derivative tests are still valid, but new wrinkles appear when assessing the results.

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.

Definition

Let z=f\left(x,y\right) be a function of two variables that is defined on an open set containing the point \left({x}_{0},{y}_{0}\right). The point \left({x}_{0},{y}_{0}\right) is called a critical point of a function of two variables f if one of the two following conditions holds:

  1. {f}_{x}\left({x}_{0},{y}_{0}\right)={f}_{y}\left({x}_{0},{y}_{0}\right)=0
  2. Either {f}_{x}\left({x}_{0},{y}_{0}\right)\phantom{\rule{0.2em}{0ex}}\text{or}\phantom{\rule{0.2em}{0ex}}{f}_{y}\left({x}_{0},{y}_{0}\right) does not exist.
Finding Critical Points

Find the critical points of each of the following functions:

  1. f\left(x,y\right)=\sqrt{4{y}^{2}-9{x}^{2}+24y+36x+36}
  2. g\left(x,y\right)={x}^{2}+2xy-4{y}^{2}+4x-6y+4
  1. First, we calculate {f}_{x}\left(x,y\right)\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}{f}_{y}\left(x,y\right)\text{:}
    \begin{array}{ccc}\hfill {f}_{x}\left(x,y\right)& =\hfill & \frac{1}{2}\left(-18x+36\right){\left(4{y}^{2}-9{x}^{2}+24y+36x+36\right)}^{-1\text{/}2}\hfill \\ & =\hfill & \frac{-9x+18}{\sqrt{4{y}^{2}-9{x}^{2}+24y+36x+36}}\hfill \\ \hfill {f}_{y}\left(x,y\right)& =\hfill & \frac{1}{2}\left(8y+24\right){\left(4{y}^{2}-9{x}^{2}+24y+36x+36\right)}^{-1\text{/}2}\hfill \\ & =\hfill & \frac{4y+12}{\sqrt{4{y}^{2}-9{x}^{2}+24y+36x+36}}.\hfill \end{array}


    Next, we set each of these expressions equal to zero:

    \begin{array}{ccc}\hfill \frac{-9x+18}{\sqrt{4{y}^{2}-9{x}^{2}+24y+36x+36}}& =\hfill & 0\hfill \\ \hfill \frac{4y+12}{\sqrt{4{y}^{2}-9{x}^{2}+24y+36x+36}}& =\hfill & 0.\hfill \end{array}


    Then, multiply each equation by its common denominator:

    \begin{array}{ccc}\hfill -9x+18& =\hfill & 0\hfill \\ \hfill 4y+12& =\hfill & 0.\hfill \end{array}


    Therefore, x=2 and y=-3, so \left(2,-3\right) 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}{ccc}\hfill 4{y}^{2}-9{x}^{2}+24y+36x+36& =\hfill & 0\hfill \\ \hfill 4{y}^{2}-9{x}^{2}+24y+36x& =\hfill & -36\hfill \\ \hfill 4{y}^{2}+24y-9{x}^{2}+36x& =\hfill & -36\hfill \\ \hfill 4\left({y}^{2}+6y\right)-9\left({x}^{2}-4x\right)& =\hfill & -36\hfill \\ \hfill 4\left({y}^{2}+6y+9\right)-9\left({x}^{2}-4x+4\right)& =\hfill & -36+36-36\hfill \\ \hfill 4{\left(y+3\right)}^{2}-9{\left(x-2\right)}^{2}& =\hfill & -36.\hfill \end{array}


    Dividing both sides by -36 puts the equation in standard form:

    \begin{array}{ccc}\hfill \frac{4{\left(y+3\right)}^{2}}{-36}-\frac{9{\left(x-2\right)}^{2}}{-36}& =\hfill & 1\hfill \\ \hfill \frac{{\left(x-2\right)}^{2}}{4}-\frac{{\left(y+3\right)}^{2}}{9}& =\hfill & 1.\hfill \end{array}


    Notice that point \left(2,-3\right) is the center of the hyperbola.

  2. First, we calculate {g}_{x}\left(x,y\right)\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}{g}_{y}\left(x,y\right)\text{:}
    \begin{array}{ccc}\hfill {g}_{x}\left(x,y\right)& =\hfill & 2x+2y+4\hfill \\ \hfill {g}_{y}\left(x,y\right)& =\hfill & 2x-8y-6.\hfill \end{array}


    Next, we set each of these expressions equal to zero, which gives a system of equations in x\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}y\text{:}

    \begin{array}{ccc}\hfill 2x+2y+4& =\hfill & 0\hfill \\ \hfill 2x-8y-6& =\hfill & 0.\hfill \end{array}


    Subtracting the second equation from the first gives 10y+10=0,\phantom{\rule{0.2em}{0ex}}\text{so}\phantom{\rule{0.2em}{0ex}}y=-1. Substituting this into the first equation gives 2x+2\left(-1\right)+4=0, so x=-1. Therefore \left(-1,-1\right) is a critical point of g ((Figure)). There are no points in {ℝ}^{2} that make either partial derivative not exist.

    The function g\left(x,y\right) has a critical point at \left(-1,-1,6\right).

    The function g(x, y) = x2 + 2xy – 4y2 + 4x – 7y + 4 is shown with critical point (–1, –1, 6). The critical point is located where the derivative in the x and y directions are both zero.

Find the critical point of the function f\left(x,y\right)={x}^{3}+2xy-2x-4y.

\left(2,-5\right)

Hint

Calculate {f}_{x}\left(x,y\right) and {f}_{y}\left(x,y\right), then set them equal to zero.

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.

Definition

Let z=f\left(x,y\right) be a function of two variables that is defined and continuous on an open set containing the point \left({x}_{0},{y}_{0}\right). Then f has a local maximum at \left({x}_{0},{y}_{0}\right) if

f\left({x}_{0},{y}_{0}\right)\ge f\left(x,y\right)

for all points \left(x,y\right) within some disk centered at \left({x}_{0},{y}_{0}\right). The number f\left({x}_{0},{y}_{0}\right) is called a local maximum value. If the preceding inequality holds for every point \left(x,y\right) in the domain of f, then f has a global maximum (also called an absolute maximum) at \left({x}_{0},{y}_{0}\right).

The function f has a local minimum at \left({x}_{0},{y}_{0}\right) if

f\left({x}_{0},{y}_{0}\right)\le f\left(x,y\right)

for all points \left(x,y\right) within some disk centered at \left({x}_{0},{y}_{0}\right). The number f\left({x}_{0},{y}_{0}\right) is called a local minimum value. If the preceding inequality holds for every point \left(x,y\right) in the domain of f, then f has a global minimum (also called an absolute minimum) at \left({x}_{0},{y}_{0}\right).

If f\left({x}_{0},{y}_{0}\right) is either a local maximum or local minimum value, then it is called a local extremum (see the following figure).

The graph of z=\sqrt{16-{x}^{2}-{y}^{2}} has a maximum value when \left(x,y\right)=\left(0,0\right). It attains its minimum value at the boundary of its domain, which is the circle {x}^{2}+{y}^{2}=16.

The function z = the square root of (16 – x2 – y2) is shown, which is the upper hemisphere of radius 4 with center at the origin. In the xy plane, the circle with radius 4 and center at the origin is highlighted; it has equation x2 + y2 = 16.

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.

Fermat’s Theorem for Functions of Two Variables

Let z=f\left(x,y\right) be a function of two variables that is defined and continuous on an open set containing the point \left({x}_{0},{y}_{0}\right). Suppose {f}_{x} and {f}_{y} each exists at \left({x}_{0},{y}_{0}\right). If f has a local extremum at \left({x}_{0},{y}_{0}\right), then \left({x}_{0},{y}_{0}\right) is a critical point of f.

Second Derivative Test

Consider the function f\left(x\right)={x}^{3}. This function has a critical point at x=0, since f\prime \left(0\right)=3{\left(0\right)}^{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.

Graph of the function z={x}^{2}-{y}^{2}. This graph has a saddle point at the origin.

The function z = x2 – y2 is shown, which is roughly saddle looking, with the function achieving maxima along the x and y axes.

In this graph, the origin is a saddle point. This is because the first partial derivatives of f\left(x,y\right)={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.

Definition

Given the function z=f\left(x,y\right), the point \left({x}_{0},{y}_{0},f\left({x}_{0},{y}_{0}\right)\right) is a saddle point if both {f}_{0}\left({x}_{0},{y}_{0}\right)=0 and {f}_{y}\left({x}_{0},{y}_{0}\right)=0, but f does not have a local extremum at \left({x}_{0},{y}_{0}\right).

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\text{″}\left({x}_{0}\right) in the second derivative test for a function of one variable.

Second Derivative Test

Let z=f\left(x,y\right) be a function of two variables for which the first- and second-order partial derivatives are continuous on some disk containing the point \left({x}_{0},{y}_{0}\right). Suppose {f}_{x}\left({x}_{0},{y}_{0}\right)=0 and {f}_{y}\left({x}_{0},{y}_{0}\right)=0. Define the quantity

D={f}_{xx}\left({x}_{0},{y}_{0}\right){f}_{yy}\left({x}_{0},{y}_{0}\right)-{\left({f}_{xy}\left({x}_{0},{y}_{0}\right)\right)}^{2}.
  1. If D>0 and {f}_{xx}\left({x}_{0},{y}_{0}\right)>0, then f has a local minimum at \left({x}_{0},{y}_{0}\right).
  2. If D>0 and {f}_{xx}\left({x}_{0},{y}_{0}\right)<0, then f has a local maximum at \left({x}_{0},{y}_{0}\right).
  3. If D<0, then f has a saddle point at \left({x}_{0},{y}_{0}\right).
  4. If D=0, then the test is inconclusive.

See (Figure).

The second derivative test can often determine whether a function of two variables has a local minima (a), a local maxima (b), or a saddle point (c).

This figure consists of three figures labeled a, b, and c. Figure a has two bulbous mounds pointing down, and the two extrema are listed as the local minima. Figure b has two bulbous mounds pointed up, and the two extrema are listed as the local maxima. Figure c is shaped like a saddle, and in the middle of the saddle, a point is marked as the saddle point.

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.

Problem-Solving Strategy: Using the Second Derivative Test for Functions of Two Variables

Let z=f\left(x,y\right) be a function of two variables for which the first- and second-order partial derivatives are continuous on some disk containing the point \left({x}_{0},{y}_{0}\right). To apply the second derivative test to find local extrema, use the following steps:

  1. Determine the critical points \left({x}_{0},{y}_{0}\right) of the function f where {f}_{x}\left({x}_{0},{y}_{0}\right)={f}_{y}\left({x}_{0},{y}_{0}\right)=0. Discard any points where at least one of the partial derivatives does not exist.
  2. Calculate the discriminant D={f}_{xx}\left({x}_{0},{y}_{0}\right){f}_{yy}\left({x}_{0},{y}_{0}\right)-{\left({f}_{xy}\left({x}_{0},{y}_{0}\right)\right)}^{2} for each critical point of f.
  3. Apply (Figure) to determine whether each critical point is a local maximum, local minimum, or saddle point, or whether the theorem is inconclusive.
Using the Second Derivative Test

Find the critical points for each of the following functions, and use the second derivative test to find the local extrema:

  1. f\left(x,y\right)=4{x}^{2}+9{y}^{2}+8x-36y+24
  2. g\left(x,y\right)=\frac{1}{3}{x}^{3}+{y}^{2}+2xy-6x-3y+4
  1. Step 1 of the problem-solving strategy involves finding the critical points of f. To do this, we first calculate {f}_{x}\left(x,y\right) and {f}_{y}\left(x,y\right), then set each of them equal to zero:
    \begin{array}{ccc}\hfill {f}_{x}\left(x,y\right)& =\hfill & 8x+8\hfill \\ \hfill {f}_{y}\left(x,y\right)& =\hfill & 18y-36.\hfill \end{array}


    Setting them equal to zero yields the system of equations

    \begin{array}{ccc}\hfill 8x+8& =\hfill & 0\hfill \\ \hfill 18y-36& =\hfill & 0.\hfill \end{array}


    The solution to this system is x=-1 and y=2. Therefore \left(-1,2\right) 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}{ccc}\hfill {f}_{xx}\left(x,y\right)& =\hfill & 8\hfill \\ \hfill {f}_{xy}\left(x,y\right)& =\hfill & 0\hfill \\ \hfill {f}_{yy}\left(x,y\right)& =\hfill & 18.\hfill \end{array}


    Therefore, D={f}_{xx}\left(-1,2\right){f}_{yy}\left(-1,2\right)-{\left({f}_{xy}\left(-1,2\right)\right)}^{2}=\left(8\right)\left(18\right)-{\left(0\right)}^{2}=144.
    Step 3 states to check (Figure). Since D>0 and {f}_{xx}\left(-1,2\right)>0, this corresponds to case 1. Therefore, f has a local minimum at \left(-1,2\right) as shown in the following figure.

    The function f\left(x,y\right) has a local minimum at \left(-1,2,-16\right).

    The function f(x, y) = 4x2 + 9y2 + 8x – 36y + 24 is shown with local minimum at (–1, 2, –16). The shape is a plane curving up on both ends parallel to the y axis.

  2. For step 1, we first calculate {g}_{x}\left(x,y\right) and {g}_{y}\left(x,y\right), then set each of them equal to zero:
    \begin{array}{rrr}{g}_{x}\left(x,y\right)& =\hfill & {x}^{2}+2y-6\hfill \\ \hfill {g}_{y}\left(x,y\right)& =\hfill & 2y+2x-3.\hfill \end{array}


    Setting them equal to zero yields the system of equations

    \begin{array}{ccc}\hfill {x}^{2}+2y-6& =\hfill & 0\hfill \\ \hfill 2y+2x-3& =\hfill & 0.\hfill \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}{ccc}\hfill {x}^{2}+3-2x-6& =\hfill & 0\hfill \\ \hfill {x}^{2}-2x-3& =\hfill & 0\hfill \\ \hfill \left(x-3\right)\left(x+1\right)& =\hfill & 0.\hfill \end{array}

    Therefore, x=-1 or x=3. Substituting these values into the equation y=\frac{3-2x}{2} yields the critical points \left(-1,\frac{5}{2}\right) and \left(3,-\frac{3}{2}\right).

    Step 2 involves calculating the second partial derivatives of g\text{:}

    \begin{array}{ccc}\hfill {g}_{xx}\left(x,y\right)& =\hfill & 2x\hfill \\ \hfill {g}_{xy}\left(x,y\right)& =\hfill & 2\hfill \\ \hfill {g}_{yy}\left(x,y\right)& =\hfill & 2.\hfill \end{array}


    Then, we find a general formula for D\text{:}

    \begin{array}{cc}\hfill D& ={g}_{xx}\left({x}_{0},{y}_{0}\right){g}_{yy}\left({x}_{0},{y}_{0}\right)-{\left({g}_{xy}\left({x}_{0},{y}_{0}\right)\right)}^{2}\hfill \\ & =\left(2{x}_{0}\right)\left(2\right)-{2}^{2}\hfill \\ & =4{x}_{0}-4.\hfill \end{array}


    Next, we substitute each critical point into this formula:

    \begin{array}{ccc}\hfill D\left(-1,\frac{5}{2}\right)& =\hfill & \left(2\left(-1\right)\right)\left(2\right)-{\left(2\right)}^{2}=-4-4=-8\hfill \\ \hfill D\left(3,-\frac{3}{2}\right)& =\hfill & \left(2\left(3\right)\right)\left(2\right)-{\left(2\right)}^{2}=12-4=8.\hfill \end{array}


    In step 3, we note that, applying (Figure) to point \left(-1,\frac{5}{2}\right) leads to case 3, which means that \left(-1,\frac{5}{2}\right) is a saddle point. Applying the theorem to point \left(3,-\frac{3}{2}\right) leads to case 1, which means that \left(3,-\frac{3}{2}\right) corresponds to a local minimum as shown in the following figure.

    The function g\left(x,y\right) has a local minimum and a saddle point.

    The function f(x, y) = (1/3)x3 + y2 + + 2xy – 6x – 3y + 4 is shown with local minimum at (3, –3/2, –29/4) and saddle point at (−1, 5/2, 41/12). The shape is a plane curving up on the corners near (4, 3) and (−2, −2).

Use the second derivative to find the local extrema of the function

f\left(x,y\right)={x}^{3}+2xy-6x-4{y}^{2}.

\left(\frac{4}{3},\frac{1}{3}\right) is a saddle point, \left(-\frac{3}{2},-\frac{3}{8}\right) is a local maximum.

Hint

Follow the problem-solving strategy for applying the second derivative test.

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.

Extreme Value Theorem

A continuous function f\left(x,y\right) on a closed and bounded set D in the plane attains an absolute maximum value at some point of D and an absolute minimum value at some point of D.

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.

Finding Extreme Values of a Function of Two Variables

Assume z=f\left(x,y\right) is a differentiable function of two variables defined on a closed, bounded set D. Then f will attain the absolute maximum value and the absolute minimum value, which are, respectively, the largest and smallest values found among the following:

  1. The values of f at the critical points of f in D.
  2. The values of f on the boundary of D.

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 \left({x}_{0},{y}_{0}\right) of D that’s an absolute extremum is also a local extremum; hence, \left({x}_{0},{y}_{0}\right) 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.

Problem-Solving Strategy: Finding Absolute Maximum and Minimum Values

Let z=f\left(x,y\right) be a continuous function of two variables defined on a closed, bounded set D, and assume f is differentiable on D. To find the absolute maximum and minimum values of f on D, do the following:

  1. Determine the critical points of f in D.
  2. Calculate f at each of these critical points.
  3. Determine the maximum and minimum values of f on the boundary of its domain.
  4. The maximum and minimum values of f will occur at one of the values obtained in steps 2\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}3.

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 (Figure). The same approach can be used for other shapes such as circles and ellipses.

If the boundary of the set D is a more complicated curve defined by a function g\left(x,y\right)=c for some constant c, and the first-order partial derivatives of g exist, then the method of Lagrange multipliers can prove useful for determining the extrema of f on the boundary. The method of Lagrange multipliers is introduced in Lagrange Multipliers.

Finding Absolute Extrema

Use the problem-solving strategy for finding absolute extrema of a function to determine the absolute extrema of each of the following functions:

  1. f\left(x,y\right)={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
  2. g\left(x,y\right)={x}^{2}+{y}^{2}+4x-6y on the domain defined by {x}^{2}+{y}^{2}\le 16
  1. Using the problem-solving strategy, step 1 involves finding the critical points of f on its domain. Therefore, we first calculate {f}_{x}\left(x,y\right) and {f}_{y}\left(x,y\right), then set them each equal to zero:
    \begin{array}{ccc}\hfill {f}_{x}\left(x,y\right)& =\hfill & 2x-2y-4\hfill \\ \hfill {f}_{y}\left(x,y\right)& =\hfill & -2x+8y-2.\hfill \end{array}


    Setting them equal to zero yields the system of equations

    \begin{array}{ccc}\hfill 2x-2y-4& =\hfill & 0\hfill \\ \hfill -2x+8y-2& =\hfill & 0.\hfill \end{array}


    The solution to this system is x=3 and y=1. Therefore \left(3,1\right) is a critical point of f. Calculating f\left(3,1\right) gives f\left(3,1\right)=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:

    Graph of the domain of the function f\left(x,y\right)={x}^{2}-2xy+4{y}^{2}-4x-2y+24.

    A rectangle is drawn in the first quadrant with one corner at the origin, horizontal length 4, and height 2. This rectangle is marked D, and the sides are marked in counterclockwise order from the side overlapping the x axis L1, L2, L3, and L4.


    {L}_{1} is the line segment connecting \left(0,0\right) and \left(4,0\right), and it can be parameterized by the equations x\left(t\right)=t,y\left(t\right)=0 for 0\le t\le 4. Define g\left(t\right)=f\left(x\left(t\right),y\left(t\right)\right). This gives g\left(t\right)={t}^{2}-4t+24. Differentiating g leads to {g}^{\prime }\left(t\right)=2t-4. Therefore, g has a critical value at t=2, which corresponds to the point \left(2,0\right). Calculating f\left(2,0\right) gives the z-value 20.
    {L}_{2} is the line segment connecting \left(4,0\right) and \left(4,2\right), and it can be parameterized by the equations x\left(t\right)=4,y\left(t\right)=t for 0\le t\le 2. Again, define g\left(t\right)=f\left(x\left(t\right),y\left(t\right)\right). This gives g\left(t\right)=4{t}^{2}-10t+24. Then, {g}^{\prime }\left(t\right)=8t-10. g has a critical value at t=\frac{5}{4}, which corresponds to the point \left(0,\frac{5}{4}\right). Calculating f\left(0,\frac{5}{4}\right) gives the z-value 27.75.
    {L}_{3} is the line segment connecting \left(0,2\right) and \left(4,2\right), and it can be parameterized by the equations x\left(t\right)=t,y\left(t\right)=2 for 0\le t\le 4. Again, define g\left(t\right)=f\left(x\left(t\right),y\left(t\right)\right). This gives g\left(t\right)={t}^{2}-8t+36. The critical value corresponds to the point \left(4,2\right). So, calculating f\left(4,2\right) gives the z-value 20.
    {L}_{4} is the line segment connecting \left(0,0\right) and \left(0,2\right), and it can be parameterized by the equations x\left(t\right)=0,y\left(t\right)=t for 0\le t\le 2. This time, g\left(t\right)=4{t}^{2}-2t+24 and the critical value t=\frac{1}{4} correspond to the point \left(0,\frac{1}{4}\right). Calculating f\left(0,\frac{1}{4}\right) gives the z-value 23.75.
    We also need to find the values of f\left(x,y\right) at the corners of its domain. These corners are located at \left(0,0\right),\left(4,0\right),\left(4,2\right)\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}\left(0,2\right)\text{:}

    *** QuickLaTeX cannot compile formula:
    \begin{array}{}\\ \hfill f\left(0,0\right)& =\hfill & {\left(0\right)}^{2}-2\left(0\right)\left(0\right)+4{\left(0\right)}^{2}-4\left(0\right)-2\left(0\right)+24\hfill & =\hfill & 24\hfill \\ \hfill f\left(4,0\right)& =\hfill & {\left(4\right)}^{2}-2\left(4\right)\left(0\right)+4{\left(0\right)}^{2}-4\left(4\right)-2\left(0\right)+24\hfill & =\hfill & 24\hfill \\ \hfill f\left(4,2\right)& =\hfill & {\left(4\right)}^{2}-2\left(4\right)\left(2\right)+4{\left(2\right)}^{2}-4\left(4\right)-2\left(2\right)+24\hfill & =\hfill & 20\hfill \\ \hfill f\left(0,2\right)& =\hfill & {\left(0\right)}^{2}-2\left(0\right)\left(2\right)+4{\left(2\right)}^{2}-4\left(0\right)-2\left(2\right)+24\hfill & =\hfill & 36.\hfill \end{array}
    
    *** Error message:
    Missing # inserted in alignment preamble.
    leading text: $\begin{array}{}
    Missing $ inserted.
    leading text: $\begin{array}{}\\ \hfill f\left
    Missing $ inserted.
    leading text: $\begin{array}{}\\ \hfill f\left(0,0\right)&
    Extra alignment tab has been changed to \cr.
    leading text: $\begin{array}{}\\ \hfill f\left(0,0\right)&
    Extra alignment tab has been changed to \cr.
    leading text: ...ay}{}\\ \hfill f\left(0,0\right)& =\hfill &
    Missing $ inserted.
    leading text: ... \hfill f\left(0,0\right)& =\hfill & {\left
    Extra }, or forgotten $.
    leading text: ...left(0,0\right)& =\hfill & {\left(0\right)}
    Missing } inserted.
    leading text: ...-4\left(0\right)-2\left(0\right)+24\hfill &
    Extra }, or forgotten $.
    leading text: ...-4\left(0\right)-2\left(0\right)+24\hfill &
    
    


    The absolute maximum value is 36, which occurs at \left(0,2\right), and the global minimum value is 20, which occurs at both \left(4,2\right) and \left(2,0\right) as shown in the following figure.

    The function f\left(x,y\right) has two global minima and one global maximum over its domain.

    The function f(x, y) = x2 − 2xy – 4x + 4y2 – 2y + 24 is shown with local minima at (4, 2, 20) and (2, 0, 20) and local maximum at (0, 2, 36). The shape is a plane curving up on the corners significantly near (0, 2) and slightly less near (4, 0).

  2. Using the problem-solving strategy, step 1 involves finding the critical points of g on its domain. Therefore, we first calculate {g}_{x}\left(x,y\right) and {g}_{y}\left(x,y\right), then set them each equal to zero:
    \begin{array}{ccc}\hfill {g}_{x}\left(x,y\right)& =\hfill & 2x+4\hfill \\ \hfill {g}_{y}\left(x,y\right)& =\hfill & 2y-6.\hfill \end{array}


    Setting them equal to zero yields the system of equations

    \begin{array}{ccc}\hfill 2x+4& =\hfill & 0\hfill \\ \hfill 2y-6& =\hfill & 0.\hfill \end{array}


    The solution to this system is x=-2 and y=3. Therefore, \left(-2,3\right) is a critical point of g. Calculating g\left(-2,3\right), we get

    g\left(-2,3\right)={\left(-2\right)}^{2}+{3}^{2}+4\left(-2\right)-6\left(3\right)=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.

    Graph of the domain of the function g\left(x,y\right)={x}^{2}+{y}^{2}+4x-6y.

    A filled-in circle marked D of radius four with center at the origin.


    The boundary of the domain of g can be parameterized using the functions x\left(t\right)=4\phantom{\rule{0.2em}{0ex}}\text{cos}\phantom{\rule{0.2em}{0ex}}t,y\left(t\right)=4\phantom{\rule{0.2em}{0ex}}\text{sin}\phantom{\rule{0.2em}{0ex}}t for 0\le t\le 2\pi . Define h\left(t\right)=g\left(x\left(t\right),y\left(t\right)\right)\text{:}

    \begin{array}{cc}\hfill h\left(t\right)& =g\left(x\left(t\right),y\left(t\right)\right)\hfill \\ & ={\left(4\phantom{\rule{0.2em}{0ex}}\text{cos}\phantom{\rule{0.2em}{0ex}}t\right)}^{2}+{\left(4\phantom{\rule{0.2em}{0ex}}\text{sin}\phantom{\rule{0.2em}{0ex}}t\right)}^{2}+4\left(4\phantom{\rule{0.2em}{0ex}}\text{cos}\phantom{\rule{0.2em}{0ex}}t\right)-6\left(4\phantom{\rule{0.2em}{0ex}}\text{sin}\phantom{\rule{0.2em}{0ex}}t\right)\hfill \\ & =16{\text{cos}}^{2}\phantom{\rule{0.1em}{0ex}}t+16{\text{sin}}^{2}\phantom{\rule{0.1em}{0ex}}t+16\phantom{\rule{0.2em}{0ex}}\text{cos}\phantom{\rule{0.2em}{0ex}}t-24\phantom{\rule{0.2em}{0ex}}\text{sin}\phantom{\rule{0.2em}{0ex}}t\hfill \\ & =16+16\phantom{\rule{0.2em}{0ex}}\text{cos}\phantom{\rule{0.2em}{0ex}}t-24\phantom{\rule{0.2em}{0ex}}\text{sin}\phantom{\rule{0.2em}{0ex}}t.\hfill \end{array}


    Setting {h}^{\prime }\left(t\right)=0 leads to

    \begin{array}{ccc}\hfill -16\phantom{\rule{0.2em}{0ex}}\text{sin}\phantom{\rule{0.2em}{0ex}}t-24\phantom{\rule{0.2em}{0ex}}\text{cos}\phantom{\rule{0.2em}{0ex}}t& =\hfill & 0\hfill \\ \hfill -16\phantom{\rule{0.2em}{0ex}}\text{sin}\phantom{\rule{0.2em}{0ex}}t& =\hfill & 24\phantom{\rule{0.2em}{0ex}}\text{cos}\phantom{\rule{0.2em}{0ex}}t\hfill \\ \hfill \frac{-16\phantom{\rule{0.2em}{0ex}}\text{sin}\phantom{\rule{0.2em}{0ex}}t}{-16\phantom{\rule{0.2em}{0ex}}\text{cos}\phantom{\rule{0.2em}{0ex}}t}& =\hfill & \frac{24\phantom{\rule{0.2em}{0ex}}\text{cos}\phantom{\rule{0.2em}{0ex}}t}{-16\phantom{\rule{0.2em}{0ex}}\text{cos}\phantom{\rule{0.2em}{0ex}}t}\hfill \\ \hfill \text{tan}\phantom{\rule{0.2em}{0ex}}t& =\hfill & -\frac{3}{2}.\hfill \end{array}


    This equation has two solutions over the interval 0\le t\le 2\pi . One is t=\pi -\text{arctan}\left(\frac{3}{2}\right) and the other is t=2\pi -\text{arctan}\left(\frac{3}{2}\right). For the first angle,

    \begin{array}{ccc}\hfill \text{sin}\phantom{\rule{0.2em}{0ex}}t& =\hfill & \text{sin}\left(\pi -\text{arctan}\left(\frac{3}{2}\right)\right)=\text{sin}\left(\text{arctan}\left(\frac{3}{2}\right)\right)=\frac{3\sqrt{13}}{13}\hfill \\ \hfill \text{cos}\phantom{\rule{0.2em}{0ex}}t& =\hfill & \text{cos}\left(\pi -\text{arctan}\left(\frac{3}{2}\right)\right)=\text{−}\text{cos}\left(\text{arctan}\left(\frac{3}{2}\right)\right)=-\frac{2\sqrt{13}}{13}.\hfill \end{array}


    Therefore, x\left(t\right)=4\phantom{\rule{0.2em}{0ex}}\text{cos}\phantom{\rule{0.2em}{0ex}}t=-\frac{8\sqrt{13}}{13} and y\left(t\right)=4\phantom{\rule{0.2em}{0ex}}\text{sin}\phantom{\rule{0.2em}{0ex}}t=\frac{12\sqrt{13}}{13}, so \left(-\frac{8\sqrt{13}}{13},\frac{12\sqrt{13}}{13}\right) is a critical point on the boundary and

    \begin{array}{cc}\hfill g\left(-\frac{8\sqrt{13}}{13},\frac{12\sqrt{13}}{13}\right)& ={\left(-\frac{8\sqrt{13}}{13}\right)}^{2}+{\left(\frac{12\sqrt{13}}{13}\right)}^{2}+4\left(-\frac{8\sqrt{13}}{13}\right)-6\left(\frac{12\sqrt{13}}{13}\right)\hfill \\ & =\frac{144}{13}+\frac{64}{13}-\frac{32\sqrt{13}}{13}-\frac{72\sqrt{13}}{13}\hfill \\ & =\frac{208-104\sqrt{13}}{13}\approx -12.844.\hfill \end{array}


    For the second angle,

    \begin{array}{ccc}\hfill \text{sin}\phantom{\rule{0.2em}{0ex}}t& =\hfill & \text{sin}\left(2\pi -\text{arctan}\left(\frac{3}{2}\right)\right)=\text{−}\text{sin}\left(\text{arctan}\left(\frac{3}{2}\right)\right)=-\frac{3\sqrt{13}}{13}\hfill \\ \hfill \text{cos}\phantom{\rule{0.2em}{0ex}}t& =\hfill & \text{cos}\left(2\pi -\text{arctan}\left(\frac{3}{2}\right)\right)=\text{cos}\left(\text{arctan}\left(\frac{3}{2}\right)\right)=\frac{2\sqrt{13}}{13}.\hfill \end{array}


    Therefore, x\left(t\right)=4\phantom{\rule{0.2em}{0ex}}\text{cos}\phantom{\rule{0.2em}{0ex}}t=\frac{8\sqrt{13}}{13} and y\left(t\right)=4\phantom{\rule{0.2em}{0ex}}\text{sin}\phantom{\rule{0.2em}{0ex}}t=-\frac{12\sqrt{13}}{13}, so \left(\frac{8\sqrt{13}}{13},-\frac{12\sqrt{13}}{13}\right) is a critical point on the boundary and

    \begin{array}{cc}\hfill g\left(\frac{8\sqrt{13}}{13},-\frac{12\sqrt{13}}{13}\right)& ={\left(\frac{8\sqrt{13}}{13}\right)}^{2}+{\left(-\frac{12\sqrt{13}}{13}\right)}^{2}+4\left(\frac{8\sqrt{13}}{13}\right)-6\left(-\frac{12\sqrt{13}}{13}\right)\hfill \\ & =\frac{144}{13}+\frac{64}{13}+\frac{32\sqrt{13}}{13}+\frac{72\sqrt{13}}{13}\hfill \\ & =\frac{208+104\sqrt{13}}{13}\approx 44.844.\hfill \end{array}


    The absolute minimum of g is -13, which is attained at the point \left(-2,3\right), 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 \left(\frac{8\sqrt{13}}{13},-\frac{12\sqrt{13}}{13}\right). These are the absolute extrema of g on D as shown in the following figure.

    The function f\left(x,y\right) has a local minimum and a local maximum.

    The function f(x, y) = x2 + 4x + y2 – 6y is shown with local minimum at (–12/5, 16/5, –64/5) and local maximum at (12/5, −16/5, 224/5). The shape is a plane curving up from near (−4, 4) to (4, −4).

Use the problem-solving strategy for finding absolute extrema of a function to find the absolute extrema of the function

f\left(x,y\right)=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.

The absolute minimum occurs at \left(1,0\right)\text{:} f\left(1,0\right)=-1.

The absolute maximum occurs at \left(0,3\right)\text{:} f\left(0,3\right)=63.

Hint

Calculate {f}_{x}\left(x,y\right) and {f}_{y}\left(x,y\right), and set them equal to zero. Then, calculate f for each critical point and find the extrema of f on the boundary of D.

Chapter Opener: Profitable Golf Balls
(credit: modification of work by oatsy40, Flickr)

A basket full of golf balls.

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\left(x,y\right)=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.

Using the problem-solving strategy, step 1 involves finding the critical points of f on its domain. Therefore, we first calculate {f}_{x}\left(x,y\right) and {f}_{y}\left(x,y\right), then set them each equal to zero:

\begin{array}{ccc}\hfill {f}_{x}\left(x,y\right)& =\hfill & 48-2x-2y\hfill \\ \hfill {f}_{y}\left(x,y\right)& =\hfill & 96-2x-18y.\hfill \end{array}

Setting them equal to zero yields the system of equations

\begin{array}{ccc}\hfill 48-2x-2y& =\hfill & 0\hfill \\ \hfill 96-2x-18y& =\hfill & 0.\hfill \end{array}

The solution to this system is x=21 and y=3. Therefore \left(21,3\right) is a critical point of f. Calculating f\left(21,3\right) gives f\left(21,3\right)=48\left(21\right)+96\left(3\right)-{21}^{2}-2\left(21\right)\left(3\right)-9{\left(3\right)}^{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.

Graph of the domain of the function f\left(x,y\right)=48x+96y-{x}^{2}-2xy-9{y}^{2}.

A rectangle is drawn in the first quadrant with one corner at the origin, horizontal length 50, and height 25. This rectangle is marked D, and the sides are marked in counterclockwise order from the side overlapping the x axis L1, L2, L3, and L4.

{L}_{1} is the line segment connecting \left(0,0\right) and \left(50,0\right), and it can be parameterized by the equations x\left(t\right)=t,y\left(t\right)=0 for 0\le t\le 50. We then define g\left(t\right)=f\left(x\left(t\right),y\left(t\right)\right)\text{:}

\begin{array}{cc}\hfill g\left(t\right)& =f\left(x\left(t\right),y\left(t\right)\right)\hfill \\ & =f\left(t,0\right)\hfill \\ & =48t+96\left(0\right)-{y}^{2}-2\left(t\right)\left(0\right)-9{\left(0\right)}^{2}\hfill \\ & =48t-{t}^{2}.\hfill \end{array}

Setting {g}^{\prime }\left(t\right)=0 yields the critical point t=24, which corresponds to the point \left(24,0\right) in the domain of f. Calculating f\left(24,0\right) gives 576.

{L}_{2} is the line segment connecting and \left(50,25\right), and it can be parameterized by the equations x\left(t\right)=50,y\left(t\right)=t for 0\le t\le 25. Once again, we define g\left(t\right)=f\left(x\left(t\right),y\left(t\right)\right)\text{:}

\begin{array}{cc}\hfill g\left(t\right)& =f\left(x\left(t\right),y\left(t\right)\right)\hfill \\ & =f\left(50,t\right)\hfill \\ & =48\left(50\right)+96t-{50}^{2}-2\left(50\right)t-9{t}^{2}\hfill \\ & =-9{t}^{2}-4t-100.\hfill \end{array}

This function has a critical point at t=-\frac{2}{9}, which corresponds to the point \left(50,-\frac{2}{9}\right). This point is not in the domain of f.

{L}_{3} is the line segment connecting \left(0,25\right)\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}\left(50,25\right), and it can be parameterized by the equations x\left(t\right)=t,y\left(t\right)=25 for 0\le t\le 50. We define g\left(t\right)=f\left(x\left(t\right),y\left(t\right)\right)\text{:}

\begin{array}{cc}\hfill g\left(t\right)& =f\left(x\left(t\right),y\left(t\right)\right)\hfill \\ & =f\left(t,25\right)\hfill \\ & =48t+96\left(25\right)-{t}^{2}-2t\left(25\right)-9\left({25}^{2}\right)\hfill \\ & =\text{−}{t}^{2}-2t-3225.\hfill \end{array}

This function has a critical point at t=-1, which corresponds to the point \left(-1,25\right), which is not in the domain.

{L}_{4} is the line segment connecting \left(0,0\right)\phantom{\rule{0.2em}{0ex}}\text{to}\phantom{\rule{0.2em}{0ex}}\left(0,25\right), and it can be parameterized by the equations x\left(t\right)=0,y\left(t\right)=t for 0\le t\le 25. We define g\left(t\right)=f\left(x\left(t\right),y\left(t\right)\right)\text{:}

\begin{array}{cc}\hfill g\left(t\right)& =f\left(x\left(t\right),y\left(t\right)\right)\hfill \\ & =f\left(0,t\right)\hfill \\ & =48\left(0\right)+96t-{\left(0\right)}^{2}-2\left(0\right)t-9{t}^{2}\hfill \\ & =96t-{t}^{2}.\hfill \end{array}

This function has a critical point at t=\frac{16}{3}, which corresponds to the point \left(0,\frac{16}{3}\right), which is on the boundary of the domain. Calculating f\left(0,\frac{16}{3}\right) gives 256.

We also need to find the values of f\left(x,y\right) at the corners of its domain. These corners are located at \left(0,0\right),\left(50,0\right),\left(50,25\right)\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}\left(0,25\right)\text{:}

\begin{array}{ccc}\hfill f\left(0,0\right)& =\hfill & 48\left(0\right)+96\left(0\right)-{\left(0\right)}^{2}-2\left(0\right)\left(0\right)-9{\left(0\right)}^{2}=0\hfill \\ \hfill f\left(50,0\right)& =\hfill & 48\left(50\right)+96\left(0\right)-{\left(50\right)}^{2}-2\left(50\right)\left(0\right)-9{\left(0\right)}^{2}=-100\hfill \\ \hfill f\left(50,25\right)& =\hfill & 48\left(50\right)+96\left(25\right)-{\left(50\right)}^{2}-2\left(50\right)\left(25\right)-9{\left(25\right)}^{2}=-5825\hfill \\ \hfill f\left(0,25\right)& =\hfill & 48\left(0\right)+96\left(25\right)-{\left(0\right)}^{2}-2\left(0\right)\left(25\right)-9{\left(25\right)}^{2}=-3225.\hfill \end{array}

The maximum critical value is 648, which occurs at \left(21,3\right). 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.

The profit function f\left(x,y\right) has a maximum at \left(21,3,648\right).

The function f(x, y) = 48x + 96y – x2 – 2xy – 9y2 is shown with maximum point at (21, 3, 648). The shape is a plane curving from near the origin down to (50, 25).

Key Concepts

  • A critical point of the function f\left(x,y\right) is any point \left({x}_{0},{y}_{0}\right) where either {f}_{x}\left({x}_{0},{y}_{0}\right)={f}_{y}\left({x}_{0},{y}_{0}\right)=0, or at least one of {f}_{x}\left({x}_{0},{y}_{0}\right) and {f}_{y}\left({x}_{0},{y}_{0}\right) do not exist.
  • A saddle point is a point \left({x}_{0},{y}_{0}\right) where {f}_{x}\left({x}_{0},{y}_{0}\right)={f}_{y}\left({x}_{0},{y}_{0}\right)=0, but \left({x}_{0},{y}_{0}\right) 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.

Key Equations

  • Discriminant
    D={f}_{xx}\left({x}_{0},{y}_{0}\right){f}_{yy}\left({x}_{0},{y}_{0}\right)-{\left({f}_{xy}\left({x}_{0},{y}_{0}\right)\right)}^{2}

For the following exercises, find all critical points.

f\left(x,y\right)=1+{x}^{2}+{y}^{2}

f\left(x,y\right)={\left(3x-2\right)}^{2}+{\left(y-4\right)}^{2}

\left(\frac{2}{3},4\right)

f\left(x,y\right)={x}^{4}+{y}^{4}-16xy

f\left(x,y\right)=15{x}^{3}-3xy+15{y}^{3}

\left(0,0\right)\left(\frac{1}{15},\frac{1}{15}\right)

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.

f\left(x,y\right)=\sqrt{{x}^{2}+{y}^{2}+1}

f\left(x,y\right)=\text{−}{x}^{2}-5{y}^{2}+8x-10y-13

Maximum at \left(4,-1,8\right)

f\left(x,y\right)={x}^{2}+{y}^{2}+2x-6y+6

f\left(x,y\right)=\sqrt{{x}^{2}+{y}^{2}}+1

Relative minimum at \left(0,0,1\right)

For the following exercises, use the second derivative test to identify any critical points and determine whether each critical point is a maximum, minimum, saddle point, or none of these.

f\left(x,y\right)=\text{−}{x}^{3}+4xy-2{y}^{2}+1

f\left(x,y\right)={x}^{2}{y}^{2}

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 \left(0,0\right).

f\left(x,y\right)={x}^{2}-6x+{y}^{2}+4y-8

f\left(x,y\right)=2xy+3x+4y

f\left(-2,-\frac{3}{2}\right)=-6 is a saddle point.

f\left(x,y\right)=8xy\left(x+y\right)+7

f\left(x,y\right)={x}^{2}+4xy+{y}^{2}

f\left(0,0\right)=0;\left(0,0,0\right) is a saddle point.

f\left(x,y\right)={x}^{3}+{y}^{3}-300x-75y-3

f\left(x,y\right)=9-{x}^{4}{y}^{4}

f\left(0,0\right)=9 is a local maximum.

f\left(x,y\right)=7{x}^{2}y+9x{y}^{2}

f\left(x,y\right)=3{x}^{2}-2xy+{y}^{2}-8y

Relative minimum located at \left(2,6\right).

f\left(x,y\right)=3{x}^{2}+2xy+{y}^{2}

f\left(x,y\right)={y}^{2}+xy+3y+2x+3

\left(1,-2\right) is a saddle point.

f\left(x,y\right)={x}^{2}+xy+{y}^{2}-3x

f\left(x,y\right)={x}^{2}+2{y}^{2}-{x}^{2}y

\left(2,1\right) and \left(-2,1\right) are saddle points; \left(0,0\right) is a relative minimum.

f\left(x,y\right)={x}^{2}+y-{e}^{y}

f\left(x,y\right)={e}^{\text{−}\left({x}^{2}+{y}^{2}+2x\right)}

\left(-1,0\right) is a relative maximum.

f\left(x,y\right)={x}^{2}+xy+{y}^{2}-x-y+1

f\left(x,y\right)={x}^{2}+10xy+{y}^{2}

\left(0,0\right) is a saddle point.

f\left(x,y\right)=\text{−}{x}^{2}-5{y}^{2}+10x-30y-62

f\left(x,y\right)=120x+120y-xy-{x}^{2}-{y}^{2}

The relative maximum is at \left(40,40\right).

f\left(x,y\right)=2{x}^{2}+2xy+{y}^{2}+2x-3

f\left(x,y\right)={x}^{2}+x-3xy+{y}^{3}-5

\left(\frac{1}{4},\frac{1}{2}\right) is a saddle point and \left(1,1\right) is the relative minimum.

f\left(x,y\right)=2xy{e}^{\text{−}{x}^{2}-{y}^{2}}

For the following exercises, determine the extreme values and the saddle points. Use a CAS to graph the function.

[T]f\left(x,y\right)=y{e}^{x}-{e}^{y}

A saddle point is located at \left(0,0\right).

A complicated graph that starts near (1, 1, 1), and decreases significantly along the x and y axes, so much so along the y axis that it is cut off. The rest of the graph stays near 0.

[T]f\left(x,y\right)=x\phantom{\rule{0.2em}{0ex}}\text{sin}\left(y\right)

[T]f\left(x,y\right)=\text{sin}\left(x\right)\text{sin}\left(y\right),x\in \left(0,2\pi \right),y\in \left(0,2\pi \right)

There is a saddle point at \left(\pi ,\pi \right), local maxima at \left(\frac{\pi }{2},\frac{\pi }{2}\right)\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}\left(\frac{3\pi }{2},\frac{3\pi }{2}\right), and local minima at \left(\frac{\pi }{2},\frac{3\pi }{2}\right)\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}\left(\frac{3\pi }{2},\frac{\pi }{2}\right).

A series of hills and holes alternating through a space with amplitude 1.

Find the absolute extrema of the given function on the indicated closed and bounded set R.

f\left(x,y\right)=xy-x-3y;R is the triangular region with vertices \left(0,0\right),\left(0,4\right),\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}\left(5,0\right).

Find the absolute maximum and minimum values of f\left(x,y\right)={x}^{2}+{y}^{2}-2y+1 on the region R=\left\{\left(x,y\right)|{x}^{2}+{y}^{2}\le 4\right\}.

\left(0,1,0\right) is the absolute minimum and \left(0,-2,9\right) is the absolute maximum.

f\left(x,y\right)={x}^{3}-3xy-{y}^{3} on R=\left\{\left(x,y\right)\text{:}\phantom{\rule{0.2em}{0ex}}-2\le x\le 2,-2\le y\le 2\right\}

f\left(x,y\right)=\frac{-2y}{{x}^{2}+{y}^{2}+1} on R=\left\{\left(x,y\right)\text{:}\phantom{\rule{0.2em}{0ex}}{x}^{2}+{y}^{2}\le 4\right\}

There is an absolute minimum at \left(0,1,-1\right) and an absolute maximum at \left(0,-1,1\right).

Find three positive numbers the sum of which is 27, such that the sum of their squares is as small as possible.

Find the points on the surface {x}^{2}-yz=5 that are closest to the origin.

\left(\sqrt{5},0,0\right),\left(\text{−}\sqrt{5},0,0\right)

Find the maximum volume of a rectangular box with three faces in the coordinate planes and a vertex in the first octant on the plane x+y+z=1.

The sum of the length and the girth (perimeter of a cross-section) of a package carried by a delivery service cannot exceed 108 in. Find the dimensions of the rectangular package of largest volume that can be sent.

\text{18 by 36 by 18 in}.

A cardboard box without a lid is to be made with a volume of 4 ft3. Find the dimensions of the box that requires the least amount of cardboard.

Find the point on the surface f\left(x,y\right)={x}^{2}+{y}^{2}+10 nearest the plane x+2y-z=0. Identify the point on the plane.

\left(\frac{47}{24},\frac{47}{12},\frac{235}{24}\right)

Find the point in the plane 2x-y+2z=16 that is closest to the origin.

A company manufactures two types of athletic shoes: jogging shoes and cross-trainers. The total revenue from x units of jogging shoes and y units of cross-trainers is given by R\left(x,y\right)=-5{x}^{2}-8{y}^{2}-2xy+42x+102y, where x and y are in thousands of units. Find the values of x and y to maximize the total revenue.

x=3 and y=6

A shipping company handles rectangular boxes provided the sum of the length, width, and height of the box does not exceed 96 in. Find the dimensions of the box that meets this condition and has the largest volume.

Find the maximum volume of a cylindrical soda can such that the sum of its height and circumference is 120 cm.

V=\frac{64,000}{\pi }\approx 20,372 cm3

Glossary

critical point of a function of two variables
the point \left({x}_{0},{y}_{0}\right) is called a critical point of f\left(x,y\right) if one of the two following conditions holds:

  1. {f}_{x}\left({x}_{0},{y}_{0}\right)={f}_{y}\left({x}_{0},{y}_{0}\right)=0
  2. At least one of {f}_{x}\left({x}_{0},{y}_{0}\right) and {f}_{y}\left({x}_{0},{y}_{0}\right) do not exist
discriminant
the discriminant of the function f\left(x,y\right) is given by the formula D={f}_{xx}\left({x}_{0},{y}_{0}\right){f}_{yy}\left({x}_{0},{y}_{0}\right)-{\left({f}_{xy}\left({x}_{0},{y}_{0}\right)\right)}^{2}
saddle point
given the function z=f\left(x,y\right), the point \left({x}_{0},{y}_{0},f\left({x}_{0},{y}_{0}\right)\right) is a saddle point if both {f}_{x}\left({x}_{0},{y}_{0}\right)=0 and {f}_{y}\left({x}_{0},{y}_{0}\right)=0, but f does not have a local extremum at \left({x}_{0},{y}_{0}\right)

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Maxima/Minima Problems by OSCRiceUniversity is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.

Share This Book