Multivariable CalculusOptimization3 of 6
Optimization · 3

Absolute Extrema

When we cut a surface z=f(x,y)\surf{z = f(x, y)} down to the piece above a closed, bounded region in the xyxy-plane, we want to find its absolute highest and lowest points.

Closed, Bounded Regions and the Suspect List
xx
yy
zz
f(x,y)\htmlClass{lc-blue}{f(x, y)}

On a single-variable interval [a,b][a, b], the boundary is just the two endpoints aa and bb. On a two-dimensional region, the boundary is a loop of edges and corners with infinitely many points, so we need a way to narrow the boundary down to a finite list of suspects.

Finding Suspects on the Inside, Edges and Corners
xx
yy
zz
f(x,y)\htmlClass{lc-blue}{f(x, y)}

To find the highest and lowest points of a continuous function f(x,y)\surf{f(x, y)} on a closed, bounded region, we gather three types of suspects and compare their heights f(x,y)\surf{f(x, y)}:

You don't need the Second Derivative Test D=fxxfyy−(fxy)2\aside{D = f_{xx}f_{yy} - (f_{xy})^2} here, because comparing the heights f(x,y)\surf{f(x, y)} at the end automatically rules out any saddle points.

An interior critical point only counts while it lies inside the region; once the surface's peak or valley moves outside the boundary, the highest or lowest point occurs on an edge or at a corner instead.

An inside flat spot only counts while it lies in the region, so once the hill’s peak passes outside the boundary, the highest point lands on an edge or at a corner instead.
1

Regions with Straight Edges

Let's find the absolute maximum and minimum values of

f(x,y)=x2+y2−2x−4y\displaystyle \surf{f(x, y) = x^2 + y^2 - 2x - 4y}

on the closed triangle bounded by x=0x = 0, y=0y = 0, and x+y=4x + y = 4.

Example: Absolute Extrema on a Triangle
xx
yy
zz
f(x,y)\htmlClass{lc-blue}{f(x, y)}
y=0y = 0
x=0x = 0
x+y=4x + y = 4
xx
yy
y=0y = 0
x=0x = 0
y=4−xy = 4 - x
(1, 2)(1,\,2)
(1, 0)(1,\,0)
(0, 2)(0,\,2)
(1.5, 2.5)(1.5,\,2.5)
(0, 0)(0,\,0)
(4, 0)(4,\,0)
(0, 4)(0,\,4)
Text solution
Find critical points inside the triangleSet both partial derivatives to zero and check that the point lands inside the boundaries x>0x > 0, y>0y > 0, and x+y<4x + y < 4.
fx=2x−2=0  ⟹  x=1fy=2y−4=0  ⟹  y=21+2=3<4  ⟹  Suspect 1: (1,2)\displaystyle \begin{aligned} \slope{f_x} &= 2x - 2 = 0 \implies x = 1 \\ \slope{f_y} &= 2y - 4 = 0 \implies y = 2 \\ 1 + 2 &= 3 < 4 \\ &\implies \text{Suspect 1: } (1, 2) \end{aligned}
Check the bottom edge (y=0(y = 0, 0≤x≤4)0 \le x \le 4)Substitute y=0y = 0 into f(x,y)\surf{f(x, y)} and set the derivative of the resulting single-variable function to zero.
f(x,0)=x2+02−2x−4(0)=x2−2x(x2−2x)′=2x−2=0  ⟹  x=1  ⟹  Suspect 2: (1,0)\displaystyle \begin{aligned} \surf{f(x, 0)} &= x^2 + 0^2 - 2x - 4(0) \\ &= \surf{x^2 - 2x} \\ \slope{(x^2 - 2x)'} &= 2x - 2 = 0 \\ &\implies x = 1 \\ &\implies \text{Suspect 2: } (1, 0) \end{aligned}
Check the left edge (x=0(x = 0, 0≤y≤4)0 \le y \le 4)Substitute x=0x = 0 into f(x,y)\surf{f(x, y)} and set the derivative along the yy-axis to zero.
f(0,y)=02+y2−2(0)−4y=y2−4y(y2−4y)′=2y−4=0  ⟹  y=2  ⟹  Suspect 3: (0,2)\displaystyle \begin{aligned} \surf{f(0, y)} &= 0^2 + y^2 - 2(0) - 4y \\ &= \surf{y^2 - 4y} \\ \slope{(y^2 - 4y)'} &= 2y - 4 = 0 \\ &\implies y = 2 \\ &\implies \text{Suspect 3: } (0, 2) \end{aligned}
Check the slanted edge (y=4−x(y = 4 - x, 0≤x≤4)0 \le x \le 4)Replace yy with 4−x4 - x to turn the slanted slice into a function of xx alone, set its derivative to zero, and plug xx back into y=4−xy = 4 - x.
f(x,4−x)=x2+(4−x)2−2x−4(4−x)=x2+16−8x+x2−2x−16+4x=2x2−6x(2x2−6x)′=4x−6=0  ⟹  x=1.5y=4−1.5=2.5  ⟹  Suspect 4: (1.5,2.5)\displaystyle \begin{gathered} \begin{aligned} \surf{f(x, 4 - x)} &= x^2 + (4 - x)^2 \\ &\quad - 2x - 4(4 - x) \\ &= x^2 + 16 - 8x + x^2 \\ &\quad - 2x - 16 + 4x \\ &= \surf{2x^2 - 6x} \\ \slope{(2x^2 - 6x)'} &= 4x - 6 = 0 \\ &\implies x = 1.5 \\ y &= 4 - 1.5 = 2.5 \end{aligned} \\ \implies \text{Suspect 4: } (1.5, 2.5) \end{gathered}
Add the corners and compare heightsInclude the three corners (0,0)(0, 0), (4,0)(4, 0), and (0,4)(0, 4) where the edges meet, then evaluate f(x,y)=x2+y2−2x−4y\surf{f(x, y) = x^2 + y^2 - 2x - 4y} at all seven suspects.
f(1,2)=12+22−2(1)−4(2)=−5f(1,0)=12+02−2(1)−4(0)=−1f(0,2)=02+22−2(0)−4(2)=−4f(1.5,2.5)=(1.5)2+(2.5)2−2(1.5)−4(2.5)=−4.5f(0,0)=0f(4,0)=42+02−2(4)−4(0)=8f(0,4)=02+42−2(0)−4(4)=0\displaystyle \begin{aligned} \surf{f(1, 2)} &= 1^2 + 2^2 \\ &\quad - 2(1) - 4(2) = \surf{-5} \\ \surf{f(1, 0)} &= 1^2 + 0^2 \\ &\quad - 2(1) - 4(0) = \surf{-1} \\ \surf{f(0, 2)} &= 0^2 + 2^2 \\ &\quad - 2(0) - 4(2) = \surf{-4} \\ \surf{f(1.5, 2.5)} &= (1.5)^2 + (2.5)^2 \\ &\quad - 2(1.5) - 4(2.5) \\ &= \surf{-4.5} \\ \surf{f(0, 0)} &= \surf{0} \\ \surf{f(4, 0)} &= 4^2 + 0^2 \\ &\quad - 2(4) - 4(0) = \surf{8} \\ \surf{f(0, 4)} &= 0^2 + 4^2 \\ &\quad - 2(0) - 4(4) = \surf{0} \end{aligned}

So the absolute minimum is −5-5 at the bottom of the bowl (1,2)(1, 2) inside the triangle, and the absolute maximum is 88 at the corner (4,0)(4, 0) farthest from (1,2)(1, 2).

Along the triangle's boundary, each edge slice dips lowest where it passes closest to the bowl's bottom and climbs highest at the corner farthest from it.
2

Regions with a Curved Boundary

Now suppose the region is a circular disk. A circle has no corners, and solving its equation for yy introduces square roots, so we look for a cleaner way to substitute the boundary into f(x,y)\surf{f(x, y)}.

We want to find the absolute maximum and minimum values of

f(x,y)=x2+2y2−2x\displaystyle \surf{f(x, y) = x^2 + 2y^2 - 2x}

on the closed circular disk x2+y2≤4x^2 + y^2 \le 4.

Example: Absolute Extrema on a Circular Disk
xx
yy
zz
f(x,y)\htmlClass{lc-blue}{f(x, y)}
x2+y2≤4x^2 + y^2 \le 4
xx
yy
x2+y2=4x^2 + y^2 = 4
(1, 0)(1,\,0)
(−1, 3)(-1,\,\sqrt{3})
(−1, −3)(-1,\,-\sqrt{3})
(−2, 0)(-2,\,0)
(2, 0)(2,\,0)
Text solution
Find critical points inside the disk (x2+y2<4)(x^2 + y^2 < 4)Set both partial derivatives to zero and check that the point lies inside the circle of radius 22.
fx=2x−2=0  ⟹  x=1fy=4y=0  ⟹  y=012+02=1<4  ⟹  Suspect 1: (1,0)\displaystyle \begin{aligned} \slope{f_x} &= 2x - 2 = 0 \implies x = 1 \\ \slope{f_y} &= 4y = 0 \implies y = 0 \\ 1^2 + 0^2 &= 1 < 4 \\ &\implies \text{Suspect 1: } (1, 0) \end{aligned}
Substitute y2y^2 on the boundary circle (x2+y2=4)(x^2 + y^2 = 4)Solve for y2=4−x2y^2 = 4 - x^2 directly instead of solving for yy, and keep xx on the closed interval [−2,2][-2, 2] where 4−x2≥04 - x^2 \ge 0.
g(x)=x2+2(4−x2)−2x=−x2−2x+8,−2≤x≤2\displaystyle \begin{gathered} \begin{aligned} \surf{g(x)} &= x^2 + 2(4 - x^2) - 2x \\ &= \surf{-x^2 - 2x + 8}, \end{aligned} \\ -2 \le x \le 2 \end{gathered}
Find critical points along the circleSet g′(x)=0\slope{g'(x)} = 0 on (−2,2)(-2, 2) and plug xx back into y2=4−x2y^2 = 4 - x^2 to get the matching points on both halves of the circle.
g′(x)=−2x−2=0  ⟹  x=−1y2=4−(−1)2=3  ⟹  y=±3  ⟹  Suspects 2 and 3: (−1,3),  (−1,−3)\displaystyle \begin{aligned} \slope{g'(x)} &= -2x - 2 = 0 \\ &\implies x = -1 \\ y^2 &= 4 - (-1)^2 = 3 \\ &\implies y = \pm\sqrt{3} \\ &\implies \text{Suspects 2 and 3: } \\ &\qquad (-1, \sqrt{3}),\; (-1, -\sqrt{3}) \end{aligned}
Include the xx-interval endpoints and compare heightsFind the circle points at the endpoints x=−2x = -2 and x=2x = 2, then evaluate f(x,y)\surf{f(x, y)} at all five suspects.
x=−2  ⟹  y2=4−(−2)2=0  ⟹  Suspect 4: (−2,0)x=2  ⟹  y2=4−22=0  ⟹  Suspect 5: (2,0)f(1,0)=12+2(0)2−2(1)=−1f(−1,3)=(−1)2+2(3)2−2(−1)=9f(−1,−3)=(−1)2+2(−3)2−2(−1)=9f(−2,0)=(−2)2+2(0)2−2(−2)=8f(2,0)=22+2(0)2−2(2)=0\displaystyle \begin{gathered} \begin{aligned} x &= -2 \implies y^2 = 4 - (-2)^2 = 0 \\ &\implies \text{Suspect 4: } (-2, 0) \\ x &= 2 \implies y^2 = 4 - 2^2 = 0 \\ &\implies \text{Suspect 5: } (2, 0) \end{aligned} \\[6pt] \begin{aligned} \surf{f(1, 0)} &= 1^2 + 2(0)^2 \\ &\quad - 2(1) = \surf{-1} \\ \surf{f(-1, \sqrt{3})} &= (-1)^2 + 2(\sqrt{3})^2 \\ &\quad - 2(-1) = \surf{9} \\ \surf{f(-1, -\sqrt{3})} &= (-1)^2 + 2(-\sqrt{3})^2 \\ &\quad - 2(-1) = \surf{9} \\ \surf{f(-2, 0)} &= (-2)^2 + 2(0)^2 \\ &\quad - 2(-2) = \surf{8} \\ \surf{f(2, 0)} &= 2^2 + 2(0)^2 \\ &\quad - 2(2) = \surf{0} \end{aligned} \end{gathered}

So the absolute minimum is −1-1 inside the disk at (1,0)(1, 0), and the absolute maximum is 99, occurring in a two-way tie on the boundary at (−1,3)(-1, \sqrt{3}) and (−1,−3)(-1, -\sqrt{3}).

On the circular boundary, the top and bottom halves have the exact same height at every xx-value, so the whole 3D rim matches a single parabola.

Summary

To find the absolute maximum and minimum of a continuous function f(x,y)\surf{f(x, y)} on a closed, bounded region, build a finite suspect list and compare their heights f(x,y)\surf{f(x, y)}. You don't need the Second Derivative Test D=fxxfyy−(fxy)2\aside{D = f_{xx}f_{yy} - (f_{xy})^2} here, because comparing f(x,y)\surf{f(x, y)} across all suspects at the end automatically rules out saddle points.

Inside the region

Solve fx=0\slope{f_x} = 0 and fy=0\slope{f_y} = 0 together, and also include any interior point where fx\slope{f_x} or fy\slope{f_y} does not exist (such as (0,0)(0, 0) when x2+y2\sqrt{x^2 + y^2} is in the denominator of fx\slope{f_x}). Immediately check that each point satisfies the region's inequalities (like (1,2)(1, 2), which stays inside x+y≤4x + y \le 4 because 1+2<41 + 2 < 4), and throw out any point that falls outside.

Boundary edges

Substitute each boundary equation into f(x,y)\surf{f(x, y)} to turn it into a single-variable function, then find where its derivative is zero or undefined inside that edge's interval. On a straight line like x+y=4x + y = 4, substitute y=4−xy = 4 - x on 0≤x≤40 \le x \le 4. On a curved boundary like x2+y2=4x^2 + y^2 = 4 with f(x,y)=x2+2y2−2x\surf{f(x, y) = x^2 + 2y^2 - 2x}, do not solve for y=±4−x2y = \pm\sqrt{4 - x^2} when yy only appears as y2y^2; substitute y2=4−x2y^2 = 4 - x^2 directly on −2≤x≤2-2 \le x \le 2, and remember that solving y2=3y^2 = 3 gives two points, y=±3y = \pm\sqrt{3}.

Corners and interval endpoints

Add the corners where boundary edges meet, such as (0,0)(0, 0), (4,0)(4, 0), and (0,4)(0, 4) on the triangle. When a curved boundary has no corners, include the endpoints of your substitution interval instead, such as x=−2x = -2 and x=2x = 2 on x2+y2=4x^2 + y^2 = 4.

Compare values

Plug every suspect into f(x,y)\surf{f(x, y)}. The largest output is the absolute maximum and the smallest output is the absolute minimum.

3

Practice

1

Find the absolute maximum and minimum values of f(x,y)=x2+y2−4x+2y\surf{f(x, y)} = \surf{x^2 + y^2 - 4x + 2y} on the closed rectangle 0≤x≤30 \le x \le 3, 0≤y≤20 \le y \le 2, and state the points where they occur.

After solving fx=0\slope{f_x} = 0 and fy=0\slope{f_y} = 0, check whether that point actually sits inside 0≤x≤30 \le x \le 3 and 0≤y≤20 \le y \le 2 before checking the four edges y=0y = 0, y=2y = 2, x=0x = 0, and x=3x = 3.

Inside the rectangle:
fx=2x−4=0  ⟹  x=2fy=2y+2=0  ⟹  y=−1\displaystyle \begin{aligned} \slope{f_x} &= 2x - 4 = 0 \implies x = 2 \\ \slope{f_y} &= 2y + 2 = 0 \implies y = -1 \end{aligned}
Watch out: y=−1\aside{y = -1} lies outside 0≤y≤20 \le y \le 2, so discard (2,−1)\aside{(2, -1)} (keeping (2,−1)\aside{(2, -1)} without checking the rectangle's bounds gives the wrong minimum −5-5).
Along the four edges:
Bottom (y=0,  0≤x≤3):f(x,0)=x2−4x  ⟹  2x−4=0  ⟹  x=2  ⟹  (2,0)Top (y=2,  0≤x≤3):f(x,2)=x2−4x+8  ⟹  2x−4=0  ⟹  x=2  ⟹  (2,2)Left (x=0,  0≤y≤2):f(0,y)=y2+2y  ⟹  2y+2=0  ⟹  y=−1 (outside [0,2], discard)Right (x=3,  0≤y≤2):f(3,y)=y2+2y−3  ⟹  2y+2=0  ⟹  y=−1 (outside [0,2], discard)\displaystyle \begin{aligned} &\text{Bottom } (y = 0,\; 0 \le x \le 3): \\ &\quad \surf{f(x, 0)} = \surf{x^2 - 4x} \\ &\quad \implies \slope{2x - 4} = 0 \implies x = 2 \\ &\quad \implies (2, 0) \\[6pt] &\text{Top } (y = 2,\; 0 \le x \le 3): \\ &\quad \surf{f(x, 2)} = \surf{x^2 - 4x + 8} \\ &\quad \implies \slope{2x - 4} = 0 \implies x = 2 \\ &\quad \implies (2, 2) \\[6pt] &\text{Left } (x = 0,\; 0 \le y \le 2): \\ &\quad \surf{f(0, y)} = \surf{y^2 + 2y} \\ &\quad \implies \slope{2y + 2} = 0 \implies \aside{y = -1} \\ &\quad \text{ (outside } [0, 2]\text{, discard)} \\[6pt] &\text{Right } (x = 3,\; 0 \le y \le 2): \\ &\quad \surf{f(3, y)} = \surf{y^2 + 2y - 3} \\ &\quad \implies \slope{2y + 2} = 0 \implies \aside{y = -1} \\ &\quad \text{ (outside } [0, 2]\text{, discard)} \end{aligned}
Include the four corners (0,0)(0, 0), (3,0)(3, 0), (0,2)(0, 2), and (3,2)(3, 2), and compare f(x,y)\surf{f(x, y)}:
f(2,0)=−4f(2,2)=4f(0,0)=0f(3,0)=−3f(0,2)=8f(3,2)=5\displaystyle \begin{aligned} \surf{f(2, 0)} &= \surf{-4} \\ \surf{f(2, 2)} &= \surf{4} \\ \surf{f(0, 0)} &= \surf{0} \\ \surf{f(3, 0)} &= \surf{-3} \\ \surf{f(0, 2)} &= \surf{8} \\ \surf{f(3, 2)} &= \surf{5} \end{aligned}
Absolute maximum is 88 at (0,2)(0, 2); absolute minimum is −4-4 at (2,0)(2, 0).
2

Find the absolute maximum and minimum values of f(x,y)=xy−x−y\surf{f(x, y) = xy - x - y} on the closed triangle bounded by x=0x = 0, y=0y = 0, and x+y=6x + y = 6, and state the points where they occur.

When taking fx\slope{f_x} and fy\slope{f_y}, treat the other variable in xyxy as a constant multiplier; along the slanted edge, substitute y=6−xy = 6 - x for 0≤x≤60 \le x \le 6.

Inside the triangle (x>0(x > 0, y>0y > 0, x+y<6)x + y < 6):
fx=y−1=0  ⟹  y=1fy=x−1=0  ⟹  x=11+1=2<6  ⟹  (1,1)\displaystyle \begin{aligned} \slope{f_x} &= y - 1 = 0 \implies y = 1 \\ \slope{f_y} &= x - 1 = 0 \implies x = 1 \\ 1 + 1 &= 2 < 6 \implies (1, 1) \end{aligned}
Watch out: (1,1)(1, 1) is inside the triangle, but do not assume an interior critical point is automatically the highest or lowest point. It is a saddle point with f(1,1)=−1\surf{f(1, 1) = -1} (forgetting to test the corners (6,0)(6, 0) and (0,6)(0, 6) leaves you with the wrong minimum −1-1 at (1,1)(1, 1)).
Along the three edges:
Bottom (y=0,  0≤x≤6):f(x,0)=−x  ⟹  (−x)′=−1≠0 (no critical points)Left (x=0,  0≤y≤6):f(0,y)=−y  ⟹  (−y)′=−1≠0 (no critical points)Slanted (y=6−x,  0≤x≤6):f(x,6−x)=x(6−x)−x−(6−x)=−x2+6x−6(−x2+6x−6)′=−2x+6=0  ⟹  x=3,  y=3  ⟹  (3,3)\displaystyle \begin{aligned} &\text{Bottom } (y = 0,\; 0 \le x \le 6): \\ &\quad \surf{f(x, 0)} = \surf{-x} \\ &\quad \implies \slope{(-x)'} = -1 \ne 0 \\ &\quad \text{ (no critical points)} \\[6pt] &\text{Left } (x = 0,\; 0 \le y \le 6): \\ &\quad \surf{f(0, y)} = \surf{-y} \\ &\quad \implies \slope{(-y)'} = -1 \ne 0 \\ &\quad \text{ (no critical points)} \\[6pt] &\text{Slanted } (y = 6 - x,\; 0 \le x \le 6): \\ &\quad \surf{f(x, 6 - x)} \\ &\qquad = x(6 - x) - x - (6 - x) \\ &\qquad = \surf{-x^2 + 6x - 6} \\ &\quad \slope{(-x^2 + 6x - 6)'} = -2x + 6 = 0 \\ &\quad \implies x = 3,\; y = 3 \implies (3, 3) \end{aligned}
Include the three corners (0,0)(0, 0), (6,0)(6, 0), and (0,6)(0, 6), and compare f(x,y)\surf{f(x, y)}:
f(1,1)=−1f(3,3)=3f(0,0)=0f(6,0)=−6f(0,6)=−6\displaystyle \begin{aligned} \surf{f(1, 1)} &= \surf{-1} \\ \surf{f(3, 3)} &= \surf{3} \\ \surf{f(0, 0)} &= \surf{0} \\ \surf{f(6, 0)} &= \surf{-6} \\ \surf{f(0, 6)} &= \surf{-6} \end{aligned}
Absolute maximum is 33 at (3,3)(3, 3); absolute minimum is −6-6 at both (6,0)(6, 0) and (0,6)(0, 6).
3

Find the absolute maximum and minimum values of f(x,y)=y2−x2−4y\surf{f(x, y) = y^2 - x^2 - 4y} on the closed circular disk x2+y2≤9x^2 + y^2 \le 9, and state the points where they occur.

Notice which variable in f(x,y)=y2−x2−4y\surf{f(x, y) = y^2 - x^2 - 4y} appears only squared. Solve for that squared term from x2+y2=9x^2 + y^2 = 9 so the boundary becomes a function of yy on [−3,3][-3, 3].

Inside the disk (x2+y2<9)(x^2 + y^2 < 9):
fx=−2x=0  ⟹  x=0fy=2y−4=0  ⟹  y=202+22=4<9  ⟹  (0,2)\displaystyle \begin{aligned} \slope{f_x} &= -2x = 0 \implies x = 0 \\ \slope{f_y} &= 2y - 4 = 0 \implies y = 2 \\ 0^2 + 2^2 &= 4 < 9 \implies (0, 2) \end{aligned}
Along the boundary circle (x2+y2=9)(x^2 + y^2 = 9), substitute x2=9−y2x^2 = 9 - y^2 for −3≤y≤3-3 \le y \le 3:
g(y)=y2−(9−y2)−4y=2y2−4y−9,−3≤y≤3g′(y)=4y−4=0  ⟹  y=1x2=9−12=8  ⟹  x=±22  ⟹  (22,1),  (−22,1)\displaystyle \begin{aligned} \surf{g(y)} &= y^2 - (9 - y^2) - 4y \\ &= \surf{2y^2 - 4y - 9}, \quad -3 \le y \le 3 \\ \slope{g'(y)} &= 4y - 4 = 0 \implies y = 1 \\ x^2 &= 9 - 1^2 = 8 \implies x = \pm 2\sqrt{2} \\ &\implies (2\sqrt{2}, 1),\; (-2\sqrt{2}, 1) \end{aligned}
Watch out: do not forget the endpoints y=−3y = -3 and y=3y = 3 of the substitution interval [−3,3][-3, 3] (leaving out the interval endpoints misses (0,−3)(0, -3) and (0,3)(0, 3), giving the wrong maximum −4-4 at (0,2)(0, 2) instead of 2121 at (0,−3)(0, -3)):
y=−3  ⟹  x2=9−(−3)2=0  ⟹  (0,−3)y=3  ⟹  x2=9−32=0  ⟹  (0,3)\displaystyle \begin{aligned} y &= -3 \implies x^2 = 9 - (-3)^2 = 0 \\ &\implies (0, -3) \\ y &= 3 \implies x^2 = 9 - 3^2 = 0 \\ &\implies (0, 3) \end{aligned}
Compare f(x,y)\surf{f(x, y)} at all five suspects:
f(0,2)=−4f(22,1)=−11f(−22,1)=−11f(0,−3)=21f(0,3)=−3\displaystyle \begin{aligned} \surf{f(0, 2)} &= \surf{-4} \\ \surf{f(2\sqrt{2}, 1)} &= \surf{-11} \\ \surf{f(-2\sqrt{2}, 1)} &= \surf{-11} \\ \surf{f(0, -3)} &= \surf{21} \\ \surf{f(0, 3)} &= \surf{-3} \end{aligned}
Absolute maximum is 2121 at (0,−3)(0, -3); absolute minimum is −11-11 at (22,1)(2\sqrt{2}, 1) and (−22,1)(-2\sqrt{2}, 1).
4

Find the absolute maximum and minimum values of f(x,y)=2x2+y2−4y\surf{f(x, y) = 2x^2 + y^2 - 4y} on the closed region bounded by the parabola y=x2y = x^2 and the line y=4y = 4, and state the points where they occur.

Set x2=4x^2 = 4 to find the two corners where the parabola and line meet; along the parabolic boundary y=x2y = x^2, substitute yy directly for x2x^2.

Inside the region (x2<y<4)(x^2 < y < 4):
fx=4x=0  ⟹  x=0fy=2y−4=0  ⟹  y=2  ⟹  (0,2)\displaystyle \begin{aligned} \slope{f_x} &= 4x = 0 \implies x = 0 \\ \slope{f_y} &= 2y - 4 = 0 \implies y = 2 \\ &\implies (0, 2) \end{aligned}
Along the parabolic boundary (x2=y(x^2 = y, 0≤y≤4)0 \le y \le 4):
g(y)=2y+y2−4y=y2−2y,0≤y≤4g′(y)=2y−2=0  ⟹  y=1x2=1  ⟹  x=±1  ⟹  (−1,1),  (1,1)\displaystyle \begin{aligned} \surf{g(y)} &= 2y + y^2 - 4y \\ &= \surf{y^2 - 2y}, \quad 0 \le y \le 4 \\ \slope{g'(y)} &= 2y - 2 = 0 \implies y = 1 \\ x^2 &= 1 \implies x = \pm 1 \\ &\implies (-1, 1),\; (1, 1) \end{aligned}
At the bottom endpoint y=0y = 0 of the parabola, x2=0  ⟹  (0,0)x^2 = 0 \implies (0, 0).
Along the top line (y=4(y = 4, −2≤x≤2)-2 \le x \le 2):
f(x,4)=2x2+42−4(4)=2x2(2x2)′=4x=0  ⟹  x=0  ⟹  (0,4)\displaystyle \begin{aligned} \surf{f(x, 4)} &= 2x^2 + 4^2 - 4(4) = \surf{2x^2} \\ \slope{(2x^2)'} &= 4x = 0 \implies x = 0 \\ &\implies (0, 4) \end{aligned}
Where y=x2y = x^2 meets y=4y = 4, x2=4  ⟹  x=±2x^2 = 4 \implies x = \pm 2. Watch out: keep both the negative and positive roots for the corners (−2,4)(-2, 4) and (2,4)(2, 4) (taking only the positive root x=2x = 2 misses (−2,4)(-2, 4) in the two-way tie for the maximum).
Compare f(x,y)\surf{f(x, y)} at all seven suspects:
f(0,2)=−4f(−1,1)=−1f(1,1)=−1f(0,0)=0f(0,4)=0f(−2,4)=8f(2,4)=8\displaystyle \begin{aligned} \surf{f(0, 2)} &= \surf{-4} \\ \surf{f(-1, 1)} &= \surf{-1} \\ \surf{f(1, 1)} &= \surf{-1} \\ \surf{f(0, 0)} &= \surf{0} \\ \surf{f(0, 4)} &= \surf{0} \\ \surf{f(-2, 4)} &= \surf{8} \\ \surf{f(2, 4)} &= \surf{8} \end{aligned}
Absolute maximum is 88 at (−2,4)(-2, 4) and (2,4)(2, 4); absolute minimum is −4-4 at (0,2)(0, 2).
5

Find the absolute maximum and minimum values of f(x,y)=3x2+y2−2x\surf{f(x, y)} = \surf{3\sqrt{x^2 + y^2} - 2x} on the closed circular disk x2+y2≤4x^2 + y^2 \le 4, and state the points where they occur.

Check where the partial derivatives fx\slope{f_x} and fy\slope{f_y} are undefined as well as where they equal zero; on the boundary circle x2+y2=4x^2 + y^2 = 4, replace the entire x2+y2x^2 + y^2 under the square root with 44.

Inside the disk (x2+y2<4)(x^2 + y^2 < 4):
fx=3xx2+y2−2,fy=3yx2+y2\displaystyle \begin{aligned} \slope{f_x} &= \frac{3x}{\sqrt{x^2 + y^2}} - 2, \\ \slope{f_y} &= \frac{3y}{\sqrt{x^2 + y^2}} \end{aligned}
For (x,y)≠(0,0)(x, y) \ne (0, 0), fy=0\slope{f_y} = 0 gives y=0y = 0, and plugging y=0y = 0 into fx=0\slope{f_x} = 0 gives ±3−2≠0\pm 3 - 2 \ne 0, so the partial derivatives are never both zero. Watch out: at (0,0)(0, 0), the denominator x2+y2\sqrt{x^2 + y^2} is zero, so these formulas give no value there; (0,0)(0, 0) is the sharp tip of the cone, where fx\slope{f_x} and fy\slope{f_y} do not exist, making (0,0)(0, 0) an interior critical point (skipping points where the partial derivatives are undefined misses the sharp cone tip at (0,0)(0, 0) and gives the wrong minimum 22 at (2,0)(2, 0)).
Along the boundary circle (x2+y2=4(x^2 + y^2 = 4, −2≤x≤2)-2 \le x \le 2), substitute x2+y2=4x^2 + y^2 = 4 directly:
g(x)=34−2x=6−2x,−2≤x≤2g′(x)=−2≠0 (no critical points on (−2,2))\displaystyle \begin{aligned} \surf{g(x)} &= 3\sqrt{4} - 2x \\ &= \surf{6 - 2x}, \quad -2 \le x \le 2 \\ \slope{g'(x)} &= -2 \ne 0 \\ &\text{ (no critical points on } (-2, 2)\text{)} \end{aligned}
Include the interval endpoints x=−2x = -2 and x=2x = 2, which give (−2,0)(-2, 0) and (2,0)(2, 0), and compare f(x,y)\surf{f(x, y)}:
f(0,0)=0f(−2,0)=10f(2,0)=2\displaystyle \begin{aligned} \surf{f(0, 0)} &= \surf{0} \\ \surf{f(-2, 0)} &= \surf{10} \\ \surf{f(2, 0)} &= \surf{2} \end{aligned}
Absolute maximum is 1010 at (−2,0)(-2, 0); absolute minimum is 00 at (0,0)(0, 0).