Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 5.7 · SL and HL
The second derivative and concavity
The first derivative tells you whether a graph is going up or down, so what does the derivative of the derivative tell you, and how do the graphs of f, f′ and f′′ tell one story three ways?
What you will learn
Understand the second derivative as the rate of change of the gradient, in both notations
Know that f'' > 0 means concave up and f'' < 0 means concave down
Understand how the zeros and turning points of f, f' and f'' line up
Know how to use the GDC to find where f'' is zero when algebra cannot
You must be able to
Find the second derivative, including through the product, quotient and chain rules
Find the intervals where a graph is concave up or concave down
Describe the shape of f from a given graph of f'
Sketch the graph of f' from the graph of f
Show that a second derivative takes a given form
Interpret the sign of a second derivative in context
In the exam. Paper 1, inside a longer function question: find f′′(x), often as a "show that" (3 to 5 marks), then where the graph is concave up or down (2 to 3 marks). Both papers: the graph of f′ is shown and you answer questions about f (3 to 6 marks). Paper 2, where the GDC finds zeros of f′′ that algebra cannot. HL Paper 3 uses it inside longer problems. And 5.8 is built on this page.
1Differentiating twice
The second derivative is the derivative of the derivative. Both notations are expected.
Leibniz: for y a function of x, the second derivative is dx2d2y, read "d two y by d x squared". It means dxd(dxdy): the operation dxd done twice. That is why a 2 sits on the d and on the x.
Function notation:f′′(x), read "f double dash of x".
Neither means the first derivative squared; (dxdy)2 is a different object.
y=x5−4x3+6x−1dxdy=5x4−12x2+6dx2d2y=20x3−24xdifferentiate the line above, term by term
A composite needs the chain rule each time. Each differentiation of cos4x brings out another factor of 4.
y=cos4xdxdy=−4sin4xdx2d2y=−16cos4x4×4=16, and sin differentiates to +cos, so the minus stays
A product usually stays a product after one differentiation, so the product rule comes back. Take f(x)=(2x−1)e3x.
f′(x)=2e3x+(2x−1)×3e3x=(6x−1)e3xproduct rule with u=2x−1factorise now: it shortens the next stepf′′(x)=6e3x+(6x−1)×3e3x=(18x+3)e3x=3(6x+1)e3xproduct rule again, u=6x−1
Check: f′′(0)=3. Factorising f′ first, and f′′ before finding its sign (section 3), keeps the algebra short.
A quotient needs the quotient rule twice. Take f(x)=x+1e2x, for x=−1.
f′(x)=(x+1)22e2x(x+1)−e2x=(x+1)2(2x+1)e2xf′′(x)=(x+1)44(x+1)e2x(x+1)2−(2x+1)e2x×2(x+1)=(x+1)3[4(x+1)2−2(2x+1)]e2x=(x+1)32(2x2+2x+1)e2xu=(2x+1)e2x, u′=4(x+1)e2x, v=(x+1)2the common factor x+1 cancels
With a simple numerator, rewriting with powers first avoids the quotient rule (Example 4). Q2 below is a "show that" on a quotient.
On Paper 2 a GDC can evaluate f′′ at a point. That gives a number, not a formula. It answers "find f′′(2)", never "find f′′(x)".
2What the sign of f′′ means: concavity
f′′ is the rate of change of f′. So:
f′′(x)>0: the gradient is increasing, and the graph is concave up. f′′(x)<0: the gradient is decreasing, and the graph is concave down.
Figure 1 shows why the words fit.
On the left, the tangent gradients go −2, 0, 2 from left to right. They climb, so the curve bends up into a cup.
On the right, they go 2, 0, −2. They fall, so the curve bends into a cap.
A concave-up curve lies above its tangents. A concave-down curve lies below them.
IB papers write "concave-up" and "concave-down". The guide lists the terms, and points of inflexion, under 5.8.
Figure 1 · Concave up and concave down
Concavity and direction are separate questions. f′ says up or down. f′′ says which way the graph bends. All four combinations occur, as Figure 2 shows.
Rising and concave down. It is climbing but flattening out, like a ball rising towards the top of its flight.
Falling and concave up. It is dropping but levelling off, like a cup of tea cooling towards room temperature.
Figure 2 · Direction and concavity are separate questions
In context, the second derivative describes the change in the rate.
Example: H(t) is the height of a seedling in centimetres after t weeks.
H′(t)>0: it is growing.
H′′(t)>0: the growth is speeding up.
H′′(t)<0: it is still growing, but by less each week.
When a question says "interpret H′′(t)<0", that sentence is the answer. Give it in context and with units (centimetres per week, per week).
Two uses ahead:
A second derivative of displacement is an acceleration (5.9).
The sign of f′′ at a stationary point separates maximum from minimum (5.8).
Example: f(x)=x3−12x. Then f′(x)=3x2−12 is zero at x=±2, and f′′(x)=6x.
f′′(−2)=−12<0: concave down, so a maximum.
f′′(2)=12>0: concave up, so a minimum.
If f′′=0 at a stationary point, this test says nothing. Fall back on the sign of f′.
3Finding where a graph is concave up or concave down
This is the method of 5.2 for increasing and decreasing, applied one derivative later.
Find f′′(x) and factorise it fully.
Solve f′′(x)=0. These values split the number line into intervals.
Find the sign of f′′ on each interval, using the factors or a test value.
Write the intervals with f′′>0 (concave up) and f′′<0 (concave down).
Example 1, a cubic.f(x)=x3−6x2+9x+1.
f′(x)=3x2−12x+9f′′(x)=6x−126x−12<0⇔x<2concave down6x−12>0⇔x>2concave up
A cubic's second derivative is linear, so every cubic changes concavity exactly once. Section 4 draws all three graphs of this one.
Example 2, a quartic.f(x)=x4−6x2.
f′(x)=4x3−12xf′′(x)=12x2−12=12(x−1)(x+1)f′′(x)=0⇔x=−1orx=1x<−1:f′′(−2)=36>0concave up−1<x<1:f′′(0)=−12<0concave downx>1:f′′(2)=36>0concave up
So the graph is concave up for x<−1 and for x>1, and concave down for −1<x<1. Figure 3 colours the curve by concavity.
The bend changes at (−1,−5) and (1,−5). These are the points of inflexion that 5.8 classifies.
Figure 3 · Where y = x⁴ − 6x² bends which way
Example 3, a factor that never changes sign.f(x)=(x2+1)e−x.
f′(x)=2xe−x−(x2+1)e−x=−(x−1)2e−xf′′(x)=−2(x−1)e−x+(x−1)2e−x=(x−1)(x−3)e−xtake out the factor x−1
Because e−x>0 for every x, the sign of f′′ is the sign of (x−1)(x−3) alone. That is an upward parabola, positive outside its roots.
So f is concave up for x<1 and for x>3, and concave down for 1<x<3. Yet f′≤0 everywhere, so f never increases.
Say the reason ("since e−x>0"): on a "justify" question the reason mark is for it.
The same reasoning handles f′′ from the quotient in section 1:
2x2+2x+1 has discriminant 4−8<0, so it is always positive.
e2x>0.
So the sign is the sign of (x+1)3, which is the sign of x+1.
Use strict inequalities for concavity intervals. Where f′′ changes sign, the graph is neither concave up nor concave down.
Justifying a concavity claim. When the question says "justify", the reason mark is for stating one of these:
f′′(x)>0 (or <0) on that interval.
The graph of f′′ lies above (or below) the x-axis there.
A sign diagram labelled f′′.
Say which function you mean. "The gradient is positive" does not say whether you mean the gradient of f or of f′.
Example 4, a graph with a break in it.f(x)=x−23x, for x=2. Rewrite with powers before differentiating. That avoids the quotient rule.
f(x)=3+6(x−2)−1divide the numerator by the denominator firstf′(x)=−6(x−2)−2f′′(x)=12(x−2)−3=(x−2)312
f′′(x) is never zero.
For x>2, (x−2)3>0, so f′′(x)>0: concave up.
For x<2, (x−2)3<0, so f′′(x)<0: concave down.
The concavity switches either side of x=2, but f is not defined there (a vertical asymptote). So there is no point of inflexion: the graph is two separate branches.
Some graphs never change concavity. Example: g(x)=x−3lnx, x>0. Then g′(x)=1−x3 and g′′(x)=x23>0 because x2>0. So the graph is concave up at every point of its domain.
To show that, give the sign of g′′ on the whole domain. There is no equation to solve.
Example 5, an unknown constant.f(x)=x4+kx3+6x2. Find the values of k for which the graph of f changes concavity twice.
f′′(x)=12x2+6kx+12=6(2x2+kx+2)Δ=k2−16>0two distinct roots, so two sign changes (discriminant, 2.7)k<−4ork>4
The boundary cases fail. At k=4, f′′(x)=12(x+1)2. It is zero at x=−1 but positive on both sides. So the graph is concave up throughout and never changes (likewise at k=−4).
With any unknown constant, write f′′ with the constant in it, then impose the condition.
4One function, three graphs
Figure 4 stacks the three graphs with the x-axes lined up:
f(x)=x3−6x2+9x+1
its derivative f′(x)=3x2−12x+9=3(x−1)(x−3)
f′′(x)=6x−12
Figure 4 · One function, three graphs
Read down each dashed line.
At x=1f has a local maximum, (1,5), so f′(1)=0. f′ crosses the axis from positive to negative, because f goes from rising to falling.
At x=3f has a local minimum, (3,1), and f′ crosses from negative to positive.
At x=2f is at its steepest downhill. The gradient f′(2)=−3 is the lowest value f′ takes. So f′ has its minimum here and f′′ crosses zero. The graph of f changes from concave down to concave up at (2,3): the point of inflexion.
Every one of those observations is a line of this table.
On the graph of f
On the graph of f′
On the graph of f′′
increasing
above the x-axis (f′>0)
—
decreasing
below the x-axis (f′<0)
—
stationary point
meets the x-axis (f′=0)
—
turning point (max or min)
crosses the x-axis
—
concave up
increasing
above the x-axis (f′′>0)
concave down
decreasing
below the x-axis (f′′<0)
point of inflexion
turning point (local max or min of f′)
crosses the x-axis
The pattern is a ladder: each graph's zeros sit under the turning points of the graph above it.
The ladder fixes the shape of f but not its height. f and f+5 have the same derivative. That is the constant of integration from 5.5, seen as a picture.
5Sketching f′ from f, and reading f from f′
Exams test the table from both ends.
From the graph of f to the graph of f′. Work through it feature by feature.
Mark every stationary point of f. Each one is a zero of f′.
Between those zeros, decide whether f is going up (f′ above the axis) or down (f′ below).
Mark the points of inflexion of f. Each one is a turning point of f′, at the height of the gradient there.
At the ends: if f gets ever steeper, f′ heads off to ±∞; if f levels off, f′ heads towards 0.
To sketch f′′ as well, go one level up. Each turning point of f′ is a zero of f′′. f′′ is above the axis where f′ is increasing (f concave up) and below it where f′ is decreasing (f concave down).
Figure 5 does this for f(x)=x4−4x3, whose derivative is f′(x)=4x3−12x2=4x2(x−3).
At x=3 the graph of f turns (a minimum at (3,−27)). So f′ crosses the axis from negative to positive.
At x=0 the graph of f flattens but carries on falling. So f′ is negative just before 0, zero at 0, and negative just after.
The graph of f′ therefore touches the x-axis at 0 without crossing it, as the squared factor x2 predicts.
The steepest downhill point of f is at x=2, where f′(2)=−16. It becomes the minimum of f′.
Figure 5 · Reading the graph of f′ off the graph of f
From the graph of f′ back to f
This is the more common exam form. The trap is to read the graph as if it were f. Write "this is f′" next to it first, then use the table from right to left.
Figure 6 shows the graph of y=f′(x) for a function f. You do not need its formula, but it is f′(x)=(x+1)(x−2)2.
Figure 6 · The graph of f′ tells you the shape of f
At A, x=−1, f′ crosses the axis from negative to positive. So f changes from decreasing to increasing: f has a local minimum at x=−1.
At C, x=2, f′ touches the axis and stays positive on both sides. So f is stationary at x=2 but keeps increasing through it. This is not a maximum or a minimum. It is a stationary point of inflexion, which 5.8 names properly.
At B, x=0, f′ has a local maximum. The gradient of f stops increasing and starts decreasing. So f changes from concave up to concave down: a point of inflexion of f, where the gradient is f′(0)=4.
Concavity:f′ is increasing for x<0 and for x>2, so f is concave up there. f′ is decreasing for 0<x<2, so f is concave down there.
C is both a zero and a turning point of f′, so the stationary point at x=2 is also a point of inflexion.
When the derivative is built from another function
You may be told that g′(x)=f(x)−d, with the graph of f shown.
Differentiate once more and the constant disappears: g′′(x)=f′(x).
g is concave up exactly where the graph of f is increasing.
g has points of inflexion where f has turning points.
Example: f is an upward-opening quadratic with its vertex at x=3. Then f is increasing for x>3, so g is concave up for x>3, whatever d is.
6Letting the GDC find the zeros of f′′
Some second derivatives cannot be solved by hand, and on Paper 2 that is no obstacle. Take f(x)=ex−x3.
f′(x)=ex−3x2f′′(x)=ex−6xex−6x=0no algebraic method solves this at SL
Graph y=ex−6x on the GDC and use the zero (root) tool twice. Figure 7 shows the result: x≈0.204 and x≈2.83. Read the sign of f′′ off the graph between those zeros.
f′′>0 for x<0.204 and for x>2.83, so f is concave up there;
f′′<0 for 0.204<x<2.83, so f is concave down there.
Figure 7 · Using the GDC on f″(x) = eˣ − 6x
Write down what you graphed: "graph of y=ex−6x, zeros at x=0.204 and x=2.83". If your final interval is wrong, that line can still earn the method mark. A bare interval cannot.
If you cannot find f′′ by hand at all, graph the numerical derivative of f. Its turning points are the points of inflexion of f.
The guide links this topic to simple harmonic motion in physics.
Example: a mass on a spring has displacement x=0.2cos5t metres. Then dt2d2x=−5cos5t=−25x. The acceleration is proportional to the displacement and opposite in sign. That defines simple harmonic motion.
Practice questions
47 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.
Practice · 5.7 The second derivative and concavity