Salta al contenuto
Note per Studenti Local Extrema and Fermat's Theorem Report

Local Extrema and Fermat's Theorem

In questa pagina 7

Prerequisites: bounded functions, sup, inf, max, min; derivatives; Weierstrass' theorem; the sign permanence theorem for limits.

Absolute extrema: what is already known

For f:X→Rf: X \to \mathbb{R} with X⊆RX \subseteq \mathbb{R} non-empty:

  • inf⁡f\inf f and sup⁡f\sup f always exist (possibly −∞-\infty, +∞+\infty);
  • min⁡f\min f and max⁡f\max f, if they exist, are unique, but they may not exist (e.g. arctan⁡x\arctan x on R\mathbb{R});
  • if f:[a,b]→Rf: [a, b] \to \mathbb{R} is continuous on a closed bounded interval, by Weierstrass' theorem min⁡f\min f and max⁡f\max f exist.

These are called absolute extrema, as opposed to relative ones.

Relative (local) extrema

Definition. Let f:X→Rf: X \to \mathbb{R} and x0∈Xx_0 \in X.

  1. x0x_0 is a relative minimum point if there is δ>0\delta > 0 such that f(x0)≤f(x)f(x_0) \le f(x) for all x∈X∩ ]x0−δ,x0+δ[x \in X \cap \,]x_0 - \delta, x_0 + \delta[ (strict if f(x0)<f(x)f(x_0) < f(x) for x≠x0x \ne x_0).
  2. x0x_0 is a relative maximum point if there is δ>0\delta > 0 such that f(x0)≥f(x)f(x_0) \ge f(x) for all x∈X∩ ]x0−δ,x0+δ[x \in X \cap \,]x_0 - \delta, x_0 + \delta[ (strict if >> for x≠x0x \ne x_0).

Example. f(x)=x3−3xf(x) = x^3 - 3x: x0=−1x_0 = -1 is a relative maximum (f(−1)=2f(-1) = 2) and x0=1x_0 = 1 a relative minimum (f(1)=−2f(1) = -2).

Looking only near x0x_0, no value of ff is lower than f(x0)f(x_0); farther away ff may go lower.

  • An absolute minimum (maximum) point is also a relative one.
  • A relative extremum need not be absolute (a valley that is not the deepest).
  • Relative extrema are not unique: sin⁡x\sin x has infinitely many relative maxima (π2+2kπ\frac\pi2 + 2k\pi).

The aim is to find necessary conditions (which an extremum must satisfy, to narrow the search) and sufficient conditions (which guarantee an extremum).

Where to look

For a continuous ff on [a,b][a, b], relative extrema can only be at:

  1. the endpoints aa, bb;
  2. interior points where ff is not differentiable (corner, cusp): ∣x∣|x| has its minimum at 00;
  3. interior points x0x_0 where ff is differentiable: there the tangent should be horizontal, f′(x0)=0f'(x_0) = 0.

Fermat's theorem (necessary condition)

Theorem (Fermat). Let x0x_0 be a relative minimum or maximum point of f:X→Rf: X \to \mathbb{R}. If x0x_0 is interior to XX and ff is differentiable at x0x_0, then f′(x0)=0.f'(x_0) = 0.

Example. f(x)=x2−4xf(x) = x^2 - 4x has its minimum at x0=2x_0 = 2, and f′(2)=4−4=0f'(2) = 4 - 4 = 0.

Proof. Let x0x_0 be a relative minimum (the maximum case is identical with reversed signs). There is δ>0\delta > 0 with ]x0−δ,x0+δ[ ⊆X]x_0 - \delta, x_0 + \delta[ \,\subseteq X and f(x0)≤f(x)f(x_0) \le f(x) on this interval. Hence f(x)−f(x0)≥0f(x) - f(x_0) \ge 0 and f(x)−f(x0)x−x0{≥0x>x0≤0x<x0.\frac{f(x) - f(x_0)}{x - x_0} \begin{cases} \ge 0 & x > x_0 \\ \le 0 & x < x_0. \end{cases} By sign permanence (non-strict inequalities pass to the limit), f′(x0+)=lim⁡x→x0+f(x)−f(x0)x−x0≥0,f′(x0−)=lim⁡x→x0−f(x)−f(x0)x−x0≤0.f'(x_0^+) = \lim_{x \to x_0^+}\frac{f(x) - f(x_0)}{x - x_0} \ge 0, \qquad f'(x_0^-) = \lim_{x \to x_0^-}\frac{f(x) - f(x_0)}{x - x_0} \le 0. Since ff is differentiable at x0x_0, the two one-sided derivatives equal f′(x0)f'(x_0): 0≤f′(x0+)=f′(x0)=f′(x0−)≤0  ⟹  f′(x0)=0. ■0 \le f'(x_0^+) = f'(x_0) = f'(x_0^-) \le 0 \implies f'(x_0) = 0. \ \blacksquare

Both hypotheses are needed.

  • x0x_0 interior: f(x)=xf(x) = x on [0,1][0, 1] has its minimum at 00 but f′(0+)=1≠0f'(0^+) = 1 \ne 0.
  • ff differentiable at x0x_0: ∣x∣|x| has its minimum at 00, where f′(0±)=±1f'(0^\pm) = \pm1.

Only a necessary condition

The converse is false. f(x)=x3f(x) = x^3 has f′(0)=0f'(0) = 0, but x3<0x^3 < 0 for x<0x < 0 and x3>0x^3 > 0 for x>0x > 0, so 00 is neither a minimum nor a maximum: the graph crosses the horizontal tangent y=0y = 0.

Critical (stationary) points

Definition. If x0x_0 is interior to the domain and f′(x0)f'(x_0) exists and equals 00, x0x_0 is a critical (or stationary) point.

Consequence: if ff is differentiable on ]a,b[]a, b[, an interior point can be a relative extremum only if it is critical. The search is therefore restricted to

  • critical points (solutions of f′(x)=0f'(x) = 0);
  • interior points where ff is not differentiable;
  • endpoints belonging to the domain.

To decide which candidates really are extrema, sufficient conditions are needed: see Monotonicity and the Sign of the DerivativeFor f continuous on [a,b] and differentiable in ]a,b[: f is increasing iff f' >= 0 and decreasing iff f' <= 0; strictly increasing iff f' >= 0 and f' vanishes on no interval (f' > 0 except at isolated points is enough, as for x^3); a sign change of f' from plus to minus gives a strict relative maximum and from minus to plus a strict relative minimum; these are sufficient conditions only.Monotonicity and the Sign of the Derivative →, which relies on Rolle's and Lagrange's TheoremsRolle: f continuous on [a,b], differentiable in ]a,b[, f(a) = f(b) implies f'(c) = 0 for some c; Lagrange (mean value theorem): without f(a) = f(b), f'(c) equals the slope of the chord. Consequence: on an interval f is constant if and only if f' = 0, while on a non-interval set f is only piecewise constant (arctan x + arctan(1/x)).Rolle's and Lagrange's Theorems →.

Common mistakes

  • Thinking f′(x0)=0f'(x_0) = 0 is enough for an extremum (x3x^3 at 00).
  • Looking for extrema only among critical points: endpoints and non-differentiable points are lost.
  • Applying Fermat at an endpoint of an interval.

Versione ripasso

Definition. x0x_0 is a relative minimum (maximum) point if f(x0)≤f(x)f(x_0) \le f(x) (≥\ge) for all x∈X∩ ]x0−δ,x0+δ[x \in X \cap \,]x_0 - \delta, x_0 + \delta[. Every absolute extremum is relative; relative extrema are not unique. Weierstrass: continuous on [a,b][a, b] implies min⁡\min and max⁡\max exist.

Candidates. Endpoints; interior points where ff is not differentiable; interior points with f′(x0)=0f'(x_0) = 0.

Fermat. If x0x_0 is a relative extremum, interior and ff is differentiable at x0x_0, then f′(x0)=0f'(x_0) = 0.

Proof sketch. For a minimum the difference quotient is ≥0\ge 0 for x>x0x > x_0 and ≤0\le 0 for x<x0x < x_0, so f′(x0+)≥0≥f′(x0−)f'(x_0^+) \ge 0 \ge f'(x_0^-); they coincide with f′(x0)f'(x_0), hence it is 00.

Hypotheses needed. Interior (xx on [0,1][0,1]: minimum at 00, f′(0+)=1f'(0^+) = 1); differentiable (∣x∣|x| at 00).

Converse false. x3x^3 has f′(0)=0f'(0) = 0 and no extremum at 00.

Critical point. Interior x0x_0 with f′(x0)=0f'(x_0) = 0. Sufficient conditions come from Monotonicity and the Sign of the DerivativeFor f continuous on [a,b] and differentiable in ]a,b[: f is increasing iff f' >= 0 and decreasing iff f' <= 0; strictly increasing iff f' >= 0 and f' vanishes on no interval (f' > 0 except at isolated points is enough, as for x^3); a sign change of f' from plus to minus gives a strict relative maximum and from minus to plus a strict relative minimum; these are sufficient conditions only.Monotonicity and the Sign of the Derivative →.

Typical mistakes. Taking Fermat as sufficient; ignoring endpoints and non-differentiable points; using Fermat at an endpoint.

Teoria collegata