Zum Inhalt springen

Derivative and local extrema

Aus Wikibooks

In this chapter we will use derivatives to derive necessary and sufficient criteria for the existence of extrema. In calculus, one often uses the theorem that a function f:D→ℝ must necessarily satisfy f′(x~)=0 so that f has a (local) extremum in x~∈D. If the derivative function f′ in addition changes the sign at x~ , then we have found an extremum. The sign change of the derivative is therefore a sufficient criterion for the extremum. We will now derive this statement and other consequences mathematically and illustrate them with the help of numerous examples. First, however, we will clearly define what an extremum is and what kinds of extrema there are.

Types of extrema

[Bearbeiten]

A function f:D→ℝ can have two types of an extremum: A maximum or a minimum. This in turn can be local or global. As the names already suggest, a local minimum is for example a value f(x~), which is "locally minimal", i.e. In a neighbourhood of x~ there is also f≥f(x~). Mathematically: There is an interval (x~−ϵ,x~+ϵ) around x~, so that f(x)≥f(x~) for all arguments x which lie in (x~−ϵ,x~+ϵ). A global maximum on the other hand is a value f(x̂), which is "everywhere maximal". That means, for all arguments x from the domain of definition, we must have f(x)≤f(x̂). This intuitive idea is illustrated in the following figure:

Characterization of local and global extrema
Characterization of local and global extrema

For local extrema, a distinction is also made between strict and non-strict extrema. A strict local minimum, for example, is one that is only "strictly" attained at a single point. A non-strict extremum can be attained on an entire subinterval.

Characterization of strict local extrema
Characterization of strict local extrema

We now define the intuitively explained terms formally:

Definition (Extrema)

Let D⊆ℝ and f:D→ℝ be a function. Then, f at x~∈D has a

  • local maximum or minimum, if there is an ϵ>0, such that f(x~)≥f(x) (or f(x~)≤f(x)) for all x∈D with |x−x~|<ϵ holds.
  • strict local maximum or minimum, if there is an ϵ>0 such that f(x~)>f(x) (or f(x~)<f(x)) for all x∈D∖{x~} with |x−x~|<ϵ holds.
  • global maximum or minimum, if f(x~)≥f(x) (or f(x~)≤f(x)) for all x∈D holds.

Extremum is the umbrella term for a maximum or minimum. x~∈D is then called maximum or minimum.

A local maximum/minimum is also sometimes referred to in the literature as relative maximum/minimum, and a strict maximum/minimum as isolated maximum/minimum. With this definition it is also clear that every global extremum is also a local one. Similarly, every strict local extremum is also a local extremum in the usual sense. In the following we want to determine some necessary and sufficient conditions for (strict) local extrema, using the derivative. Unfortunately our criteria are not sufficient to characterise global extrema. Those are a bit harder to catch!

Question: Consider the functions

f:[−1,2]→ℝ, f(x)=x2g:ℝ→ℝ, g(x)=sgn⁡(x)={−1 for x<0,0 for x=0,1 for x>0

Are the following statements true or false?

  1. f has a local minimum at x~1=0.
  2. f has a strict local minimum at x~1=0.
  3. f has a global minimum at x~1=0.
  4. f has a global maximum at x~2=−1.
  5. f has a local maximum at x~3=2.
  6. g has a strict local maximum at x̂1=1.
  7. g has a local maximum at x̂1=1 .
  8. g has a global minimum at x̂2=−2.
  9. g has a local minimum at x̂3=0.

Graph of the function f with extrema
Graph of the function g with extrema

Solution:

  1. True. Since for ϵ=1 there is 0⏟=f(0)≤x2⏟=f(x) for all x∈[−1,2] with |x|⏟=|x−x~|<1⏟=ϵ.
  2. True. Since for ϵ=1 there is 0<x2 for all x∈[−1,2]∖{0} with |x|<1.
  3. True. Since for all x∈[−1,2] there is 0≤x2.
  4. False. Since e.g. for x=2 there is f(2)=4>1=f(−1).
  5. True. Since for all x∈[−1,2] there is f(x)≤4=f(2). So f has at x~3=2 a global and hence also a local maximum.
  6. False. Since for all 0<ϵ<1 and all x∈(1−ϵ,1+ϵ) there is g(x)=1=g(1).
  7. True. Since for ϵ=12 there is g(1)=1≥1=g(x) for all x∈ℝ with |x−1|<12.
  8. True. Since for all x∈ℝ there is g(x)≥−1=g(−2).
  9. False. Since for all ϵ>0 there is an x∈(−ϵ,0) with g(x)=−1<0=g(0).

Necessary condition for extrema

[Bearbeiten]

Theorem and proof

[Bearbeiten]

In order for a function to have a local extremum at a position within its domain of definition, the function must have a horizontal tangent there. This means that the derivative at this point must be zero. This is exactly what the following theorem says:

Theorem (Necessary condition for extrema)

Let a<b with a,b∈ℝ. Let x~∈(a,b) and f:(a,b)→ℝ be differentiable at x~. Let further x~ be a local minimum (or maximum). Then, there is f′(x~)=0.

Proof (Necessary condition for extrema)

We consider the case where f has a local minimum at x~. The proof in the case of a local maximum is analogous. We want to show that

f′(x~)=limh→0f(x~+h)−f(x~)h=0

Since f is differentiable at x~, there is

limh↓0f(x~+h)−f(x~)h=f′(x~)=limh↑0f(x~+h)−f(x~)h

Since f has a local minimum at x~ , there is an ϵ>0, such that for all h∈(0,ϵ) there is

f(x~+h)≥f(x~)⟺f(x~+h)−f(x~)≥0

So also

f(x~+h)−f(x~)h≥0

From the limit value rules follows

f′(x~)=limh↓0f(x~+h)−f(x~)h≥0

On the other hand there is an ϵ~>0, such that for all h∈(−ϵ~,0) there is

f(x~+h)≥f(x~)⟺f(x~+h)−f(x~)≥0

From the limit value rules follows

f′(x~)=limh↑0f(x~+h)−f(x~)h≤0

So f′(x~)≤is0≤f′(x~) and therefore f′(x~)=0.

Examples

[Bearbeiten]

Example (Quadratic power functions)

Graph of the function f with extrema

The function f:[−1,2]→ℝ, f(x)=x2 has a local (and even global) minimum at x~=0 . Since 0∈(−1,2) , the necessary criterion yields f′(0)=2⋅0=0.

If there is an extremum at a boundary point, the condition at this point does not have to be fulfilled! For instance, x̂=−1 is a local maximum. But there is f′(−1)=2⋅(−1)=−2≠0.

Example (Cubic power functions)

Graph of the function f(x)=x3 with saddle point at (0|0)

The necessary condition is not not sufficient. That means, it does not necessarily follow from f′(x~)=0 that f has an extremum at x~. An example for this is the function f:ℝ→ℝ with f(x)=x3. There is f′(x)=3x2 and therefore f′(0)=0. But f has no extremum at x~=0, because for all x<0 there is f(x)<0 and for all x>0 there is f(x)>0. The zero point in this case is also called terrace or saddle point.

Example (Since function)

Graph of the sine function with extrema

Of course, the condition f′(x~)=0 can also be fulfilled at an infinite number of places in a function. An example is the sine function f:ℝ→ℝ,f(x)=sin⁡(x). There is

f′(x)=cos⁡(x)=!0⟺x∈{π2+kπ∣k∈ℤ}={…,−5π2,−3π2,−π2,π2,3π2,5π2,…}

Further there is |sin⁡(x)|≤1,

sin⁡(x)=1⟺x∈{π2+2kπ∣k∈ℤ}={…,−3π2,π2,5π2,…}

and

sin⁡(x)=−1⟺x∈{−π2+2kπ∣k∈ℤ}={…,−5π2,−π2,3π2,…}

Therefore sin has local maxima at x~=π2+2kπ with k∈ℤ , and local minima at x~=−π2+2kπ with k∈ℤ .

Example (Exponential function)

The exponential function has no extrema

Finally, the case f′(x)≠0 for all x can occur. Let us consider the exponential function f:ℝ→ℝ,f(x)=exp⁡(x). Then, there is for all x∈ℝ:

f′(x)=exp⁡(x)>0


Since extrema at boundaries are also not possible, it follows from our criterion that the exponential function has no (local) extrema.

Exercises

[Bearbeiten]

Exercise (Local extrema of functions)

Check if the following functions have local extrema:

  1. f:ℝ→ℝ, f(x)=x4
  2. g:ℝ+→ℝ, g(x)=ln⁡(x)
  3. h:ℝ→ℝ, h(x)=cos⁡(x)

Solution (Local extrema of functions)

Solution sub-exercise 1:

There is

f′(x)=4x3=0⟺x=0

Since furthermore f(x)=x4=(x2)2≥0 for all x∈ℝ, the point x~=0 is a local (even global) minimum of f.

Solution sub-exercise 2:

Here, there is for all x∈ℝ+

g′(x)=1x≠0

Hence, g has no extrema.

Solution sub-exercise 3:

Finally there is

h′(x)=−sin⁡(x)=!0⟺x∈{kπ∣k∈ℤ}={…,−2π,−π,0,π,2π,…}

Further there is |cos⁡(x)|≤1, as well as

cos⁡(x)=1⟺x∈{2kπ∣k∈ℤ}={…,−2π,0,2π,…}

and

cos⁡(x)=−1⟺x∈{(2k−1)π∣k∈ℤ}={…,−π,π,3π,…}

Therefore h has local maxima at x~=2kπ, k∈ℤ , and local minima at x~=(2k−1)π, k∈ℤ.

Application: Intermediate values for derivatives

[Bearbeiten]

We have already stated in the previous sections that the derivative function of a differentiable function does not necessarily have to be continuous. An example for this is the following function, which we have learned about in the chapter "derivatives of higher order":

f:ℝ→ℝ, f(x)={x2sin⁡(1x) for x≠0,0 for x=0.

However, it can be shown that the derivative function always fulfils the intermediate value property. The reason why this is not a contradiction is that continuity is a stronger property than the intermediate value property. To prove this, we will use our necessary criterion from the previous theorem. This result is also known in the literature as "Darboux's theorem":

Theorem (Darboux's theorem)

Let f:[a,b]→ℝ be differentiable. Further let f′(a)<f′(b) and c∈(f′(a),f′(b)). Then there is an x0∈(a,b) with f′(x0)=c.

Proof (Darboux's theorem)

We define the auxiliary function

g:[a,b]→ℝ, g(x)=f(x)−cx

This function is differentiable with

g′(x)=f′(x)−c

So there is g′(a)=f′(a)−c<0 and g′(b)=f′(b)−c>0. Hence

g′(a)=limx→ag(x)−g(a)x−a<0

Thus there is an x1∈(a,b) with

g(x1)−g(a)x1−a<0

Since the denominator x1−a is positive, g(x1)−g(a)<0⟺g(x1)<g(a) follows. Similarly, there is a x2∈(a,b) with g(x2)<g(b). By the extreme value theorem, g attains a minimum on [a,b] . Since we have shown that x1,x2∈(a,b) with g(x1)<g(a) and g(x2)<g(b), the minimum must be in (a,b). Let x0∈(a,b) be the minimum. According to our necessary criterion for an extremum, the following must now hold

g′(x0)=f′(x0)−c=0

From this follows f′(x0)=c.

Necessary condition: sign change

[Bearbeiten]

Theorem

[Bearbeiten]

For many functions it can be tedious to determine only with the necessary condition f′(x~)=0 whether f has an extremum in x~: There is a proof necessary that the function actually does not get greater or lower within the environment. Therefore we are now looking for sufficient conditions for an extremum, which saves us the extra proof work. One possibility is to investigate f′ in the surroundings of the possible extremum x~. If the function increases on the left of x~ and decreases on the right, then there is a maximum. If the function first decreases and then increases, there is a minimum.

Theorem (Necessary condition for extrema by sign change of the derivative)

Let a<b and f:(a,b)→ℝ be a differentiable function. And let f′(x~)=0 for some x~∈(a,b). Then, there is

  1. f has a strict maximum at x~, if there is an ϵ1,ϵ2>0 , such that for all x∈(x~−ϵ1,x~) there is f′(x)>0 and for all x∈(x~,x~+ϵ2) there is f′(x)<0.
  2. f has a strict Minimum at x~, if there is an ϵ1,ϵ2>0 , such that for all x∈(x~−ϵ1,x~) there is f′(x)<0 and for all x∈(x~,x~+ϵ2) there is f′(x)>0.

Proof (Necessary condition for extrema by sign change of the derivative)

For the proof we use the mean value theorem:

Proof step: f has a strict maximum at x~

A local maximum

Let c∈(x~−ϵ1,x~) be arbitrary. By the mean value theorem there is a y∈(c,x~), such that f(x~)−f(c)x~−c=f′(y). Since according to our assumption f′(y)>0 and x~−c>0, there is f(x~)−f(c)>0 or f(x~)>f(c).

Furthermore, for all d∈(x~,x~+ϵ2) there is a z∈(x~,d), such that f(d)−f(x~)d−x~=f′(z). We know that f′(z)<0 and d−x~>0. So we get f(d)−f(x~)<0 or f(x~)>f(d).

If ϵ=min⁡{ϵ1,ϵ2}, then we have for all x∈(x~−ϵ,x~+ϵ) with x≠x~ that f(x~)>f(x). Thus f in x~ has a strict maximum.

Proof step: f has a strict minimum at x~

A local minimum

The proof is analogous to case 1: For all c∈(x~−ϵ1,x~) there is according to the mean value theorem a y∈(c,x~) with f(x~)−f(c)x~−c=f′(y). But there is f′(y)<0 and x~−c>0 and thus we get f(x~)−f(c)<0 or f(x~)<f(c).

There is also for all d∈(x~,x~+ϵ2) that we can find a z∈(x~,d) such that f(d)−f(x~)d−x~=f′(z). But because there is f′(z)>0 and d−x~>0, we also have f(d)−f(x~)>0 or f(x~)<f(d).

If ϵ=min⁡{ϵ1,ϵ2}, then it holds for all x∈(x~−ϵ,x~+ϵ) with x≠x~ that f(x~)<f(x). So f has a strict minimum at x~.

Alternative proof (Necessary condition for extrema by sign change of the derivative)

Alternatively, the proposition can be proved with the monotony criterion. We show this only for the first statement. The second can be proved analogously. Because of f′(x)>0 for all x∈(x~−ϵ1,x~), f is strictly monotonously increasing according to the monotony criterion on (x~−ϵ1,x~). For all x∈(x~−ϵ1,x~) there is hence f(x)<f(x~).

In the same way it follows from f′(x)<0 for all x∈(x~,x~+ϵ2) that f is strictly monotonously decreasing on [x~,x~+ϵ2). For all x∈(x~,x~+ϵ2) there is hence f(x~)>f(x). With ϵ=min⁡{ϵ1,ϵ2} we obtain f(x)<f(x~) for all x∈(x~−ϵ,x~+ϵ)∖{x~}. Thus x~ is a strict local maximum of f.

Hint

If in the previous theorem only f′(x)≥0 or f′(x)≤0 applies, the statements are still valid. The only difference is that the extrema no longer have to be necessarily strict.

Warning

With the sufficient criterion only local extrema can be found. Whether these are also global, or whether there are global extrema at other places, must be examined separately.

Example

[Bearbeiten]

Example (Where are zeros of the following polynomial functions)

Graph of the function g

We now consider the polynomial function g:(−2,0)→ℝ with g(x)=x3−3x. To find the extreme points, we first differentiate g. There is

g′(x)=3x2−3=3(x−1)(x+1)

So the derivative on the interval (−2,0) is zero only at the position x~=−1. In our domain of definition (−2,0) the factor (x−1) is always negative. In the interval (−2,−1) there is (x+1)<0. So we have g′(x)=3(x−1)(x+1)>0. In the interval (−1,0) there is x+1>0 and so we get g′(x)=3(x−1)(x+1)<0.

According to our theorem g has a strict local maximum at x~=−1.

Question: Does the polynomial function h:(0.2)→ℝ, h(x)=x3−3x have an extremum?

Graph of the function h

Again there is

h′(x)=3x2−3=3(x−1)(x+1)

The derivative has in (0,2) the zero x̂=1. In the domain of definition, x+1 is always positive. On (0,1) there is x−1<0, and therefore h′(x)<0. On (1,2) however x−1>0, and therefore h′(x)>0. Hence h has a strictly local minimum at x̂=1.

Exercises

[Bearbeiten]

Exercise (Extremum of a function)

Show that for n∈ℕ the function

fn:ℝ0+→ℝ, f(x)=xne−x

has a local maximum and minimum, which is a global maximum and minimum respectively

Solution (Extremum of a function)

Proof step: fn has a local maximum at x~=n

fn is differentiable on ℝ+ according to the product rule with

fn′(x)=nxn−1e−x+xne−x(−1)=xn−1e−x(n−x)

According to the necessary criterion for the existence of a maximum x~∈ℝ+, we need fn′(x~)=0 . Now

fn′(x)=xn−1e−x⏟≠0(n−x)=0⟺n−x=0⟺x=n

So x~=n is the only candidate for our local maximum on ℝ+. Furthermore

fn′(x)=xn−1e−x⏟>0(n−x)={>0⟺n−x>0⟺x<n,<0⟺n−x<0⟺x>n

So there is fn′(x)>0 for all x∈(0,n) and fn′(x)<0 for all x∈(n,n+1). According to the sufficient criterion x~=n is therefore a (strict) local maximum of fn.

Proof step: fn has a global maximum at x~=n

Graphs of the functions f1,f2,f3

Since ℝ+ has no boundary points, according to part 1 only x~=n can be considered for a global maximum of fn. We have to show fn(x)≤fn(n) for all x∈ℝ+. Because of fn′(x)>0 for all x∈(0,n), the function fn is strictly monotonously increasing according to the monotony criterion on (0,n]. Therefore there is for all x∈(0,n)

fn(x)<fn(n)

Analogously it follows from fn′(x)<0 for all x∈(n,∞) that fn is strictly monotonously decreasing on [n,∞) . So for all x∈(n,∞)

fn(x)<fn(n)⟺f(n)>f(x)

In total, there is fn(n)≥fn(x) for all x∈ℝ+. Thus x~=n is a global maximum of fn. Just like in the first part, we can also justify that x̂=0 is also a global minimum of fn.

Proof step: fn has a global minimum at x̂=0

There is fn(0)=0 and fn(x)>0 for all x>0. So x̂=0 a global and therefore also a local minimum of fn.

Conditions are not necessary

[Bearbeiten]

The condition in the previous theorem is a sufficient condition for the existence of an extreme point. There is however no necessary condition. We do not have that an extreme position exists exactly when one of the conditions in the previous sentence is fulfilled. The following example illustrates this.

Example

We consider the function

f:ℝ→ℝ,x↦{x2sin⁡(1x)+2x2,x≠00,x=0
Function graph of f

We have already seen that the function

g:ℝ→ℝ,x↦{x2sin⁡(1x),x≠00,x=0
Function graph of g

is differentiable and

g′:ℝ→ℝ,x↦{2x⋅sin⁡(1x)−cos⁡(1x),x≠00,x=0

For all x∈ℝ there is f(x)=g(x)+2x2. Consequently, f is differentiable with the derivative function

f′:ℝ→ℝ,x↦{2x⋅sin⁡(1x)−cos⁡(1x)+4x,x≠00,x=0

For all x≠0 there is sin⁡(1x)≥−1 and x2>0. Thus x2sin⁡(1x)>−x2. Hence

f(x)=x2sin⁡(1x)+2x2>−x2+2x2=x2>0

There is f(0)=0 and therefore the function f has a (global) minimum at the position x=0. Next we show that there is no b∈ℝ+, such for all x∈(0,b) the inequality f′(x)>0 is fulfilled. For this we construct a sequence (xn)n∈ℕ in ℝ+, which converges towards 0 and has the property that for all n∈ℕ we have f′(xn)≤0. We define for all n∈ℕ

xn:=12πn

Let n∈ℕ. Then, there is

f′(xn)= 2xn⋅sin⁡(1xn)−cos⁡(1xn)+4xn= 212πn⋅sin⁡(112πn)−cos⁡(112πn)+412πn= 1πn⋅sin⁡(2πn)−cos⁡(2πn)+412πn= 1πn⋅0−1+412πn↓ π>2∧n≥1⟹1π<2∧1n≤1≤ 0−1+4⋅12⋅2⋅1= 0−1+1=0

Necessary condition: presign of the second derivative

[Bearbeiten]

Theorem

[Bearbeiten]

If f is twice differentiable, we can also use the following sufficient criterion:

Theorem (Necessary condition for extrema via second derivative)

Let f:(a,b)→ℝ a twice differential function, and let f′(x~)=0 hold for sone x~∈(a,b). Then,

  1. f has a strict maximum in x~, if f″(x~)<0 holds.
  2. f has a strict Minimum in x~, if f″(x~)>0 holds.

Proof (Necessary condition for extrema via second derivative)

1st statement: f′(x~)=0, f″(x~)<0 ⟹ f has a strict maximum at x~

There is

f″(x~)=limx→x~f′(x)−f′(x~)x−x~<0

Therefore there is an ϵ>0 such that for all x∈(x~−ϵ,x~+ϵ) there is:

f′(x)−f′(x~)⏞=0x−x~=f′(x)x−x~<0

If now x∈(x~−ϵ,x~), then because of x−x~<0 we immediately get f′(x)>0. If, on the other hand, x∈(x~,x~+ϵ), then because of x−x~>0 it follows that f′(x)<0. According to the first sufficient criterion, x~ is therefore a strict local maximum of f.

2nd statement: f′(x~)=0, f″(x~)>0 ⟹ f has a strict minimum at x~

There is

f″(x~)=limx→x~f′(x)−f′(x~)x−x~>0

Therefore there is an ϵ>0 such that for all x∈(x~−ϵ,x~+ϵ) there is:

f′(x)−f′(x~)x−x~=f′(x)x−x~>0

If now x∈(x~−ϵ,x~), then because of x−x~<0 the inequality f′(x)<0 holds. Furthermore, x−x~>0 for x∈(x~,x~+ϵ) implies that then f′(x)>0. According to the first sufficient criterion, x~ is a strict local minimum of f.

Warning

Graph of the function f(x)=x4

This sufficient criterion is also not necessary. Since we had deduced it from the first criterion, it is even weaker than this one. An example is given by the function

f:ℝ→ℝ, f(x)=x4

As we considered above, f has a strict local minimum at x~=0 . However, the second sufficient criterion is not applicable. There is in fact

f″(x~)=12x~2=12⋅02=0

This can be remedied by extending the second sufficient criterion, which we will discuss later.

Example and Exercise

[Bearbeiten]

Example (Checking polynomials for extrema)

Graph of the function g

We again look at the polynomial function g:(−2.0)→ℝ with g(x)=x3−3x. As we already know there is

g′(x)=3x2−3=3(x−1)(x+1)

Hence there is g′(x)=0⟺x=−1 to (−2,0). Further

f″(x)=6x

and therefore g″(−1)=−6<0. So g has a strict local maximum at x~=−1.

Exercise (Determining extrema of a function)

Consider the function

f:[−12,∞)→ℝ, f(x)=32x2−4x−4x+1

Determine all local and global extrema of f.

Solution (Determining extrema of a function)

Proof step: Determining local extrema of f

f is differentiable on (−12,∞) with

f′(x)=3x−4+4(x+1)2

For local extrema in (−12,∞) there must necessarily be f(x)=0. Now

f(x)=0⟺3x−4+4(x+1)2=0⟺3x(x+1)2−4(x+1)2+4=0⟺3x(x2+2x+1)−4(x2+2x+1)+4=0⟺3x3+6x2+3x−4x2−8x−4+4=0⟺3x3+2x2−5x=0⟺3x(x2+23x−53)=0⟺3x(x+53)(x−1)=0

This equation is fulfilled on (−12,∞) for x1=0 and x2=1. So x1 and x2 are candidates for local extrema. f is also twice differentiable on (−12,∞) with

f″(x)=3−8(x+1)3

Hence there is

f″(0)=3−81=3−8=−5<0

According to our second criterion, f has a strict local maximum at x1=0 . Furthermore

f″(1)=3−823=3−1=2>0


So f has a strict local minimum at x2=1 . Now we still have to examine the boundary point x3=−12, because our criteria do not apply there! Since f has a local maximum at x1=0 , and on [−12,0) there are no further zeros of f′, the function f is strictly monotonously decreasing on (−12,0) . So there is f(−12)<f(x) for all x∈(−12,0). Therefore fv at x3=−12.

Proof step: Determining global extrema of f

Graph of the function f

The following monotony table ("smi" = strictly monotonously increasing, "smd" = strictly monotonously decreasing) we get the first step of the proof for f:

x∈(−12,0)(0,1)(1,∞)fsmismdsmi

Further there is f(−12)=−558<−412=f(1). Thus x3=−12 is a global minimum of f. Finally

limx→∞f(x)=limx→∞32x2−4x−4x+1=limx→∞x2⏟→∞⋅(32−4x−4x2(x+1))⏟→32=∞

So f is unbounded from above and therefore has no global maximum.

Extended sufficient crietrion

[Bearbeiten]

The problem with functions like f(x)=x4 is that f″(0)=12⋅02=0 and so the second derivative vanishes. We cannot decide just by the second derivative whether and what kind of extrema are present. If we now differentiate f two more times, we get f(4)(0)=24>0. The question now is whether we can conclude from this, analogous to the second criterion, that f in x~=0 has a strict local minimum.

The answer is "yes" - but there is something we need to take care of: Let us look at the example g(x)=x3. This has, in contrast to f no extremum at x~=0 , but a saddle point. And this although for the third derivative is also g(3)(0)=6>0 . The difference is that here the smallest derivative order, which is not equal to zero, is equal to 3 and therefore odd. With f(x)=x4 on the other hand, the smallest order is 4, so it is even. We can generalize this to the following criterion:


Theorem (sufficient criterion 2b for local extrema)

Let f:(a,b)→ℝ be an n-times differentiable function (n∈ℕ), where f(n) is continuous on x~∈(a,b). Further let

f′(x~)=f″(x~)=…=f(n−1)(x~)=0f(n)(x~)≠0

Then, there is:

  • If n is even, then f in the case of f(n)(x~)<0 in x~ has a strict local maximum. If f(n)(x~)>0, then f has a strict local minimum.
  • If n is odd, then f has a saddle point in x~.

Summary of proof (sufficient criterion 2b for local extrema)

For the proof we need the Taylor formula for f up to the order n−1 with the Lagrange residuals

f(x)=f(x~)+f′(x~)1!(x−x~)1+f″(x~)2!(x−x~)2+…+f(n−1)(x~)(n−1)!(x−x~)n−1+f(n)(ξ)n!(x−x~)n

Proof (sufficient criterion 2b for local extrema)

Proof step: f(n)(x~)<0 and n even ⟹ f has a strict local minimum at x~

Since f(n) is continuous at x~ there is a δ>0, so that f(n)(x)<0 for x∈(x~−δ,x~+δ). According to Taylor's theorem, there is now for every m x∈(x~−δ,x~+δ) some ξ∈(x,x~) (or ξ∈(x~,x)) with

f(x)=∑k=1n−1f(k)(x~)k!(x−x~)k+f(n)(ξ)n!(x−x~)n

Since f″(x~)=f″(x~)=…=f(n−1)(x~)=0 it follows that

f(x)=f(x~)+f(n)(ξ)n!⏟<0(x−x~)n⏟≥0<f(x~)

If x≠x~, then (x−x~)nis>0, and so there is even f(x)<f(x~) for all x∈(x~−δ,x~+δ)∖{x~}. So f has a strict local maximum at x~ . The proof that f has a strict local minimum at x~, if f(n)(x~)>0 is analogous.

Proof step: f(n)(x~)>0 and n odd ⟹ f has a saddle point at x~

As in the proof of part 1, since f″(x~)=f″(x~)=…=f(n−1)(x~)=0 and by Taylor's theorem there is :

f(x)=f(x~)+f(n)(ξ)n!(x−x~)n

for some ξ∈(x,x~) (or ξ∈(x~,x)). But since now n is odd, there is (x−x~)n>0 if x>x~, and (x−x~)n<0 if x<x~. If now f(n)(x~)>0, then there is f(x)>f(x~) for x>x~ and f(x)<f(x~) for x<x~. Conversely, if f(n)(x~)<0, the inequalities apply in the opposite way. In either case x~ is a saddle point.