Navigation

Optimization of multivariable functions

16.2 Absolute minima and maxima

19 problems · hints, answers and solutions shown beside each one

Stage 1 · Conceptual

Q1Stage 1

Suppose you want to find the maximum value of a surface z=f(x,y)z=f(x,y) on the boundary of the unit circle, x2+y2=1x^2+y^2=1.

True or false: you should always check the points (0,±1)(0,\pm 1) and (±1,0)(\pm 1,0), since these are the endpoints of the circle.

Hint

What is an endpoint of a circle?

Answer

false

Full solution

False. A common mistake is to think that the intercepts of a circle are somehow “endpoints," in the same way that the interval [1,1][-1,1] has endpoints 1-1 and 11. But circles don't have endpoints!

When (At least in this section, this is how we do it.. but we'll learn other ways that also don't involve optimizing xx and yy separately) we're finding the extrema of a function over a closed curve, we use the equation of the curve to get a function of one variable. Then we look for critical points and endpoints of that function. These may or may not occur at x=±1x=\pm 1 or y=±1y=\pm 1.

Now, you might notice that school problems often end up having their extrema at the extreme values of xx and/or yy in the boundary. This is a result of writing problems with relatively easy algebra, rather than the result of some universal law.

Q2Stage 1

Find the high and low points of the surface z=x2+y2z=\sqrt{x^2+y^2} with (x,y)(x,y) varying over the square x1|x|\le 1, y1|y|\le 1. Discuss the values of zx, zyz_x,\ z_y there. Do not evaluate any derivatives in answering this question.

Hint

Interpret the height x2+y2\sqrt{x^2+y^2} geometrically.

Answer

The minimum height is zero at (0,0,0)(0,0,0). The derivatives zxz_x and zyz_y do not exist there. The maximum height is 2\sqrt{2} at (±1,±1,2)(\pm 1,\pm 1,\sqrt{2}). There zxz_x and zyz_y exist but are not zero — those points would not be the highest points if it were not for the restriction x,y1|x|,|y|\le 1.

Full solution

The height x2+y2\sqrt{x^2+y^2} at (x,y)(x,y) is the distance from (x,y)(x,y) to (0,0)(0,0). So the minimum height is zero at (0,0,0)(0,0,0). The surface is a cone. The cone has a point at (0,0,0)(0,0,0) and the derivatives zxz_x and zyz_y do not exist there. The maximum height is achieved when (x,y)(x,y) is as far as possible from (0,0)(0,0). The highest points are at (±1,±1,2)(\pm 1,\pm 1,\sqrt{2}). There zxz_x and zyz_y exist but are not zero. These points would not be the highest points if it were not for the restriction x,y1|x|,|y|\le 1.

Stage 2 · Procedural

Q3Stage 2

Find the maximum and minimum values of f(x,y)=xyx3y2f(x,y)=xy-x^3y^2 when (x,y)(x,y) runs over the square 0x10\le x\le 1, 0y10\le y\le 1.

Hint

Check the boundary of the square as well as critical points inside the square.

Answer

$\text{min}=0\qquad \text{max}=\frac{2}{3\sqrt{3}}\approx0.385$

Full solution

The specified function and its first order derivatives are

f(x,y)=xyx3y2fx(x,y)=y3x2y2fy(x,y)=x2x3y\begin{align*} f(x,y)=xy-x^3y^2\qquad f_x(x,y)=y-3x^2y^2\qquad f_y(x,y)=x-2x^3y \end{align*}
  • First, we find the critical points. The first partial derivatives are defined everywhere and so the critical points are the solution of

    fx=0    y(13x2y)=0    y=0 or 3x2y=1fy=0    x(12x2y)=0    x=0 or 2x2y=1\begin{alignat*}{5} f_x&=0 & &\quad\iff{}\quad &y(1-3x^2y)&=0 & &\quad\iff{}\quad & &y=0 \text{ or } 3x^2y=1 \\ f_y&=0 & &\quad\iff{}\quad &x(1-2x^2y)&=0 & &\quad\iff{}\quad & &x=0 \text{ or } 2x^2y=1 \end{alignat*}
    • If y=0y=0, we cannot have 2x2y=12x^2y=1, so we must have x=0x=0.

    • If 3x2y=13x^2y=1, we cannot have x=0x=0, so we must have 2x2y=12x^2y=1. Dividing gives 1=3x2y2x2y=321=\frac{3x^2y}{2x^2y}=\frac{3}{2} which is impossible.

    So the only critical point in the square is (0,0)(0,0). There f=0f=0.

  • Next, we look at the part of the boundary with x=0x=0. There f=0f=0.

  • Next, we look at the part of the boundary with y=0y=0. There f=0f=0.

  • Next, we look at the part of the boundary with x=1x=1. There f=yy2f=y-y^2. As ddy(yy2)=12y\diff{}{y}(y-y^2)=1-2y, the max and min of yy2y-y^2 for 0y10\le y\le 1 must occur either at y=0y=0, where f=0f=0, or at y=12y=\half, where f=14f=\frac{1}{4}, or at y=1y=1, where f=0f=0.

  • Next, we look at the part of the boundary with y=1y=1. There f=xx3f=x-x^3. As ddx(xx3)=13x2\diff{}{x}(x-x^3)=1-3x^2, the max and min of xx3x-x^3 for 0x10\le x\le 1 must occur either at x=0x=0, where f=0f=0, or at x=13x=\frac{1}{\sqrt{3}}, where f=233f=\frac{2}{3\sqrt{3}}, or at x=1x=1, where f=0f=0.

All together, we have the following candidates for max and min.

point(0,0)(0,0)x=0x=0y=0y=0(1,0)(1,0)(1,12)(1,\half)(1,1)(1,1)(0,1)(0,1)(13,1)(\frac{1}{\sqrt{3}},1)(1,1)(1,1)
value of ff0000000014\frac{1}{4}0000233\frac{2}{3\sqrt{3}}00
minminminminminminmaxmin

The largest and smallest values of ff in this table are

min=0max=2330.385\begin{equation*} \text{min}=0\qquad \text{max}=\frac{2}{3\sqrt{3}}\approx0.385 \end{equation*}
Q4Stage 2Past exam · M200 2011A

Let h(x,y)=y(4x2y2)h(x, y) = y(4 - x^2 - y^2).

  1. Find and classify the critical points of h(x,y)h(x, y) as local maxima, local minima or saddle points.

  2. Find the maximum and minimum values of h(x,y)h(x, y) on the disk x2+y21x^2 + y^2 \le 1.

Answer

(a)

criticalpoint\Atop{\text{critical}}{\text{point}}type
(0,23)\left(0,\frac{2}{\sqrt{3}}\right)local max
(0,23)\left(0,-\frac{2}{\sqrt{3}}\right)local min
(2,0)(2,0)saddle point
(2,0)(-2,0)saddle point

(b) The maximum and minimum values of h(x,y)h(x,y) in x2+y21x^2+y^2\le 1 are 33 (at (0,1)(0,1)) and 3-3 (at (0,1)(0,-1)), respectively.

Full solution

(a) To find the critical points we will need the first order partial derivatives of hh and to apply the second derivative test of Theorem 16.1.14 in the text we will need all second order partial derivatives. So we need all partial derivatives of ff up to order two. Here they are.

h=y(4x2y2)hx=2xyhxx=2yhxy=2xhy=4x23y2hyy=6yhyx=2x\begin{alignat*}{3} h&=y(4 - x^2 - y^2) \\ h_x&=-2xy & h_{xx}&=-2y \qquad & h_{xy}&= -2x\\ h_y&=4-x^2-3y^2 \qquad & h_{yy}&=-6y\qquad & h_{yx}&= -2x \end{alignat*}

(Of course, hxyh_{xy} and hyxh_{yx} have to be the same. It is still useful to compute both, as a way to catch some mechanical errors.)

The first partial derivatives are defined everywhere and so the critical points are the solutions of

hx=2xy=0hy=4x23y2=0\begin{equation*} h_x=-2xy=0 \qquad h_y=4-x^2-3y^2 = 0 \end{equation*}

The first equation is satisfied if at least one of x=0x=0, y=0y=0 are satisfied.

  • If x=0x=0, the second equation reduces to 43y2=04-3y^2=0, which is satisfied if y=±23y=\pm\frac{2}{\sqrt{3}}.

  • If y=0y=0, the second equation reduces to 4x2=04-x^2=0 which is satisfied if x=±2x=\pm 2.

So there are four critical points: (0,23)\left(0,\frac{2}{\sqrt{3}}\right), (0,23)\left(0,-\frac{2}{\sqrt{3}}\right), (2,0)(2,0), (2,0)(-2,0).

The classification is

criticalpoint\Atop{\text{critical}}{\text{point}}hxxhyyhxy2h_{xx}h_{yy}-h_{xy}^2hxxh_{xx}type
(0,23)\left(0,\frac{2}{\sqrt{3}}\right)$\left(\frac{-4}{\sqrt{3}}\right)\times \left(-\frac{12}{\sqrt{3}}\right)-(0)^2> 0$43\frac{-4}{\sqrt{3}}local max
(0,23)\left(0,-\frac{2}{\sqrt{3}}\right)$\left(\frac{4}{\sqrt{3}}\right)\times \left(\frac{12}{\sqrt{3}}\right)-(0)^2>0$43\frac{4}{\sqrt{3}}local min
(2,0)(2,0)0×0(4)2<00\times 0-(-4)^2<0saddle point
(2,0)(-2,0)0×0(4)2<00\times 0-(4)^2<0saddle point

(b) The absolute max and min can occur either in the interior of the disk or on the boundary of the disk. The boundary of the disk is the circle x2+y2=1x^2+y^2=1.

  • Any absolute max or min in the interior of the disk must also be a local max or min and, must also be a critical point of hh. We found all of the critical points of hh in part (a). Since 2>12>1 and 23>1\frac{2}{\sqrt{3}}>1 none of the critical points are in the disk.

  • At each point of x2+y2=1x^2+y^2=1 we have h(x,y)=3yh(x,y)=3y with 1y1-1\le y\le 1. Clearly the maximum value is 33 (at (0,1)(0,1)) and the minimum value is 3-3 (at (0,1)(0,-1)).

So all together, the maximum and minimum values of h(x,y)h(x,y) in x2+y21x^2+y^2\le 1 are 33 (at (0,1)(0,1)) and 3-3 (at (0,1)(0,-1)), respectively.

Q5Stage 2Past exam · M200 2012D

Find the absolute maximum and minimum values of the function f(x,y)=5+2xx24y2f(x, y) = 5 + 2x - x^2 - 4y^2 on the rectangular region

R={ (x,y)  1x3, 1y1 }\begin{equation*} R = \Set{(x, y)}{ -1 \le x \le 3,\ -1 \le y \le 1} \end{equation*}
Hint

There are five places to check: the interior and four boundaries.

Answer

The minimum is 2-2 and the maximum is 66.

Full solution

The maximum and minimum must either occur at a critical point or on the boundary of RR.

  • The critical points are the points where the first order partial derivatives are zero or one does not exist. Here fx(x,y)=22xf_x(x,y) = 2-2x and fy(x,y)=8yf_y(x,y) = -8y and so they are defined everywhere. Therefore, the critical points are the solutions of

    0=fx(x,y)=22x0=fy(x,y)=8y\begin{align*} 0&=f_x(x,y) = 2-2x \\ 0&=f_y(x,y) = -8y \\ \end{align*}

    So the only critical point is (1,0)(1,0).

  • On the side x=1x=-1, 1y1-1\le y\le 1 of the boundary of RR

    f(1,y)=24y2\begin{equation*} f(-1,y) = 2-4y^2 \end{equation*}

    This function decreases as y|y| increases. So its maximum value on 1y1-1\le y\le 1 is achieved at y=0y=0 and its minimum value is achieved at y=±1y=\pm 1.

  • On the side x=3x=3, 1y1-1\le y\le 1 of the boundary of RR

    f(3,y)=24y2\begin{equation*} f(3,y) = 2-4y^2 \end{equation*}

    This function decreases as y|y| increases. So its maximum value on 1y1-1\le y\le 1 is achieved at y=0y=0 and its minimum value is achieved at y=±1y=\pm 1.

  • On both sides y=±1y=\pm 1, 1x3-1\le x\le 3 of the boundary of RR

    f(x,±1)=1+2xx2=2(x1)2\begin{equation*} f(x,\pm 1) = 1+2x-x^2 = 2 -(x-1)^2 \end{equation*}

    This function decreases as x1|x-1| increases. So its maximum value on 1x3-1\le x\le 3 is achieved at x=1x=1 and its minimum value is achieved at x=3x= 3 and x=1x=-1 (both of whom are a distance 22 from x=1x=1).

So we have the following candidates for the locations of the min and max

point(1,0)(1,0)(1,0)(-1,0)(1,±1)(1,\pm 1)(1,±1)(-1,\pm 1)(3,0)(3,0)(3,±1)(3,\pm 1)
value of ff6622222-2222-2
maxminmin

So the minimum is 2-2 and the maximum is 66.

Q6Stage 2Past exam · M200 2013D

Find the minimum of the function h(x,y)=4x2y+6h(x,y) = -4x - 2y + 6 on the closed bounded domain defined by x2+y21x^2 + y^2 \le 1.

Answer

6256-2\sqrt{5}

Full solution

Since h=<4,2>\vnabla h = \llt -4\,,\,-2 \rgt exists and is never zero, hh has no critical points and the minimum of hh on the disk x2+y21x^2+y^2\le 1 must be taken on the boundary, x2+y2=1x^2+y^2=1, of the disk.

To find the minimum on the boundary, we need to use the equation x2+y21x^2+y^2\le 1 to turn h(x,y)h(x,y) into a function of one variable. We can break the boundary up into two pieces: y=1x2y=\sqrt{1-x^2}, 1x1-1 \le x \le 1, and y=1x2y=-\sqrt{1-x^2}, 1x1-1 \le x \le 1.

Figure from prac_s2.4, line 2

Figure from prac_s2.4, line 2

  • Define g1(x)g_1(x) as the value of hh along the boundary curve y=1x2y=\sqrt{1-x^2}, 1x1-1 \le x \le 1.

    g1(x)=h(x,1x2)=4x2(1x2y)+6=4x21x2+6\begin{align*}g_1(x)&=h\left(x,\sqrt{1-x^2}\right)=-4x-2\left(\underbrace{\sqrt{1-x^2}}_y\right)+6\\ &=-4x-2\sqrt{1-x^2}+6\end{align*}

    To find the minimum of g1(x)g_1(x), we first find its critical points.

    g1(x)=42(2x21x2)=4+2x1x20=4+2x1x24=2x1x221x2=x\begin{align*}g_1'(x)&=-4-2\left(\frac{-2x}{2\sqrt{1-x^2}}\right) = -4+\frac{2x}{\sqrt{1-x^2}}\\ 0&= -4+\frac{2x}{\sqrt{1-x^2}}\\ 4&=\frac{2x}{\sqrt{1-x^2}}\\ 2\sqrt{1-x^2}&=x\tag{*}\end{align*}

    Squaring both sides,

    4(1x2)=x24=5x245=x2x=±25\begin{align*}4(1-x^2)&=x^2\\ 4&=5x^2\\ \frac45&=x^2\\ x&=\pm\frac2{\sqrt{5}}\end{align*}

    From line (*), we see xx must be positive, so the only one of these roots that actually solves our equation is the positive one

    x=25\begin{align*}x&=\frac2{\sqrt 5}\end{align*}

    So, the minimum of g1(x)g_1(x) will occur at its CP x=25x=\frac2{\sqrt5} or at an endpoint x=1x=1 or x=1x=-1.

    g1(1)=4(1)211+6=10g1(1)=4(1)211+6=2g1(25)=4(25)21(25)2+6=85215+6=105+6=25+61.53\begin{align*} g_1(-1)&=-4(-1)-2\sqrt{1-1}+6=10\\ g_1(1)&=-4(1)-2\sqrt{1-1}+6=2\\ g_1\left(\frac{2}{\sqrt 5}\right)&=-4\left(\frac{2}{\sqrt 5}\right)-2\sqrt{1-\left(\frac{2}{\sqrt 5}\right)^2}+6\\ &=-\frac{8}{\sqrt5}-2\sqrt{\frac15}+6\\ &=-\frac{10}{\sqrt5}+6\\ &=-2\sqrt5+6\approx 1.53 \end{align*}

    So the minimum of g1(x)g_1(x) is g1=(25)=625g_1=\left(\frac{2}{\sqrt 5}\right)=6-2\sqrt5.

    Figure from prac_s2.4, line 2

    Figure from prac_s2.4, line 2

  • Define g2(x)g_2(x) as the value of hh along the boundary curve y=1x2y=-\sqrt{1-x^2}, 1x1-1 \le x \le 1.

    g2(x)=h(x,1x2)=4x2(1x2)+6=4x+21x2+6g2(x)=4+2(2x21x2)=42x1x24=2x1x221x2=x4(1x2)=x24=5x2x=±25\begin{align*}g_2(x)&=h\left(x,-\sqrt{1-x^2}\right)=-4x-2\left(-\sqrt{1-x^2}\right)+6\\ &=-4x+2\sqrt{1-x^2}+6 \\g_2'(x)&=-4+2\left(\frac{-2x}{2\sqrt{1-x^2}}\right)\\ &=-4-\frac{2x}{\sqrt{1-x^2}}\\ 4&=-\frac{2x}{\sqrt{1-x^2}}\\ -2\sqrt{1-x^2}&=x\tag{*}\\ 4(1-x^2)&=x^2\\ 4&=5x^2\\ x&=\pm\frac{2}{\sqrt 5}\end{align*}

    From line (*), we see that xx must be negative, so the only solution that works it the negative one

    x=25\begin{align*}x&=-\frac{2}{\sqrt 5}\end{align*}

    We see that the minimum of g2(x)g_2(x) will occur at its sole critical point x=25x=-\frac{2}{\sqrt 5}, or at its endpoints x=±1x=\pm 1.

    g2(1)=4(1)+21(1)2+6=4+6=10g2(1)=4(1)+21(1)2+6=4+6=2g2(25)=4(25)+21(25)2+6=85+215+6=105+6=25+610.47\begin{align*} g_2(-1)&=-4(-1)+2\sqrt{1-(-1)^2}+6=4+6=10 \\g_2(1)&=-4(1)+2\sqrt{1-(1)^2}+6=-4+6=2 \\g_2\left(-\frac{2}{\sqrt 5}\right)&=-4\left(-\frac{2}{\sqrt 5}\right)+2\sqrt{1-\left(-\frac{2}{\sqrt 5}\right)^2}+6 \\&=\frac{8}{\sqrt 5}+2\sqrt{\frac15}+6=\frac{10}{\sqrt5}+6\\ &=2\sqrt5+6\approx10.47 \end{align*}

    So, the minimum of g2(x)g_2(x) is g2(1)=2g_2(1)=2.

    Figure from prac_s2.4, line 2

    Figure from prac_s2.4, line 2

All together, the minimum value hh achieves over the boundary x2+y2=1x^2+y^2=1 is 6256-2\sqrt 5. Since we already decided the global minimum would occur on the boundary, that tells us our global minimum is 6256-2\sqrt 5.

Q7Stage 2Past exam · M200 2014D

Let f(x,y)=xy(x+y3)f(x,y) = xy(x + y - 3).

  1. Find all critical points of ff, and classify each one as a local maximum, a local minimum, or saddle point.

  2. Find the location and value of the absolute maximum and minimum of ff on the triangular region x0x \ge 0, y0y \ge 0, x+y8x + y \le 8.

Hint

Since the region is a triangle, your boundary will have three separate parts to check.

Answer

(a) (0,0) and (3,0) and (0,3) are saddle points
(1,1) is a local min

(b) The minimum is 1-1 at (1,1)(1,1) and the maximum is 8080 at (4,4)(4,4).

Full solution

(a) Thinking a little way ahead, to find the critical points we will need the first order partial derivatives of ff and to apply the second derivative test of Theorem 16.1.14 in the text we will need all second order partial derivatives. So we need all partial derivatives of ff up to order two. Here they are.

f=xy(x+y3)fx=2xy+y23yfxx=2yfxy=2x+2y3fy=x2+2xy3xfyy=2xfyx=2x+2y3\begin{alignat*}{3} f&=xy(x + y - 3) \\ f_x&=2xy+y^2-3y & f_{xx}&=2y \qquad & f_{xy}&= 2x+2y-3\\ f_y&=x^2+2xy-3x \qquad & f_{yy}&=2x\qquad & f_{yx}&= 2x+2y-3 \end{alignat*}

(Of course, fxyf_{xy} and fyxf_{yx} have to be the same. It is still useful to compute both, as a way to catch some mechanical errors.)

The first order partial derivatives are defined everywhere and so the critical points are the solutions of

fx=y(2x+y3)=0fy=x(x+2y3)=0\begin{equation*} f_x=y(2x+y-3)=0 \qquad f_y=x(x+2y-3) = 0 \end{equation*}

The first equation is satisfied if at least one of y=0y=0, y=32xy=3-2x are satisfied.

  • If y=0y=0, the second equation reduces to x(x3)=0x(x-3)=0, which is satisfied if either x=0x=0 or x=3x=3.

  • If y=32xy=3-2x, the second equation reduces to x(x+64x3)=x(33x)=0x(x+6-4x-3)=x(3-3x)=0 which is satisfied if x=0x=0 or x=1x=1.

So there are four critical points: (0,0)(0,0), (3,0)(3,0), (0,3)(0,3), (1,1)(1,1).

The classification is

criticalpoint\Atop{\text{critical}}{\text{point}}fxxfyyfxy2f_{xx}f_{yy}-f_{xy}^2fxxf_{xx}type
(0,0)(0,0)0×0(3)2<00\times 0-(-3)^2< 0saddle point
(3,0)(3,0)0×6(3)2<00\times 6-(3)^2<0saddle point
(0,3)(0,3)6×0(3)2<06\times 0-(3)^2<0saddle point
(1,1)(1,1)2×2(1)2>02\times 2-(1)^2>02local min

(b) The absolute max and min can occur either in the interior of the triangle or on the boundary of the triangle. The boundary of the triangle consists of the three line segments.

L1={ (x,y)  x=0, 0y8 }L2={ (x,y)  y=0, 0x8 }L3={ (x,y)  x+y=8, 0x8 }\begin{align*} L_1 &= \Set{(x,y)}{x=0,\ 0\le y\le 8} \\ L_2 &= \Set{(x,y)}{y=0,\ 0\le x\le 8} \\ L_3 &= \Set{(x,y)}{x+y=8,\ 0\le x\le 8} \end{align*}
  • Any absolute max or min in the interior of the triangle must also be a local max or min and, must also be a critical point of ff. We found all of the critical points of ff in part (a). Only one of them, namely (1,1)(1,1) is in the interior of the triangle. (The other three critical points are all on the boundary of the triangle.) We have f(1,1)=1f(1,1) = -1.

  • At each point of L1L_1 we have x=0x=0 and so f(x,y)=0f(x,y)=0.

  • At each point of L2L_2 we have y=0y=0 and so f(x,y)=0f(x,y)=0.

  • At each point of L3L_3 we have f(x,y)=x(8x)(5)=40x5x2=5[8xx2]f(x,y)=x(8-x)(5)=40x-5x^2=5[8x-x^2] with 0x80\le x\le 8. As ddx(40x5x2)=4010x\diff{}{x}\big(40x-5x^2\big)= 40-10x, the max and min of 40x5x240x-5x^2 on 0x80\le x\le 8 must be one of 5[8xx2]x=0=05\big[8x-x^2\big]_{x=0}=0 or 5[8xx2]x=8=05\big[8x-x^2\big]_{x=8}=0 or 5[8xx2]x=4=805\big[8x-x^2\big]_{x=4}=80.

So all together, we have the following candidates for max and min, with the max and min indicated.

point(s)(1,1)(1,1)L1L_1L2L_2(0,8)(0,8)(8,0)(8,0)(4,4)(4,4)
value of ff1-1000000008080
minmax

Figure from prac_s2.4, line 599

Figure from prac_s2.4, line 599

Q8Stage 2Past exam · M200 2004A

Consider the function

f(x,y)=2x36xy+y2+4y\begin{equation*} f(x,y)=2x^3 - 6xy + y^2 +4y \end{equation*}
  1. Find and classify all of the critical points of f(x,y)f(x,y).

  2. Find the maximum and minimum values of f(x,y)f(x,y) in the triangle with vertices (1,0)(1,0), (0,1)(0,1) and (1,1)(1,1).

Answer

(a) (1,1)(1,1) is a saddle point and (2,4)(2,4) is a local min

(b) The min and max are 1927\frac{19}{27} and 55, respectively.

Full solution

(a) Since

f=2x36xy+y2+4yfx=6x26yfxx=12xfxy=6fy=6x+2y+4fyy=2\begin{alignat*}{5} f&=2x^3 - 6xy + y^2 +4y \\ f_x&=6x^2-6y & f_{xx}&=12x\qquad && f_{xy}&= -6\\ f_y&=-6x+2y+4\qquad & f_{yy}&=2 \end{alignat*}

the first order partial derivatives are defined everywhere and the critical points are the solutions of

fx=0fy=0    y=x2y3x+2=0    y=x2x23x+2=0    y=x2x=1 or 2\begin{alignat*}{5} & & &f_x=0\qquad & &f_y=0 \\ &\iff{}\qquad& &y=x^2\qquad & &y-3x+2=0 \\ &\iff{}& &y=x^2 & &x^2-3x+2=0 \\ &\iff{}& &y=x^2 & &x=1\text{ or }2 \end{alignat*}

So, there are two critical points: (1,1), (2,4)(1,1),\ (2,4).

criticalpoint\Atop{\text{critical}}{\text{point}}fxxfyyfxy2f_{xx}f_{yy}-f_{xy}^2fxxf_{xx}type
(1,1)(1,1)12×2(6)2<012\times 2-(-6)^2<0saddle point
(2,4)(2,4)24×2(6)2>024\times 2-(-6)^2>02424local min

(b) There are no critical points in the interior of the allowed region, so both the maximum and the minimum occur only on the boundary. The boundary consists of the line segments (i) x=1x=1, 0y10\le y\le 1, (ii) y=1y=1, $0\le x\le 1$ and (iii) y=1xy=1-x, 0x10\le x\le 1.

Figure from prac_s2.4, line 735

Figure from prac_s2.4, line 735

  • First, we look at the part of the boundary with x=1x=1. There f=y22y+2f=y^2-2y+2. As ddy(y22y+2)=2y2\diff{}{y}(y^2-2y+2)=2y-2 vanishes only at y=1y=1, the max and min of y22y+2y^2-2y+2 for 0y10\le y\le 1 must occur either at y=0y=0, where f=2f=2, or at y=1y=1, where f=1f=1.

  • Next, we look at the part of the boundary with y=1y=1. There f=2x36x+5f=2x^3-6x+5. As ddx(2x36x+5)=6x26\diff{}{x}(2x^3-6x+5)=6x^2-6, the max and min of 2x36x+52x^3-6x+5 for 0x10\le x\le 1 must occur either at x=0x=0, where f=5f=5, or at x=1x=1, where f=1f=1.

  • Next, we look at the part of the boundary with y=1xy=1-x. There $f=2x^3-6x(1-x) +(1-x)^2+4(1-x)=2x^3+7x^2-12x+5$. As $\diff{}{x}(2x^3+7x^2-12x+5)=6x^2+14x-12 =2\big(3x^2+7x-6\big) =2(3x-2)(x+3)$, the max and min of 2x3+7x212x+52x^3+7x^2-12x+5 for 0x10\le x\le 1 must occur either at x=0x=0, where f=5f=5, or at x=1x=1, where f=2f=2, or at x=23x=\frac{2}{3}, where $f=2(\frac{8}{27})-6(\frac{2}{3})(\frac{1}{3})+\frac{1}{9}+\frac{4}{3} =\frac{16-36+3+36}{27} =\frac{19}{27}$.

So all together, we have the following candidates for max and min, with the max and min indicated.

point(1,0)(1,0)(1,1)(1,1)(0,1)(0,1)(23,13)\big(\frac{2}{3},\frac{1}{3}\big)
value of ff2211551927\frac{19}{27}
maxmin
Q9Stage 2Past exam · M200 2003A

Let

f(x,y)=xy(x+2y6)\begin{equation*} f(x,y)=xy(x+2y-6) \end{equation*}
  1. Find every critical point of f(x,y)f(x,y) and classify each one.

  2. Let DD be the region in the plane between the hyperbola xy=4xy=4 and the line x+2y6=0x+2y-6=0. Find the maximum and minimum values of f(x,y)f(x,y) on DD.

Hint

There are two boundary lines. You'll want to find their intersections.

Answer

(a) (0,0)(0,0), (6,0)(6,0), (0,3)(0,3) are saddle points and (2,1)(2,1) is a local min

(b) The maximum value is 00 and the minimum value is $4(4\sqrt{2}-6) \approx -1.37$.

Full solution

(a) We have

f(x,y)=xy(x+2y6)fx(x,y)=2xy+2y26yfxx(x,y)=2yfy(x,y)=x2+4xy6xfyy(x,y)=4xfxy(x,y)=2x+4y6\begin{alignat*}{5} f(x,y)&=xy(x+2y-6)\quad & f_x(x,y)&=2xy+2y^2-6y\quad & f_{xx}(x,y)&=2y \\ & & f_y(x,y)&=x^2+4xy-6x & f_{yy}(x,y)&=4x\\ & & & &f_{xy}(x,y)&=2x+4y-6 \end{alignat*}

The first partial derivatives are defined everywhere. So the critical points are the solution of

fx(x,y)=fy(x,y)=0    2y(x+y3)=0 and x(x+4y6)=0    {y=0 or x+y=3} and {x=0 or x+4y=6}    {x=y=0} or {y=0, x+4y=6} or {x+y=3, x=0} or {x+y=3, x+4y=6}    (x,y)=(0,0) or (6,0) or (0,3) or (2,1)\begin{align*} f_x(x,y)=f_y(x,y)=0 &\iff{} 2y(x+y-3)=0\text{ and }x(x+4y-6)=0 \\ &\iff{} \{y=0\text{ or }x+y=3\}\text{ and }\{x=0\text{ or }x+4y=6\}\\ &\iff{} \{x=y=0\}\text{ or }\{y=0,\ x+4y=6\}\\ &\hskip0.5in\text{ or }\{x+y=3,\ x=0\} \text{ or }\{x+y=3,\ x+4y=6\}\\ &\iff{} (x,y)=(0,0)\text{ or }(6,0)\text{ or }(0,3)\text{ or }(2,1) \end{align*}

Here is a table giving the classification of each of the four critical points.

criticalpoint\Atop{\text{critical}}{\text{point}}fxxfyyfxy2f_{xx}f_{yy}-f_{xy}^2fxxf_{xx}type
(0,0)(0,0)0×0(6)2<00\times 0-(-6)^2<0saddle point
(6,0)(6,0)0×2462<00\times 24-6^2<0saddle point
(0,3)(0,3)6×062<06\times 0-6^2<0saddle point
(2,1)(2,1)2×822>02\times 8-2^2>02local min

(b) Observe that xy=4xy=4 and x+2y=6x+2y=6 intersect when x=62yx=6-2y and

(62y)y=4    2y26y+4=0    2(y1)(y2)=0    (x,y)=(4,1) or (2,2)\begin{align*} (6-2y)y=4 &\iff{} 2y^2-6y+4=0 \iff{} 2(y-1)(y-2)=0 \\ &\iff{} (x,y) = (4,1)\text{ or }(2,2) \end{align*}

The shaded region in the sketch below is DD.

Figure from prac_s2.4, line 850

Figure from prac_s2.4, line 850

None of the critical points are in DD. So the max and min must occur at either (2,2)(2,2) or (4,1)(4,1) or on xy=4xy=4, 2<x<42<x<4 (in which case F(x)=f(x,4x)=4(x+8x6)F(x)=f\big(x,\frac{4}{x}\big)=4\big(x+\frac{8}{x}-6) obeys F(x)=432x2=0    x=±22F'(x)=4-\frac{32}{x^2}=0\iff{} x=\pm2\sqrt{2}) or on x+2y=6x+2y=6, 2<x<42<x<4 (in which case f(x,y)f(x,y) is identically zero). So the min and max must occur at one of

(x,y)(x,y)f(x,y)f(x,y)
(2,2)(2,2)2×2(2+2×26)=02\times 2(2+2\times2-6)=0
(4,1)(4,1)4×1(4+2×16)=04\times 1(4+2\times 1-6)=0
(22,2)(2\sqrt{2},\sqrt{2})4(22+226)<04(2\sqrt{2}+2\sqrt{2}-6)<0

The maximum value is 00 and the minimum value is $4(4\sqrt{2}-6) \approx -1.37$.

Q10Stage 2Past exam · M200 2002A

A metal plate is in the form of a semi-circular disc bounded by the xx-axis and the upper half of x2+y2=4x^2+y^2=4. The temperature at the point (x,y)(x,y) is given by

T(x,y)=ln(1+x2+y2)y.T(x,y)=\ln\big(1+x^2+y^2\big)-y.

Find the coldest point on the plate, explaining your steps carefully. (Note: ln20.693\ln 2\approx 0.693, ln51.609\ln 5\approx 1.609)

Hint

Plugging in the boundaries should be quite easy if you choose your variables wisely

Answer

The coldest temperture is 0.391-0.391 and the coldest point is (0,2)(0,2).

Full solution

The coldest point must be either on the boundary of the plate or in the interior of the plate.

  • On the semi–circular part of the boundary 0y20\le y\le 2 and x2+y2=4x^2+y^2=4 so that T=ln(1+x2+y2)y=ln5yT=\ln\big(1+x^2+y^2\big)-y=\ln 5-y. The smallest value of ln5y\ln 5-y is taken when yy is as large as possible, i.e. when y=2y=2, and is ln520.391\ln 5 -2\approx -0.391.

  • On the flat part of the boundary, y=0y=0 and 2x2-2\le x\le 2 so that T=ln(1+x2+y2)y=ln(1+x2)T=\ln\big(1+x^2+y^2\big)-y=\ln\big(1+x^2\big). The smallest value of ln(1+x2)\ln\big(1+x^2\big) is taken when xx is as small as possible, i.e. when x=0x=0, and is 00.

  • If the coldest point is in the interior of the plate, it must be at a critical point of T(x,y)T(x,y). Since

    Tx(x,y)=2x1+x2+y2Ty(x,y)=2y1+x2+y21\begin{align*} T_x(x,y)=\frac{2x}{1+x^2+y^2}\qquad T_y(x,y)=\frac{2y}{1+x^2+y^2}-1 \end{align*}

    a critical point must have x=0x=0 and 2y1+x2+y21=0\frac{2y}{1+x^2+y^2}-1=0, which is the case if and only if x=0x=0 and 2y1y2=02y-1-y^2=0. So the only critical point is x=0, y=1x=0,\ y=1, where T=ln210.307T=\ln 2-1\approx -0.307.

Since 0.391<0.307<0-0.391<-0.307<0, the coldest temperature is 0.391-0.391 and the coldest point is (0,2)(0,2).

Q11Stage 2Past exam · M200 2001A

Consider the function $g(x,y)=x^2-10y-y^2 .$

  1. Find and classify all critical points of gg.

  2. Find the absolute extrema of gg on the bounded region given by

    x2+4y216, y0\begin{equation*} x^2+4y^2\le 16,\ y\le 0 \end{equation*}
Hint

When you see “classify critical points," think “second derivative test."

Answer

(a) (0,5)(0,-5) is a saddle point

(b) The smallest value of gg is 00 at (0,0)(0,0) and the largest value is 2121 at (±23,1)(\pm 2\sqrt{3},-1).

Full solution

(a) We have

g(x,y)=x210yy2gx(x,y)=2xgxx(x,y)=2gy(x,y)=102ygyy(x,y)=2gxy(x,y)=0\begin{alignat*}{5} g(x,y)&=x^2-10y-y^2 \qquad& g_x(x,y)&=2x \qquad& g_{xx}(x,y)&=2\\ & & g_y(x,y)&=-10-2y\qquad & g_{yy}(x,y)&=-2 \\ & & & &g_{xy}(x,y)&=0 \end{alignat*}

The first partial derivatives are defined everywhere. So the critical points are the solution of

gx(x,y)=gy(x,y)=0    2x=0 and 102y=0    (x,y)=(0,5)\begin{align*} g_x(x,y)=g_y(x,y)=0 \iff{} 2x=0\text{ and }-10-2y=0 \iff{} (x,y)=(0,-5) \end{align*}

Since gxx(0,5)gyy(0,5)gxy(0,5)2=2×(2)02<0g_{xx}(0,-5)g_{yy}(0,-5)-g_{xy}(0,-5)^2=2\times(-2)-0^2<0, the critical point is a saddle point.

(b) The extrema must be either on the boundary of the region or in the interior of the region.

  • On the semi-elliptical part of the boundary 2y0-2\le y\le 0 and x2+4y2=16x^2+4y^2=16 so that g=x210yy2=1610y5y2=215(y+1)2g=x^2-10y-y^2=16-10y-5y^2=21-5(y+1)^2. This has a minimum value of 16 (at y=0,2y=0,-2) and a maximum value of 21 (at y=1y=-1). You could also come to this conclusion by checking the critical point of 1610y5y216-10y-5y^2 (i.e. solving ddy(1610y5y2)=0\diff{}{y}(16-10y-5y^2)=0) and checking the end points of the allowed interval (namely y=0y=0 and y=2y=-2).

  • On the flat part of the boundary y=0y=0 and 4x4-4\le x\le 4 so that g=x2g=x^2.
    The smallest value is taken when x=0x=0 and is 00 and the largest value is taken when x=±4x=\pm 4 and is 1616.

  • If an extremum is in the interior of the plate, it must be at a critical point of g(x,y)g(x,y). The only critical point is not in the prescribed region.

Here is a table giving all candidates for extrema:

(x,y)(x,y)g(x,y)g(x,y)
(0,2)(0,-2)1616
(±4,0)(\pm 4,0)1616
(±12,1)(\pm \sqrt{12},-1)2121
(0,0)(0,0)00

From the table the smallest value of gg is 00 at (0,0)(0,0) and the largest value is 2121 at (±23,1)(\pm 2\sqrt{3},-1).

Q12Stage 2

Equal-angle bends are made at equal distances from the two ends of a 100 metre long fence, so that the resulting three-segment fence can be placed along an existing wall to make an enclosure of trapezoidal shape. What is the largest possible area for such an enclosure?

Hint

Suppose that the bends are made a distance xx from the ends of the fence and that the bends are through an angle θ\theta. Draw a sketch of the enclosure and figure out its area, as a function of xx and θ\theta.

Answer

25003\frac{2500}{\sqrt{3}}

Full solution

Suppose that the bends are made a distance xx from the ends of the fence and that the bends are through an angle θ\theta. Here is a sketch of the enclosure.

Figure from prac_s2.4, line 1076

Figure from prac_s2.4, line 1076

It consists of a rectangle, with side lengths 1002x100-2x and xsinθx\sin\theta, together with two triangles, each of height xsinθx\sin\theta and base length xcosθx\cos\theta. So the enclosure has area

A(x,θ)=(1002x)xsinθ+212xsinθxcosθ=(100x2x2)sinθ+12x2sin(2θ)\begin{align*} A(x,\theta)&=(100-2x)x\sin\theta+2\cdot\half\cdot x\sin\theta\cdot x\cos\theta\\ &=(100x-2x^2)\sin\theta+\half x^2\sin(2\theta) \end{align*}

The maximize the area, we need find the critical points.

Ax=(1004x)sinθ+xsin(2θ)Aθ=(100x2x2)cosθ+x2cos(2θ)\begin{alignat*}{5} A_x&=(100-4x)\sin\theta+x\sin(2\theta) \cr A_\theta&=(100x-2x^2)\cos\theta+x^2\cos(2\theta) \end{alignat*}

Note that AxA_x and AθA_\theta are define everywhere in their domain and so to find the critical points we only needed to find the points where the first order partial derivatives are zero.

0=Ax=(1004x)sinθ+xsin(2θ)    (1004x)+2xcosθ=00=Aθ=(100x2x2)cosθ+x2cos(2θ)    (1002x)cosθ+xcos(2θ)=0\begin{alignat*}{5} 0=A_x&=(100-4x)\sin\theta+x\sin(2\theta) & &\implies{} & (100-4x)+2x\cos\theta&=0\cr 0=A_\theta&=(100x-2x^2)\cos\theta+x^2\cos(2\theta)\quad & &\implies{}\quad & (100-2x)\cos\theta+x\cos(2\theta)&=0 \end{alignat*}

Here we have used that the fence of maximum area cannot have sinθ=0\sin\theta=0 or x=0x=0, because in either of these two cases, the area enclosed will be zero. The first equation forces cosθ=1004x2x\cos\theta=-\frac{100-4x}{2x} and hence cos(2θ)=2cos2θ1=(1004x)22x21\cos(2\theta)=2\cos^2\theta-1=\frac{(100-4x)^2}{2x^2}-1. Substituting these into the second equation gives

(1002x)1004x2x+x[(1004x)22x21]=0    (1002x)(1004x)+(1004x)22x2=0    6x2200x=0    x=1003cosθ=100/3200/3=12θ=60A=(10010032100232)32+1210023232=25003\begin{alignat*}{5} & & -(100-2x)\frac{100-4x}{2x}+x\Big[\frac{(100-4x)^2}{2x^2}-1\Big]&=0 \\ &\implies{} & -(100-2x)(100-4x)+(100-4x)^2-2x^2&=0 \\ &\implies{} & 6x^2-200x&=0 \\ &\implies{} & x=\frac{100}{3} \quad\cos\theta=-\frac{-100/3}{200/3}=\frac{1}{2}\quad \theta&=60^\circ\\ & & A= \left(100\frac{100}{3}-2\frac{100^2}{3^2}\right) \frac{\sqrt{3}}{2}+\frac{1}{2} \frac{100^2}{3^2}\frac{\sqrt{3}}{2} &=\frac{2500}{\sqrt{3}} \end{alignat*}
Q13Stage 2

Find the most economical shape of a rectangular box that has a fixed volume VV and that has no top.

Hint

Suppose that the box has side lengths xx, yy and zz.

Answer

The box has dimensions (2V)1/3×(2V)1/3×22/3V1/3(2V)^{1/3}\times(2V)^{1/3}\times 2^{-2/3}V^{1/3}.

Full solution

Suppose that the box has side lengths xx, yy and zz. Here is a sketch.

Figure from prac_s2.4, line 1134

Figure from prac_s2.4, line 1134

Because the box has to have volume VV we need that V=xyzV=xyz. We wish to minimize the area A=xy+2yz+2xzA=xy+2yz+2xz of the four sides and bottom. Substituting in z=Vxyz=\frac{V}{xy},

A=xy+2Vx+2VyAx=y2Vx2Ay=x2Vy2\begin{align*} A&=xy+2\frac{V}{x}+2\frac{V}{y}\\ A_x&=y-2\frac{V}{x^2}\\ A_y&=x-2\frac{V}{y^2} \end{align*}

To minimize, we want Ax=Ay=0A_x=A_y=0, which is the case when yx2=2V, xy2=2Vyx^2=2V,\ xy^2=2V. This forces yx2=xy2yx^2=xy^2. Since V=xyzV=xyz is nonzero, neither xx nor yy may be zero. So x=y=(2V)1/3x=y=(2V)^{1/3}, z=22/3V1/3z=2^{-2/3}V^{1/3}.

Q14Stage 2Past exam · M200 2009D

The temperature T(x,y)T(x,y) at a point of the xyxy–plane is given by

T(x,y)=204x2y2\begin{equation*} T(x,y) = 20 - 4x^2 - y^2 \end{equation*}
  1. Find the maximum and minimum values of T(x,y)T(x,y) on the disk DD defined by x2+y24x^2 + y^2 \le 4.

  2. Suppose the ant is constrained to stay on the curve y=2x2y = 2 - x^2. Where should the ant go if it wants to be as warm as possible?

Answer

(a) The maximum and minimum values of T(x,y)T(x,y) in x2+y24x^2+y^2\le 4 are 2020 (at (0,0)(0,0)) and 44 (at (±2,0)(\pm 2,0)), respectively.

(b) (0,2)(0,2)

Full solution

(a) The maximum and minimum can occur either in the interior of the disk or on the boundary of the disk. The boundary of the disk is the circle x2+y2=4x^2+y^2=4.

  • Any absolute max or min in the interior of the disk must also be a local max or min and must also be a critical point of hh. Since Tx=8xT_x=-8x and Ty=2yT_y=-2y, the only critical point is (x,y)=(0,0)(x,y)=(0,0), where T=20T=20. Since 4x2+y204x^2+y^2\ge 0, we have T(x,y)=204x2y220T(x,y)=20-4x^2-y^2\le 20. So the maximum value of TT (even in R2\bbbr^2) is 2020.

  • At each point of x2+y2=4x^2+y^2=4 we have T(x,y)=204x2y2=204x2(4x2)=163x2T(x,y)=20-4x^2-y^2=20 -4x^2-(4-x^2)=16-3x^2 with 2x2-2\le x\le 2. So TT is a minimum when x2x^2 is a maximum. Thus the minimum value of TT on the disk is 163(±2)2=416-3(\pm 2)^2=4.

So all together, the maximum and minimum values of T(x,y)T(x,y) in x2+y24x^2+y^2\le 4 are 2020 (at (0,0)(0,0)) and 44 (at (±2,0)(\pm 2,0)), respectively.

(b) We are being asked to find the (x,y)=(x,2x2)(x,y)=(x,2-x^2) which maximizes

T(x,2x2)=204x2(2x2)2=16x4\begin{align*} T\big(x,2-x^2\big) =20 -4x^2-\big(2-x^2\big)^2 = 16-x^4 \end{align*}

The maximum of 16x416-x^4 is obviously 1616 at x=0x=0. So the ant should go to (0,202)=(0,2)\big(0,2-0^2\big)=(0,2).

Stage 3 · Application

Q15Stage 3Past exam · M200 2007A

Find the largest and smallest values of x2y2zx^2 y^2 z in the part of the plane 2x+y+z=52x + y + z = 5 where x0x \ge 0, y0y \ge 0 and z0z \ge 0. Also find all points where those extreme values occur.

Hint

If (x,y,z)(x,y,z) is on the plane, then you know z=52xyz=5-2x-y. So, you can write x2y2zx^2 y^2 z as a function of only xx and yy by eliminating zz.

Answer

The minimum value is 00 on

{ (x,y,z)  x0, y0, z0, 2x+y+z=5, at least one of x,y,z zero }\begin{equation*} \Set{(x,y,z)}{x\ge 0,\ y\ge 0,\ z\ge 0,\ 2x+y+z=5,\ \text{at least one of }x,y,z\text{ zero}} \end{equation*}

The maximum value is 44 at (1,2,1)(1,2,1).

Full solution

The region of interest is

D={ (x,y,z)  x0, y0, z0, 2x+y+z=5 }\begin{equation*} D=\Set{(x,y,z)}{x\ge 0,\ y\ge 0,\ z\ge 0,\ 2x+y+z=5} \end{equation*}

First observe that, on the boundary of this region, at least one of xx, yy and zz is zero. So f(x,y,z)=x2y2zf(x,y,z)=x^2 y^2 z is zero on the boundary. As ff takes values which are strictly bigger than zero at all points of DD that are not on the boundary, the minimum value of ff is 00 on

D={ (x,y,z)  x0, y0, z0, 2x+y+z=5, at least one of x,y,z zero }\begin{equation*} \partial D = \Set{(x,y,z)}{x\ge 0,\ y\ge 0,\ z\ge 0,\ 2x+y+z=5,\ \text{at least one of }x,y,z\text{ zero}} \end{equation*}

The maximum value of ff will be taken at a critical point. On DD

f=x2y2(52xy)=5x2y22x3y2x2y3\begin{align*} f &= x^2 y^2 (5-2x-y) =5x^2 y^2 - 2x^3 y^2 -x^2 y^3 \end{align*}

So the critical points are the solutions of

0=fx(x,y)=10xy26x2y22xy30=fy(x,y)=10x2y4x3y3x2y2\begin{align*} 0&=f_x(x,y) = 10xy^2 -6x^2y^2 -2xy^3 \\ 0&=f_y(x,y) = 10x^2y -4x^3y -3x^2y^2 \end{align*}

(note that the first order partial derivatives are defined everywhere) or, dividing by the first equation by xy2xy^2 and the second equation by x2yx^2y, (recall that x,y0x,y\ne 0)

106x2y=0or3x+y=5104x3y=0or4x+3y=10\begin{alignat*}{3} 10 -6x -2y &=0 &\qquad\text{or}\qquad 3x+y&=5 \\ 10 -4x -3y &=0 &\qquad\text{or}\qquad 4x+3y&=10 \end{alignat*}

Substituting y=53xy=5-3x, from the first equation, into the second equation gives

4x+3(53x)=10    5x+15=10    x=1, y=53(1)=2\begin{equation*} 4x+3(5-3x)=10 \implies{} -5x +15 =10 \implies{} x=1,\ y=5-3(1)=2 \end{equation*}

So the maximum value of ff is (1)2(2)2(522)=4(1)^2(2)^2(5-2-2)=4 at (1,2,1)(1,2,1).

Q16Stage 3Past exam · M200 2002A
  1. Show that the function f(x,y)=2x+4y+1xyf(x,y)=2x+4y+\frac{1}{xy} has exactly one critical point in the first quadrant x>0x>0, y>0y>0, and find its value at that point.

  2. Use the second derivative test to classify the critical point in part (a).

  3. Explain why the inequality 2x+4y+1xy62x+4y+\frac{1}{xy}\ge 6 is valid for all positive real numbers xx and yy.

Answer

(a) x=1x=1, y=12y=\half, f(1,12)=6f\big(1,\half\big)=6 (b) local minimum

(c) As xx or yy tends to infinity (with the other at least zero), 2x+4y2x+4y tends to ++\infty. As (x,y)(x,y) tends to any point on the first quadrant part of the xx- and yy–axes, 1xy\frac{1}{xy} tends to ++\infty.
Hence as xx or yy tends to the boundary of the first quadrant (counting infinity as part of the boundary), f(x,y)f(x,y) tends to ++\infty. As a result (1,12)\big(1,\half\big) is a global (and not just local) minimum for ff in the first quadrant. Hence f(x,y)f(1,12)=6f(x,y)\ge f\big(1,\half\big)=6 for all x,y>0x,y>0.

Full solution

(a) For x,y>0x,y>0, fxf_x and fyf_y are well-defined and so the critical points are the solutions of

fx=21x2y=0    y=12x2fy=41xy2=0\begin{align*} f_x&=2-\frac{1}{x^2y}=0\iff{} y=\frac{1}{2x^2}\cr f_y&=4-\frac{1}{xy^2}=0 \end{align*}

Substituting y=12x2y=\frac{1}{2x^2}, from the first equation, into the second gives 44x3=04-4x^3=0 which forces x=1x=1, y=12y=\half. At x=1x=1, y=12y=\half,

f(1,12)=2+2+2=6\begin{equation*} f\big(1,\half\big)=2+2+2=6 \end{equation*}

(b) The second derivatives are

fxx(x,y)=2x3yfxy(x,y)=1x2y2fyy(x,y)=2xy3\begin{equation*} f_{xx}(x,y)=\frac{2}{x^3y}\qquad f_{xy}(x,y)=\frac{1}{x^2y^2}\qquad f_{yy}(x,y)=\frac{2}{xy^3} \end{equation*}

In particular

fxx(1,12)=4fxy(1,12)=4fyy(1,12)=16\begin{equation*} f_{xx}\big(1,\half\big)=4\qquad f_{xy}\big(1,\half\big)=4\qquad f_{yy}\big(1,\half\big)=16 \end{equation*}

Since $f_{xx}\big(1,\half\big)f_{yy}\big(1,\half\big)- f_{xy}\big(1,\half\big)^2=4\times 16-4^2=48>0$ and fxx(1,12)=4>0f_{xx}\big(1,\half\big)=4>0, the point (1,12)\big(1,\half\big) is a local minimum.

(c) As xx or yy tends to infinity (with the other at least zero), 2x+4y2x+4y tends to ++\infty. As (x,y)(x,y) tends to any point on the first quadrant part of the xx- and yy–axes, 1xy\frac{1}{xy} tends to ++\infty.
Hence as xx or yy tends to the boundary of the first quadrant (counting infinity as part of the boundary), f(x,y)f(x,y) tends to ++\infty. As a result (1,12)\big(1,\half\big) is a global (and not just local) minimum for ff in the first quadrant. Hence f(x,y)f(1,12)=6f(x,y)\ge f\big(1,\half\big)=6 for all x,y>0x,y>0.

Q17Stage 3

Let aa be a constant real number. Find all points on the surface

z=f(x,y)=x2+y2z=f(x,y)=x^2+y^2

that have minimum distance from the point (0,0,a)(0,0,a).

Hint

The answer will be piecewise, depending on what exactly aa is.

Answer

If a<12a<\frac12, then the closest point is the origin. If a12a\ge\frac12, then the closest points are the level curve where z=a12z=a-\frac12.

Full solution

First, let's visualize what's going on. Our surface looks like a bowl, sitting on the origin, opening upwards. It is radially symmetric about the zz-axis, with circular level curves. That means every point on a level curve is equidistant from the zz-axis. Since the point (0,0,a)(0,0,a) is on the zz-axis, if there is a point (x,y,z)(x,y,z) that has minimum distance to the point, then its entire level curve has the same minimum distance. So we expect our answer to look like a circle (or possibly a single point – a “circle" of radius 0). If aa is a negative number, it seems natural that the closest point would be (0,0,0)(0,0,0).

The distance from (0,0,a)(0,0,a) to an arbitrary point (x,y,z)(x,y,z) is x2+y2+(za)2\sqrt{x^2+y^2+(z-a)^2}. If the point (x,y,z)(x,y,z) is on our surface, then z=x2+y2z=x^2+y^2. Rather than deal with square roots, we'll minimize the distance squared:

f(x,y)=x2+y2+(x2+y2a)2f(x,y) = x^2+y^2+\left(x^2+y^2-a\right)^2

From our observations above, there will be no global maximum; the global minimum will be a local minimum; the global minimum will depend on aa in a less-than-simple way; and there are likely to be multiple points that are all minimum distance to (0,0,a)(0,0,a).

We start by finding critical points.

fx(x,y)=2x+2x2(x2+y2a)=2x(1+2(x2+y2a))=4x(x2+y2+12a)fy(x,y)=2y+2y2(x2+y2a)=2y(1+2(x2+y2a))=4y(x2+y2+12a)\begin{align*} f_x(x,y)&=2x+2x\cdot2\left(x^2+y^2-a\right)\\ &=2x\left(1+2\left(x^2+y^2-a\right)\right)\\ &=4x\left(x^2+y^2+\frac12-a\right) \\ f_y(x,y)&=2y+2y\cdot2\left(x^2+y^2-a\right)\\ &=2y\left(1+2\left(x^2+y^2-a\right)\right)\\ &=4y\left(x^2+y^2+\frac12-a\right) \end{align*}
  • For any value of aa, (x,y)=(0,0)(x,y)=(0,0) is a critical point.

  • If a<12a<\frac12, then the only critical point is (x,y)=(0,0)(x,y)=(0,0).

  • If a12a\ge \frac12, then all points on the level curve x2+y2=a12x^2+y^2 = a-\frac12 are critical points.

So if a<12a<\frac12, we're done: the single closest point on the surface is (0,0,0)(0,0,0).

Suppose a12a \ge \frac12. Now we need to decide whether (0,0,a)(0,0,a) is closer to the origin or to a poitn on the level curve x2+y2=a12x^2+y^2=a-\frac12.

  • f(0,0)=0+0+(0a)2=a2f(0,0)=0+0+(0-a)^2=a^2

  • If x2+y2=a12x^2+y^2=a-\frac12, then:

    f(x,y)=x2+y2+(x2+y2a)2=(a12)+(a12a)2=(a12)+14=a14\begin{align*} f(x,y)&=x^2+y^2+\left(x^2+y^2-a\right)^2\\ &=\left(a-\frac12\right)+\left(a-\frac12 - a\right)^2\\ &=\left(a-\frac12\right)+\frac14\\ &=a-\frac14 \end{align*}
  • All together, the origin is closer than the level curve when:

    a2<a14a2a+14<0(a12)2<0\begin{align*} a^2&<a-\frac14\\ a^2-a+\frac14&<0\\ \left(a-\frac12\right)^2&<0 \end{align*}

    which never happens. So the origin is never closer than the level curve, again provided a12a \ge \frac12.

So, all together: if a<12a<\frac12, then the closest point is the origin. If a12a\ge\frac12, then the closest points are the level curve where z=a12z=a-\frac12.

Q18Stage 3

The Scranton branch of a well-known paper company has two sizes of paper for sale - A4 and A3.

Each ream of A4 is sold at $6\char36 6; each ream of A3 is sold at $8\char36 8. Assume that every ream produced is sold.

Suppose xx is the quantity of materials that go into making A4 and yy is the quantity of materials that go into making A3. Then the costs involved in turning these materials into paper are $1x1\cdot x for A4 and $3y3\cdot y for A3.

There are different production procedures to produce each paper size. The production functions below give the number of reams of paper produced out of a given amount of materials.

f(x)=52x0.8g(y)=10y0.6\begin{align*} f(x)&=\dfrac{5}{2} x^{0.8}\tag{for A4}\\ g(y)&=10y^{0.6}\tag{for A3}\\ \end{align*}
  1. Build the (total) profit equation in terms of xx and yy. That is, find an equation Π(x,y)\Pi(x,y) that gives the total profit (revenue minus cost) over both paper types.

  2. Find the production quantities of both sizes of paper that maximizes profit.

  3. If the branch stops producing A4, what is the optimal production for A3 to maximize profit?

Hint

Instead of maximizing the total profit function, maximize the profit functions of each type of paper.

Answer
  1. The total profit is given by

    Π(x,y)=(15x0.8x)+(80y0.63y)\Pi(x,y)=(15x^{0.8}-x) + (80y^{0.6}-3y)
  2. The optimal production: x=248,832x= 248,832 leading to 51840 reams of A4 and y=1,024y= 1,024 leading to 640 reams of A3

  3. In this case, the optimal production is still 640640 reams of A3

Full solution
  1. Let us first find the profit equations for each of the paper sizes separately and then we sum them up to get the total profit function.

    Π4(x)=f(x)(6)x(1)=15x0.8xΠ3(y)=g(y)(8)y(3)=80y0.63y\begin{align*} \Pi_{4}(x)&=f(x)(6)-x(1)=15 x^{0.8}-x \tag{profit for A4}\\ \Pi_{3}(y)&=g(y)(8)-y(3)=80y^{0.6}-3y \tag{profit for A3}\\ \end{align*}

    and therefore, the total profit equation is given by

    Π(x,y)=Π4(x)+Π3(y)=(15x0.8x)+(80y0.63y)\begin{align*} \Pi(x,y)&=\Pi_{4(x)}+\Pi_{3}(y)\\ &=(15 x^{0.8}-x) + (80y^{0.6}-3y) \end{align*}

    Note that the production functions of the two paper types aren't really linked. It's as if one firm is doing all the A4, and a different firm is doing all the A3. So to maximize Π(x,y)\Pi(x,y), we can just find the maximum value of Π4\Pi_4 and the maximum value of Π3\Pi_3 separately.

  2. Note that x4,x3,x20x_4,x_3,x_2\geq 0 as we cannot produce negative amount of papers. (Maybe that would mean turning papers into trees?) Note also:

    Π4(0)=0limxΠ4(x)=Π3(0)=0limyΠ3(y)=\begin{align*} \Pi_4(0)&=0 & \lim_{x \to \infty}\Pi_4(x)&=-\infty\\ \Pi_3(0)&=0 & \lim_{y \to \infty}\Pi_3(y)&=-\infty \end{align*}

    Now let's consider critical points of each function.

    dΠ4dx=15(0.8)x0.21=12x0.21=0    x=125 Π4(125)=15(125)4/5125=15(124)125=3124dΠ3dy=80(0.6)y0.43=48y0.43=0    y=210Π3(210)=80(210)6/103210=52103210=211\begin{align*} \diff{\Pi_4}{x}&=15(0.8)x^{-0.2}-1=12x^{-0.2}-1=0 \implies x=12^5\\\ \Pi_4\left(12^5\right)&=15\left(12^5\right)^{4/5}-12^5 = 15\left(12^4\right)-12^5 = 3\cdot 12^4\\ \diff{\Pi_3}{y}&=80(0.6)y^{-0.4}-3=48y^{-0.4}-3=0\implies y=2^{10}\\ \Pi_3\left(2^{10}\right)&=80\left(2^{10}\right)^{6/10}-3\cdot2^{10}=5\cdot 2^{10}-3\cdot 2^{10}=2^{11} \end{align*}

    (Also x=0x=0 and y=0y=0 are critical points, since the derivatives are undefined there, but we've already considered them when we thought about endpoints.)

    Since Π4(125)>Π4(0)\Pi_4\left(12^5\right)>\Pi_4(0) and Π3(210)>Π3(0)\Pi_3\left(2^{10}\right)>\Pi_3\left(0\right), we see our maximum will occur when x=125x=12^5 and y=210y=2^{10}. Then the number of reams produced will be:

    f(125)=52(125)4/5=51840g(210)=10(210)6/10=640\begin{align*} f\left(12^5\right)&=\frac52\left(12^5\right)^{4/5}=51840\\ g\left(2^{10}\right)&=10\left(2^{10}\right)^{6/10}=640 \end{align*}
  3. As we saw before, the two reams are optimized separately. So the optimal production of A3 isn't affected by how much A4 is produced. That is, the branch should stick with y=1,024y=1,024 leading to 640 reams of A3.

Q19Stage 3

Ayan and Pipe each have a lemonade boutique. Making each pitcher of lemonade costs $1\char36 1. If Ayan wants to sell qAq_A lemonades, and Pipe want to sell qPq_P lemonades, then each pitcher of lemonade will be sold for this price:

p(qA,qP)=1212(qA+qP)\begin{equation*} p(q_A,q_P)=121-2(q_A +q_P) \end{equation*}
  1. Build the profit equation in terms of qAq_A and qPq_P for Ayan. Treating qPq_P as a constant, find the value of qAq_A that maximizes Ayan's profit. (Your answer will depend on qPq_P.)

  2. Build the profit equation in terms of qAq_A and qPq_P for Pipe. Treating qAq_A as a constant, find the value of qPq_P that maximizes Pipe's profit. (Your answer will depend on qAq_A.)

  3. Guess, using your intuition, how many pitchers are Ayan and Pipe are going to produce proportional to one another so that both of them maximize their respective profit functions.

  4. Verify your answer for (c) mathematically.

  5. Calculate the profit that each seller generates under these assumptions.

  6. What would be their joint profit if they collaborate? Build a new profit equation where Ayan and Pipe are collaborating and find the optimal joint profit. Compare this to their individual profit when they are competing and decide whether it would be better for them to collaborate or compete.

  7. Is it better for thirsty consumers when the two sellers collaborate, or when they compete?

Hint

Profit is (revenue) minus (costs). If Ayan and Pipe work separately, then each seller only sees the cost and revenue from the lemonade that they themselves sold.

To find how much each seller will sell when they are working separately, find out which values of qAq_A and qPq_P end up with both individual profit functions being maximized.

To find out how much they'll sell when they're working together, use your assumption from part (c) to make the solving smoother.

Answer
  1. ΠA(qA)=2qA2+120qA2qAqP\Pi_A(q_A) = -2q_A^{2} + 120q_A - 2q_Aq_P; maximum profit when qA=3012qPq_A=30-\frac12q_P

  2. ΠP(qP)=2qP2+120qP2qPqA\Pi_P(q_P)= -2q_P^{2} + 120q_P - 2q_Pq_A; maximum profit when qP=3012qAq_P=30-\frac12q_A

  3. Their businesses are identical, so we predict they will sell the same amounts of lemonade.

  4. If Ayan and Pipe sell 2020 pitchers they will maximize their respective profit functions.

  5. They would each make 800800 dollars in profit.

  6. Their optimal joint profit will be 1,8001,800 dollars. But, they need to share this profit among the two of them. So if they collaborate, they will each earn 900900 dollars. This is more than their individual optimal profit in the scenario where they are competing found in part (e) (we found this to be $800\char36 800). So it is better for them to collaborate!

  7. Collaborating sellers lead to higher prices and fewer goods, so it's better for consumers with the sellers compete

Full solution
  1. To find Ayan's profit equation, which we denote by ΠA\Pi_A, we just plug in the information we are given in the general profit equation (revenue minus cost).

    ΠA(qA)=qA[1212(qA+qP)]revenueqA(1)cost=121qA2qA22qAqPqA=2qA2+120qA2qAqP\begin{align*}\Pi_A(q_A) &= \underbrace{q_A\left[121-2(q_A+q_P)\right]}_{\text{revenue}}-\underbrace{q_A(1)}_{\text{cost}}\\ &= 121 q_A - 2q_A^{2} - 2q_Aq_P - q_A\\ &= -2q_A^{2} + 120q_A - 2q_Aq_P\end{align*}

    This is a parabola pointing down, so its maximum will be at its only critical point.

    dΠadqA=4qA+1202qP=04qA=1202qPq1=3012qP\begin{align*}\diff{\Pi_a}{q_A}&=-4q_A+120-2q_P=0\\ 4q_A&=120-2q_P\\ q_1&=30-\frac12q_P\end{align*}

    So Ayan would maximize their profit by selling 3012qP30-\frac12q_P servings of lemonade.

  2. This is very similar to the last part. We find Pipe's profit function.

    ΠP(qP)=qP[1212(qA+qP)]qP(1)=121qP2qP22qPqAqP=2qP2+120qP2qPqA\begin{align*} \Pi_P(q_P)&= q_P\left[121-2(q_A+q_P)\right]-q_P(1)\\ &= 121 q_P - 2q_P^{2} - 2q_Pq_A - q_P\\ &= -2q_P^{2} + 120q_P - 2q_Pq_A \end{align*}

    Note that this is ΠA\Pi_A if we switch the places of qAq_A and qPq_P. So Pipe would maximize their profit by selling 3012qA30-\frac12q_A pitchers of lemonade.

  3. Ayan's and Pipe's cost and price for every pitcher of lemonade produced are the same. Their businesses are identical. So we predict that they will sell the same amount of lemonade to maximize their respective profits.

  4. To find how much each seller will sell when they are working separately, find out which values of qAq_A and qPq_P end up with both individual profit functions being maximized. Therefore we solve the system of equations we get from (a) and (b).

    {qA=3012qPqP=3012qA    qP=3012(3012qP)qA=15+14qP    qP=20    qA=3012(20)qP=20\begin{align*} &\begin{cases} q_A&=30-\frac12q_P\\ q_P&=30-\frac12q_A\\ \end{cases}\\ \implies q_P&=30-\frac12\underbrace{\left(30-\frac12q_P\right)}_{q_A}=15+\frac14q_P\\ \implies q_P&=20\\ \implies q_A&=30-\frac12\underbrace{(20)}_{q_P}=20 \end{align*}

    So, as predicted, both sellers sell the same number of pitchers.

  5. We need to plug in qP=qA=20q_P=q_A=20 in ΠA\Pi_A and ΠP\Pi_P:

    ΠA(20)qP=20=2(20)2+120(20)2(20)(20)=800\left.\Pi_A(20)\right|_{q_P=20}=-2(20)^{2} + 120(20) - 2(20)(20)=800

    And similarly, ΠP(20)qA=20=800\left. \Pi_P(20)\right|_{q_A=20}=800. So, they would each make 800800 dollars in profit.

  6. The joint profit function is Π(qA,qP)=ΠA(qA)+ΠP(qP)\Pi(q_A,q_P) = \Pi_A(q_A)+\Pi_P(q_P). Note that here, Ayan and Pipe are helping each other to make the most profit, instead of competing. Using the same intuition as before, we can conclude that qA=qPq_A=q_P in this case too. (So they share the workload fairly!)

    So to make things easier let us assume qA=qPq_A=q_P and denote this quantity by qq. Then ΠA(q)=ΠP(q)=4q2+120q\Pi_A(q)=\Pi_P(q)=-4q^{2} + 120q. This means

    Πjoint(q)=ΠA(q)+ΠP(q)=2ΠA(q)=2(4q2+120q)=8q2+240q\begin{align*} \Pi_{\text{joint}}(q) &= \Pi_A(q) + \Pi_P(q)=2\Pi_A(q)\\ &= 2(-4q^{2} + 120q )\\ &= -8q^{2} + 240q \end{align*}

    This is a parabola pointing down, so its global min is at its sole critical point, q=15q=15.

    So q=qA=qP=15q=q_A=q_P= 15 maximizes the joint profit. Let us compute the corresponding joint profit

    Πjoint(15)=8(15)2+240(15)=1,800\Pi_{\text{joint}}(15)=-8(15)^{2} + 240(15)=1,800

    So their optimal joint profit will be 1,8001,800 dollars. But, they need to share this profit among the two of them. So if they collaborate, they will each earn 900900 dollars. This is more than their individual optimal profit in the scenario where they are competing found in part (e) (we found this to be $800\char36 800). So it is better for them to collaborate!

  7. When the two sellers collaborate, they sell fewer lemonades (30 pitchers total instead of 40 total) and the lemonade costs more ($60 instead of $40). So it's better for consumers when the sellers compete.

From the UBC Math 100 open textbook project, © Joel Feldman, Andrew Rechnitzer, Elyse Yeager and others. Licensed CC BY-NC-SA 4.0; this HTML adaptation is released under the same licence. Full attribution.