Skip to content
EN - Language: English
MathematicsHigh school

Concavity and points of inflection - the second derivative, step by step

· 17 min read

In short

A function is convex (concave up) where its graph bends upwards like a bowl and lies above its tangents, and concave (concave down) where it bends downwards like a cap and lies below them. The sign of the second derivative tells you which - f″ > 0 means convex, f″ < 0 concave. A point of inflection is where the bend changes. There f″ changes sign, and the graph crosses its tangent.

Words to know

Convex (concave up)
Bending upwards like a bowl, ∪. The graph lies above its tangents and its slope keeps increasing.
Concave (concave down)
Bending downwards like a cap, ∩. The graph lies below its tangents and its slope keeps decreasing.
Second derivative
f″, the derivative of the derivative. It tells you how fast the slope f′ changes.
Point of inflection
A point of the graph where it changes from convex to concave or the other way round.
Stationary point of inflection
A point of inflection with a horizontal tangent (f′ = 0), such as the origin on y = x³. It is neither a maximum nor a minimum.

What do you think?

The tangent to y=x3y = x^3 at the point (0,0)(0, 0) is the xx-axis itself. Where does the graph lie compared with this tangent?

The idea: watch which way the tangent turns

Every curved graph bends one of two ways. Where it bends upwards like a bowl (∪\cup), it is called convex (or concave up). Where it bends downwards like a cap (∩\cap), it is concave (or concave down).

You can tell the two apart with a ruler. Lay it along the graph as a tangent. On a bowl, the graph lies above the tangent. On a cap, the graph lies below it.

Now slide the tangent along the graph. On a bowl, it turns anticlockwise: its slope keeps growing. On a cap, it turns clockwise: its slope keeps falling. The slope is the derivative f′f', and how fast it changes is the derivative of f′f' - the second derivative f′′f''. So f′′>0f'' > 0 means a bowl and f′′<0f'' < 0 means a cap.

A point of inflection is where the graph switches from one to the other. There the tangent goes right through the graph.

A car on the graph, step by step

Go through the animation with the buttons or the arrow keys. A small car drives along the graph and always points along the tangent. The cap is red and the bowl is teal.

-1123246(1, 2)∩∩f″ < 0∪f″ > 0

f(x) = x³ − 3x² + 4

Step 1 of 6
Steps of the animation. Arrow keys move between steps.

This is the graph of f(x) = x³ − 3x² + 4. Think of it as a road, with a small car driving along it from left to right. The road climbs to a top at (0, 4), drops to a bottom at (2, 0) and climbs again. Up to x = 1 it bends like a cap (∩), after that like a bowl (∪).

Notice what happened to the slope: 99 at x=−1x = -1, then 00, −2.25-2.25 and −3-3, then back up to 00 and 99 at x=3x = 3. The point of inflection is where the slope stops falling and starts rising - the lowest point of the graph of f′f'.

Try it yourself: the tangent and the second derivative

Pick a function and move the point x0x_0. The upper picture shows the graph with the tangent at x0x_0 and the gap between them. The lower one shows the second derivative: teal where f′′>0f'' > 0, red where f′′<0f'' < 0.

Function
x₀ = 0
-1123246

convex (∪)concave (∩)tangent

The second derivative

-1123-1010

f″ > 0f″ < 0

Slope of the tangent, f′(x₀)
0
f″(x₀) = 6x − 6
−6
Near x₀ the graph lies
below the tangent
At x₀ the function is
concave (∩)

What to notice:

  • for x3−3x2+4x^3 - 3x^2 + 4, the gap is red on one side and teal on the other only at x0=1x_0 = 1, where f′′f'' crosses zero,
  • for x3x^3, the tangent at 00 is horizontal and still cuts through the graph. That is a stationary point of inflection: neither a maximum nor a minimum,
  • for x4−6x2x^4 - 6x^2, there are two points of inflection, at x=−1x = -1 and x=1x = 1. Between them the graph is concave,
  • for x4x^4, f′′(0)=0f''(0) = 0, but the lower graph only touches the axis. The sign does not change, so there is no point of inflection: the graph is convex everywhere, and (0,0)(0, 0) is its minimum.

Definitions and tests

Convex and concave. Let ff be differentiable on an interval.

  • ff is convex (concave up) there if its graph lies above each of its tangents on that interval. Then f′f' is increasing.
  • ff is concave (concave down) there if its graph lies below each of its tangents. Then f′f' is decreasing.

The second derivative test for concavity. If f′′(x)>0f''(x) > 0 for every xx in an interval, ff is convex there. If f′′(x)<0f''(x) < 0, it is concave. It does not work the other way round: x4x^4 is convex everywhere, yet f′′(0)=0f''(0) = 0.

Point of inflection. A point (x0,f(x0))(x_0, f(x_0)) of the graph, with ff continuous at x0x_0, where ff changes from convex to concave or back. If the graph has a tangent there, it passes from one side of that tangent to the other.

How to find the points of inflection:

  1. Work out f′′f''. If f′′(x0)f''(x_0) exists at a point of inflection, then f′′(x0)=0f''(x_0) = 0. So the candidates are the zeros of f′′f'', and the points where f′′f'' does not exist.
  2. Check each candidate: if f′′f'' changes sign at x0x_0, and x0x_0 is in the domain, it is a point of inflection. Many books also use a shortcut: f′′(x0)=0f''(x_0) = 0 and f′′′(x0)≠0f'''(x_0) \neq 0.
  3. Work out f(x0)f(x_0): a point of inflection is a point, (x0,f(x0))(x_0, f(x_0)).

The second derivative at a stationary point. If f′(x0)=0f'(x_0) = 0 and f′′(x0)>0f''(x_0) > 0, the graph is a bowl there, so it has a local minimum. If f′(x0)=0f'(x_0) = 0 and f′′(x0)<0f''(x_0) < 0, it has a local maximum. If f′′(x0)=0f''(x_0) = 0, the test is inconclusive: x4x^4, −x4-x^4 and x3x^3 all have f′(0)=f′′(0)=0f'(0) = f''(0) = 0, yet they have a minimum, a maximum and a stationary point of inflection.

Names. In the UK, A-level papers say convex and concave. American books say concave up and concave down. They mean the same: concave up is convex, and “concave” on its own means concave down.

Example 1: two points of inflection

Find where f(x)=x4−6x2f(x) = x^4 - 6x^2 is convex and where it is concave, and find its points of inflection.

Step 1. Work out the first derivative

We differentiate each term.

f′(x)=4x3−12xf'(x) = 4x^3 - 12x

Step 2. Work out the second derivative

We differentiate again.

f′′(x)=12x2−12f''(x) = 12x^2 - 12

Step 3. Find the zeros of the second derivative

We set f′′(x)=0f''(x) = 0 and solve.

12x2−12=0x2=1x=−1 or x=1\begin{aligned} 12x^2 - 12 &= 0 \\ x^2 &= 1 \\ x &= -1 \text{ or } x = 1 \end{aligned}

Step 4. Check the sign on each side

We substitute one number from each interval into f′′f''.

f′′(−2)=36>0f′′(0)=−12<0f′′(2)=36>0\begin{aligned} f''(-2) &= 36 > 0 \\ f''(0) &= -12 < 0 \\ f''(2) &= 36 > 0 \end{aligned}

The sign changes at x=−1x = -1 and at x=1x = 1, so both are points of inflection.

Step 5. Work out the heights

We substitute both values into ff.

f(−1)=1−6=−5f(1)=1−6=−5\begin{aligned} f(-1) &= 1 - 6 = -5 \\ f(1) &= 1 - 6 = -5 \end{aligned}

So the points are (−1,−5)\boxed{(-1, -5)} and (1,−5)\boxed{(1, -5)}.

Answer

ff is convex for x<−1x < -1 and for x>1x > 1, and concave for −1<x<1-1 < x < 1. Its points of inflection are (−1,−5)(-1, -5) and (1,−5)(1, -5): the graph looks like a W with a cap in the middle.

Example 2: when is the news spreading fastest?

N(t)=−t3+9t2N(t) = -t^3 + 9t^2 is the number of people (in thousands) who have heard a piece of news tt hours after it came out, for 0≤t≤60 \le t \le 6. When is the news spreading fastest?

Step 1. Write down the speed of spreading

How fast the news spreads is the rate of change of NN, its derivative.

N′(t)=−3t2+18tN'(t) = -3t^2 + 18t

Step 2. Differentiate the speed

The speed is greatest where it stops rising and starts falling, so we look at its derivative.

N′′(t)=−6t+18N''(t) = -6t + 18

Step 3. Find where the second derivative is zero

We set N′′(t)=0N''(t) = 0.

−6t+18=0t=3\begin{aligned} -6t + 18 &= 0 \\ t &= 3 \end{aligned}

Step 4. Check the sign

Before t=3t = 3, N′′>0N'' > 0: the news spreads faster and faster. After it, N′′<0N'' < 0: more and more slowly.

N′′(1)=12>0N′′(4)=−6<0\begin{aligned} N''(1) &= 12 > 0 \\ N''(4) &= -6 < 0 \end{aligned}

So t=3t = 3 is the point of inflection of NN, and the speed N′N' is greatest there.

Step 5. Work out the speed and the number of people

We substitute t=3t = 3 into N′N' and into NN.

N′(3)=−27+54=27N(3)=−27+81=54\begin{aligned} N'(3) &= -27 + 54 = \boxed{27} \\ N(3) &= -27 + 81 = 54 \end{aligned}

Answer

The news spreads fastest 3 hours after it comes out: 27 thousand people an hour. By then 54 thousand have heard it - half of the N(6)=108N(6) = 108 thousand reached after 6 hours.

Your turn

Find where f(x)=−x3+3x2+1f(x) = -x^3 + 3x^2 + 1 is convex and where it is concave. Find its point of inflection and the equation of the tangent there.

Hintshow

Work out f′′f'', solve f′′(x)=0f''(x) = 0 and check the sign on both sides. For the tangent at x0x_0, use y=f′(x0)(x−x0)+f(x0)y = f'(x_0)(x - x_0) + f(x_0).

Solutiontry it on your own first

Step 1. Work out both derivatives

We differentiate twice.

f′(x)=−3x2+6xf′′(x)=−6x+6\begin{aligned} f'(x) &= -3x^2 + 6x \\ f''(x) &= -6x + 6 \end{aligned}

Step 2. Find the zero of the second derivative

We set f′′(x)=0f''(x) = 0.

−6x+6=0x=1\begin{aligned} -6x + 6 &= 0 \\ x &= 1 \end{aligned}

Step 3. Check the sign on both sides

We substitute a number from each side of 11.

f′′(0)=6>0f′′(2)=−6<0\begin{aligned} f''(0) &= 6 > 0 \\ f''(2) &= -6 < 0 \end{aligned}

So ff is convex for x<1x < 1 and concave for x>1x > 1, and the sign changes at x=1x = 1.

Step 4. Work out the point

We substitute x=1x = 1 into ff.

f(1)=−1+3+1=3f(1) = -1 + 3 + 1 = \boxed{3}

Step 5. Find the tangent

The slope of the tangent is f′(1)f'(1). Then we put it into the equation of the tangent.

f′(1)=−3+6=3y=3(x−1)+3y=3x\begin{aligned} f'(1) &= -3 + 6 = 3 \\ y &= 3(x - 1) + 3 \\ y &= 3x \end{aligned}

Answer

ff is convex for x<1x < 1 and concave for x>1x > 1. The point of inflection is (1,3)(1, 3), and the tangent there is y=3xy = 3x - a line through the origin.

Common mistakes

  • “f″(x₀) = 0, so it is a point of inflection.” For x4x^4, f′′(x)=12x2f''(x) = 12x^2 is 00 at x=0x = 0 but positive on both sides. The graph is convex everywhere, and (0,0)(0, 0) is a minimum. Always check that f′′f'' changes sign.
  • Giving only x0x_0. A point of inflection is a point of the graph. For x4−6x2x^4 - 6x^2 the answer is (−1,−5)(-1, -5) and (1,−5)(1, -5), not just x=±1x = \pm 1.
  • Mixing up rising and convex. The sign of f′f' tells you whether ff rises or falls. The sign of f′′f'' tells you how it bends. ln⁡x\ln x rises everywhere (f′(x)=1x>0f'(x) = \frac{1}{x} > 0) but is concave (f′′(x)=−1x2<0f''(x) = -\frac{1}{x^2} < 0): it rises more and more slowly.
  • A sign change where the function does not exist. For f(x)=1xf(x) = \frac{1}{x}, f′′(x)=2x3f''(x) = \frac{2}{x^3} is negative for x<0x < 0 and positive for x>0x > 0. But 00 is not in the domain, so there is no point of inflection.
  • Mixing up the names. Concave up means convex, a bowl. If a question just says “concave”, it means a cap.

In exams and at university

In England, A-level Mathematics expects you to use the second derivative as the rate of change of the gradient, and to connect it to convex and concave sections of curves and to points of inflection. The second derivative itself is already AS content. Convex and concave sections and points of inflection come only in the full A level.

In the United States, concavity is part of both AP Calculus AB and AP Calculus BC, in Unit 5, Analytical Applications of Differentiation. Students use the second derivative to find where a graph is concave up or down, to locate points of inflection and to decide whether a critical point is a maximum or a minimum. They also connect the graphs of ff, f′f' and f′′f''.

At university, concavity is part of first-year calculus. The open textbook Active Calculus, for example, brings it in early, in section 1.6 on the second derivative. Points of inflection and the second derivative test follow in section 3.3, among the uses of derivatives.

Check yourself

Test yourself

Where does the graph of f(x)=x3−6x2f(x) = x^3 - 6x^2 have its point of inflection?

For f(x)=x4f(x) = x^4, f′′(0)=0f''(0) = 0. Is (0,0)(0, 0) a point of inflection?

A quantity is still rising, but more and more slowly. What are the signs of f′f' and f′′f''?

At x0x_0, f′(x0)=0f'(x_0) = 0 and f′′(x0)=5f''(x_0) = 5. What does the graph have at this point?

What does the tangent do at a point of inflection?

Flashcards for review

Flip a card and say whether you knew the answer. The ones you did not know come back at the end of the deck. Why it pays to come back to them in a few days is explained in the guide Spaced repetition.

Flashcards

  1. What does it mean that ff is convex (concave up) on an interval?

    Its graph bends like a bowl, ∪\cup: it lies above its tangents there, and the slope f′f' is increasing.
  2. What does it mean that ff is concave (concave down) on an interval?

    Its graph bends like a cap, ∩\cap: it lies below its tangents there, and the slope f′f' is decreasing.
  3. What does the sign of f′′f'' tell you?

    How the graph bends: f′′>0f'' > 0 on an interval means convex, f′′<0f'' < 0 means concave.
  4. What is a point of inflection?

    A point of the graph where it changes from convex to concave or back. The graph crosses its tangent there.
  5. Is f′′(x0)=0f''(x_0) = 0 enough for a point of inflection?

    No. f′′f'' must also change sign at x0x_0. For x4x^4, f′′(0)=0f''(0) = 0, but the graph is convex everywhere.
  6. How do you find the points of inflection of a function?

    Work out f′′f'', solve f′′(x)=0f''(x) = 0, check that f′′f'' changes sign at each solution, and work out f(x0)f(x_0) to get the point.
  7. What is the point of inflection of f(x)=x3−3x2+4f(x) = x^3 - 3x^2 + 4?

    (1,2)(1, 2): f′′(x)=6x−6f''(x) = 6x - 6 changes sign at x=1x = 1. The tangent there is y=−3x+5y = -3x + 5, and the slope is at its lowest, −3-3.
  8. What does a point of inflection mean in a growth problem?

    The moment of fastest (or slowest) growth: the rate f′f' has its maximum or minimum there. For N(t)=−t3+9t2N(t) = -t^3 + 9t^2 it is t=3t = 3, with N′(3)=27N'(3) = 27.
  9. f′(x0)=0f'(x_0) = 0 and f′′(x0)>0f''(x_0) > 0. What is at x0x_0?

    A local minimum: the tangent is horizontal and the graph is a bowl there. f′′(x0)<0f''(x_0) < 0 would give a local maximum.
  10. Why does 1x\frac{1}{x} have no point of inflection, although f′′f'' changes sign at 00?

    Because 00 is not in the domain: there is no point of the graph there.

Sources

We checked the facts on this page against these sources. All of them may be reused freely: they carry an open licence or are not covered by copyright.

  1. Active Calculus (Matthew Boelkins, Grand Valley State University) - 1.6 The second derivative (concave up and down as f′ increasing and decreasing, the sign of f″) · CC BY-SA 4.0
  2. Active Calculus (Matthew Boelkins, Grand Valley State University) - 3.3 Using derivatives to identify extreme values (the second derivative test, inconclusive when f″ = 0, points of inflection where f″ is 0 or undefined) · CC BY-SA 4.0
  3. Dale Hoffman - Contemporary Calculus, 3.4 f″ and the Shape of f (the graph above or below its tangent, the f″ test, points of inflection, x³ and x⁴, the second derivative test for extremes) (PDF) · CC BY 3.0 US
  4. Wikibooks - Calculus/Extrema and Points of Inflection (the second derivative at a stationary point, f″ = 0 is not enough, y = x³ and y = x⁴) · CC BY-SA 4.0
  5. Wikipedia - Inflection point (the definition, f″ = 0 is necessary but not sufficient, the sign change and the f‴ test, stationary points of inflection, 1/x, f′ has an extremum there) · CC BY-SA 4.0
  6. Wikipedia - Concave function (concave down, the graph below its tangents) · CC BY-SA 4.0
  7. Wikipedia - Second derivative (concave up, also called convex) · CC BY-SA 4.0

More explainers