Meanvalhhhhue
Meanvalhhhhue
Meanvalhhhhue
PO-LAM YUNG
1. Monotone functions
We introduce the following definitions:
Definition 1. Suppose f : I → R is defined on some interval I.
(i) f is said to be constant on I, if and only if f (x) = f (y) for any x, y ∈ I.
(ii) f is said to be increasing on I, if and only if for any x, y ∈ I with x < y, we have
f (x) ≤ f (y).
(iii) f is said to be strictly increasing on I, if and only if for any x, y ∈ I with x < y, we have
f (x) < f (y).
(iv) f is said to be decreasing on I, if and only if for any x, y ∈ I with x < y, we have
f (x) ≥ f (y).
(v) f is said to be strictly decreasing on I, if and only if for any x, y ∈ I with x < y, we have
f (x) > f (y).
(Can you draw some examples of such functions?)
Corollary 2. Suppose f : [a, b] → R is a function defined on a closed interval [a, b] where a, b ∈
R. Suppose also that f is continuous on the closed interval [a, b], and that f is differentiable on
the open interval (a, b).
(i) If f 0 (t) = 0 for all t ∈ (a, b), then f is constant on [a, b].
(ii) If f 0 (t) ≥ 0 for all t ∈ (a, b), then f is increasing on [a, b].
(iii) If f 0 (t) > 0 for all t ∈ (a, b), then f is strictly increasing on [a, b].
(iv) If f 0 (t) ≤ 0 for all t ∈ (a, b), then f is decreasing on [a, b].
(v) If f 0 (t) < 0 for all t ∈ (a, b), then f is strictly decreasing on [a, b].
Proof. Suppose f is continuous on [a, b], and differentiable on (a, b). Fix two points x, y ∈ [a, b],
with say x < y. Then f is continuous on the closed interval [x, y], and differentiable on the
open interval (x, y), so the mean value theorem applies, and there exists some c ∈ (x, y) ⊂ (a, b)
such that
f (y) − f (x) = f 0 (c)(y − x).
(i) If f 0 (t) = 0 for all t ∈ (a, b), then in particular f 0 (c) = 0. So
f (y) − f (x) = f 0 (c)(y − x) = 0,
i.e. f (x) = f (y). Since x, y are arbitrary in [a, b], this shows f is a constant on [a, b].
(ii) If f 0 (t) ≥ 0 for all t ∈ (a, b), then in particular f 0 (c) ≥ 0. So using also y − x > 0, we see
that
f (y) − f (x) = f 0 (c)(y − x) ≥ 0,
i.e. f (x) ≤ f (y). Since x, y are arbitrary in [a, b], this shows f is increasing on [a, b].
1
2 PO-LAM YUNG
(iii) If f 0 (t) > 0 for all t ∈ (a, b), then in particular f 0 (c) > 0. So using also y − x > 0, we see
that
f (y) − f (x) = f 0 (c)(y − x) > 0,
i.e. f (x) < f (y). Since x, y are arbitrary in [a, b], this shows f is strictly increasing on
[a, b].
(iv) Similar to (ii) (or apply (ii) to −f )
(v) Similar to (iii) (or apply (iii) to −f )
Note: The converse of (i), (ii) and (iv) are true, but the converse of (iii), (v) are not! Verify
yourself.
3. Convex functions
In the second derivative test, we used only the second derivative at one point. If in addition
a function is twice differentiable on an interval, then the sign of the second derivative actually
tells us about the convexity of a function, which we define below. We note, however, that the
notion of convexity is independent of the notion of the second derivative.
Definition 3. Suppose f : (a, b) → R is a function defined on some open interval (a, b).
(i) f is said to be convex on (a, b), if and only if
f (λx + (1 − λ)y) ≤ λf (x) + (1 − λ)f (y)
for any x, y ∈ (a, b) and any λ ∈ (0, 1).
(ii) f is said to be concave on (a, b), if and only if
f (λx + (1 − λ)y) ≥ λf (x) + (1 − λ)f (y)
for any x, y ∈ (a, b) and any λ ∈ (0, 1).
(Can you draw some examples of such functions?)
(Some people call convex functions “convex up”, and concave functions “convex down”. We
will not use these terminologies.)
The above definition is symmetric with respect to x and y. Hence we only need to check it
when (say) x < y. For fixed x, y ∈ (a, b) with x < y, let z = λx + (1 − λ)y. When λ varies
between (0, 1), z varies between (x, y), and the correspondence between such λ’s and z’s is
one-to-one. Hence the above definitions can be rephrased as follows:
Proposition 5. Suppose f : (a, b) → R is a function defined on some open interval (a, b).
(i) f is convex on (a, b), if and only if
y−z z−x
f (z) ≤ f (x) + f (y)
y−x y−x
for any x, y, z ∈ (a, b) with x < z < y.
(ii) f is concave on (a, b), if and only if
y−z z−x
f (z) ≥ f (x) + f (y)
y−x y−x
for any x, y, z ∈ (a, b) with x < z < y.
By rearranging the above inequalities, one also has the following equivalent characterization
of convexity:
4 PO-LAM YUNG
Proposition 6. Suppose f : (a, b) → R is a function defined on some open interval (a, b).
(i) f is convex on (a, b), if and only if
f (z) − f (x) f (y) − f (z)
≤
z−x y−z
for any x, y, z ∈ (a, b) with x < z < y.
(ii) f is concave on (a, b), if and only if
f (z) − f (x) f (y) − f (z)
≥
z−x y−z
for any x, y, z ∈ (a, b) with x < z < y.
Heuristically, this says that f is convex on (a, b), if and only if the slopes of the secant lines
are ‘increasing’ on (a, b). Similarly for concavity.
Not every convex / concave function is differentiable. (What is a simple example here?) But
for functions that are differentiable, we can characterize convexity / concavity as follows.
Proposition 7. Suppose f : (a, b) → R is a differentiable function defined on some open interval
(a, b).
(i) f is convex on (a, b), if and only if f 0 is increasing on (a, b).
(ii) f is concave on (a, b), if and only if f 0 is decreasing on (a, b).
Proof. (i) Suppose f is differentiable on (a, b). Then by mean value theorem, for any x, y, z ∈
(a, b) with x < z < y, there exists c ∈ (x, z), d ∈ (z, y) such that
f (z) − f (x) f (y) − f (z)
= f 0 (c), = f 0 (d).
z−x y−z
Note that c must then be less than d. Hence if f 0 is increasing on (a, b), then f 0 (c) ≤ f 0 (d),
and this shows that f is convex on (a, b) by our earlier proposition.
Conversely, suppose f is differentiable and convex on (a, b). Suppose x, y ∈ (a, b) with
x < y. Then
f (z1 ) − f (x) f (y) − f (z2 )
f 0 (x) = lim , f 0 (y) = lim .
z1 →x + z 1 − x z2 →y − y − z2
But for z1 , z2 with x < z1 < z2 < y, we have, by convexity of f , that
f (z1 ) − f (x) f (z2 ) − f (z1 ) f (y) − f (z2 )
≤ ≤ .
z1 − x z2 − z1 y − z2
Hence forgetting about the middle term, and letting z1 → x+ , z2 → y − , we see that
f 0 (x) ≤ f 0 (y), and this shows that f 0 is increasing.
(ii) Similar to (i).
If in addition, f is twice differentiable, then f 0 is increasing on (a, b), if and only if f 00 ≥ 0 on
(a, b). This gives us the following corollary:
Corollary 8. Suppose f : (a, b) → R is twice differentiable on an open interval (a, b).
(i) If f 00 (t) ≥ 0 for all t ∈ (a, b), then f is convex on (a, b).
(ii) If f 00 (t) ≤ 0 for all t ∈ (a, b), then f is concave on (a, b).
One can easily show now that e.g. exp(x) is strictly increasing and convex on R.
It is now easy to sketch the graph of a function using its first (and possibly second) derivatives.
This in turn allows us to determine (sometimes) the global maximum or minimum of a function
over unbounded intervals, and establish some identities / inequalities.