Jump to content

Monotonic functions – "Math for Non-Geeks"

From Wikibooks, open books for an open world

Monotonicity criterion

[edit | edit source]

The monotonicity criterion is quite intuitive: if the derivative of a function (i.e. the slope) is positive, it goes up, if the derivative is negative, it goes down. Mathematically, if the derivative f′ of a differentiable function f is non-negative or (non-positive) on an interval (a,b) , then f is monotonically increasing (or decreasing) on (a,b). If f′ is even strictly positive (or negative) (a,b), then f is strictly monotonically increasing (or decreasing).

In the first case, even inversion of the statement is true: If a differentiable function is monotonically increasing on [a,b], then f′(x)≥0 and if the function is monotonically decreasing on [a,b], then f′(x)≥0. However, the inversion does not hold true in the strict case, monotone functions do not always have f′(x)>0 or f′(x)<0 . For instance, f(x)=x3 is strictly monotone, but f′(0)=3⋅02=0.

Theorem (Monotonicity criterion for differentiable functions)

Let f:[a,b]→ℝ be continuous and differentiable on (a,b). Then, there is

  1. f′≥0 on (a,b) ⟺ f monotonically increasing on [a,b]
  2. f′≤0 on (a,b) ⟺ f monotonically decreasing on [a,b]
  3. f′>0 on (a,b) ⟹ f strictly monotonically increasing on [a,b]
  4. f′<0 on (a,b) ⟹ f strictly monotonically decreasing on [a,b]

Proof

[edit | edit source]

The four directions "⟹" follow from the mean value theorem. The two directions "⟸" follow by differentiability of the function:

Proof (monotonicity criterion for differentiable functions)

We first show the four directions "⟹" and then the two "⟸".

1. ⟹: From f′≥0 on (a,b) we get that f in monotonically increasing on [a,b].

Let f′≥0 for all x∈(a,b) and let x1,x2∈[a,b] with x1≤x2. We need to show f(x1)≤f(x2). By assumption, f is continuous on [x1,x2]⊆[a,b] and differentiable on (x1,x2)⊆(a,b). By the mean-value theorem, there is a ξ∈(x1,x2) with

f(x2)−f(x1)x2−x1=f′(ξ)

By assumption, f′(ξ)≥0, and hence f(x2)−f(x1)x2−x1≥0. Since x2>x1⟺x2−x1>0 we have in the enumerator f(x2)−f(x1)≥0. This is equivalent to f(x2)≥f(x1), i.e. f is monotonically increasing.

2. ⟹: From f′≤0 on (a,b) we get that f in monotonically decreasing on [a,b].

Let f′≤0 for all x∈(a,b) and let x1,x2∈[a,b] with x1≤x2. We need to show f(x1)≥f(x2). By assumption, f is continuous on [x1,x2]⊆[a,b] and differentiable on (x1,x2)⊆(a,b). By the mean-value theorem, there is a ξ∈(x1,x2) with

f(x2)−f(x1)x2−x1=f′(ξ)

Now, f′(ξ)≤0, and hence f(x2)−f(x1)x2−x1≥0. Since x2>x1⟺x2−x1>0 we have f(x2)−f(x1)≤0. This is equivalent to f(x2)≤f(x1), i.e. f is monotonically decreasing.

3. ⟹: f′>0 on (a,b) implies that f is strictly monotonically increasing on [a,b]

We prove this by contradiction: Let f be not strictly monotonically increasing. That means, we have some x1,x2∈[a,b] with x1<x2 and f(x1)≥f(x2). We need to find a ξ∈(a,b) with f′(ξ)≤0 . Now, f is continuous on [x1,x2] and differentiable on (x1,x2). So by the mean value theorem, we can find a ξ∈(a,b) with

f(x2)−f(x1)x2−x1=f′(ξ)

Since f(x1)≥f(x2) , the enumerator of the quotient is non-positive, and because of x1<x2 the denominator is positive. Thus, the whole fraction is non-positive, and therefore f′(ξ)≤0.

4. ⟹: f′<0 on (a,b) implies that f is strictly monotonically increasing on [a,b]

Another proof by contradiction: Let f be not strictly monotonically decreasing. That means, we have some x1,x2∈[a,b] with x1<x2 and f(x1)≤f(x2). We need to find a ξ∈(a,b) with f′(ξ)≥0 . Now, f is continuous on [x1,x2] and differentiable on (x1,x2). So by the mean value theorem, we can find a ξ∈(a,b) with

f(x2)−f(x1)x2−x1=f′(ξ)

Since f(x1)≤f(x2) , the enumerator of the quotient is non-positive, and because of x1<x2 the denominator is positive. Thus, the whole fraction is non-positive, and therefore f′(ξ)≥0.

Now, the two directions "⟸" follow:

1. ⟸: f being monotonically increasing on [a,b] implies f′≥0 on (a,b)

Let x1,x2∈[a,b] with x1<x2. By monotonicity, f(x1)≤f(x2). Further, let x,x~∈[x1,x2] with x≠x~. Then we have for the difference quotient

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

If x>x~, then f(x)≥f(x~). The enumerator and denominator of the difference quotient are thus non-negative, and so is the total quotient. Similarly, in the case of x<x~ and f(x)≤f(x~) enumerator and denominator are non-positive. Thus, the whole fraction is again non-negative. Now we form the differential quotient by taking the limit x→x~. This limit exists because f is differentiable on (x1,x2). Furthermore, the inequality remains valid because of the monotonicity rule for limit values. Thus, we have

f′(x~)=limx→x~f(x)−f(x~)x−x~≥0

Since x1,x2∈[a,b] and x~∈(x1,x2) have been arbitrary, we get f′≥0 on all of (a,b).

2. ⟸: f being monotonically decreasing on [a,b] implies f′≤0 on (a,b)

Let again x1,x2∈[a,b] with x1<x2. By monotonicity, f(x1)≥f(x2). Further, let x,x~∈[x1,x2] with x≠x~. Then we have for the difference quotient

f(x)−f(x~)x−x~≤0

If x>x~, then f(x)≤f(x~) and thus the total quotient is non-positive. An analogous statement holds in the case x<x~ and f(x)≥f(x~). By forming the differential quotient we now obtain

f′(x~)=limx→x~f(x)−f(x~)x−x~≤0

Since x1,x2 and x~ have been arbitrary, we get f′≤0 on all of (a,b).

Examples: monotonicity criterion

[edit | edit source]

Quadratic and cubic functions

[edit | edit source]
Example (Monotonicity of quadratic and cubic functions)
Graphs of the functions f and g
Graphs of the functions f′ and g′

For the quadratic power function f:ℝ→ℝ, f(x)=x2 there is

f′(x)=2x {>0 if x>0,<0 if x<0

So f is strictly monotonically decreasing by the monotonicity criterion on (−∞,0] and strictly monotonically increasing on [0,∞) .

For the cubic power function g:ℝ→ℝ, g(x)=x3 there is

g′(x)=3x2 {≥0 for all x∈ℝ,>0 for all x∈ℝ∖{0}

So by the monotonicity criterion, g is monotonically increasing on ℝ and strictly monotonically increasing on (−∞,0] and [0,∞). The cubic power function g(x)=x3 is even strictly monotonically increasing on all of ℝ .

The fact that g with g(x)=x3 is strictly monotonically increasing, although only f′≥0 and not f′>0, stems from its derivative being zero at only a single point (namely 0). In the end of this article, we will treat a criterion, which tells us when a function is strictly monotone, even if there is not everywhere f′>0.

Question: Why is g:ℝ→ℝ:x↦x3 strictly monotonically increasing on ℝ?

We must show: From x,y∈ℝ with x<y we get g(x)<g(y). For the cases x<y≤0 and 0≤x<y we have already shown this with the monotonicity criterion. So we only have to look at the case x<0<y. Here there is with the arrangement axioms (missing):

g(x)=x3=x⏟<0⋅x2⏟>0<0<y⏟>0⋅y2⏟>0=y3=g(y)

So g is strictly monotonically increasing on all of ℝ .

Warning

In the example x↦x3 we have seen that the statement "f′>0 implies strict monotonicity" does not hold true! This means that from the fact that f increases strictly monotone, we can in general not conclude that f′>0. In the example of the function h:ℝ→ℝ:x↦−x3 one can also see that the statement "f′<0 implies strictly monotone falling" does not hold true in general.

Exponential and logarithm function

[edit | edit source]
Example (Monotonicity of the exponential and logarithm function)

For the exponential function f:ℝ→ℝ, f(x)=exp⁡(x) there is for all x∈ℝ:

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

Therefore, according to the monotonicity criterion, exp is strictly monotonically increasing on all of ℝ. For the (natural) logarithm function g:ℝ+→ℝ, g(x)=ln⁡(x) there is for all x∈ℝ+:

g′(x)=1x>0

So ln is strictly monotonically increasing on ℝ+ (not including the 0).

Question: What is the monotonicity behaviour of the logarithm function extended to ℝ− , i.e.:ℝ∖{0}→ℝ, h(x)=ln⁡|x|?

There is

h(x)={ln⁡(x) for x>0ln⁡(−x) for x<0

Above we have shown that h′(x)>0 for x∈ℝ+. So h is strictly monotonically increasing on ℝ+ , as well . For x<0 on the other hand there is h′(x)=1−x⋅(−1)=1x<0. So h is strictly monotonically decreasing on ℝ−.

Trigonometric functions

[edit | edit source]
Example (Monotonicity of the sine function)

For the sine function f:ℝ→ℝ, f(x)=sin⁡(x) there is

f′(x)=cos⁡(x) {>0 for x∈(−π2+2πk,π2+2πk), k∈ℤ,<0 for x∈(π2+2πk,3π2+2πk), k∈ℤ

So for all k∈ℤ, the sin is strictly monotonically increasing on the intervals [−π2+2πk,π2+2πk] and strictly monotonically decreasing on the intervals [π2+2πk,3π2+2πk] .

Question: Where does the cosine function g:ℝ→ℝ, g(x)=cos⁡(x) show monotone behaviour?

Here, g′(x)=−sin⁡(x) {>0 for x∈(π+2πk,2π+2πk), k∈ℤ,<0 for x∈(2πk,3π2+π+2πk), k∈ℤ.

So for all k∈ℤ, the cos is strictly monotonically increasing on the intervals [π+2πk,2π+2πk] and strictly monotonically decreasing on the intervals [2πk,π+2πk] .

Example (Monotonicity of the tangent function)

For the tangent function tan⁡:D=ℝ∖{π2+kπ∣k∈ℤ}→ℝ, tan⁡(x)=sin⁡(x)cos⁡(x) there is for all x∈D:

tan′⁡(x)=1+tan2(x)⏟≥0≥1>0

Hence, for all k∈ℤ, the tan is strictly monotonically increasing on the intervals (−π2+kπ,π2+kπ).

Question: Where does the cotangent function cot⁡:D~=ℝ∖{kπ∣k∈ℤ}→ℝ, cot⁡(x)=cos⁡(x)sin⁡(x) show monotone behaviour?

For all x∈D~, there is

cot′⁡(x)=−1−tan2(x)⏟≥0≤−1<0

So for all k∈ℤ , the cot is strictly monotonically decreasing on the intervals (kπ,π+kπ).

Exercise

[edit | edit source]

Monotonicity intervals and existence of a zero

[edit | edit source]
Exercise (Monotonicity intervals and existence of a zero)

Where is the following polynomial function monotone?

f:ℝ→ℝ, f(x)=x3−x−1

Prove that f has exactly one zero.

Solution (Monotonicity intervals and existence of a zero)
Graph of the function f(x)=x3−x−1

Monotonicity intervals:

The function f is differentiable on all of ℝ , with

f′(x)=3x2−1=3(x2−13)=3(x+13)(x−13)

So

f′(x)>0⟺{x+13>0 and x−13>0⟺x>−13 and x>13⟺x>13x+13<0 and x−13<0⟺x<−13 and x<13⟺x<−13

According to the monotonicity criterion, f is strictly monotonically increasing on (−∞,−13) and on (13,∞) . Further,

f′(x)<0⟺{x+13>0 and x−13<0⟺x>−13 and x<13⟺−13<x<13x+13<0 and x−13>0⟺x<−13 and x>13⟺ not possible

According to the monotonicity criterion, f is strictly monotonically decreasing on (−13,13) .

f has exactly one zero:

For f , we have the following table of values:

x−1−1301312f(x)−1−1+233−1−1−233−15

Based on the monotonicity properties and the continuity of f that we have previously investigated, we can read off that:

  • On (−∞,−13) is f strictly monotonically increasing. Because of f(−13)=−1+233<0 there is f(x)<0 for all x∈(−∞,−13).
  • On (−13,13) is f then strictly monotonically decreasing. So there is also f(x)<0 for all x∈(−13,13).
  • Subsequently f increases on (13,∞) again strictly monotonically. Because of f(1)=−1<0 and f(2)=5>0, there must be an x0∈(1,2) with f(x0)=0 by the mean value theorem. Because of the strict monotonicity of f on (13,∞) , there cannot be any further zeros.

Necessary and sufficient criterion for strict monotonicity

[edit | edit source]
Exercise (Necessary and sufficient criterion for strict monotonicity)

Prove that: a continuous function f:[a,b]→ℝ which is differentiable to (a,b) is strictly monotonically increasing exactly when there is

  1. f′(x)≥0 for all x∈(a,b)
  2. The zero set of f′ contains no open interval.

As an application: Show that the function f:ℝ→ℝ,f(x)=x−sin⁡(x) is strictly monotonically increasing on all of ℝ .

Proof (Necessary and sufficient criterion for strict monotonicity)

From the monotonicity criterion we already know that f is monotonically increasing exactly when f′(x)≥0. So we only have to show that f is strictly monotonically increasing exactly when the second condition is additionally fulfilled.

⟹: f strictly monotonically increasing ⟹ the set of zeros of f′ does not contain an open interval.

We perform a proof by contradiction. In other words, we show: If the set of zeros of f′ contains an open interval, f is not strictly monotonically increasing. Assume there is a1,b1∈(a,b) with f′(x)=0 for all x∈(a1,b1). Then, by the mean value theorem there is a ξ∈(a1,b1) with

f(b1)−f(a1)=f′(ξ)⏟=0(b1−a1)=0

So f(a1)=f(b1). If now x∈(a1,b1)⟺a1<x<b1, then since f is monotonically increasing, there is

f(a1)≤f(x)≤f(b1)

So there is f(x)=f(b1) for all x∈(a1,b1). Hence, f is not strictly monotonically increasing.

⟸: the set of zeros of f′ does not contain an open interval ⟹ f strictly monotonically increasing

We perform a proof by contradiction. In other words, we show: if f is monotonically, but not strictly monotonically increasing, then the zero set of f′ contains an open interval. Assume there is a2,b2∈(a,b) with a2<b2 with f(a2)=f(b2). Because of the monotonicity of f there is

f(a2)≤f(x)≤f(b2)

So f(x)=f(b2) for all x∈(a1,b1). That means f is constant on (a2,b2). Hence, there is for all x∈(a2,b2):

f′(x)=0

so the set of zeros of f′ does contain an open interval, and we get a contradiction.

Exercise: f:ℝ→ℝ, f(x)=x−sin⁡(x) is strictly monotonically increasing

f is differentiable for all x∈ℝ where

f′(x)=1−cos⁡(x)≥0

as cos⁡(x)≤1 for all x∈ℝ. Hence f is monotonically increasing. Further there is

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

So the set of zeros of f′ contains only isolated points, and thus no open interval. Therefore f is strictly monotonically increasing on ℝ .