In this explainer, we will learn how to connect a function to the graphs of its first and second derivatives.

The derivatives of a function give us many different techniques for describing the different properties of a curve. For example, the slope of a curve is represented by its first derivative and the convexity of the curve is represented by its second derivative.

For a differentiable function , we know that the local extrema will occur when its derivative is equal to zero. We can see this graphically, where the stationary points of have the same -value as the -intercepts of .

This is not the only information we can see from the curve . We also know that is increasing when its derivative is positive and decreasing when its derivative is negative. We can also see this information graphically.

This means we can analyze the curve to determine information about the function . When has an -intercept, must have a stationary point. In other words, the tangent line to at this point is horizontal. This could be a local extremum or it could be a point of inflection.

We know when is above the -axis, we can conclude is increasing. Similarly, when is below the -axis, we can conclude is decreasing.

We can also do this with the second derivative. Recall that the second derivative of a function tells us the convexity of the curve.

### Definition: Convexity of a Function

- We say a function is convex downward on an interval if all of its tangents on this interval lie below the curve. Equivalently, will be increasing on .
- We say is convex upward on an interval if all of its tangents on this interval lie above the curve. Equivalently, will be decreasing on .

If our function is twice differentiable on an interval, then we can equivalently consider the sign of the second derivative over this interval.

### Definition: Convexity of a Twice-Differentiable Function

For a twice-differentiable function ,

- if on an interval , then is convex downward on this interval;
- if on an interval , then is convex upward on this interval.

The convexity of a curve may change at values of where its second derivative is equal to zero (or does not exist); these are called points of inflection. We can also see this information graphically.

Letβs start with the curve .

When the curve is above the -axis, the second derivative is positive, so is convex downward. Similarly, when the curve is below the -axis, the second derivative is negative, so is convex upward.

When the second derivative of our function switches from negative to positive, will have a point of inflection and the tangent lines switch from above the curve to below the curve.

We can therefore use the graphs of and to determine information about the function . Let us see an example involving the derivative function.

### Example 1: Finding the Monotonicity of a Function given Its Derivative Graph

The graph of the derivative of a function is shown. On what intervals is increasing or decreasing?

### Answer

In this question, we are given the curve of and asked to find the intervals on which is increasing. Usually, we would look at the graph of and look for the portions of our graph where the slope is positive to see where the function is increasing and where the slope is negative to see where the function is decreasing. To answer this question, we need to remember the slope of is given by .

This means we can also see this information in the graph of . The derivative, , will be positive when the curve is above the -axis and it will be negative when the curve is below the -axis.

We can see when that we have , so the slope of is positive. This means that, for these values of , our function must be increasing.

Similarly, when or , we can see that , so the slope of is negative for these values of , which means that is decreasing on these intervals.

Therefore, we were able to show that is increasing on the interval and decreasing on the intervals and .

It is worth noting that and . Since these values of are the end points of increasing or decreasing intervals, we technically could include these values in our answer.

In fact, some literature always includes endpoints with zero derivative in the intervals where a function increases or decreases. It is personal preference whether or not to include endpoints with zero derivative in increasing or decreasing intervals; we will choose to leave these points out. Also, because our function is not differentiable when and , we can just assume that it is not increasing or decreasing for these values either.

Of course, finding increasing and decreasing intervals is not the only thing we use the derivative for. We can also use the second derivative of a function to determine the convexity. Letβs see an example of using the graph of the derivative of a function to find its inflection points.

### Example 2: Finding the Inflection Points of a Function from the Graph of Its Derivative

The graph of the first derivative of a continuous function is shown. State the -coordinates of the inflection points of .

### Answer

In this question, we are tasked with finding the inflection points of the curve and to do this we are given a graph of the derivative function . We first need to recall that the inflection points are when the curve changes convexity, in other words, where changes sign. There are a few different ways to find this from the given graph. The easiest way is to think about the connection between and . We know that is the derivative of ; in other words, is the slope of the curve of .

We can then ask the following question: what happens when changes sign? When is positive, the slope of is positive, so it must be increasing. Similarly, when is negative, the slope of is negative.

So, we are looking for the points on our graph where the curve switches from increasing to decreasing or vice versa.

We can mark these on our graph; we can see that is increasing for the following values of :

Similarly, we can see is decreasing for the following values of :

This means switches from being increasing to being decreasing when and and switches from being decreasing to being increasing when and .

Therefore, has inflection points at , , , and .

We have also seen how to use the first derivative test to determine whether local extrema are maxima or minima. For example, consider the following graph.

We can mark the local extrema as shown, and we can determine their types by considering the slope around these points.

At a local maximum of a differentiable function, the slope changes from positive to negative. At a local minimum of a differentiable function, the slope changes from negative to positive. This gives us a method for checking the type of extremum when we know the derivative function . However, we can use exactly the same reasoning if we are instead given the curve . Let us see this in an example.

### Example 3: Finding the Values That Give the Local Maximum and Minimum Values of a Function from the Graph of Its First Derivative

The graph of the derivative of a function is shown. At what values of does have a local maximum or minimum?

### Answer

In this question, we are given a graph of and we are asked to determine all the values of , where the function has a local extremum. To do this, we need to remember that local extrema must always occur at the critical points of our function, that is, when the derivative is equal to zero or does not exist. In our case, we can see that , when its curve intersects the -axis.

So, we have two critical points for our function , one at and the other at .

However, we are not done. We still need to check the types of point we have. Since we have a graph of , we will do this by using the first derivative test.

Remember, tells us the slope of the curve . So, when is positive, we know the slope of is positive and the same is true in reverse.

By looking at our graph, we can see that

- when , has a negative slope;
- when , has a positive slope.

The first derivative test then tells us we must have a local minimum at .

Similarly,

- when , has a positive slope;
- when , has a negative slope.

This time, the first derivative test then tells that is a local maximum for our function .

By using the first derivative test graphically, we were able to show that has a local maximum at and a local minimum at .

So far, in all of our examples, we have been given a graph of the function . But we can also deduce a lot of information from the graph of the second derivative of a function. Let us see an example of this.

### Example 4: Finding the π₯-Coordinates of the Inflection Points of a Function from the Graph of Its Second Derivative

Use the given graph of a function to find the -coordinates of the inflection points of .

### Answer

We want to find the inflection points of the function . Remember, these are points where is continuous and changes convexity, either from convex downward to convex upward or vice versa.

We know all points of inflection occur when or when the second derivative does not exist. So, we can see from our diagram this can only happen when , , or .

However, we have only shown that our curve can have inflection points at these values of . We still need to check that these are actually inflection points. To do this, we need to check if our curve changes convexity at these values of .

We say a curve is convex downward when its second derivative is positive and convex upward when its second derivative is negative. We are given a graph of the curve , so we can see when this is positive or negative by looking at where the curve is above or below the -axis.

We can now see that when , the curve will change from convex upward to convex downward. Similarly, when , the curve will change from convex downward to convex upward. So, both of these are inflection points for our curve. However, we can see the convexity does not change from positive to negative or vice versa at , so this is not an inflection point.

Therefore, we have shown there are two inflection points for the curve , one when and another when .

Letβs now see an example where we want to determine the intervals where our curve is convex downward or convex upward just by using the graph of its derivative.

### Example 5: Finding the Convexity of a Function from Its Derivative Graph

The graph of the first derivative of a function is shown. On what intervals is convex downward or convex upward?

### Answer

We want to determine the intervals where the curve is convex downward and convex upward; however, instead of being given a graph of this function, we are given the graph of its derivative. So, to answer this question, we will need to start by recalling the connection between the derivative of a function and its convexity.

First, remember, we say a curve is convex downward when its second derivative is positive and convex upward when its second derivative is negative.

This means we need to determine the sign of the second derivative from the graph of the first derivative. To do this, we need to remember that if we differentiate the first derivative, we get the second derivative; in other words, is the slope of the curve .

Therefore, when the slope of is positive, we must have that the curve is convex downward, and when the slope of is negative, we must have that the curve is convex upward.

We can mark the intervals where the slope is positive and negative in the graph we were given. We see that is convex downward on , , and and convex upward on , , and .

Let us finish by recapping some of the main points we have seen.

### Key Points

- We can use the graph of to find the intervals of increasing and decreasing intervals of .
- We can use the graph of to find the local extrema of and classify them as maxima or minima.
- We can use the graph of or to find the intervals on which is convex downward or convex upward.
- We can use the graph of or to find the inflection points of .