Unit 3, lesson 22

Absolute Extrema on Regions

When a function of two variables is sure to reach a largest and a smallest value on a region, and how to find them by checking the interior, every boundary piece and every corner.

  • Theory part 43
  • Practice part 44
  • Optimization

A metal plate is heated unevenly and you want its hottest and coldest spots. The answer could sit in the middle of the plate, somewhere along an edge, or right at a corner, and a search that skips any of these can miss it. This lesson gives a guarantee that the extremes exist and a search that looks in every place they can hide.

Key terms

Continuous function on a closed bounded region

Definition Let DD be a set in R2\mathbb{R}^2. A point PP is a boundary point of DD if every disk centered at PP contains points of DD and points not in DD. The set DD is closed if it contains all of its boundary points, and bounded if it lies inside some disk. A number f(P)f(P) is the absolute maximum of ff on DD if f(P)≥f(Q)f(P) \ge f(Q) for every QQ in DD, and the absolute minimum if f(P)≤f(Q)f(P) \le f(Q) for every QQ in DD.

The extreme value theorem says the following. If DD is a nonempty, closed and bounded set in R2\mathbb{R}^2 and ff is continuous at every point of DD, then there are points PP and QQ in DD with

f(Q)≤f(X)≤f(P)for all X in D.\begin{gathered} f(Q) \le f(X) \le f(P) \\[0.4em] \text{for all } X \text{ in } D. \end{gathered}

The same holds in Rn\mathbb{R}^n. Closed and bounded sets are also called compact.

In plain words If the region includes its edge, does not run off to infinity, and the function has no jumps, then a highest and a lowest value really exist. The theorem promises they exist but does not say where.

Example Take the closed disk DD given by x2+y2≤4x^2 + y^2 \le 4 and the continuous function f(x,y)=x2+y2f(x, y) = x^2 + y^2. The minimum is 00, reached only at the origin. The maximum is 44, and it is reached at every point of the circle x2+y2=4x^2 + y^2 = 4. So an absolute maximum can occur at infinitely many points at once.

Interior critical points

Definition A point PP of DD is an interior point if some disk centered at PP lies entirely in DD. If ff has a local maximum or local minimum at an interior point PP and both first partial derivatives exist there, then

fx(P)=0andfy(P)=0.f_x(P) = 0 \quad \text{and} \quad f_y(P) = 0.

An interior critical point is an interior point where both partial derivatives are zero or where at least one of them does not exist. An absolute extremum that occurs in the interior of DD is also a local extremum, so it must occur at an interior critical point.

In plain words Inside the region, the only places a high or low point can sit are where the surface is flat or where it has a crease or spike. You do not need to classify these points. You only record the value of ff at each one.

Example Throughout this lesson, let f(x,y)=x2−2xy+2yf(x, y) = x^2 - 2xy + 2y on the rectangle R=[0,3]×[0,2]R = [0, 3] \times [0, 2]. Its partial derivatives are

fx=2x−2y,fy=−2x+2.f_x = 2x - 2y, \qquad f_y = -2x + 2.

Setting both equal to zero gives x=1x = 1 and then y=1y = 1. The point (1,1)(1, 1) lies inside RR, and f(1,1)=1−2+2=1f(1, 1) = 1 - 2 + 2 = 1. A critical point outside the region would simply be ignored.

Boundary curves

Definition Suppose the boundary of DD is made of finitely many smooth curves C1,…,CkC_1, \dots, C_k, each given by a parametrization ri(t)\mathbf{r}_i(t) with tt in a closed interval [αi,βi][\alpha_i, \beta_i]. On CiC_i the values of ff are those of the one-variable function

gi(t)=f(ri(t)),αi≤t≤βi.g_i(t) = f(\mathbf{r}_i(t)), \qquad \alpha_i \le t \le \beta_i.

The extreme values of ff on CiC_i are the extreme values of gig_i on [αi,βi][\alpha_i, \beta_i], found as in single-variable calculus from the critical numbers of gig_i in (αi,βi)(\alpha_i, \beta_i) and the two endpoints. A point where ff has an extremum on the boundary need not have ∇f=0\nabla f = 0.

In plain words Walk along each edge, one at a time. On an edge only one quantity varies, so the problem turns into an ordinary closed interval problem.

Example The rectangle RR has four edges.

EdgeValues of ffSmallestLargest
y=0y = 0, 0≤x≤30 \le x \le 3x2x^200 at x=0x = 099 at x=3x = 3
x=3x = 3, 0≤y≤20 \le y \le 29−4y9 - 4y11 at y=2y = 299 at y=0y = 0
y=2y = 2, 0≤x≤30 \le x \le 3(x−2)2(x - 2)^200 at x=2x = 244 at x=0x = 0
x=0x = 0, 0≤y≤20 \le y \le 22y2y00 at y=0y = 044 at y=2y = 2

On the top edge the function x2−4x+4x^2 - 4x + 4 has a critical number at x=2x = 2, which gives the point (2,2)(2, 2) where f=0f = 0. At (2,2)(2, 2) the gradient is ⟨0,−2⟩\langle 0, -2 \rangle, not zero, yet ff is smallest there along that edge.

Corners

Definition A corner of the boundary is a point where two of the smooth boundary curves meet, or more generally a point of the boundary where it fails to be smooth. In the parametrizations above, corners are endpoints of the intervals [αi,βi][\alpha_i, \beta_i]. The value of ff at every corner belongs on the list of candidates.

The closed region method puts the pieces together. For ff continuous on a closed bounded region DD,

  1. evaluate ff at every interior critical point,
  2. find the extreme values of ff on every boundary curve, including its endpoints,
  3. evaluate ff at every corner.

The largest value found is the absolute maximum and the smallest is the absolute minimum.

In plain words Corners are where one edge hands over to the next, and endpoints of a closed interval are always candidates. Many absolute extrema on rectangles and triangles sit exactly there.

Example The corners of RR give f(0,0)=0f(0, 0) = 0, f(3,0)=9f(3, 0) = 9, f(3,2)=1f(3, 2) = 1 and f(0,2)=4f(0, 2) = 4. Here is the full list.

PointTypeValue
(1,1)(1, 1)interior critical point11
(2,2)(2, 2)edge critical number00
(0,0)(0, 0)corner00
(3,0)(3, 0)corner99
(3,2)(3, 2)corner11
(0,2)(0, 2)corner44

The absolute maximum is 99 at the corner (3,0)(3, 0). The absolute minimum is 00, reached at (0,0)(0, 0) and at (2,2)(2, 2). The interior critical point is neither.

Constrained domains

Definition A constrained domain is a region DD described by inequality constraints, the set of all points (x,y)(x, y) with

G1(x,y)≤c1,…,Gk(x,y)≤ck,\begin{gathered} G_1(x, y) \le c_1, \quad \dots, \\[0.4em] G_k(x, y) \le c_k, \end{gathered}

where every GiG_i is continuous on R2\mathbb{R}^2. Finding the extrema of ff on DD means optimizing ff subject to these constraints. Such a set is always closed, but whether it is bounded must be checked. A point where every inequality is strict is an interior point, so every boundary point makes at least one constraint an equation. The boundary curves lie on the level curves Gi(x,y)=ciG_i(x, y) = c_i, and corners are typically points where two constraints hold with equality at once. On a boundary curve the variables are tied together, so ff is optimized along it by parametrizing the curve, by solving the equation for one variable while keeping the allowed range of the other, or by Lagrange multipliers. The function ff must also be continuous on all of DD, so DD has to lie inside the domain of ff.

In plain words The edge of a disk or an ellipse is a single curved boundary. Substituting the constraint is fine, as long as you remember which values the remaining variable may take.

Example Find the extreme values of f(x,y)=x2+2y2−xf(x, y) = x^2 + 2y^2 - x on the closed disk x2+y2≤1x^2 + y^2 \le 1, a constrained domain with the single constraint G(x,y)=x2+y2≤1G(x, y) = x^2 + y^2 \le 1. Inside, fx=2x−1f_x = 2x - 1 and fy=4yf_y = 4y vanish only at (12,0)\left(\tfrac{1}{2}, 0\right), an interior point with f=−14f = -\tfrac{1}{4}. On the circle y2=1−x2y^2 = 1 - x^2, and here xx is restricted to [−1,1][-1, 1], so

f=x2+2(1−x2)−x=2−x−x2,−1≤x≤1.\begin{aligned} f &= x^2 + 2(1 - x^2) - x \\[0.4em] &= 2 - x - x^2, \qquad -1 \le x \le 1. \end{aligned}

Its derivative −1−2x-1 - 2x is zero at x=−12x = -\tfrac{1}{2}, which gives the points (−12,±32)\left(-\tfrac{1}{2}, \pm\tfrac{\sqrt{3}}{2}\right) with f=94f = \tfrac{9}{4}. The endpoints x=1x = 1 and x=−1x = -1 give f(1,0)=0f(1, 0) = 0 and f(−1,0)=2f(-1, 0) = 2. The absolute maximum is 94\tfrac{9}{4} at (−12,±32)\left(-\tfrac{1}{2}, \pm\tfrac{\sqrt{3}}{2}\right) and the absolute minimum is −14-\tfrac{1}{4} at (12,0)\left(\tfrac{1}{2}, 0\right). Forgetting the range [−1,1][-1, 1] would let 2−x−x22 - x - x^2 run down to −∞-\infty, which is nonsense on a circle.

Open and unbounded regions

Definition If DD is not closed or not bounded, the extreme value theorem does not apply and a continuous function may have no absolute maximum, no absolute minimum, or neither. Existence then needs a separate argument. One standard tool is the following. Let DD be closed and nonempty, let ff be continuous on DD, and suppose f(x,y)→∞f(x, y) \to \infty as x2+y2→∞\sqrt{x^2 + y^2} \to \infty with (x,y)(x, y) in DD. Then ff has an absolute minimum on DD. To find it, pick a point P0P_0 of DD and a radius ρ\rho so large that P0P_0 lies in the disk of radius ρ\rho about the origin and f>f(P0)f > f(P_0) at every point of DD outside that disk. The part of DD inside the closed disk is closed, bounded and nonempty, and its minimum is the absolute minimum on all of DD.

In plain words Without a closed edge, a value can be approached forever without being reached, and without a bounded region the values can escape to infinity. If the function grows large far away, the smallest value must be found somewhere in the middle.

Example On the open disk x2+y2<1x^2 + y^2 < 1 the function f(x,y)=x2+y2f(x, y) = x^2 + y^2 has minimum 00 at the origin but no maximum, since its values come as close to 11 as you like and never equal 11.

For an unbounded case, take f(x,y)=x4+y4−4xyf(x, y) = x^4 + y^4 - 4xy on all of R2\mathbb{R}^2. With r=x2+y2r = \sqrt{x^2 + y^2}, the inequalities x4+y4≥12r4x^4 + y^4 \ge \tfrac{1}{2} r^4 and 4∣xy∣≤2r24 \lvert xy \rvert \le 2r^2 give

f(x,y)≥12r4−2r2=12r2(r2−4),f(x, y) \ge \tfrac{1}{2} r^4 - 2r^2 = \tfrac{1}{2} r^2 (r^2 - 4),

so f≥0f \ge 0 when r≥2r \ge 2. Since f(1,1)=−2f(1, 1) = -2, the minimum of ff on the closed disk r≤2r \le 2 is negative. It cannot occur on the circle r=2r = 2, where f≥0f \ge 0, so it occurs at an interior point of the disk, which must be a critical point. Outside the disk f≥0f \ge 0 as well, so this is the minimum on the whole plane. Solving 4x3−4y=04x^3 - 4y = 0 and 4y3−4x=04y^3 - 4x = 0 gives (0,0)(0, 0), (1,1)(1, 1) and (−1,−1)(-1, -1), with values 00, −2-2 and −2-2. The absolute minimum on R2\mathbb{R}^2 is −2-2, at (1,1)(1, 1) and (−1,−1)(-1, -1). There is no absolute maximum, because f(x,0)=x4f(x, 0) = x^4 grows without bound.

Check yourself

  1. Find the absolute extreme values of f(x,y)=x2+y2−x−yf(x, y) = x^2 + y^2 - x - y on the closed triangle with corners (0,0)(0, 0), (2,0)(2, 0) and (0,2)(0, 2).
Show the answer

The only critical point is (12,12)\left(\tfrac{1}{2}, \tfrac{1}{2}\right), which is inside, with f=−12f = -\tfrac{1}{2}. On the edge y=0y = 0 the values are x2−xx^2 - x for 0≤x≤20 \le x \le 2, with smallest value −14-\tfrac{1}{4} and largest 22, and the edge x=0x = 0 is the same with the roles swapped. On the edge y=2−xy = 2 - x the values are 2(x−1)22(x - 1)^2 for 0≤x≤20 \le x \le 2, between 00 and 22. The corners give 00, 22 and 22. The absolute maximum is 22 at (2,0)(2, 0) and (0,2)(0, 2), and the absolute minimum is −12-\tfrac{1}{2} at (12,12)\left(\tfrac{1}{2}, \tfrac{1}{2}\right).

  1. Find the absolute extreme values of f(x,y)=x+yf(x, y) = x + y on the annulus 1≤x2+y2≤41 \le x^2 + y^2 \le 4.
Show the answer

The gradient ⟨1,1⟩\langle 1, 1 \rangle is never zero, so there are no interior critical points. The annulus has two boundary circles. On the outer one, x=2cos⁡tx = 2\cos t and y=2sin⁡ty = 2\sin t give 2(cos⁡t+sin⁡t)2(\cos t + \sin t), which ranges from −22-2\sqrt{2} to 222\sqrt{2}. On the inner circle the values range only from −2-\sqrt{2} to 2\sqrt{2}. The absolute maximum is 222\sqrt{2} at (2,2)(\sqrt{2}, \sqrt{2}) and the absolute minimum is −22-2\sqrt{2} at (−2,−2)(-\sqrt{2}, -\sqrt{2}).

  1. Does the function f(x,y)=e−(x2+y2)f(x, y) = e^{-(x^2 + y^2)} have an absolute maximum and an absolute minimum on R2\mathbb{R}^2?
Show the answer

Since x2+y2≥0x^2 + y^2 \ge 0, every value satisfies 0<f(x,y)≤10 < f(x, y) \le 1, and f(0,0)=1f(0, 0) = 1. So the absolute maximum is 11 at the origin. There is no absolute minimum, because the values approach 00 far from the origin but are never equal to 00. The plane is not bounded, so the extreme value theorem gives no guarantee.

How this lesson connects

It also uses Functions and domain geometry, Critical points and Single-variable optimization.