Second derivatives: Concave and convex functions
In a nutshell
The second derivative can be used to determine whether a curve is concave (curving down) or convex (curving up) at any given point. The point at which a curve changes from being either concave or convex, to the other is called the point of inflection. This is at the point(s) where the second derivative is equal to zero.
Second derivative reminder
Differentiating a curve's equation twice gives the second derivative:
curve: first derivative: second derivative: y=f(x)dxdy=f′(x)dx2d2y=f′′(x)
Concave
If a section of a curve is "concave", then it is curving downwards - that is to say the value of the gradient is getting lower. Thus, the second derivative, which is the measure of the rate of change of the gradient, is non-positive.
concave at x: f′′(x)≤0
An example of a concave curve is given below. It is concave for all values of x.
Some curves are only concave in particular intervals.
Example 1
Show that the following curve is concave for all positive values of x.
y=5−x3
Find the second derivative by differentiating twice:
dxdydx2d2y=−3x2=−6x
This is negative for all positive values of x and hence the curve is concave for all positive values of x.
Convex
If a section of a curve is "convex" then it is curving upwards and thus the value of the gradient is increasing. It follows therefore that the second derivative is non-negative.
convex at x: f′′(x)≥0
A curve that is convex for all x is given below.
Curves can be convex in only some intervals of x.
Example 2
Find the interval in which the following curve is convex.
y=6x2−4x4
You seek the interval(s) in which the second derivative is non-negative, so start by finding the second derivative:
dxdydx2d2y=12x−x3=12−3x2
Now set this to be non-negative and solve:
12−3x2124≥0≥3x2≥x2
It follows that this curve is convex for x such that −2≤x≤2.
Point of inflection
The point at which the second derivative changes sign is called a point of inflection. That is not to say that every point where the second derivative is zero is a point of inflection.
Note: Showing that the second derivative is zero at a point is not enough to show that the point is a stationary point. You must also show that the sign changes on either side. For example, the point where x=0 on the curve y=x4 has a zero second derivative, but is not a point of inflection.
Points of inflection are often confused with stationary points, but points of inflection do not have to be stationary points. In particular, a point of inflection occurs on a curve when f′′(x)=0 and the sign of f′′(x) is different to either side. It is the point at which the gradient goes from getting bigger to getting smaller, or vice versa.
Points of inflection may not be easily spotted on a sketch of a curve, so stick to algebra to find them.
Example 3
Find the point of inflection on the curve y=f(x) where f(x)=x3+6x2−10x−5.
One way to approach this would be to notice that because it is a cubic, there will be a point of inflection between two the stationary points (in the case that there is a single stationary point, this will also be the point of inflection).
Though instead you can find the x such that f′′(x)=0 and check for a sign change of f′′(x) on either side.
f(x)f′(x)f′′(x)=x3+6x2−10x−5=3x2+12x−10=6x+12
Setting this to zero and solving gives:
0−2=6x+12=x
Now check for a change in sign of the second derivative to either side:
f′′(−2.1)f′′(−1.9)=6(−2.1)+12=−0.6<0=6(−1.9)+12=0.6>0
Hence there is a change in sign, so there is a point of inflection when x=−2. The y-coordinate can be found by inserting this into f(x):
f(−2)=(−2)3+6(−2)2−10(−2)−5=31
So the point of inflection is at (−2,31).