Second derivative, stationary points and optimisation

Maths: Analysis and Approaches · Calculus. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Maths: Analysis and Approaches topics

Sketch of the graph of y = f′(x): a curve that is above the x-axis to the left of x = a, crosses the axis at x = a and is below the axis to the right.
Sketch of the graph of y = f′(x): a curve that is above the x-axis to the left of x = a, crosses the axis at x = a and is below the axis to the right.

The idea

The second derivative f″(x) is the derivative of f′(x). It tells you how the gradient is changing. Where f″(x) > 0 the gradient is increasing and the curve is concave up, like a cup. Where f″(x) < 0 the curve is concave down.

A stationary point is where f′(x) = 0. It is a local maximum if the gradient changes from positive to negative, and a local minimum if it changes from negative to positive. A point of inflexion is where the concavity changes, so f″(x) = 0 and f″ changes sign.

In optimisation, write the quantity as a function of one variable, set its derivative to zero, and check that the answer is a maximum or minimum.

In simpler words

The second derivative tells you how the slope is changing. If it is positive, the curve bends up like a cup. If it is negative, it bends down. A stationary point is where the slope is zero. It is a maximum if the slope goes from positive to negative, and a minimum if it goes from negative to positive.

An everyday comparison

Think of walking over a hill. At the very top, the ground is level for one step: that is a stationary point. Before it you climbed, after it you descend, so it is a maximum. In a valley, the reverse is true. The comparison stops working because a curve can also have a flat point that is not a peak or valley, a stationary point of inflexion.

Rules to remember

Common mistake

Saying that f″(x) = 0 is enough for a point of inflexion. For y = x4, y″ = 0 at x = 0 but y″ does not change sign, so (0, 0) is a minimum.

In the exam

Find f′(x), set f′(x) = 0 and solve for x. Find y at each point. Classify each point using the second derivative: f″(x) > 0 gives a minimum, f″(x) < 0 a maximum; or use a sign table of f′. For a point of inflexion, show f″(x) = 0 and that f″ changes sign. In optimisation, write the quantity as a function of one variable, differentiate, set to zero, solve and justify max or min. Answer in context with units.

Worked example

Find and classify the stationary points of y = 2x3 − 3x2 − 12x + 4.

  1. dy/dx = 6x2 − 6x − 12 = 6(x − 2)(x + 1) = 0, so x = 2 or x = −1
  2. At x = 2: y = 16 − 12 − 24 + 4 = −16. At x = −1: y = −2 − 3 + 12 + 4 = 11
  3. d2y/dx2 = 12x − 6. At x = 2 it is 18 > 0, so a minimum
  4. At x = −1 it is −18 < 0, so a maximum

Answer: Local maximum at (−1, 11) and local minimum at (2, −16)

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Read the full notes

Keep going

← Further differentiationAnti-differentiation and indefinite integrals →Take a Maths: Analysis and Approaches test