In this explainer, we will learn how to determine the convexity of a function as well as its inflection points using its second derivative.
Before you start with this explainer, you should be confident finding the first and second derivatives of functions using the standard rules for differentiation. You should also be able to use the first derivative test to find the nature of critical points.
Now, before we begin looking at examples and a method of using the second derivative instead of the first derivative test, we will look at what it means for a graph to be convex up or convex down or to have a point of inflection. To do this, we will consider the graphs of three common functions.
Definition: Convexity and Inflection
From the diagrams, we can see that is a good example of a function that is convex downward over its entire domain; it curves upward and the value of its slope is increasing over its entire domain. An alternative way to think about this is that if the graph of the function lies above all its tangents over some interval, the function is convex downward over that interval. Similarly, is an example of a function that is convex upward over its entire domain; the function curves downward and the value of the slope is always decreasing over this localized interval.
Considering the tangents to the curve once again, we see that if a graph of a function lies below all its tangents over some interval, then it is convex upward over that interval.
Looking at the functions and , we also notice that the critical point on the graph of is an absolute minimum; it is the lowest point of the curve over its entire domain. The critical point on the graph of is an absolute maximum; it is the highest point of the curve over its entire domain.
However, the function demonstrates something a little bit different. The turning point at is known as a point of inflection. This is characterized by the convexity changing from convex up to convex down (as in function ) or convex down to convex up.
Now that we have the definitions, let us look at how we would determine the nature of a critical point and therefore its convexity.
Consider the function ; the gradient function, which is given by its first derivative, is
We can use this function to evaluate the slope or gradient of the function at any given point. We can also use the first derivative test to check the nature of the critical point.
For example, the critical point of the function occurs at values of such that .
The first derivative test tells us that the nature of the critical point can be established by finding the slope of the tangent to the curve to either side of this point.
The slope of the tangent to the curve of at can be found by substituting into the gradient function:
Similarly, the slope of the tangent at is
Since the slope changes from negative to positive about the critical point, the graph must be convex downward.
But now, let us consider, in detail, what is happening to the derivative:
- Prior to the critical point, it is negative.
- At the critical point, it is zero.
- After the critical point, it is positive.
For our function , the value of is increasing; in other words, the rate of change of is greater than zero.
The rate of change of is its derivative , and .
We can, therefore, use this to determine convexity:
If for all values of in an interval , then the graph is convex down over this interval.
This is known as the second derivative test, since evaluating the second derivative at the critical point gives us information about the nature of the extrema and thus the convexity of the curve.
Next, consider . We can see that just before the critical point the tangent has a positive slope and just after the critical point the slope is negative. This tells us that is decreasing, which could also be expressed as
So, if we evaluate the second derivative at the critical point and it is less than zero, then we can deduce that we have a local maximum. We can extend the idea to give us the following rule:
If for all values of in an interval , then the graph is convex up for all values in this interval.
We now have two rules to help us determine the convexity of a curve. What do we do in the case where ?
If or is not defined, then this could be a point of inflection. However, we must not assume that any point where is a point of inflection. Instead, we must evaluate the second derivative on either side of our critical point and check that the convexity does indeed change from convex down to convex up, or vice versa.
Definition: Using the Second Derivative to Identify Convexity and Inflection
- If for all in , then is convex downward on .
- If for all in , then is convex upward on .
- If or is undefined, an inflection point may exist (although, alone, this does not guarantee an inflection point). To confirm that there is an inflection point, there must also be a change of convexity on either side of this point.
Note
A point of inflection can occur at a critical point, but this is not a necessity. Consider the graph of the function .
The convexity of the function changes from convex down to convex up at . This is a point of inflection but not a critical point.
We will now look at an example of how to calculate the intervals over which a polynomial function is convex down or convex up.
Example 1: Finding Intervals of Upward and Downward Convexity of a Polynomial
Determine the intervals on which the function is convex up and down.
Answer
We know the following:
If for all values of in an interval , then the graph is convex down for all values of in this interval, and if for all values of in an interval , then the graph is convex up for all values of in this interval.
We will, therefore, need to find the second derivative of our function and use this to determine the intervals on which and .
The first derivative, , is
Then, we find the second derivative by differentiating with respect to :
Now that we have the second derivative, we can determine the intervals on which and .
To achieve this, we will begin by setting the second derivative equal to zero and solving for :
To solve this equation, we can factor the left-hand side:
From this, we can now solve for as we know that either must be equal to zero or the contents of the parentheses must be equal to zero: or
At this point, we can rationalize the denominator by multiplying the numerator and denominator by :
The solutions to are , , or . Next, we will sketch the curve of to help us decide where it is less than, greater than, or equal to zero.
This is a cubic graph with a negative coefficient of , which has roots of , , and zero.
Marking the region where the output of the function is less than zero in orange and the region where the output is greater than zero in pink, we get
We can, therefore, say that ; hence, the function is convex down, over the intervals and .
Similarly, , and therefore the function is convex upward, on the intervals and .
The function is convex down on and and convex up on and .
In our first example, we established the convexity of the function by using the second derivative. In our next example, we will look at how to determine whether a function has any inflection points.
Example 2: Finding the Inflection Point on the Curve of a Quadratic Function If It Exists
Determine the inflection points of the curve .
Answer
We can recall the following:
If is an inflection point, then (or is undefined) and the curve is continuous and changes from convex upward to downward, or vice versa, at .
We can, therefore, begin by calculating an expression for the second derivative of the equation.
Note that since is a polynomial, we can infer that it is continuous and differentiable over its entire domain.
Firstly, we differentiate function with respect to , which gives us
The second derivative, is a positive constant, which is independent of , meaning that
Hence, is convex down for all values of .
In conclusion, since the convexity of the function never changes, we have shown that the curve has no inflection points.
In the next question, we are going to demonstrate how to use the second derivative to find the point of inflection of a curve.
Example 3: Finding the Inflection Point of the Curve of a Polynomial Function
Find the inflection point on the graph of .
Answer
We can recall the following:
If is an inflection point, then (or is undefined) and the curve is continuous and changes from convex upward to downward, or vice versa, at .
As we are told that the graph has an inflection point, we will begin by finding the second derivative.
Firstly, we differentiate the function with respect to , which gives us
To find , we differentiate :
It is worth noting that is a quadratic function: it is continuous and differentiable over its entire domain, thereby guaranteeing that will exist for all real values of .
We know that there could be a point of inflection when the second derivative is equal to zero, so we will set it equal to zero and solve for :
However, does not guarantee a point of inflection. We will, therefore, check the convexity of the curve on either side of the point . To do this, we will check and .
2 | |
3 | 0 |
4 |
We can see that and ; therefore, the curve is going from convex up to convex down. We can conclude that a point of inflection occurs at .
To find the -coordinate of this inflection point, we will substitute into :
The inflection point on the graph of occurs at .
In our next two examples, we will investigate how the standard rules of differentiation can also be applied to aid in testing for convexity and points of inflection, with a particular focus on trigonometric and logarithmic functions.
Example 4: Finding the Inflection Point of a Function Involving Trigonometric Functions in a Given Interval
Given that , where , determine the inflection points of .
Answer
We can recall the following:
If is an inflection point, then (or is undefined) and the curve is continuous and changes from convex upward to downward or, vice versa, at .
Firstly, we differentiate the function with respect to . To do this, we need to recall the following standard derivatives:
Applying these to the individual terms in our function,
Next, we differentiate to find the second derivative:
A point of inflection occurs when the second derivative is equal to zero (or does not exist) and when the convexity changes, so we set and solve for , remembering to restrict the set of solutions to the interval .
Note
The function is the sum of two continuous function. This means it is, itself, continuous and so it is defined over its entire domain:
At this stage, we can recall the trigonometric identity
Using we get which we can then solve for :
At this point, we must remember that is periodic with a period of radians, so this tells us that there might be more than one solution.
To find the possible solutions, we must consider our original interval; however, we are going to amend this by multiplying by 4 to give us
We find all possible values for within our interval by adding multiples of to our solution to give us
Finally, we can divide through by 4 to find :
We know that satisfying the criterion does not guarantee a point of inflection. We must also check the convexity of the function on either side of the two values of . Let us use and as values on either side of , and 1.3 and 1.4 on either side of .
0.5 | |
0.6 | |
1.3 | |
1.4 |
We can see that, about the point , the graph changes from convex upward to convex downward and, about the point , the graph changes from convex downward to convex upward. We can, therefore, conclude that a point of inflection occurs at and .
To find the corresponding -coordinates, we substitute each value of into the original function :
Given that , where , the inflection points of lie at and .
In our final example, we will demonstrate how to apply this procedure for a function involving the natural logarithm.
Example 5: Finding the Point of Inflection, If It Exists, of a Function Involving a Logarithm
Find (if any) the inflection points of .
Answer
If is an inflection point, then (or is undefined) and the curve is continuous and changes from convex upward to downward, or vice versa, at .
To find the points of inflection, we will evaluate the second derivative of our function and set it equal to zero.
On inspection of our function, we can see that it is the product of two functions:
Therefore, we will use the product rule to differentiate, which states that
Let and .
Then, we differentiate with respect to to give us
Using the product rule, we find
To find the second derivative, we will once again use the product rule to find the derivative of :
Now that we have the second derivative, we can set it equal to zero and solve for :
We can see that there is potentially an inflection point at
However, does not guarantee the existence of a point of inflection, and so we will check the values of on either side of this. If we calculate , it is approximately 0.112; therefore, we can consider values of 0.1 and 0.12.
0.1 | |
0.12 |
We can see from the table that and . This tells us that the curve goes from being convex up to being convex down. This confirms the existence of a point of inflection at
We can now substitute this value of into our original function to find the -coordinate of our point of inflection:
So, we can conclude that the inflection point of is at .
We can apply what we have learned about convexity to parametric equations. First, we will need to recall how we can find the first and second derivatives of parametric equations.
Definition: Derivative of a Parametric Equation
Let and be differentiable functions, such that and are a pair of parametric equations:
Then, we can define the derivative of with respect to as when .
Definition: Second Derivative of a Parametric Equation
Let and be differentiable functions, such that and are a pair of parametric equations:
Then, we can define the second derivative of with respect to as when .
Now let us look at an example of how we can use this.
Example 6: Determining the Convexity of a Parametric Curve at a Given Point
Consider the parametric curve and . Determine whether this curve is convex up, convex down, or neither at .
Answer
We have been asked about the convexity of a curve, so we will need to evaluate the second derivative of the curve at the given point. Since this is a parametric curve, we can use the following formula to find its second derivative:
Let us start by finding and . We can do this by using trigonometric differentiation. We have that and
So, we find that
Now we can differentiate with respect to . Using the differentials of reciprocal trigonometric functions, we have that
Now we are able to substitute these into the formula for the second derivative. In doing this, we obtain
Now that we have found the second derivative of the curve, we need to substitute in the value of the parameter at the point at which we are trying to find the convexity. The given point is , so we substitute this into our equation, which gives us
We can see that the second derivative at is negative, so we have that
Therefore, our function must be convex up at this point.
We will finish by recapping some key points of this explainer.
Key Points
- If for all in , then is convex downward on .
- If for all in , then is convex upward on .
- An inflection point occurs when the convexity of the graph changes and or is undefined (although, alone, this does not guarantee an inflection point).