Professional Documents
Culture Documents
Lecture 30
Lecture 30
Suppose we know the value of a function f at two points: f (x1 ) = y1 and f (x2 ) = y2 , with x2 > x1 .
The linear interpolant between the two points (x1 , f (x1 )) and (x2 , f (x2 )) is the linear function l satisfying
l(x1 ) = f (x1 ) = y1 and l(x2 ) = f (x2 ) = y2 . We usually restrict the domain of the interpolant to [x1 , x2 ].
The formula for l is
y2 − y1
l(x) = y1 + · (x − x1 )
x2 − x1
x − x1 x − x1
= 1− y1 + · y2
x2 − x1 x2 − x1
= λy1 + (1 − λ)y2 ,
x−x1
where λ(x) = 1 − x2 −x1
∈ [0, 1].
We can also think of λ as a parameter that tells us whether we are closer to the first point or the second
point.
Convexity
Definition 3
Let I be a proper interval and let f be a function defined on I .
We say that f is convex or concave upwards on I if for all x, y ∈ I with x < y and for all λ ∈ [0, 1], we have
We say that f is concave or concave downwards on I if for all x, y ∈ I with x < y and for all λ ∈ [0, 1], we have
We define strictly convex and strictly concave with the natural modifications.
A function f has a point of inflection at c ∈ I if f is continuous at c, and for some a, b ∈ I with a < c < b,
either
1. f is strictly convex on (a, c) and strictly concave on (c, b), or
2. f is strictly concave on (a, c) and strictly convex on (c, b).
A function f is concave if and only if −f is convex. Hence, we focus on results for convex functions from now
on.
Mind the mistakes in the text book definitions of convex and concave.
Some results about convex functions
Proposition 3
A function f is convex on a proper interval I if and only if for each x, y , z ∈ I with x < z < y , we have
Theorem 6
Let f be differentiable on a nonempty open interval (a, b). The function f is convex on (a, b) if and only if f 0 is
increasing on (a, b).
More results about convex functions
Corollary 2
Let f be twice differentiable on the nonempty interval (a, b). If f 00 (x) > 0 for all x ∈ (a, b), then f is convex on
(a, b).
Proposition 4
Let f be differentiable and convex on (a, b). Then, for any point x0 ∈ (a, b), the graph of f on (a, b) lies above
the tangent line to the graph of f at x0 .
Test for inflection points
If f is twice differentiable, then convexity is determined by the sign of f 00 . Hence, if f 00 is continuous, then at
inflection points, we must have f 00 (c) = 0.
Exercise
Sketch some diagrams to illustrate each of the three cases above.
Remarks:
1. To make this easier to understand and remember, you can replace “on (a, c)” with “to the left of c” and
replace “on (c, b)” with “to the right of c”. Similarly, the criterion in Statement 3 is “on both sides of c”.
2. This test doesn’t even require c to be a critical point. Why did we go to the trouble of defining and finding
critical points?
3. There are (strange) functions for which f 0 (c) = 0 but none of the three cases in the test is satisfied.
Example
Suppose c is a critical point at which f 0 (c) = 0. How can we use information about f 00 to determine whether
there is a local minimum or maximum at c?
Note that this test is inconclusive if f 00 (c) = 0. In such cases, c could be a local minimum, maximum, neither,
or both.
Easy examples
Find all local extrema and classify them as minima or maxima. Also find all inflection points.
1. f (x) = x 2 .
f is differentiable and f 0 (x) = 0 if and only if x = 0, so 0 is the only critical point.
Second derivative is f 00 (x) = 2, which is continuous and f 00 (0) = 2 > 0 so this is a local minimum.
Second derivative is never 0 so there are no inflection points.
2. f (x) = x 3 .
0 is the only critical point.
Second derivative is continuous and f 00 (0) = 6x|x=0 = 0 so the Second Derivative Test does not help. We
can still apply the First Derivative Test. f 0 (x) = 3x 2 > 0 for all x 6= 0 so this tells us that 0 is neither a
local maximum nor a local minimum.
0 is an inflection point because f 00 (x) < 0 for x < 0 and f 00 (x) > 0 for x > 0.
3. f (x) = x 4 .
0 is the only critical point.
Second derivative is f 00 (0) = 24x 2 x=0 = 0 so the Second Derivative Test does not help. We can still apply
the First Derivative Test. f 0 (x) = 4x 3 > 0 for x > 0 and f 0 (x) < 0 for x < 0 so 0 is a local minimum.
0 is not an inflection point because f 00 (x) > 0 for all x 6= 0.
Less trivial example
Question
Which test should we use?
What if they are inconclusive?
Exercises
Exercise
Identify all local maxima, local minima, other critical points, and points of inflection of the following functions.
Try to use both First and Second Derivative Tests for comparison.
1. f (x) = 4x 3 − 15x 2 + 12x + 5.
|x − 1|
2. f (x) = 2 .
(x − 1)(x − 5)