A trough bends upwards
On the gradient is . At x = −1 it is −2, at x = 0 it is 0, and at x = 1 it is 2. Walking left to right through the trough, the gradient climbs from negative, through zero, to positive: it is growing.
The rate at which the gradient grows is the derivative of the derivative, the second derivative, written . For it is 2, a positive number. A curve whose gradient is growing bends upwards, like the inside of a bowl.
A peak bends downwards
On the gradient is −2x: 2 at x = −1, 0 at x = 0, and −2 at x = 1. Now the gradient falls from positive, through zero, to negative: it is shrinking, and is negative. The curve bends downwards, like an upturned bowl.
The gold curve , second derivative 2, bends upwards from its trough at the origin. The dashed curve , second derivative −2, bends downwards from its peak at the same point.
The test
Let c be a stationary point, so the gradient there is 0. Work out the second derivative at c.
If it is positive, the curve bends upwards at c, and the stationary point is a local minimum. If it is negative, the curve bends downwards, and the stationary point is a local maximum. If it is 0, the test gives no answer.
The reason is the gradient. A positive second derivative means the gradient is growing as x passes c, and it is 0 at c, so it goes from negative to positive: the curve falls into c and climbs out, a trough. A negative second derivative means the gradient is shrinking through 0: the curve climbs to c and falls away, a peak.
Only the sign counts, not the size. A second derivative of 2 decides as firmly as one of 200.
A cubic with both
Take . Its derivative is , which is zero at x = 1 and x = 3.
The second derivative is . At x = 1 it is 6 − 12 = −6, which is negative, so x = 1 is a local maximum, at height 1 − 6 + 9 = 4. At x = 3 it is 18 − 12 = 6, which is positive, so x = 3 is a local minimum, at height 27 − 54 + 27 = 0.
So the curve has a peak at (1, 4) and a trough at (3, 0), where it touches the x-axis.
The gold curve . At (1, 4), under the level gold tangent, the second derivative is −6 and the curve bends down; at (3, 0) it is 6 and the curve bends up.
A curve in two pieces
Take , which has no value at x = 0. Its derivative is , which is zero when , at x = 2 and x = −2.
The second derivative is . At x = 2 it is , which is positive, so (2, 4) is a local minimum, since . At x = −2 it is , which is negative, so (−2, −4) is a local maximum.
Here the local maximum, −4, is lower than the local minimum, 4. Each is a statement about its own neighborhood: near x = 2 every height is at least 4, and near x = −2 every height is at most −4. The heights at x = 1 and x = 4 are both 5, above the minimum; at x = −1 and x = −4 they are both −5, below the maximum.
The gold curve , with dashed asymptotes x = 0 and y = x. Its right-hand branch bends upwards around the minimum (2, 4); its left-hand branch bends downwards around the maximum (−2, −4), which is lower.
f″ > 0: the curve bends upward and the circle of curvature sits above it — the bowl holds water, so a stationary point here would be a minimum
Drag x₀ to the maximum and read the sign of f″
The curve , with second derivative 2x. Drag the point to x = 1: the circle that fits the curve sits above it, like a bowl, and the second derivative is 2. At x = −1 the circle hangs below and the second derivative is −2.
When the second derivative is zero
At the origin has gradient and second derivative . The origin is a minimum: is 0.0001 at both x = −0.1 and x = 0.1, and positive for every x except 0.
also has gradient and second derivative 6x = 0 at the origin. But it is no turning point: is −0.001 at x = −0.1 and 0.001 at x = 0.1, so the curve climbs straight through.
And has gradient and second derivative both 0 there too, with a maximum at the origin.
So a second derivative of 0 fits a minimum, a maximum, and a point that is neither. The test is silent: it does not say the point is a point of inflection, it says nothing at all. Look at the curve, or use the first derivative test, the next row, which settles every one of these cases.
Three curves with gradient 0 and second derivative 0 at the origin: the gold curve has a minimum there, the dashed curve has a maximum, and the dashed curve passes straight through.
The usual mistakes
Reading the sign the wrong way round. Positive means bending upwards, a trough; a second derivative of 6 at a stationary point is a minimum, not a maximum.
Treating a small value as zero. A second derivative of 0.2 is positive and decides just as 6 does; only exactly 0 is silent.
Calling a zero second derivative a point of inflection. On it is 0 at the origin, which is a minimum.
Using the test where the gradient is not 0. On at x = 2 the second derivative is 12, but the gradient is 3 × 4 − 3 = 9, so the curve is climbing there: bending upwards, with no trough. The test classifies stationary points only.
Three beds beside a canal
In the application below, 240 m of fencing makes a plot against a canal, divided into three beds. The area is a quadratic in one length, its stationary point gives the dimensions, and the second derivative, −8, confirms a maximum.
Worked example: Three Beds for a Market Garden Beside a Canal: the Shape That Encloses the Most Ground
Question A market garden is to be fenced against a straight canal, which needs no fence of its own. The plot is a rectangle divided into three equal beds by two fences running from the canal to the far side, and there are 240 m of fencing in all. Let x meters be the distance from the canal to the far side. (a) Find the dimensions that enclose the greatest area. (b) Find that greatest area, and confirm that it is a maximum.
1.Count the fences. Four of them run from the canal to the far side — the two ends and the two partitions — and each is x meters long. One runs along the far side, parallel to the canal; call it y meters. So 4x + y = 240.
Four fences of length x cross from the canal to the far side and one of length y runs along it, so 4x + y = 240. 2.Make the area a function of x alone. From the fencing, y = 240 − 4x, so A = xy = x(240 − 4x) = 240x − 4x2 square meters.
Replacing y by 240 − 4x makes the area a function of x alone: A = 240x − 4x2. 3.Differentiate and set the result to zero: dAdx = 240 − 8x = 0, so x = 30.
(a) dAdx = 240 − 8x = 0 gives x = 30 m, the top of the area curve. 4.(a) Then y = 240 − 4 × 30 = 120, so the plot is 30 m from the canal and 120 m along it. Check the fencing: 4 × 30 + 120 = 240 m, all of it used.
Then y = 240 − 120 = 120 m, and the fencing checks out: 4 × 30 + 120 = 240 m. 5.Differentiate again: d2Adx2 = −8. It is negative, so the curve bends downwards everywhere and the stationary point is a maximum, not a minimum.
d2Adx2 = −8 is negative, so the curve bends downwards and the stationary point is a maximum. 6.(b) The greatest area is 30 × 120 = 3600 square meters. Check: x = 29 gives 29 × 124 = 3596 and x = 31 gives 31 × 116 = 3596, both smaller.
(b) The greatest area is 30 × 120 = 3600 square meters; x = 29 and x = 31 both give 3596.
Answer: (a) 30 m from the canal by 120 m along it; (b) 3600 square meters, a maximum because d2Adx2 = −8 is negative
Common mistakes
- Writing the fencing as 2x + 2y = 240, the perimeter of a plain rectangle. The canal replaces one of the long sides and the two partitions add two more short ones, so what is paid for is four lengths of x and one of y.
- Stopping at dAdx = 0 and calling x = 30 a maximum because the question asks for one. The second derivative has to be looked at: here d2Adx2 = −8, which is negative, so the stationary point really does give the greatest area.