In this explainer, we will learn how to determine the concavity 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 concave up or concave down or to have a point of inflection. To do this, we will consider the graphs of three common functions.

### Definition: Concavity and Inflection

From the diagrams, we can see that is a good example of a function that is concave upward 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 concave upward over that interval. Similarly, is an example of a function that is concave downward 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 concave downward 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 concavity changing from concave down to concave up (as in function ) or concave up to concave down.

Now that we have the definitions, let us look at how we would determine the nature of a critical point and therefore its concavity.

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 concave upward.

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 concavity:

If for all values of in an interval , then the graph is concave up 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 concavity 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 concave down for all values in this interval.

We now have two rules to help us determine the concavity 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 concavity does indeed change from concave up to concave down, or vice versa.

### Definition: Using the Second Derivative to Identify Concavity and Inflection

- If for all in , then is concave upward on .
- If for all in , then is concave downward 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 concavity 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 concavity of the function changes from concave up to concave down 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 concave up or concave down.

### Example 1: Finding Intervals of Upward and Downward Concavity of a Polynomial

Determine the intervals on which the function is concave up and down.

### Answer

We know the following:

If for all values of in an interval , then the graph is concave up for all values of in this interval, and if for all values of in an interval , then the graph is concave down 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 concave up, over the intervals and .

Similarly, , and therefore the function is concave downward, on the intervals and .

The function is concave up on and and concave down on and .

In our first example, we established the concavity 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 concave 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 concave upward for all values of .

In conclusion, since the concavity 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 concave 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 concavity 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 concave downward to concave upward. 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 concavity 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 concave 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 concavity 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 concavity 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 concave downward to concave upward and, about the point , the graph changes from concave upward to concave downward. 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 concave 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 concave down to being concave up. 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 will finish by recapping the key points from this explainer.

### Key Points

- If for all in , then is concave upward on .
- If for all in , then is concave downward on .
- An inflection point occurs when the concavity of the graph changes and or is undefined (although, alone, this does not guarantee an inflection point).