1.07PureStretch

Second Derivatives

Differentiate a function and you get its gradient. Differentiate again and you get the rate at which the gradient itself is changing — the second derivative\textbf{second derivative}. It tells you whether a curve is bending upwards or downwards, gives a quick test for maxima and minima, and turns real-world "largest" and "smallest" questions into routine calculus.

45 min Differentiation

The big picture

If the first derivative is velocity, the second is acceleration: it measures how the gradient responds as you move along the curve. A positive second derivative means the gradient is increasing, so the curve is convex\textbf{convex} — shaped like a cup — and a stationary point there must be a minimum. A negative second derivative means concave\textbf{concave}, and a maximum. Where the curve switches between the two is a point of inflection\textbf{point of inflection}, whether or not it is also stationary. Put together with the first derivative, this lets you model a situation, find the best value of a quantity, and prove that it really is the best — which is the whole of optimisation.

What you'll be able to do

  • Find second derivatives, written f′′(x)\mathrm{f}^{\prime\prime}(x) or d2ydx2\dfrac{\mathrm{d}^{2}y}{\mathrm{d}x^{2}}
  • Use the second derivative to classify stationary points
  • Identify convex and concave sections of a curve and points of inflection
  • Solve optimisation problems and justify the nature of the optimum
1

The second derivative test

At a stationary point, where f′(x)=0\mathrm{f}^{\prime}(x) = 0: if f′′(x)>0\mathrm{f}^{\prime\prime}(x) > 0 it is a minimum\textbf{minimum}; if f′′(x)<0\mathrm{f}^{\prime\prime}(x) < 0 it is a maximum\textbf{maximum}.

If f′′(x)=0\mathrm{f}^{\prime\prime}(x) = 0 the test is inconclusive\textbf{inconclusive}. The point could be a maximum, a minimum or a point of inflection — use the sign test from the previous lesson.

The logic: at a minimum the gradient passes from negative through zero to positive, so it is increasing — the rate of change of the gradient is positive.

f′(a)=0, f′′(a)>0⇒minimum\mathrm{f}^{\prime}(a) = 0,\ \mathrm{f}^{\prime\prime}(a) > 0 \Rightarrow \text{minimum}
And f′′(a)<0\mathrm{f}^{\prime\prime}(a) < 0 gives a maximum.
Example 1Find and classify the stationary points of y=2x3−3x2−12x+5y = 2x^{3} - 3x^{2} - 12x + 5.
1dydx=6x2−6x−12=6(x−2)(x+1)=0\dfrac{\mathrm{d}y}{\mathrm{d}x} = 6x^{2} - 6x - 12 = 6(x - 2)(x + 1) = 0, so x=2x = 2 or x=−1x = -1.
2d2ydx2=12x−6\dfrac{\mathrm{d}^{2}y}{\mathrm{d}x^{2}} = 12x - 6.
3At x=2x = 2: 18>018 > 0, minimum; y=16−12−24+5=−15y = 16 - 12 - 24 + 5 = -15.
4At x=−1x = -1: −18<0-18 < 0, maximum; y=−2−3+12+5=12y = -2 - 3 + 12 + 5 = 12.
AnswerMaximum (−1,12)(-1, 12); minimum (2,−15)(2, -15).

Tip — Write the value of the second derivative and its sign explicitly — "f′′(2)=18>0\mathrm{f}^{\prime\prime}(2) = 18 > 0, so minimum". A bare "minimum" gets no justification mark.

2

Convex, concave and points of inflection

A curve is convex\textbf{convex} on an interval where f′′(x)>0\mathrm{f}^{\prime\prime}(x) > 0 (it lies above its tangents, like a cup) and concave\textbf{concave} where f′′(x)<0\mathrm{f}^{\prime\prime}(x) < 0 (below its tangents, like a cap).

A point of inflection\textbf{point of inflection} is where the curve changes between convex and concave. At such a point f′′(x)=0\mathrm{f}^{\prime\prime}(x) = 0 — but you must also check that f′′\mathrm{f}^{\prime\prime} genuinely changes sign\textit{changes sign} there.

A point of inflection need not be stationary. On y=x3−3xy = x^{3} - 3x, the origin is a point of inflection where the gradient is −3-3, not zero.

Example 1Find the point of inflection of y=x3−6x2+4y = x^{3} - 6x^{2} + 4 and state where the curve is convex.
1d2ydx2=6x−12\dfrac{\mathrm{d}^{2}y}{\mathrm{d}x^{2}} = 6x - 12, zero at x=2x = 2.
2For x<2x < 2 it is negative; for x>2x > 2 positive: a sign change, so an inflection.
3At x=2x = 2: y=8−24+4=−12y = 8 - 24 + 4 = -12.
AnswerPoint of inflection (2,−12)(2, -12); convex for x>2x > 2.
Why this works

f′′(x)=0\mathrm{f}^{\prime\prime}(x) = 0 is necessary but not sufficient. For y=x4y = x^{4}, the second derivative 12x212x^{2} is zero at the origin but positive on both sides, so the curve is convex throughout and the origin is a minimum, not an inflection.

3

Optimisation

To find the largest or smallest value of a quantity: write the quantity as a function of a single variable (using any constraint to eliminate others), differentiate, set equal to zero, and solve.

Then justify\textbf{justify} the nature of the stationary point with the second derivative or a sign test, and answer the question actually asked — often the optimal value, not just the variable.

Check the solution makes sense in context: lengths positive, within any stated limits.

Example 1An open-topped box with a square base of side xx cm has volume 32 00032\,000 cm³. Find the dimensions that minimise the surface area.
1Height h=32 000x2h = \dfrac{32\,000}{x^{2}}. Surface area A=x2+4xh=x2+128 000xA = x^{2} + 4xh = x^{2} + \dfrac{128\,000}{x}.
2dAdx=2x−128 000x2=0\dfrac{\mathrm{d}A}{\mathrm{d}x} = 2x - \dfrac{128\,000}{x^{2}} = 0, so x3=64 000x^{3} = 64\,000 and x=40x = 40.
3d2Adx2=2+256 000x3=6>0\dfrac{\mathrm{d}^{2}A}{\mathrm{d}x^{2}} = 2 + \dfrac{256\,000}{x^{3}} = 6 > 0 at x=40x = 40, so a minimum.
4Then h=32 0001600=20h = \dfrac{32\,000}{1600} = 20.
AnswerBase 4040 cm by 4040 cm, height 2020 cm (minimum area 48004800 cm²).

Tip — The first line — expressing the quantity in one variable — is where most marks are lost. Draw a diagram, label everything, and write the constraint equation before differentiating.

4

Second derivatives in context

In kinematics, if ss is displacement then dsdt\dfrac{\mathrm{d}s}{\mathrm{d}t} is velocity and d2sdt2\dfrac{\mathrm{d}^{2}s}{\mathrm{d}t^{2}} is acceleration.

In other models the second derivative describes whether growth is speeding up or slowing down. A population with positive rate of growth but negative second derivative is still increasing, but ever more slowly — a point of inflection marks where growth was fastest.

Example 1A particle has displacement s=t3−9t2+24ts = t^{3} - 9t^{2} + 24t metres. Find its acceleration when it is momentarily at rest for the first time.
1v=3t2−18t+24=3(t−2)(t−4)v = 3t^{2} - 18t + 24 = 3(t - 2)(t - 4), zero first at t=2t = 2.
2a=dvdt=6t−18a = \dfrac{\mathrm{d}v}{\mathrm{d}t} = 6t - 18.
3At t=2t = 2: a=12−18a = 12 - 18.
Answer−6-6 m s⁻²

Think like an examiner

  • State the value and sign of f′′\mathrm{f}^{\prime\prime} when classifying.
  • For points of inflection, show that f′′\mathrm{f}^{\prime\prime} changes sign.
  • In optimisation, express the quantity in one variable before differentiating.
  • Answer the question asked, including units and the optimal value if requested.

Common misconceptions

Concluding a point of inflection because f′′(x)=0\mathrm{f}^{\prime\prime}(x) = 0.
Check for a sign change; y=x4y = x^{4} has f′′(0)=0\mathrm{f}^{\prime\prime}(0) = 0 at a minimum.
Reading f′′>0\mathrm{f}^{\prime\prime} > 0 as a maximum.
Positive second derivative: convex, minimum.
Differentiating a quantity that still depends on two variables.
Use the constraint to eliminate one variable first.
Stopping at x=40x = 40 when asked for the minimum area.
Substitute back to find the optimal value.

Second derivatives

f′′(x)=d2ydx2\mathrm{f}^{\prime\prime}(x) = \dfrac{\mathrm{d}^{2}y}{\mathrm{d}x^{2}}
Notation.
f′′>0:convex, minimum\mathrm{f}^{\prime\prime} > 0: \text{convex, minimum}
Positive.
f′′<0:concave, maximum\mathrm{f}^{\prime\prime} < 0: \text{concave, maximum}
Negative.

Stretch yourself

A rectangle is inscribed under the curve y=12−x2y = 12 - x^{2}, with its base on the xx-axis and two upper corners on the curve, symmetric about the yy-axis. Find the maximum possible area of the rectangle, justifying that it is a maximum.

Hint — If the upper right corner is (x,12−x2)(x, 12 - x^{2}), the width is 2x2x. Write the area as a function of xx with 0<x<120 < x < \sqrt{12}.

Reveal solution
SolutionArea A=2x(12−x2)=24x−2x3A = 2x(12 - x^{2}) = 24x - 2x^{3} for 0<x<230 < x < 2\sqrt3. dAdx=24−6x2=0\dfrac{\mathrm{d}A}{\mathrm{d}x} = 24 - 6x^{2} = 0, so x2=4x^{2} = 4 and x=2x = 2 (taking the positive root in the domain). d2Adx2=−12x=−24<0\dfrac{\mathrm{d}^{2}A}{\mathrm{d}x^{2}} = -12x = -24 < 0 at x=2x = 2, so this is a maximum. Then A=2(2)(12−4)=32A = 2(2)(12 - 4) = 32. Since A→0A \to 0 at both ends of the domain and there is only one stationary point inside it, this local maximum is the greatest possible area: 3232 square units. ■\blacksquare

Questions students ask

What does the second derivative measure?
How fast the gradient is changing. Physically, if the function is displacement, it is acceleration.
What if the second derivative is zero at a stationary point?
The test fails. Use the sign of the first derivative either side to classify the point.
Is every point with f′′(x)=0\mathrm{f}^{\prime\prime}(x) = 0 a point of inflection?
No. The second derivative must change sign there.
How do I know a local optimum is the overall best?
Check the ends of the domain as well. If there is a single stationary point and the function falls away from it on both sides, it is the global optimum.

Key takeaways

  • The second derivative is the rate of change of the gradient.
  • At a stationary point, f′′>0\mathrm{f}^{\prime\prime} > 0 gives a minimum and f′′<0\mathrm{f}^{\prime\prime} < 0 a maximum; zero is inconclusive.
  • Convex where f′′>0\mathrm{f}^{\prime\prime} > 0, concave where f′′<0\mathrm{f}^{\prime\prime} < 0.
  • Points of inflection need f′′\mathrm{f}^{\prime\prime} to change sign.
  • Optimisation: one-variable model, differentiate, solve, justify, answer in context.

How this fits the course

Test yourself

Answer a few questions, then review anything you missed.

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 6 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.