Educerie
Level

Educerie · IB Diploma · Mathematics: analysis and approaches

Topic 5 Calculus · 5.7 The second derivative and concavity

Level
SL and HL. Nothing here is HL only, so every section is examinable for both.
Themes (key concepts)
change, relationships, patterns. The second derivative is the change in the change: it measures how fast the gradient itself is moving, and that single number decides which way a graph bends.
The question this unit answers
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?
Where it is examined
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. And 5.8 is built on this page.

What you must be able to do

You must be able toLevelWhat it looks like in the exam
Differentiate twice, using both notations d²y/dx² and f″(x)SL, HL"Find f″(x)" or "Show that d²y/dx² = …" (2 to 5 marks), Paper 1
Differentiate twice through the chain, product and quotient rulesSL, HLf(x) = x e2x or (ln x)/x: the second differentiation is where the product and quotient rules come back
Say what the sign of f″ means: concave up for f″(x) > 0, concave down for f″(x) < 0SL, HL"Find the interval on which the graph of f is concave down" (2 to 3 marks)
Relate the graphs of f, f′ and f″ to one anotherSL, HL"The graph of y = f′(x) is shown. Write down the x-coordinate of the maximum of f" (1 to 2 marks per feature)
Sketch the graph of f′ from the graph of f, and read f off the graph of f′SL, HL"On the axes, sketch the graph of f′" (3 to 4 marks)
Use technology to graph f′ and f″ and to find where f″ = 0SL, HLPaper 2: "Find the values of x for which the graph of f is concave up" when f″(x) = 0 has no algebraic solution
Interpret a second derivative as a rate of change of a rate of changeSL, HL"Interpret the sign of P″(t) in context" (1 to 2 marks); acceleration in 5.9

Before you start

You need the derivatives of xⁿ, sin x, cos x, eˣ and ln x, and the chain, product and quotient rules from 5.6: the second derivative is nothing more than those rules used twice. You need 5.2 too: f′(x) > 0 means f is increasing and f′(x) < 0 means it is decreasing.


1The idea in one paragraph

Differentiate a function and you get its gradient function f′, which says how steep the graph is at each x. Differentiate again and you get the second derivative f″, which says how fast that gradient is changing. When f″ is positive the gradient is increasing, and the graph bends upwards like a cup: it is concave up. When f″ is negative the gradient is decreasing, and the graph bends downwards like a cap: it is concave down. Where the bending changes over, the graph has a point of inflexion. So one function carries three graphs. The graph of f shows the values. The graph of f′ shows the slopes. The graph of f″ shows the bending. The zeros of one graph line up with the turning points of the graph before it, and reading those alignments is most of this page.

2Differentiating twice

The second derivative is the derivative of the derivative. There are two notations, and the guide expects you to use both.

  • Leibniz notation: if y is a function of x, the second derivative is written d²y/dx², read "d two y by d x squared". It means d/dx (dy/dx): the operation d/dx done twice, which is why the 2 sits on the d at the top and on the x at the bottom.
  • Function notation: if the function is f, the second derivative is f″(x), read "f double dash of x".

Neither notation means the first derivative squared. (dy/dx)² is a different thing entirely.

Start with a polynomial.

y = x4 − 3x3 + 2x − 7
dy/dx = 4x3 − 9x2 + 2
d2y/dx2 = 12x2 − 18xdifferentiate the answer above, term by term

A composite needs the chain rule each time. Every differentiation of sin 3x brings out another factor of 3.

y = sin 3x
dy/dx = 3 cos 3x
d2y/dx2 = −9 sin 3x3 × 3 = 9, and cos differentiates to −sin

A product usually stays a product after one differentiation, so the product rule is needed again. Take f(x) = x e2x.

f′(x) = 1 × e2x + x × 2e2xproduct rule with u = x
= (1 + 2x)e2xfactorise now: it halves the next step
f″(x) = 2 × e2x + (1 + 2x) × 2e2xproduct rule again, u = 1 + 2x
= (2 + 2 + 4x)e2x
= 4(1 + x)e2x

Factorising f′ before differentiating again is a habit worth building. It keeps the algebra short, and a factorised f″ is exactly what you need in section 4 to find its sign. As a check, f″(0) = 4(1)(1) = 4.

A quotient needs the quotient rule twice, and that is where Paper 1 sets its "show that" questions: Q2 in Try it is one.

On Paper 2 a GDC can evaluate f″ at a point numerically. That gives a number, not a formula: it answers "find f″(2)", never "find f″(x)".

3What 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: climbing, so the curve bends up into a cup. On the right they go 2, 0, −2: falling, so the curve bends into a cap. Notice too that a concave-up curve lies above its tangents and a concave-down curve lies below them.

Figure 1 · Concave up and concave down Figure 1 · Concave up and concave down (a) Concave up: gradient increasing x y m = −2 m = 0 m = 2 like a cup: lies above its tangents (b) Concave down: gradient decreasing x y m = 2 m = 0 m = −2 like a cap: lies below its tangents Left: the tangent gradients rise from −2 to 0 to 2, so f″ > 0. Right: they fall from 2 to 0 to −2, so f″ < 0.
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, and all four combinations occur, as Figure 2 shows. A graph can rise and be concave down (it is climbing but flattening out, like a ball rising towards the top of its flight) or fall and be 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 Figure 2 · Direction and concavity are separate questions increasing, concave up x y f′ > 0, f″ > 0 increasing, concave down x y f′ > 0, f″ < 0 decreasing, concave up x y f′ < 0, f″ > 0 decreasing, concave down x y f′ < 0, f″ < 0 f′ decides up or down. f″ decides which way the curve bends. All four pairings happen.
Figure 2 · Direction and concavity are separate questions

In context, the second derivative describes the growth itself. If P(t) is the number of users of a new app, P′(t) > 0 says the number is growing; P″(t) > 0 says growth is speeding up, and P″(t) < 0 says the app is still gaining users but more slowly each week. When a question says "interpret P″(t) < 0", that sentence, in context, is the answer.

4Finding where a graph is concave up or concave down

This is the method of 5.2 for increasing and decreasing, applied one derivative later.

  1. Find f″(x) and factorise it fully.
  2. Solve f″(x) = 0. These values split the number line into intervals.
  3. Find the sign of f″ on each interval, using the factors or a test value.
  4. Write the intervals with f″ > 0 (concave up) and f″ < 0 (concave down).

Example 1, a cubic. f(x) = x³ − 6x² + 9x + 1.

f′(x) = 3x2 − 12x + 9
f″(x) = 6x − 12
6x − 12 < 0 ⇔ x < 2concave down
6x − 12 > 0 ⇔ x > 2concave up

A cubic's second derivative is linear, so every cubic changes concavity exactly once. Section 5 draws all three graphs of this one.

Example 2, a quartic. f(x) = x⁴ − 6x².

f′(x) = 4x3 − 12x
f″(x) = 12x2 − 12 = 12(x − 1)(x + 1)
f″(x) = 0 ⇔ x = −1 or x = 1
x < −1: f″(−2) = 36 > 0concave up
−1 < x < 1: f″(0) = −12 < 0concave down
x > 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), and these are the points of inflexion that 5.8 classifies.

Figure 3 · Where y = x⁴ − 6x² bends which way Figure 3 · Where y = x⁴ − 6x² bends which way x y −2 −1 1 2 −8 −4 4 (−1, −5) (1, −5) concave up concave up concave down f″(x) = 12(x − 1)(x + 1). Teal where f″ > 0 (concave up), amber where f″ < 0 (concave down). The bend changes at x = −1 and x = 1: these are the points of inflexion.
Figure 3 · Where y = x⁴ − 6x² bends which way

Example 3, a factor that never changes sign. f(x) = x e−x.

f′(x) = e−x − x e−x = (1 − x)e−x
f″(x) = −e−x − (1 − x)e−x = (x − 2)e−x

Because e−x > 0 for every x, the sign of f″ is the sign of x − 2 alone. The graph is concave down for x < 2 and concave up for x > 2. Say the reason in your answer ("since e−x > 0"): on a "justify" question it is the R1 mark.

Use strict inequalities for concavity intervals. At the point where f″ = 0 itself the graph is neither concave up nor concave down; it is switching.

5One function, three graphs

Now put the three graphs on top of each other. Figure 4 stacks f(x) = x³ − 6x² + 9x + 1, its derivative f′(x) = 3x² − 12x + 9 = 3(x − 1)(x − 3), and f″(x) = 6x − 12, with the x-axes lined up.

Figure 4 · One function, three graphs Figure 4 · One function, three graphs y = f(x) x y 1 2 3 4 2 4 y = f′(x) x y 1 2 3 4 −3 3 6 9 y = f″(x) x y 1 2 3 4 −6 6 max (1, 5) min (3, 1) inflexion (2, 3) min of f′ zero, − to + f(x) = x³ − 6x² + 9x + 1. Zeros of f′ sit under the turning points of f; the turning point of f′ and the zero of f″ sit under the point of inflexion.
Figure 4 · One function, three graphs

Read down each dashed line.

  • At x = 1 f has a local maximum, (1, 5), so f′(1) = 0 and f′ crosses the axis from positive to negative, because f goes from rising to falling.
  • At x = 3 f has a local minimum, (3, 1), and f′ crosses from negative to positive.
  • At x = 2 f is at its steepest downhill: the gradient f′(2) = −3 is the lowest value f′ takes. So the graph of f′ has its minimum here, the graph of f″ crosses zero, and the graph of f changes from concave down to concave up at (2, 3). That is the point of inflexion.

Every one of those observations is a line of this table.

On the graph of fOn the graph of f′On the graph of f″
increasingabove the x-axis (f′ > 0)—
decreasingbelow the x-axis (f′ < 0)—
stationary pointmeets the x-axis (f′ = 0)—
turning point (max or min)crosses the x-axis—
concave upincreasingabove the x-axis (f″ > 0)
concave downdecreasingbelow the x-axis (f″ < 0)
point of inflexionturning 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, since f and f + 5 have the same derivative: the constant of integration from 5.5, seen as a picture.

6Sketching 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.

  1. Mark every stationary point of f. Each one is a zero of f′.
  2. Between those zeros, decide whether f is going up (f′ above the axis) or down (f′ below).
  3. Mark the points of inflexion of f. Each one is a turning point of f′, at the height of the gradient there.
  4. At the ends: if f gets ever steeper, f′ heads off to ±∞; if f levels off, f′ heads towards 0.

Figure 5 does this for f(x) = x⁴ − 4x³, whose derivative is f′(x) = 4x³ − 12x² = 4x²(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: f′ is negative just before 0, zero at 0, and negative just after. So the graph of f′ touches the x-axis at 0 without crossing it, as the squared factor x² predicts. The steepest downhill point of f, at x = 2 where f′(2) = −16, becomes the minimum of f′.

Figure 5 · Reading the graph of f′ off the graph of f Figure 5 · Reading the graph of f′ off the graph of f x y −1 1 2 3 4 −24 −16 −8 8 flat, still falling min (3, −27) steepest y = f(x) x y −1 1 2 3 −16 −8 8 16 24 touches: f′ ≤ 0 both sides crosses − to + min of f′ y = f′(x) f(x) = x⁴ − 4x³. At x = 0 the curve flattens without turning, so f′ touches the axis; at x = 3 it turns, so f′ crosses. The inflexions of f (x = 0 and x = 2) are turning points 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, and 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)².

Figure 6 · The graph of f′ tells you the shape of f Figure 6 · The graph of f′ tells you the shape of f x y −1 1 2 3 −4 −2 2 4 6 A: crosses − to + B: max of f′ C: touches, min of f′ y = f′(x) Only f′ is drawn. Where it crosses the axis, f turns; where it turns, f changes concavity.
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, and decreasing for 0 < x < 2, so f is concave down there. C is both a zero and a turning point of f′, which is why the stationary point at x = 2 is also a point of inflexion.

7Letting 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) = eˣ − x³.

f′(x) = ex − 3x2
f″(x) = ex − 6x
ex − 6x = 0no algebraic method solves this at SL

Graph y = eˣ − 6x on the GDC and use the zero (root) tool twice. Figure 7 shows the result: x ≈ 0.204 and x ≈ 2.83. Reading 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 Figure 7 · Using the GDC on f″(x) = eˣ − 6x x y −1 1 2 3 −4 −2 2 4 6 0.204 2.83 f″ > 0 f″ < 0 f″ > 0 y = f″(x) The zeros, x ≈ 0.204 and x ≈ 2.83, split the line into three intervals of concavity.
Figure 7 · Using the GDC on f″(x) = eˣ − 6x

Write down what you graphed: "graph of y = eˣ − 6x, zeros at x = 0.204 and x = 2.83" earns the method mark that a bare interval does not. And 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. If a mass on a spring has displacement x = 3 cos 2t, then d²x/dt² = −12 cos 2t = −4x: the acceleration is proportional to the displacement and opposite in sign, which is what defines simple harmonic motion. In 5.9 the second derivative of displacement is acceleration.

8Where marks are lost

Reading d²y/dx² as (dy/dx)². The second derivative is the derivative of dy/dx, not its square. For y = x³, d²y/dx² = 6x, while (dy/dx)² = 9x⁴.

Losing the chain-rule factor the second time. The second derivative of sin 3x is −9 sin 3x, not −3 sin 3x. Every differentiation of the inside brings out another factor of 3.

Forgetting that f′ is often still a product. f′(x) = (1 + 2x)e2x must be differentiated with the product rule again. Differentiating only the exponential gives 2(1 + 2x)e2x, which is wrong.

Thinking concave up means increasing. Concavity is about the bend, not the direction. e−x is decreasing and concave up. Answer "where is f concave up" with the sign of f″, never f′.

Treating a graph of f′ as a graph of f. When the question shows y = f′(x), its highest point is not a maximum of f; it is a point of inflexion of f. The maximum of f is where the graph of f′ crosses the axis from above to below.

Solving f″(x) = 0 and stopping. A zero of f″ is only a candidate. The concavity must actually change there, which you check with the sign on each side. 5.8 shows a curve, y = x⁴, where f″(0) = 0 and nothing changes.

9Work it right

  1. Factorise f′ before differentiating it again, and factorise f″ before finding its sign.
  2. For a "show that", show every line of the second differentiation: the product or quotient rule set out with u and v, then the simplification, ending with the given expression.
  3. For concavity, solve f″(x) = 0, state the sign of f″ on each interval, and give the intervals with strict inequalities: "concave up for x > 2".
  4. When the graph shown is f′, label it f′ on your paper before you answer.
  5. On Paper 2, write the function you graphed and the values the GDC gave, to 3 significant figures.
  6. In context, turn the sign of the second derivative into a sentence: "increasing at a decreasing rate".

10Try it

Marks in brackets. Q1, Q2, Q3 and Q5 are Paper 1 style, no calculator. Q4 is Paper 2 style, with a GDC.

Q1. Let f(x) = x³ + 3x² − 9x + 4.

(a) Find f′(x) and f″(x). 3 marks

(b) Find the set of values of x for which the graph of f is concave down. 2 marks

(c) Write down the x-coordinate of the point where the graph of f changes concavity. 1 mark

Q2. Let f(x) = (ln x) ÷ x, for x > 0.

(a) Show that f″(x) = (2 ln x − 3) ÷ x³. 5 marks

(b) Find the set of values of x for which the graph of f is concave up. Give your answer in exact form. 2 marks

Q3. Figure 8 shows the graph of y = f′(x), the derivative of a function f, for −3 ≤ x ≤ 5. The graph of f′ crosses the x-axis at x = −2, x = 1 and x = 4, and has turning points at P(−0.732, 2.60) and Q(2.73, −2.60).

Figure 8 · The graph of y = f′(x) for Q3 Figure 8 · The graph of y = f′(x) for Q3 x y −2 −1 1 2 3 4 −3 −2 −1 1 2 3 4 P (−0.732, 2.60) Q (2.73, −2.60) y = f′(x) The graph of f′ crosses the x-axis at −2, 1 and 4, and has turning points at P and Q.
Figure 8 · The graph of y = f′(x) for Q3

(a) Write down the x-coordinates of the stationary points of f and, for each one, state whether it is a local maximum or a local minimum. Justify your answers. 4 marks

(b) Write down the interval on which the graph of f is concave down. 2 marks

(c) Write down the x-coordinates of the points of inflexion of f, and give a reason. 2 marks

Q4. The number of fish in a newly stocked lake is modelled by P(t) = 500 ÷ (1 + 9e−0.4t), where t is the time in months after stocking.

(a) Find the number of fish put into the lake. 1 mark

(b) Find the value of t at which the population is growing fastest, and the number of fish at that time. 3 marks

(c) State the interval of t for which the graph of P is concave up, and interpret this in context. 2 marks

Q5. Let y = e−x sin 2x. Show that d²y/dx² + 2 dy/dx + 5y = 0. 6 marks

11In one breath

The second derivative is the derivative of the derivative, written d²y/dx² or f″(x), and you find it by differentiating twice with the same rules, remembering that the chain rule adds its factor again and that f′ is often still a product or a quotient. Its sign tells you how the gradient is changing: f″ > 0 means the gradient is increasing and the graph is concave up, bending like a cup and sitting above its tangents; f″ < 0 means concave down, like a cap. Concavity is separate from direction, so a graph can rise while bending down. To find where a graph is concave up, factorise f″, solve f″ = 0, and test the sign on each interval, using the GDC on Paper 2 when the equation cannot be solved by hand. The graphs of f, f′ and f″ form a ladder: stationary points of f are zeros of f′, turning points of f′ are points of inflexion of f, and those are where f″ changes sign. When you are shown f′, label it f′ before you read it.


Answers

Q1. (a) f′(x) = 3x² + 6x − 9 and f″(x) = 6x + 6. A1 for f′(x), M1 for differentiating their f′, A1 for 6x + 6.

(b) Concave down where f″(x) < 0: 6x + 6 < 0, so x < −1. M1 for setting f″(x) < 0 (or solving f″ = 0 and testing a side), A1 for x < −1. Using f′(x) < 0 scores 0.

(c) x = −1. A1. Follow through from their f″.

Q2. (a) Quotient rule with u = ln x and v = x:

f′(x) = [(1/x) × x − ln x × 1] / x2 = (1 − ln x) / x2
f″(x) = [(−1/x) × x2 − (1 − ln x) × 2x] / x4quotient rule: u = 1 − ln x, v = x²
= [−x − 2x + 2x ln x] / x4
= x(2 ln x − 3) / x4
= (2 ln x − 3) / x3

M1 for the quotient rule on f, A1 for f′(x) = (1 − ln x)/x², M1 for the quotient rule on their f′, A1 for a correct unsimplified f″, A1 for simplifying to the given answer with the factor x cancelled. This is a "show that": the final line must be reached by visible working, and an answer that jumps from the quotient rule to the given line loses the last A1.

(b) For x > 0, x³ > 0, so f″(x) > 0 exactly when 2 ln x − 3 > 0, that is ln x > 3/2, so x > e3/2. M1 for 2 ln x − 3 > 0 with a reason that x³ > 0, A1 for x > e3/2. A decimal, x > 4.48, scores A0 because exact form was asked for.

Q3. (a) f′ = 0 at x = −2, 1 and 4. x = −2: f′ changes from negative to positive, so a local minimum. x = 1: f′ changes from positive to negative, so a local maximum. x = 4: f′ changes from negative to positive, so a local minimum. A1 for the three x-values, R1 for reasoning from the change of sign of f′, A1 for the maximum at x = 1, A1 for both minima. The reason must refer to the sign of f′ changing, not to the shape of the graph shown, which is f′ and not f. Calling x = −0.732 a maximum of f scores 0 for that part.

(b) f is concave down where f′ is decreasing: −0.732 < x < 2.73. R1 for linking concave down to f′ decreasing (or f″ < 0), A1 for the interval.

(c) x = −0.732 and x = 2.73, because f′ has turning points there, so f″ changes sign and f changes concavity. A1 for both values, R1 for the reason.

Q4. (a) P(0) = 500 ÷ (1 + 9) = 50 fish. A1.

(b) The population grows fastest where P′(t) is greatest, which is where P″(t) = 0. Graph y = P′(t) on the GDC and find its maximum, or find the zero of P″. t = 5.49 months (3 s.f.), and P(5.49) = 250 fish. M1 for identifying the maximum of P′ (or P″ = 0) as the method, A1 for t = 5.49, A1 for 250. The exact value, t = ln 9 ÷ 0.4, is also accepted.

(c) Concave up for 0 ≤ t < 5.49. For the first 5.49 months the number of fish is increasing at an increasing rate; after that it still increases, but more slowly. A1 for the interval, R1 for the interpretation, which must mention the rate of increase increasing. "The fish are increasing" alone scores R0, because that is what P′ > 0 says.

Q5. Product rule, u = e−x, v = sin 2x:

dy/dx = −e−x sin 2x + 2e−x cos 2x
d2y/dx2 = e−x sin 2x − 2e−x cos 2x − 2e−x cos 2x − 4e−x sin 2x
= −3e−x sin 2x − 4e−x cos 2x
d2y/dx2 + 2 dy/dx + 5y
= (−3 − 2 + 5)e−x sin 2x + (−4 + 4)e−x cos 2x
= 0

M1 for the product rule, A1 for dy/dx, M1 for the product rule on each term of dy/dx, A1 for d²y/dx², M1 for substituting into the left-hand side, A1 for collecting terms to reach 0. Writing "= 0" after an unsimplified sum loses the last A1.


Educerie · written from the published IB Diploma Programme Mathematics: analysis and approaches guide, first assessment 2021, section 5.7 The second derivative and concavity. Original text, examples and questions. Diagrams drawn by Educerie. Last reviewed 25 September 2026.

Mocks: in the future, hold tight!