The first derivative $\mathrm{f}'(x)$ is the gradient. The second derivative $\mathrm{f}''(x)$ is the rate of change of the gradient — it tells you which way the curve is bending.
| Term | Condition | Shape | Chords |
|---|---|---|---|
| Convex | $\mathrm{f}''(x) \geqslant 0$ for every $x$ in the range | Bends upwards (∪) | Lie above the curve |
| Concave | $\mathrm{f}''(x) \leqslant 0$ for every $x$ in the range | Bends downwards (∩) | Lie below the curve |
- Differentiate twice to find $\mathrm{f}''(x)$.
- Solve the inequality $\mathrm{f}''(x) > 0$ (convex) or $\mathrm{f}''(x) < 0$ (concave).
- Give the answer as an inequality in $x$, e.g. "convex for $x > 2$".
$\mathrm{f}(x) = x^3 - 6x^2 + 9x + 1$. Find the set of values of $x$ for which the curve is concave, and the point where it changes from concave to convex.
Show that $\mathrm{f}(x) = \mathrm{e}^{2x} + x^2$ is convex for all real $x$.
Find the values of $k$ for which $y = x^4 + kx^3 + 6x^2$ is convex for all $x$.
$\mathrm{f}''(x) = 0$ and $\mathrm{f}''(x)$ changes sign either side
Find the points of inflection on $y = x^4 - 4x^3$ and say whether each is stationary.
Find the point of inflection on $y = x\mathrm{e}^x$ and state where the curve is convex.
Show that $y = \ln(1 + x^2)$ has points of inflection at $x = \pm1$, and find the set of values of $x$ for which it is convex.
From Year 1: at a stationary point, $\mathrm{f}'' > 0$ means a minimum and $\mathrm{f}'' < 0$ a maximum. If $\mathrm{f}'' = 0$ the test gives no information — it could be a maximum, minimum or point of inflection. Check the sign of $\mathrm{f}'$ on either side instead.
Find and classify the stationary point of $y = x^3 + 3x^2 + 3x$.
Convex
$\mathrm{f}''(x) \geqslant 0$; bends upwards; chords above.
Concave
$\mathrm{f}''(x) \leqslant 0$; bends downwards; chords below.
Inflection
$\mathrm{f}''(x) = 0$ and $\mathrm{f}''$ changes sign.
Stationary inflection
Also $\mathrm{f}'(x) = 0$, e.g. $y = x^3$ at $0$.
Not an inflection
$y = x^4$: $\mathrm{f}''(0) = 0$ but no sign change.
Max / min test
$\mathrm{f}'' < 0$ max, $\mathrm{f}'' > 0$ min, $\mathrm{f}'' = 0$ check signs.
Factor out
Positive factors like $\mathrm{e}^x$ don't affect the sign of $\mathrm{f}''$.
Cubics
Inflection half-way between the turning points.
Find the coordinates of the point of inflection on $y = x^3 - 3x^2 + 4$.
▶ Show solution
$y' = 3x^2 - 6x$, $y'' = 6x - 6 = 0 \Rightarrow x = 1$; $y''$ changes sign there.
$y = 1 - 3 + 4 = 2$: point of inflection $(1, 2)$.
Find the set of values of $x$ for which $\mathrm{f}(x) = x^4 - 6x^2$ is concave.
▶ Show solution
$\mathrm{f}''(x) = 12x^2 - 12 = 12(x - 1)(x + 1)$.
Concave when $\mathrm{f}''(x) \leqslant 0$: $-1 \leqslant x \leqslant 1$, i.e. $\{x : -1 \leqslant x \leqslant 1\}$.
Show that $y = x\ln x$ is convex for all $x > 0$.
▶ Show solution
$y' = \ln x + x \cdot \tfrac1x = \ln x + 1$, $\;y'' = \tfrac1x$.
For $x > 0$, $\tfrac1x > 0$, so the curve is convex.
For both $y = x^5$ and $y = x^6$, the second derivative is zero at $x = 0$. Determine in each case whether the origin is a point of inflection.
▶ Show solution
$y = x^5$: $y'' = 20x^3$, negative for $x < 0$ and positive for $x > 0$. Sign change: a (stationary) point of inflection.
$y = x^6$: $y'' = 30x^4 \geqslant 0$ on both sides. No sign change: not a point of inflection (it is a minimum).
Find the point of inflection on $y = 2\sin x$ for $0 < x < 2\pi$, and state where the curve is concave.
▶ Show solution
$y'' = -2\sin x = 0 \Rightarrow x = \pi$ (in the range). $y'' < 0$ for $0 < x < \pi$ and $y'' > 0$ for $\pi < x < 2\pi$, so there is a sign change.
Point of inflection $(\pi, 0)$. Concave for $0 < x < \pi$.
Find the exact $x$-coordinates of the points of inflection on $y = x^2\mathrm{e}^{-x}$.
▶ Show solution
$y' = 2x\mathrm{e}^{-x} - x^2\mathrm{e}^{-x} = (2x - x^2)\mathrm{e}^{-x}$.
$y'' = (2 - 2x)\mathrm{e}^{-x} - (2x - x^2)\mathrm{e}^{-x} = (x^2 - 4x + 2)\mathrm{e}^{-x}$.
$x^2 - 4x + 2 = 0 \Rightarrow x = 2 \pm \sqrt2$. These are simple roots, so $y''$ changes sign at each: both are points of inflection.
Find and classify the stationary points of $y = x^3 + 3x^2 - 2$, and find the range of values of $x$ for which the curve is convex.
▶ Show solution
$y' = 3x^2 + 6x = 3x(x + 2) = 0 \Rightarrow x = 0$ or $x = -2$.
$y'' = 6x + 6$. At $x = 0$: $y'' = 6 > 0$, minimum $(0, -2)$. At $x = -2$: $y'' = -6 < 0$, maximum $(-2, 2)$.
Convex when $6x + 6 > 0$, i.e. $x > -1$.
Find and classify the stationary point on $y = x^4 - 4x^3$ at $x = 3$, and explain why the second derivative test cannot classify the one at $x = 0$.
▶ Show solution
$y' = 4x^2(x - 3)$, $y'' = 12x(x - 2)$.
At $x = 3$: $y = 81 - 108 = -27$ and $y'' = 36 > 0$: minimum $(3, -27)$.
At $x = 0$: $y'' = 0$, so the test is inconclusive. $y' = 4x^2(x - 3)$ is negative on both sides of $0$, so it is a stationary point of inflection (as in Worked Example 4).
The curve $y = x^3 + ax^2 + bx$ has a point of inflection at $(1, -4)$. Find $a$ and $b$.
▶ Show solution
$y'' = 6x + 2a$. At $x = 1$: $6 + 2a = 0 \Rightarrow a = -3$.
The point lies on the curve: $1 - 3 + b = -4 \Rightarrow b = -2$.
(A cubic's $y''$ is linear and always changes sign at its root, so this is indeed a point of inflection.)
The shape of a normal distribution curve is given by $\mathrm{f}(x) = \mathrm{e}^{-x^2/2}$.
(a) Show that $\mathrm{f}''(x) = (x^2 - 1)\mathrm{e}^{-x^2/2}$.
(b) Find the exact coordinates of the points of inflection.
(c) State the set of values of $x$ for which the curve is convex.
(d) Find the equation of the tangent at the point of inflection with $x > 0$, and where it meets the $x$-axis.
▶ Show solution
(a) $\mathrm{f}'(x) = -x\mathrm{e}^{-x^2/2}$ (chain rule). Product rule: $\mathrm{f}''(x) = -\mathrm{e}^{-x^2/2} + (-x)(-x)\mathrm{e}^{-x^2/2} = (x^2 - 1)\mathrm{e}^{-x^2/2}$.
(b) $\mathrm{e}^{-x^2/2} > 0$, so $\mathrm{f}'' = 0$ when $x = \pm1$, with a sign change at each. Points of inflection $\left(\pm1, \mathrm{e}^{-1/2}\right)$.
(c) Convex when $x^2 - 1 > 0$: $\{x : x < -1\} \cup \{x : x > 1\}$.
(d) $\mathrm{f}'(1) = -\mathrm{e}^{-1/2}$. Tangent: $y - \mathrm{e}^{-1/2} = -\mathrm{e}^{-1/2}(x - 1)$, i.e. $y = \mathrm{e}^{-1/2}(2 - x)$. It meets the $x$-axis at $x = 2$.
In statistics this is why the points of inflection of a normal curve lie exactly one standard deviation either side of the mean.