<<

Monotone Functions

Function f is called monotonically increasing, if

( ) x x f (x ) f (x ) f x2 Chapter 8 1 ≤ 2 ⇒ 1 ≤ 2 It is called strictly monotonically increasing, if f (x1)

x < x f (x ) < f (x ) x1 x2 Monotone, Convex and 1 2 ⇔ 1 2 Extrema f is called monotonically decreasing, if x x2 f (x ) f (x2) 1 ≤ ⇒ 1 ≥ f (x1)

It is called strictly monotonically decreasing, if f (x2)

x < x f (x ) > f (x ) x1 x2 1 2 ⇔ 1 2

Josef Leydold – Bridging Course – WS 2021/22 8– Monotone, Convex and Extrema – 1 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 2 / 47 Monotone Functions Locally Monotone Functions

For differentiable functions we have A function f can be monotonically increasing in some and decreasing in some other interval. f monotonically increasing f (x) 0 for all x D ⇔ 0 ≥ ∈ f For continuously differentiable functions (i.e., when f 0(x) is continuous) f monotonically decreasing f 0(x) 0 for all x D f ⇔ ≤ ∈ we can use the following procedure:

1. Compute first f 0(x). f strictly monotonically increasing f 0(x) > 0 for all x D f ⇐ ∈ 2. Determine all roots of f (x). f strictly monotonically decreasing f (x) < 0 for all x D 0 ⇐ 0 ∈ f 3. We thus obtain intervals where f 0(x) does not change .

4. Select appropriate points xi in each interval and determine the Function f : (0, ∞), x ln(x) is strictly monotonically increasing, as 7→ sign of f 0(xi). 1 f 0(x) = (ln(x))0 = > 0 for all x > 0 x

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 3 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 4 / 47 Locally Monotone Functions Monotone and Inverse Function

In which region is function f (x) = 2 x3 12 x2 + 18 x 1 If f is strictly monotonically increasing, then − − monotonically increasing? x1 < x2 f (x1) < f (x2) We have to solve inequality f (x) 0: ⇔ 0 ≥ 1. f (x) = 6 x2 24 x + 18 immediately implies 0 − 2 2. Roots: x 4 x + 3 = 0 x1 = 1, x2 = 3 x = x f (x ) = f (x ) − ⇒ 1 6 2 ⇔ 1 6 2 3. Obtain 3 intervals: ( ∞, 1], [1, 3], and [3, ∞) − That is, f is one-to-one. 4. Sign of f (x) at appropriate points in each interval: 0 So if f is onto and strictly monotonically increasing (or decreasing), f (0) = 3 > 0, f (2) = 1 < 0, and f (4) = 3 > 0. 0 0 − 0 then f is invertible. 5. f 0(x) cannot change sign in each interval: f (x) 0 in ( ∞, 1] and [3, ∞). 0 ≥ − Function f (x) is monotonically increasing in ( ∞, 1] and in [3, ∞). −

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 5 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 6 / 47 Convex and Concave Functions Concave Function

Function f is called convex, if its domain D is an interval and f f (1 h) x + h x (1 h) f (x ) + h f (x ) − 1 2 ≥ − 1 2 f ((1 h) x + h x ) (1 h) f (x ) + h f (x ) − 1 2 ≤ − 1 2 

for all x1, x2 D f and all h [0, 1]. It is called concave, if ∈ ∈ f (1 h) x + h x − 1 2 f ((1 h) x + h x ) (1 h) f (x ) + h f (x )  − 1 2 ≥ − 1 2 (1 h) f (x ) + h f (x ) − 1 2

x1 x2 (1 h) x + h x − 1 2

x1 x2 x1 x2 convex concave Secant below graph of function

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 7 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 8 / 47 Convex and Concave Functions Strictly Convex and Concave Functions

For two times differentiable functions we have Function f is called strictly convex, if its domain D f is an interval and

f convex f 00(x) 0 for all x D f f ((1 h) x + h x ) < (1 h) f (x ) + h f (x ) ⇔ ≥ ∈ − 1 2 − 1 2 f concave f 00(x) 0 for all x D f ⇔ ≤ ∈ for all x , x D , x = x and all h (0, 1). 1 2 ∈ f 1 6 2 ∈ It is called strictly concave, if its domain D f is an interval and

f ((1 h) x + h x ) > (1 h) f (x ) + h f (x ) − 1 2 − 1 2 f 0(x) is monotonically decreasing, For two times differentiable functions we have thus f (x) 0 00 ≤ f strictly convex f (x) > 0 for all x D ⇐ 00 ∈ f f strictly concave f (x) < 0 for all x D ⇐ 00 ∈ f

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 9 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 10 / 47 Concave Function

Logarithm function: (x > 0) : f (x) = ln(x) 1 f (x) = ex 1 e f (x) = f (x) = ex 0 x 0 1 x f 00(x) = 2 < 0 for all x > 0 1 e f 00(x) = e > 0 for all x R − x ∈ ln(x) is (strictly) concave. exp(x) is (strictly) convex. 1

1

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 11 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 12 / 47 Locally Convex Functions Locally Concave Function

A function f can be convex in some interval and concave in some other In which region is f (x) = 2 x3 12 x2 + 18 x 1 concave? − − interval. We have to solve inequality f 00(x) 0. ( ) ≤ For two times continuously differentiable functions (i.e., when f 00 x is 1. f 00(x) = 12 x 24 continuous) we can use the following procedure: − 2. Roots: 12 x 24 = 0 x = 2 1. Compute f 00(x). − ⇒ 3. Obtain 2 intervals: ( ∞, 2] and [2, ∞) 2. Determine all roots of f 00(x). − 4. Sign of f 00(x) at appropriate points in each interval: 3. We thus obtain intervals where f 00(x) does not change sign. f (0) = 24 < 0 and f (4) = 24 > 0. 00 − 00 4. Select appropriate points xi in each interval and determine the 5. f 00(x) cannot change sign in each interval: f 00(x) 0 in ( ∞, 2] sign of f 00(xi). ≤ − Function f (x) is concave in ( ∞, 2]. −

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 13 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 14 / 47 Problem 8.1 Problem 8.2

Determine whether the following functions are concave or convex (or In which region is function neither). f (x) = x3 3x2 9x + 19 (a) exp(x) − − monotonically increasing or decreasing? (b) ln(x) In which region is it convex or concave?

(c) log10(x) (d) xα for x > 0 for an α R. ∈

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 15 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 16 / 47 Problem 8.3 Problem 8.4

In which region the following functions monotonically increasing or Function decreasing? 1 a f (x) = b x − , 0 < a < 1, b > 0, x 0 In which region is it convex or concave? ≥ 2 (a) f (x) = x ex is an example of a production function. Production functions usually have the following properties: x2 (b) f (x) = e− (1) f (0) = 0, lim f (x) = ∞ x ∞ 1 → (2) f 0(x) > 0, lim f 0(x) = 0 (c) f (x) = x ∞ x2 + 1 → (3) f 00(x) < 0

(a) Verify these properties for the given function.

(b) Draw (sketch) the graphs of f (x), f 0(x), and f 0(x). (Use appropriate values for a and b.) (c) What is the economic interpretation of these properties?

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 17 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 18 / 47 Problem 8.5 Problem 8.6

Function Use the definition of convexity and show that f (x) = x2 is strictly f (x) = b ln(ax + 1) , a, b > 0, x 0 convex. ≥ 2 is an example of a function. Hint: Show that inequality 1 x + 1 y 1 x2 + 1 y2 < 0 holds for all 2 2 − 2 2 Utility functions have the same properties as production functions. x = y. 6   (a) Verify the properties from Problem 8.4.

(b) Draw (sketch) the graphs of f (x), f 0(x), and f 0(x). (Use appropriate values for a and b.)

(c) What is the economic interpretation of these properties?

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 19 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 20 / 47 Problem 8.7 Problem 8.8

Show: Show: If f (x) is a two times differentiable concave function, then If f (x) is a concave function, then g(x) = f (x) convex. − g(x) = f (x) convex. You may not assume that f is differentiable. −

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 21 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 22 / 47 Problem 8.9 Problem 8.10

Let f (x) and g(x) be two differentiable concave functions. Sketch the f : [0, 2] R with the properties: → Show that I continuous, h(x) = α f (x) + β g(x) , for α, β > 0, I monotonically decreasing, I strictly concave, is a concave function. I f (0) = 1 and f (1) = 0. What happens, if α > 0 and β < 0? In addition find a particular term for such a function.

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 23 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 24 / 47 Problem 8.11 Global Extremum (Optimum)

Suppose we relax the condition strict concave into concave in A x∗ is called global maximum (absolute maximum) of f , Problem 8.10. if for all x D , ∈ f Can you find a much simpler example? f (x∗) f (x) . ≥

A point x∗ is called global minimum (absolute minimum) of f , if for all x D , ∈ f f (x∗) f (x) . ≤

global maximum

no global minimum

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 25 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 26 / 47 Local Extremum (Optimum) Minima and Maxima

A point x0 is called local maximum (relative maximum) of f , Notice! if for all x in some neighborhood of x0, Every minimization problem can be transformed into a maximization problem (and vice versa). f (x ) f (x) . 0 ≥

A point x0 is called local minimum (relative minimum) of f , f (x) if for all x in some neighborhood of x0, Point x0 is a minimum of f (x), f (x ) f (x) . 0 ≤ if and only if x0 is a maximum of f (x). local maximum − x0 = global maximum local maximum

f (x) − local minimum

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 27 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 28 / 47 Critical Point Global Extremum

At a (local) maximum or minimum the first derivative of the function Sufficient condition: must vanish (i.e., must be equal 0). Let x0 be a critical point of f . A point x0 is called a critical point (or ) of function If f is concave then x0 is a global maximum of f . f , if If f is convex then x0 is a global minimum of f . f 0(x0) = 0

If f is strictly concave (or convex), then the extremum is unique. Necessary condition for differentiable functions:

Each extremum of f is a critical point of f .

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 29 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 30 / 47 Global Extremum Local Extremum

Let f (x) = ex 2 x. A point x is a local maximum (or local minimum) of f , if − 0 I x0 is a critical point of f , Function f is strictly convex: I f is locally concave (and locally convex, resp.) around x0. f (x) = ex 2 0 − f (x) = ex > 0 for all x R 00 ∈ Critical point: f (x) = ex 2 = 0 x = ln 2 0 − ⇒ 0

x0 = ln 2 is the (unique) global minimum of f .

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 31 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 32 / 47 Local Extremum Necessary and Sufficient

Sufficient condition for two times differentiable functions: We want to explain two important concepts using the example of local minima.

Let x0 be a critical point of f . Then Condition “ f 0(x0) = 0” is necessary for a local minimum: f (x ) < 0 x is local maximum I 00 0 ⇒ 0 Every local minimum must have this properties. I f 00(x0) > 0 x0 is local minimum However, not every point with such a property is a local minimum ⇒ 3 (e.g. x0 = 0 in f (x) = x ). Stationary points are candidates for local extrema. It is sufficient to evaluate f 00(x) at the critical point x0. (In opposition to the condition for global extrema.) Condition “ f 0(x0) = 0 and f 00(x0) > 0” is sufficient for a local minimum.

If it is satisfied, then x0 is a local minimum. However, there are local minima where this condition is not satisfied 4 (e.g. x0 = 0 in f (x) = x ). If it is not satisfied, we cannot draw any conclusion.

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 33 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 34 / 47 Procedure for Local Extrema Local Extrema

Sufficient condition Find all local extrema of for local extrema of a in one variable: 1 f (x) = x3 x2 + 3 x + 1 12 − 1. Compute f 0(x) and f 00(x).

2. Find all roots xi of f 0(xi) = 0 (critical points). 1. f (x) = 1 x2 2 x + 3, 0 4 − 1 3. If f 00(x ) < 0 x is a local maximum. f (x) = x 2. i ⇒ i 00 2 − If f (x ) > 0 x is a local minimum. 00 i i 2. 1 x2 2 x + 3 = 0 ⇒ 4 − If f (x ) = 0 no conclusion possible! 00 i ⇒ has roots x1 = 2 and x2 = 6. x1 x2 3. f (2) = 1 x is a local maximum. 00 − ⇒ 1 f (6) = 1 x is a local minimum. 00 ⇒ 2

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 35 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 36 / 47 Sources of Errors Sources of Errors

x3 + 2 2 Find all global minima of f (x) = . Find all global maxima of f (x) = exp( x /2) . 3x − 3 2 2(x 1) 1. f 0(x) = x exp( x ), 1. f 0(x) = −2 , 3x 2 − 2 2x3+4 f 00(x) = (x 1) exp( x ). f 00(x) = 3x3 . − − 2. critical point at x0 = 0. 2. critical point at x0 = 1. x0 x0 3. However, 3. f 00(1) = 2 > 0 f (0) = 1 < 0 but f (2) = 2e 2 > 0. global minimum ??? 00 − 00 − ⇒ So f is not concave and thus there cannot be a global maximum. However, looking just at f 00(1) is not sufficient as we are looking for Really ??? global minima! Beware! We are checking a sufficient condition. Beware! We have to look at f 00(x) at all x D . ∈ f Since an assumption does not hold ( f is not concave), However, f ( 1) = 2 < 0. 00 − − 3 we simply cannot apply the theorem. Moreover, domain D = R 0 is not an interval. \{ } We cannot conclude that f does not have a global maximum. So f is not convex and we cannot apply our theorem.

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 37 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 38 / 47 Global Extrema in [a, b] Global Extrema in [a, b]

Extrema of f (x) in closed interval [a, b]. Find all global extrema of function Procedure for differentiable functions: 1 f : [0,5; 8,5] R, x x3 x2 + 3 x + 1 → 7→ 12 − (1) Compute f 0(x).

(2) Find all stationary points (i.e., ( ) = 0). 1 xi f 0 xi (1) f (x) = x2 2 x + 3. 0 4 − (3) Evaluate f (x) for all candidates: 1 2 (2) 4 x 2 x + 3 = 0 has roots x1 = 2 and x2 = 6. I all stationary points xi, − I boundary points a and b. (3) f (0.5) = 2.260 (4) Largest of these values is global maximum, f (2) = 3.667 smallest of these values is global minimum. f (6) = 1.000 global minimum ⇒ f (8.5) = 5.427 global maximum ⇒ It is not necessary to compute f 00(xi). (4) x2 = 6 is the global minimum and b = 8.5 is the global maximum of f .

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 39 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 40 / 47 Global Extrema in (a, b) Global Extrema in (a, b)

Extrema of f (x) in open interval (a, b) (or ( ∞, ∞)). Compute all global extrema of − Procedure for differentiable functions: x2 f : R R, x e− → 7→

(1) Compute f 0(x). 2 (1) f (x) = 2x e x . 0 − − (2) Find all stationary points xi (i.e., f 0(xi) = 0). x2 (2) f 0(x) = 2x e− = 0 has unique root x1 = 0. (3) Evaluate f (x) for all stationary points xi. − (3) f (0) = 1 global maximum (4) Determine limx a f (x) and limx b f (x). ⇒ → → limx ∞ f (x) = 0 no global minimum (5) Largest of these values is global maximum, →− ⇒ limx ∞ f (x) = 0 smallest of these values is global minimum. → (4) The function has a global maximum in = 0, (6) A global extremum exists only if the largest (smallest) value x1 but no global minimum. is obtained in a stationary point!

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 41 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 42 / 47 Existence and Uniqueness Problem 8.12

I A function need not have maxima or minima: Find all local extrema of the following functions. ( ) = x2 f : (0, 1) R, x x (a) f x e− → 7→ 2 (b) ( ) = x +1 (Points 1 and 1 are not in domain (0, 1).) g x x − (c) h(x) = (x 3)6 I (Global) maxima need not be unique: −

f : R R, x x4 2 x2 → 7→ − has two global minima at 1 and 1. −

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 43 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 44 / 47 Problem 8.13 Problem 8.14

Find all global extrema of the following functions. Compute all global of the following functions.

(a) f : (0, ∞) R, x 1 + x x3 5 1 → 7→ x (a) f (x) = x2 + 4x in interval [1, 12] 12 − 4 − 2 (b) f : [0, ∞) R, x √x x → 7→ − 2 5 (c) f : R R, x e 2x + 2x (b) f (x) = x3 x2 3x + 2 in interval [ 2, 6] → 7→ − 3 − 2 − − (d) f : (0, ∞) R, x x ln(x) → 7→ − (c) f (x) = x4 2 x2 in interval [ 2, 2] 2 − − (e) f : R R, x e x → 7→ −

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 45 / 47 Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 46 / 47 Summary

I monotonically increasing and decreasing I convex and concave I global and local extrema

Josef Leydold – Bridging Course Mathematics – WS 2021/22 8– Monotone, Convex and Extrema – 47 / 47