Take two functions, f(x)=2x2 and g(x)=2x−2x2, on the interval [0,2]. Both start at (0,0), end at (2,2), and increase the whole way, yet the two curves have different shapes. To see what separates them, let's look at their tangent slopes across the interval.
The slopes of f go 0,1,2, so f′ is increasing. When the derivative is increasing, we say the function is concave up. For g, the slopes go 2,1,0, so g′ is decreasing. When the derivative is decreasing, we say the function is concave down.
Compare the tangent slopes of f(x)=2x2 and g(x)=2x−2x2 on [0,2], then check f on [−2,0]
Text solution
Same ends, both increasingBoth derivatives are positive on (0,2), but at x=1 the curve of g is higher.
f′(x)=x,g′(x)=2−x
f(1)=21,g(1)=23
Compare the slopesThe slopes of f go up and the slopes of g go down.
f′(0)=0,f′(1)=1,f′(2)=2g′(0)=2,g′(1)=1,g′(2)=0
A decreasing curve can be concave upOn [−2,0],f′(x)=x is negative, so f decreases. But its slopes still go up, so f is concave up there too.
f′(−2)=−2
f′(−1)=−1
f′(0)=0
So f is concave up on all of [−2,2], even though it decreases on [−2,0] and increases on [0,2]. Its slope goes up the whole way.
2
Finding concavity from the second derivative
When we only have a formula for f and no tangent lines drawn, how do we know where f′ is increasing? The same way we tell where any function is increasing, from the sign of its derivative. The derivative of f′ is f′′.
f′′(x)>0⟹f′ increasing⟹f concave up
f′′(x)>0⟹f′ increasing⟹f concave up
f′′(x)<0⟹f′ decreasing⟹f concave down
f′′(x)<0⟹f′ decreasing⟹f concave down
Our two curves agree with it. For 2x2,f′′(x)=1 is positive, and for 2x−2x2,f′′(x)=−1 is negative. Now let's try a function whose second derivative changes sign. A point on the graph where the concavity changes is called an inflection point.
Find where f(x)=x3−3x is concave up and concave down, and find its inflection point
f(x)=x3−3xconcave up on?concave down on?inflection point?
Text solution
Differentiate twiceConcavity comes from the sign of f′′.
f′(x)=3x2−3,f′′(x)=6x
Read the sign of f′′6x is negative for x<0 and positive for x>0.
concave down on (−∞,0)
concave up on (0,∞)
The inflection pointThe sign of f′′ changes at x=0. For the height, plug 0 into f, not into f′′.
f(0)=0→inflection point (0,0)
The smallest slopef′ decreases until x=0 and increases after it, so the slope is smallest there.
f′(0)=−3
Under the curve, the sign chart of f′′ shows where each piece comes from.
3
When f′′ is zero or undefined
At the inflection point (0,0) of x3−3x, the second derivative is 0. But does f′′=0 always give an inflection point? Let's test x3 and x4, which both have f′(0)=0 and f′′(0)=0, and then x5/3, whose second derivative is undefined at 0.
Testing x3,x4, and x5/3 for inflection points
Text solution
x3: the sign changes6x is negative left of 0 and positive right of it, so (0,0) is an inflection point.
x3:f′′(x)=6x,−∣+ at 0→(0,0)
x4: the sign stays the same12x2 is 0 at 0 but positive on both sides, so x4 is concave up on both sides and has no inflection point.
x4:f′′(x)=12x2,+∣+ at 0→none
The candidatesLike f′,f′′ can only change sign where it's 0 or undefined. Those points are candidates, and we check the sign of f′′ on each side.
x35: undefined at 0The numerator 10 is never 0, but the cube root makes f′′ undefined at 0 and gives it the sign of x. So (0,0) is an inflection point.
f′′(x)=93x10
−∣+ at 0→(0,0)
Is every zero of the second derivative an inflection point?
4
Reading concavity from the graph of f′
Sometimes we're only given a graph of f′, with no formula for f. Whether the graph is above or below the x-axis still tells us where f increases and decreases. For concavity, we look at something else, whether f′ itself is increasing or decreasing.
f increasing: f′>0,f decreasing: f′<0
f increasing: f′>0,f decreasing: f′<0
f concave up: f′ increasing,f concave down: f′ decreasing
Let's read both from the graph of f′(x)=3x2−3 on [−2,2].
Find the intervals of concavity and the inflection points of f from the graph of f′(x)=3x2−3
Text solution
Where f′ crosses the axisf′ is positive, then negative, then positive, so f has a local maximum at −1 and a local minimum at 1.
f′(−1)=0,f′:+→−→local max
f′(1)=0,f′:−→+→local min
Where f′ falls and risesf′ decreases until x=0 and increases after it. Its lowest point is where the concavity of f changes.
concave down on (−2,0)
concave up on (0,2)
inflection point at x=0
Both at once on (−2,−1)There f′ is positive but decreasing, so f is increasing and concave down.
From a graph of f′′Read concavity from its sign. f′′(x)=6x crosses the x-axis at 0, so there's an inflection point there. A graph like 12x2 that only touches the axis gives none.
On the graph of f(x)=x3−3x itself, the local maximum (−1,2) and local minimum (1,−2) sit above the zeros of f′, and the inflection point (0,0) sits above its lowest point.
Can a function be decreasing and concave up at the same time?
5
Concavity and tangent lines
When a function is concave up, does the curve lie above its tangent lines or below them? The answer tells us whether a tangent-line estimate comes out too big or too small. Remember, the tangent line to y=f(x) at x=a is
y=f(a)+f′(a)(x−a)
Let's compare f(x)=2x2 with its tangent line at x=1, and then use what we find to judge an estimate of 4.2.
Tangent lines to concave-up and concave-down curves, and estimating 4.2
Text solution
Right of 1, the curve is steeperThe tangent line has slope 1, and for x>1 the curve's slope is larger. They start at the same point (1,21), so the curve stays above the line.
y=x−21,f′(x)=x>1
Left of 1, the curve rises lessFor x<1, the curve's slope is less than 1, so on the way to 1 the curve rises less than the line. They meet at 1, so the curve started higher. At x=0, the curve is at 0 and the line is at −21.
Every tangent lineBecause f′ is increasing, the same holds at any point a, so a concave-up curve lies above every tangent line. For a concave-down curve, f′ is decreasing, and the curve lies below every tangent line.
Estimate 4.2The tangent to x at 4 gives 2.05. Since f′′<0,x is concave down and lies below the tangent, so 2.05 is too big.
y=2+41(x−4)
f′′(x)=−4x231<0
2.052=4.2025>4.2
So the concavity tells us right away which way a tangent-line estimate is off. At an inflection point the concavity switches, so there the curve crosses from one side of its tangent line to the other.
f concave up: curve above its tangent lines→tangent estimate too small
f concave up: curve above its tangent lines→tangent estimate too small
f concave down: curve below its tangent lines→tangent estimate too big
f concave down: curve below its tangent lines→tangent estimate too big
Does concavity change at a local maximum or minimum?
6
The second derivative test
To decide whether a critical point c is a local maximum or a local minimum, we've checked the sign of f′ on both sides of c. At c the tangent line is horizontal, so the concavity there tells us which side of that line the curve is on. Let's use that on both critical points of f(x)=x3−3x.
Classify the critical points of f(x)=x3−3x, and test x4 and x3 where f′′=0
Text solution
The critical points
f′(x)=3x2−3=0→x=±1
f′′(x)=6x
Concave up at 1, concave down at −1Near 1 the curve lies above its tangent y=−2, and near −1 it lies below y=2.
f′′(1)=6>0⟹local min (1,−2)
f′′(−1)=−6<0⟹local max (−1,2)
When f′′(c)=0x4,−x4 and x3 all have f′(0)=0 and f′′(0)=0, but at 0 they have a local minimum, a local maximum and neither. So f′′(c)=0 tells us nothing, and we check the sign of f′ on each side.
Plugging a critical point into f′′ this way is the second derivative test. When f′′(c)=0, we go back to the first derivative test.
f′(c)=0,f′′(c)>0⟹local min at c
f′(c)=0,f′′(c)>0⟹local min at c
f′(c)=0,f′′(c)<0⟹local max at c
f′(c)=0,f′′(c)<0⟹local max at c
f′(c)=0,f′′(c)=0⟹no conclusion: use the first derivative test
f′(c)=0,f′′(c)=0⟹no conclusion: use the first derivative test
7
Sketching with both derivatives
To sketch the graph of f(x)=x4−4x3, we put the sign charts of f′ and f′′ together on a single axis. The sign of f′ tells us where the curve is increasing or decreasing, and the sign of f′′ tells us where it's concave up or concave down.
Sketch the graph of f(x)=x4−4x3 using the sign charts of f′ and f′′
Text solution
Factor both derivatives
f′(x)=4x3−12x2=4x2(x−3)f′′(x)=12x2−24x=12x(x−2)
The sign of f′Since 4x2≥0, the sign comes from x−3. So f′ is negative on both sides of 0, and the only extremum is at x=3.
f(3)=81−108=−27→local min (3,−27)
The sign of f′′f′′ goes from positive to negative at 0 and back to positive at 2, so both are inflection points.
(0,0),(2,−16)
At the originBoth f′(0)=0 and f′′(0)=0, so the second derivative test gives no conclusion. The charts show f keeps decreasing while it switches from concave up to concave down, so the curve crosses its horizontal tangent y=0 from above to below.
Read together, interval by interval, the two charts give the shape of the curve.
(−∞,0):f′<0,f′′>0decreasing, concave up
(−∞,0):f′<0,f′′>0decreasing, concave up
(0,2):f′<0,f′′<0decreasing, concave down
(0,2):f′<0,f′′<0decreasing, concave down
(2,3):f′<0,f′′>0decreasing, concave up
(2,3):f′<0,f′′>0decreasing, concave up
(3,∞):f′>0,f′′>0increasing, concave up
(3,∞):f′>0,f′′>0increasing, concave up
(0,0),(2,−16),(3,−27),(4,0)
Across the whole interval (−∞,3),f keeps decreasing while its concavity switches from up to down to up at the inflection points x=0 and x=2.
Summary
Concavity and the second derivative
f′′(x)>0⟹f′ increasing⟹f concave up
f′′(x)<0⟹f′ decreasing⟹f concave down
A function is concave up where its derivative f′ is increasing, and concave down where f′ is decreasing. We find where f′ is increasing from the sign of its derivative, f′′. Where f′′ is positive, f is concave up. Where f′′ is negative, f is concave down.
A function doesn't have to be increasing to be concave up. For example, 2x2 decreases on [−2,0] and increases on [0,2], but f′′(x)=1 is positive everywhere, so the curve is concave up on all of [−2,2].
Finding inflection points
x3:f′′(x)=6x,−∣+ at 0→(0,0)
x4:f′′(x)=12x2,+∣+ at 0→none
An inflection point is a point (c,f(c)) on the graph where the concavity changes. Points where f′′(x)=0 or where f′′(x) is undefined are candidates, but a candidate is an inflection point only if f′′ changes sign across it.
For x3,f′′(x)=6x changes sign at 0, so (0,0) is an inflection point. For x4,f′′(0)=0, but f′′(x)=12x2 is positive on both sides of 0, so there's no inflection point.
Reading graphs of f′ and f′′
Where the graph of f′ is above the x-axis, f is increasing, and where it is below, f is decreasing. A zero where f′ crosses the x-axis gives a local maximum or minimum of f.
Where the graph of f′ is increasing, f is concave up, and where it is decreasing, f is concave down. A local maximum or minimum of f′ gives an inflection point of f. If you're given the graph of f′′ instead, look for a change of sign, including across a point where it is undefined. If that graph only touches the x-axis without changing sign, there's no inflection point.
Concavity and tangent lines
Where a curve is concave up, it lies above its tangent lines, so a tangent-line estimate is too small. Where a curve is concave down, it lies below its tangent lines, so a tangent-line estimate is too big. For example, f(x)=x has f′′(x)<0 for positive x, so the curve lies below its tangent line at x=4, and the tangent estimate of 2.05 is greater than 4.2.
The second derivative test
f′(c)=0,f′′(c)>0⟹local min
f′(c)=0,f′′(c)<0⟹local max
f′(c)=0,f′′(c)=0⟹first derivative test
At a critical point where f′(c)=0, the tangent line is horizontal. If f′′(c)>0, the curve is concave up and lies above the tangent line, so c is a local minimum. If f′′(c)<0, the curve is concave down and lies below the tangent line, so c is a local maximum.
If f′′(c)=0, the test gives no conclusion. The point can be a local minimum (like x4 at 0), a local maximum (like −x4 at 0), or neither (like x3 at 0). Use the first derivative test to check the signs of f′ on both sides of c.
8
Practice
Give intervals as open intervals, points as (x,y), and values in exact form.
1
For f(x)=x3−6x2+5, find the intervals on which f is concave up and concave down, and find the inflection point.
concave up
concave down
Does concavity come from the sign of f′ or the sign of f′′?
Where is f′′(x)=6(x−2) negative, and where is it positive?
If you got (0,5) and (4,−27) Check which derivative you set to 0. Inflection points come from where f′′ changes sign, not from the zeros of f′.
Concavity comes from the sign of the second derivative, so we differentiate twice.
f′(x)=3x2−12x,f′′(x)=6x−12=6(x−2)
Check the sign of f′′ on either side of x=2.
x<2:f′′(x)<0→concave down on (−∞,2);x>2:f′′(x)>0→concave up on (2,∞)
The second derivative changes sign at x=2, so plug 2 into f(x) to get the y-coordinate of the inflection point.
f(2)=8−24+5=−11→(2,−11)
2
Find all inflection points of f(x)=3x5−5x4.
inflection points
Where is f′′(x) equal to 0?
For f′′(x)=60x2(x−1), what is the sign of f′′ just to the left of 0, and just to the right of 0?
If you got (0,0) and (1,−2) Check the sign of f′′ on both sides of x=0. An inflection point requires f′′ to change sign, not just equal 0.
Find the candidatesTake the derivative twice and factor f′′ to find where it equals 0.
f′(x)=15x4−20x3,f′′(x)=60x3−60x2=60x2(x−1)
Test the sign of f′′The factor 60x2 is positive for every non-zero x, so the sign of f′′ depends entirely on x−1.
x<0:f′′<0;0<x<1:f′′<0;x>1:f′′>0
The sign changes only at x=1, so plug 1 into f to get the y-coordinate.
f(1)=3−5=−2→(1,−2)
3
The graph of f′, the derivative of a function f, is shown for −3≤x≤3. (a) On what intervals is f concave up? (b) At what values of x does f have an inflection point? (c) At what value of x does f have a relative maximum?
(a) concave up
On (−3,−2), is the graph of f′ increasing or decreasing?
Where does the graph of f′ have a local maximum or a local minimum?
Where does f′ change from positive to negative?
If you got (−3,0) in (a) Check whether you looked at the sign of f′ or where f′ is increasing. The function f is concave up where f′ is increasing, not where f′ is positive.
If you got x=0 in (b) Check what f′(0)=0 means for f. A zero of f′ gives a critical point of f, while inflection points happen where f′ has a local maximum or minimum.
Find where f is concave upThe second derivative is the slope of f′, so f is concave up where f′ is increasing.
f′ increasing on (−3,−2) and (2,3),decreasing on (−2,2)→f concave up on (−3,−2) and (2,3)
Find the inflection pointsThe concavity changes where f′ changes from increasing to decreasing, or decreasing to increasing.
f′: local max at x=−2,local min at x=2→inflection points at x=−2,x=2
Find the relative maximumBy the first derivative test, f has a relative maximum where f′ changes from positive to negative.
f′>0 on (−3,0),f′<0 on (0,3)→relative max at x=0
4
The function f is twice differentiable. (a) f′(3)=0 and f′′(3)=−2. Does f have a relative maximum, a relative minimum, or neither at x=3? Give a reason. (b) f′(5)=0 and f′′(5)=0. What can you conclude about f at x=5?
(a) at x=3
(b) at x=5
Because f′(3)=0, the tangent line is horizontal. Does f′′(3)<0 put the curve above or below that horizontal tangent near 3?
When f′′(5)=0, what does the second derivative test tell you?
If you got relative minimum in (a) Check what a negative second derivative means for concavity. When f′′(3)<0, the curve is concave down, so it lies below its horizontal tangent line.
If you got neither in (b) Check whether f′′(5)=0 rules out a maximum or a minimum. For x4, both derivatives are 0 at x=0, but the function still has a relative minimum there.
Classify x=3The tangent line at x=3 is horizontal, and f′′(3)<0 means f is concave down, so the curve lies below the tangent line near 3.
f′(3)=0→tangent y=f(3);f′′(3)=−2<0→concave down→relative max at x=3
Test x=5When both f′(5)=0 and f′′(5)=0, the second derivative test gives no conclusion. For x4,−x4, and x3, both derivatives are 0 at 0, but one has a minimum, one has a maximum, and one has neither, so you cannot conclude anything about x=5 from these two values alone.
f′(0)=0,f′′(0)=0:x4 min,−x4 max,x3 neither
5
The graph of f(x)=ax3+bx2 has an inflection point at (1,2). Find a and b.
If the graph has an inflection point at x=1, which derivative must be 0 there?
The point (1,2) lies on the curve, so what is f(1)?
If you got a=−4,b=6 Check which derivative is 0 at an inflection point. Setting f′(1)=0 gives a horizontal tangent, while an inflection point requires f′′(1)=0.
Find the first two derivatives in terms of a and b.
f′(x)=3ax2+2bx,f′′(x)=6ax+2b
An inflection point at x=1 requires f′′(1)=0, and since (1,2) is on the graph, f(1)=2.
f′′(1)=6a+2b=0,f(1)=a+b=2
b=−3a→−2a=2→a=−1,b=3
Check that f′′ actually changes sign across x=1.
f′′(x)=−6x+6:f′′>0 for x<1,f′′<0 for x>1
6
For f(x)=xe−x, find the intervals on which f is increasing and decreasing, the relative extrema, the intervals on which f is concave up and concave down, and the inflection points.
increasing
decreasing
relative minimum
concave up
concave down
Using the product rule gives f′(x)=(1−x)e−x. Because e−x is always positive, what determines the sign of f′?
Differentiate (1−x)e−x with the product rule to find f′′(x).
If you got concave up on (−∞,2) Check the signs when differentiating (1−x)e−x. Distributing the minus sign gives f′′(x)=(x−2)e−x, not (2−x)e−x.
If you got an inflection point at (1,e1) Check whether x=1 is a zero of f′ or f′′. The point (1,e1) is a relative maximum where f′(1)=0, while inflection points come from where f′′ changes sign.
Increasing, decreasing, and extremaUse the product rule on xe−x, then use the sign of 1−x to find where f increases and decreases.
f′(x)=e−x−xe−x=(1−x)e−x
e−x>0:x<1:f′>0;x>1:f′<0→increasing on (−∞,1),decreasing on (1,∞)
f(1)=e1→relative max (1,e1)
Concavity and inflection pointDifferentiate f′ with the product rule, then use the sign of x−2 to find concavity and the inflection point.
f′′(x)=−e−x−(1−x)e−x=(x−2)e−x
x<2:f′′<0;x>2:f′′>0→concave down on (−∞,2),concave up on (2,∞)
f(2)=e22→inflection point (2,e22)
7
Find all inflection points of f(x)=x5/3−5x2/3. (Challenge)
inflection points
For f′′(x)=910x−4/3(x+1), where does f′′ equal 0, and where is it undefined?
What is the sign of x−4/3=(3x)41 for all x=0?
If you got (−1,−6) and (0,0) Check whether the sign of f′′ changes at x=0. Because f′′(0) is undefined, x=0 is only a candidate. The second derivative is positive on both sides of 0, so concavity does not change across 0 and (0,0) is not an inflection point.
Use the power rule twice, then factor out the smaller power, x−4/3.