Salta al contenuto
Note per Studenti Absolute Extrema on Compact Sets Report

Absolute Extrema on Compact Sets

In questa pagina 4

This note builds on Topology of Euclidean SpacesIn R^n the distance between two points is the Euclidean norm of their difference; open balls let us classify the points relative to a set (interior, exterior, boundary, accumulation, isolated) and define open, closed, bounded, compact (closed and bounded) and path-connected sets.Topology of Euclidean Spaces → and Free Extrema in Several VariablesIf f is differentiable and has a relative extremum at an interior point x0, then grad f(x0) = 0 (Fermat): interior extrema are found among the critical points. If f is C^2, at a critical point: Hessian positive definite gives a minimum, negative definite a maximum, indefinite a saddle, semidefinite means the test is inconclusive and one studies the sign of f(x) - f(x0). In two variables: det H > 0 and f_xx > 0 minimum, det H > 0 and f_xx < 0 maximum, det H < 0 saddle.Free Extrema in Several Variables →.

In one variable, a continuous function on [a,b][a, b] has a maximum and a minimum, and they are found among the interior stationary points and the endpoints aa, bb. In several variables the role of [a,b][a, b] is played by compact sets (closed and bounded, see Topology of Euclidean SpacesIn R^n the distance between two points is the Euclidean norm of their difference; open balls let us classify the points relative to a set (interior, exterior, boundary, accumulation, isolated) and define open, closed, bounded, compact (closed and bounded) and path-connected sets.Topology of Euclidean Spaces →) and the role of the two endpoints is played by the whole boundary, which consists of infinitely many points.

Weierstrass theorem. Let D⊂RnD \subset \mathbb{R}^n be a compact set and f:D→Rf: D \to \mathbb{R} a continuous function. Then there exist Pmin,Pmax∈DP_{min}, P_{max} \in D such that f(Pmin)≤f(P)≤f(Pmax)f(P_{min}) \leq f(P) \leq f(P_{max}) for every P∈DP \in D.

Example. f(x,y)=x+yf(x,y) = x + y on the closed disc x2+y2≤1x^2 + y^2 \le 1 (compact) has maximum 2\sqrt{2} at (22,22)\left(\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2}\right) and minimum −2-\sqrt{2} at the opposite point.

All the hypotheses are needed: on a set that is not closed or not bounded, or with ff discontinuous, maximum and minimum may be missing. For example f(x,y)=xf(x, y) = x on the open disc x2+y2<1x^2 + y^2 < 1 approaches 11 without reaching it (the points with x=1x = 1 would lie on the boundary, which is excluded).

The theorem does not say where the points are. The reasoning is this: an absolute maximum or minimum point is either interior or on the boundary. If it is interior and ff is differentiable there, by Fermat it is a critical point. Otherwise it lies on the boundary. So it suffices to compare the values at these candidates.

Search method

To determine the absolute maximum and minimum on a compact set DD, follow three fundamental steps:

  1. Search for interior critical points: solve the system ∇f(x,y)=0\nabla f(x, y) = 0 inside the domain (where ff is differentiablea function whose graph can be locally approximated by a plane). Discard the points that do not belong to DD.
  2. Study of the boundary: analyse the behaviour of ff on the edges of DD. If the boundary consists of several pieces (e.g. segments, arcs of curves), parametrize each piece and reduce the problem to the study of a one-variable function. Do not forget to check any corner points where boundary pieces meet.
  3. Comparison of values: compute the value of the function at all the critical points found in step 1, at the constrained critical points on the boundary (step 2) and at the vertices. The largest of these values is the absolute maximum, the smallest the absolute minimum.

Worked examples

Example on a triangle

Let f(x,y)=x2+y2−xf(x, y) = x^2 + y^2 - x on the triangle with vertices A(0,0),B(2,0),C(0,2)A(0,0), B(2,0), C(0,2).

  1. Interior: ∇f=(2x−1,2y)=(0,0)  ⟹  P1(1/2,0)\nabla f = (2x-1, 2y) = (0,0) \implies P_1(1/2, 0). Since y=0y=0 is on the boundary, there are no critical points in the interior.

  2. Boundary:

    • Piece ABAB (y=0,x∈[0,2]y=0, x \in [0,2]): g1(x)=f(x,0)=x2−xg_1(x) = f(x, 0) = x^2 - x. Critical points: g1′=2x−1=0  ⟹  x=1/2g'_1 = 2x-1 = 0 \implies x=1/2. Value: f(1/2,0)=−1/4f(1/2, 0) = -1/4.
    • Piece ACAC (x=0,y∈[0,2]x=0, y \in [0,2]): g2(y)=f(0,y)=y2g_2(y) = f(0, y) = y^2. Minimum at y=0y=0 (f=0f=0), maximum at y=2y=2 (f=4f=4).
    • Piece BCBC (y=2−x,x∈[0,2]y=2-x, x \in [0,2]): g3(x)=x2+(2−x)2−x=2x2−5x+4g_3(x) = x^2 + (2-x)^2 - x = 2x^2 - 5x + 4. g3′=4x−5=0  ⟹  x=5/4g'_3 = 4x-5=0 \implies x=5/4, which lies in [0,2][0, 2]. Value: f(5/4,3/4)=2⋅2516−254+4=25−50+328=7/8f(5/4, 3/4) = 2\cdot\frac{25}{16} - \frac{25}{4} + 4 = \frac{25 - 50 + 32}{8} = 7/8.

    On each piece the problem has become a one-variable problem on a closed interval: the candidates are the stationary points inside the piece and its endpoints, i.e. the vertices of the triangle.

Grafico interattivo: The triangle A(0, 0), B(2, 0), C(0, 2) with f = x² + y² − x: the candidates are the vertices (f = 0, 2, 4), (1/2, 0) on side AB (f = −1/4, minimum) and (5/4, 3/4) on side BC (f = 7/8); the maximum is 4 at C

Grafico interattivo: Restriction to side BC: g3(x) = 2x² − 5x + 4 on [0, 2], minimum 7/8 at x = 5/4

  1. Comparison: the candidates are (0,0)→0(0,0) \to 0, (2,0)→2(2,0) \to 2, (0,2)→4(0,2) \to 4, (1/2,0)→−1/4(1/2,0) \to -1/4, (5/4,3/4)→7/8(5/4, 3/4) \to 7/8.
    • Absolute maximum: 44 at (0,2)(0,2).
    • Absolute minimum: −1/4-1/4 at (1/2,0)(1/2, 0).

Example on a disc

Let f(x,y)=xyf(x, y) = xy on the closed disc x2+y2≤1x^2 + y^2 \leq 1.

  1. Interior: ∇f=(y,x)=(0,0)\nabla f = (y, x) = (0, 0) only at (0,0)(0, 0), which is interior; f(0,0)=0f(0,0) = 0.
  2. Boundary: the circle is parametrized by (cos⁡t,sin⁡t)(\cos t, \sin t), t∈[0,2π]t \in [0, 2\pi]: g(t)=cos⁡tsin⁡t=12sin⁡2tg(t) = \cos t \sin t = \frac12 \sin 2t The maximum of sin⁡2t\sin 2t is 11 (for t=π4,5π4t = \frac{\pi}{4}, \frac{5\pi}{4}), the minimum −1-1 (for t=3π4,7π4t = \frac{3\pi}{4}, \frac{7\pi}{4}). The circle has no vertices.
  3. Comparison: absolute maximum 12\frac12 at the points (12,12)\left(\frac{1}{\sqrt2}, \frac{1}{\sqrt2}\right) and (−12,−12)\left(-\frac{1}{\sqrt2}, -\frac{1}{\sqrt2}\right); absolute minimum −12-\frac12 at (−12,12)\left(-\frac{1}{\sqrt2}, \frac{1}{\sqrt2}\right) and (12,−12)\left(\frac{1}{\sqrt2}, -\frac{1}{\sqrt2}\right). The interior critical point (0,0)(0,0) is a saddle and does not count.

On the circle one can also use Lagrange multipliersExtrema of f on the constraint g = c are found by substitution, by parametrization or with Lagrange multipliers: if f, g are C^1, P0 is a constrained extremum and grad g(P0) is nonzero, there is lambda with grad f(P0) = lambda grad g(P0) (the level curve of f is tangent to the constraint). Solve the system grad f = lambda grad g, g = c, add the constraint points where grad g = 0 and compare the values; if the constraint is compact, Weierstrass guarantees a maximum and a minimum.Constrained Extrema and Lagrange Multipliers →, useful when the boundary is hard to parametrize.

Unbounded domains

If the domain is not bounded, the Weierstrass theorem does not apply. In that case it is necessary to study the behaviour of the function at infinity, computing the limits: lim⁡∥P∥→∞f(P)\lim_{\|P\| \to \infty} f(P) If the limit is +∞+\infty, the function has no absolute maximum; if it tends to −∞-\infty, no absolute minimum.

If instead ff is continuous on an unbounded closed set and tends to +∞+\infty, the minimum exists: fix a point P0P_0; outside a large enough ball f>f(P0)f > f(P_0), so the minimum is to be searched in the intersection of the set with the ball, which is compact and to which Weierstrass applies. Example: f(x,y)=x2+y2−xf(x,y) = x^2 + y^2 - x on all of R2\mathbb{R}^2 tends to +∞+\infty, has no maximum and has its minimum at the only critical point (12,0)\left(\frac12, 0\right), value −14-\frac14.

Example: all of R2\mathbb{R}^2 with a fourth-degree polynomial. For f(x,y)=x4+y4−xyf(x,y)=x^4+y^4-xy one shows that f≥r4−r22→+∞f\ge\frac{r^4-r^2}{2}\to+\infty (using x4+y4≥r42x^4+y^4\ge\frac{r^4}2 and ∣xy∣≤r22|xy|\le\frac{r^2}2), finds the stationary points (0,0)(0,0) (saddle) and ±(12,12)\pm\left(\frac12,\frac12\right) (minima, value −18-\frac18) and concludes: no maximum, absolute minimum −18-\frac18.

Example: a strip. Let f(x,y)=(y2−2)2−x22+xyf(x,y)=(y^2-2)^2-\frac{x^2}{2}+xy on the closed unbounded set S={−32≤y≤2}S=\{-\frac32\le y\le2\}. Complete the square in the unbounded variable xx: −x22+xy=−12(x−y)2+y22-\frac{x^2}{2}+xy=-\frac12(x-y)^2+\frac{y^2}{2}, so f(x,y)=−12(x−y)2+g(y),g(y)=y22+(y2−2)2=y4−72y2+4.f(x,y)=-\frac12(x-y)^2+g(y),\qquad g(y)=\frac{y^2}{2}+(y^2-2)^2=y^4-\frac72y^2+4.

  • Minimum: does not exist, because for fixed yy, f→−∞f\to-\infty as ∣x∣→∞|x|\to\infty.
  • Maximum: exists. For every yy the maximum in xx is g(y)g(y), attained at x=yx=y; it remains to maximize gg on [−32,2][-\frac32,2] (a compact one-variable interval). g′(y)=4y3−7y=y(4y2−7)g'(y)=4y^3-7y=y(4y^2-7) vanishes at y=0,±72y=0,\pm\frac{\sqrt7}{2}, with g(0)=4g(0)=4, g(±72)=1516g\left(\pm\frac{\sqrt7}2\right)=\frac{15}{16}; at the endpoints g(−32)=1916g\left(-\frac32\right)=\frac{19}{16} and g(2)=6g(2)=6. The maximum is 66, attained at (2,2)(2,2) (which lies on the boundary y=2y=2 of the strip). Here the argument is not "coercivity + Weierstrass", but reduction to one variable: one first maximizes in the unbounded direction.

Non-isolated critical points. If ∇f=0\nabla f=0 along an entire curve (for f=x3yf=x^3y along the yy axis), the Hessian is zero and does not decide: look directly at the sign of f−f(P)f-f(P) near the point, and the interior critical points are in any case compared with the values on the boundary.

Common mistakes

  • Forgetting the vertices: the points where the boundary changes analytic expression (corners/vertices) must always be included in the comparison.
  • Confusing local and absolute extrema: a relative maximum point is not necessarily the absolute maximum.
  • Looking for zero gradient on the boundary: ∇f=0\nabla f = 0 is a necessary condition only at interior points. On the boundary a maximum may have nonzero gradient (in the triangle example, at (0,2)(0,2) we have ∇f=(−1,4)\nabla f = (-1, 4)): there one studies the restriction to the boundary or uses Lagrange multipliers.
  • Keeping critical points outside the domain: a point with ∇f=0\nabla f = 0 not in DD is not a candidate.

Versione ripasso

Weierstrass theorem. If D⊂RnD \subset \mathbb{R}^n is compact (closed and bounded) and f:D→Rf: D \to \mathbb{R} is continuous, there exist Pmin,Pmax∈DP_{min}, P_{max} \in D with f(Pmin)≤f(P)≤f(Pmax)f(P_{min}) \le f(P) \le f(P_{max}) for every P∈DP \in D. All the hypotheses are needed: f=xf = x on the open disc approaches 11 without reaching it.

Procedure. An absolute extremum is either interior (and then it is a critical point, by Fermat) or lies on the boundary.

  1. Interior. Solve ∇f=0\nabla f = 0 and keep the points of DD that are interior.
  2. Boundary. Parametrize each piece γ\gamma and study g(t)=f(γ(t))g(t) = f(\gamma(t)) on a closed interval, with its critical points. Do not forget the vertices.
  3. Comparison. The highest value is the absolute maximum, the lowest the minimum.

Example on a triangle. f=x2+y2−xf = x^2+y^2-x on A(0,0)A(0,0), B(2,0)B(2,0), C(0,2)C(0,2).

  • Interior: ∇f=(2x−1,2y)=0\nabla f = (2x-1, 2y) = 0 gives (12,0)(\frac12, 0), which lies on the boundary: no interior critical point.
  • Side ABAB: g=x2−xg = x^2 - x, critical at x=12x = \frac12, value −14-\frac14.
  • Side ACAC: g=y2g = y^2, values 00 and 44.
  • Side BCBC, y=2−xy = 2-x: g=2x2−5x+4g = 2x^2 - 5x + 4, critical at x=54x = \frac54, value f(54,34)=78f(\frac54,\frac34) = \frac78.
  • Comparing the candidates 0,2,4,−14,780, 2, 4, -\frac14, \frac78: maximum 44 at CC, minimum −14-\frac14 at (12,0)(\frac12, 0).

Example on a disc. f=xyf = xy on the disc x2+y2≤1x^2+y^2 \le 1. Interior: (0,0)(0,0), value 00, saddle. Boundary: g(t)=12sin⁡2tg(t) = \frac12\sin 2t, with maximum 12\frac12 at ±(12,12)\pm(\frac{1}{\sqrt2}, \frac{1}{\sqrt2}) and minimum −12-\frac12 at the points (−12,12)(-\frac{1}{\sqrt2}, \frac{1}{\sqrt2}) and (12,−12)(\frac{1}{\sqrt2}, -\frac{1}{\sqrt2}). For a boundary that is hard to parametrize one can use Lagrange multipliersExtrema of f on the constraint g = c are found by substitution, by parametrization or with Lagrange multipliers: if f, g are C^1, P0 is a constrained extremum and grad g(P0) is nonzero, there is lambda with grad f(P0) = lambda grad g(P0) (the level curve of f is tangent to the constraint). Solve the system grad f = lambda grad g, g = c, add the constraint points where grad g = 0 and compare the values; if the constraint is compact, Weierstrass guarantees a maximum and a minimum.Constrained Extrema and Lagrange Multipliers →.

Unbounded domains. Weierstrass does not apply. Study the behaviour at infinity.

  • If f→+∞f \to +\infty as ∥P∥→∞\|P\| \to \infty on a closed set, the minimum exists (search in a large enough ball, which is compact), the maximum does not.
  • Example: x4+y4−xy≥r4−r22→+∞x^4+y^4-xy \ge \frac{r^4-r^2}{2} \to +\infty on R2\mathbb{R}^2: no maximum, minimum −18-\frac18 at ±(12,12)\pm(\frac12,\frac12).
  • Strip −32≤y≤2-\frac32 \le y \le 2 with f=(y2−2)2−x22+xy=−12(x−y)2+g(y)f = (y^2-2)^2 - \frac{x^2}{2} + xy = -\frac12(x-y)^2 + g(y), g=y4−72y2+4g = y^4 - \frac72 y^2 + 4. For fixed yy, f→−∞f \to -\infty as ∣x∣→∞|x| \to \infty: no minimum. The maximum is found by maximizing gg on [−32,2][-\frac32, 2]: g(0)=4g(0) = 4, g(±72)=1516g(\pm\frac{\sqrt7}{2}) = \frac{15}{16}, g(−32)=1916g(-\frac32) = \frac{19}{16}, g(2)=6g(2) = 6. Maximum 66 at (2,2)(2,2).

Non-isolated critical points. If ∇f=0\nabla f = 0 along a curve, the Hessian does not decide: look at the sign of f−f(P)f - f(P) near the point.

Typical mistakes.

  • Forgetting the vertices of the boundary.
  • Confusing local and absolute extrema.
  • Looking for ∇f=0\nabla f = 0 on the boundary: there the maximum may have nonzero gradient (in the triangle, at CC it is (−1,4)(-1, 4)).
  • Keeping critical points outside DD.

Teoria collegata