# Lesson Explainer: Critical Points and Local Extrema of a Function Mathematics • Higher Education

In this explainer, we will learn how to find critical points of a function and check for local extrema using the first derivative test.

A local maximum or local minimum can be defined independently of derivatives.

### Definition: Local Maximum and Minimum

Suppose a function is defined on some interval and consider the local extrema at . For sufficiently small and for all contained in the interval ,

• if , then is a local maximum;
• if , then is a local minimum.

This is intuitive as it means that the value of the function at is the largest or smallest possible value for any in a sufficiently small neighborhood around , depending on whether you have a local maximum or a local minimum respectively. In practice, however, it is easier to determine local maximum and local minimum values by finding critical points of a function and classifying them using the first derivative test.

So, what is a critical point?

### Definition: Critical Point

The point is called a critical point of if is in the domain of the function and either

These points can be classified as local minima, local maxima, or points of inflection.

In other words, to determine the critical points of a function, we take the first derivative of the function, set it equal to zero, and solve for . We should also check if there are any values in the domain of the function that make the first derivative undefined. We then substitute these values of into the function in order to find the values of and hence the coordinates of the critical points .

For a differentiable function when the first derivative is equal to zero, critical points are also known as stationary points. It is the point where the function is neither increasing or decreasing, hence the name stationary.

Consider the function defined on the set of real numbers . The derivative of this function is given by

Since the first derivative is defined for all values of , we only need to establish possible values of such that the first derivative is equal to zero. Therefore, we need to solve

Thus, there is a critical point at . We can evaluate the function at this point to find

Therefore, is a critical point of this function.

Now let’s look at a situation where the critical point occurs when the first derivative is undefined rather than equal to zero. Suppose we have the function

The first derivative is given by and, although this cannot be equal to zero, it is clearly undefined at since we would need to divide by zero. The function is, however, defined at this point since , so is a critical point of this function.

In order to classify these as either local maxima, local minima, or points of inflection, we can use the first derivative test, which involves checking the sign of the first derivative for values immediately around the critical point.

The first derivative test states the following.

### Definition: First Derivative Test

Suppose is a function defined on some interval containing the critical point . Then, for sufficiently small ,

1. if and (i.e., switches signs from positive to negative as it crosses ), then is a local maximum;
2. if and (i.e., switches signs from negative to positive as it crosses ), then is a local minimum;
3. if and or and (i.e., does not change signs as it crosses ), then is a point of inflection.

This is a consequence of the mean value theorem.

When dealing with local maxima and minima, the points at which the derivative changes signs are also called turning points; however, not all critical points are turning points.

If the function is defined on some interval and is the only critical point contained in this interval, then we would need to check the sign of the first derivative in the intervals for the -coordinate, , , to see if there is a sign change. If there are critical points inside this interval with , then we would need to check the sign of the first derivative in the intervals:

If the function is defined on the whole set of real numbers and is the only critical point, then we would need to check the sign of the derivative of some value in the intervals , . Similarly, if there are critical points for this function, then we would need to check the sign of the first derivative in the intervals:

In fact, it is sufficient to check a particular test value from these intervals to determine the sign of the first derivative. This would indicate whether we have a local maximum, a local minimum, or a point of inflection.

Consider the function . We can find the critical points by setting the first derivative equal to zero:

Thus, we have to solve this quadratic equation in order to determine the critical points:

Therefore, the critical points occur when and . We can also evaluate the function at these -coordinates to give

Thus, the critical points are located at and .

In order to apply the first derivative test, we check the sign of the first derivative at test values for contained in the intervals , , and , which we can pick as , and 2 respectively. If we evaluate the first derivative at these points, we have

We can summarize this in a table to show the sign of the first derivative as it passes through the critical points:

 𝑥 𝑓′(𝑥) −3 −2 0 > 0 0 < 0
 𝑥 𝑓′(𝑥) 0 1 2 < 0 0 > 0

We can see that the sign of the first derivative switches from positive to negative as it crosses , while the first derivative switches from negative to positive as it crosses .

Therefore, we have a local maximum at and a local minimum at . There are no critical points that are points of inflection of the function.

Suppose we had the same function but now defined in the interval ; we would take the same steps in determining the critical value but we would ignore any that fall outside this interval. For our function, we would only consider the critical value at , which lies within the interval, and for the first derivative test, we would only need to check the sign of the first derivative at test values for located at the intervals and . This would give us the same result as the test values we chose for the function defined on the set of real numbers , and , already fall within these intervals.

We will now look at a few examples to practice and deepen our understanding. For the first example, we only need to determine the critical values for a function defined on an interval and not classify them.

### Example 1: Finding the Critical Point of a Cubic Function in a Given Interval

Determine the critical points of the function in the interval .

### Answer

In this example, we have to find the critical points of a cubic polynomial function defined on a particular interval.

Since polynomials are continuous and differentiable over their entire domain, we only need to find the values of such that the first derivative of is equal to zero in order to determine the critical points:

Therefore, is a critical point as it lies within the interval . We can find the value of by substituting this value into the function to give

Hence, the critical point is located at .

In our next example, we will need to find the critical points and classify them as local minimum or maximum values, using the first derivative test, for a polynomial function defined on the whole set of real numbers .

### Example 2: Finding the Local Maximum and Minimum Values of a Polynomial Function and the Values for 𝑥 Where They Occur

Determine, if any, the local maximum and minimum values of , together with where they occur.

### Answer

In this example, we have to find the critical points of a cubic polynomial function defined on the whole real line. In particular, we have to find those points that correspond to local maximum and minimum values. Since polynomials are continuous and differentiable over their entire domain, we do not need to worry about the derivative being undefined. We begin by first taking the derivative of the function and setting this equal to zero:

Therefore, in order to determine the critical points, we need to solve this quadratic equation:

Therefore, the critical points occur when and . We can substitute these values back into the function to find

Hence the critical points are located at and .

In order to classify these points as either a local maximum or minimum, we can use the first derivative test and check the sign of the first derivative in the intervals for the values , , and . We can pick the test values contained in these intervals as , and 0 respectively. The first derivative evaluated at these points are

We can summarize this in a table to show the sign of the first derivative as it passes through the critical points,

 𝑥 𝑓′(𝑥) −3 −2 −1.5 < 0 0 > 0
 𝑥 𝑓′(𝑥) −1.5 −1 0 > 0 0 < 0

We can see that the sign of the first derivative switches from negative to positive as it crosses , so the critical point at is a local minimum by the first derivative test. The first derivative also switches from positive to negative as it crosses , so the critical point at is a local maximum.

We note that we could have also arrived at this conclusion directly from the function evaluated at these points or the -coordinates, since the polynomial is continuous and they are the only two critical points.

Therefore, one must be a maximum and the other a minimum; we can just compare the function values evaluated at these points, , which tells us that is a minimum and is a maximum.

Therefore, the local maximum is at , and the local minimum is at .

This example is similar to the previous one but instead of finding the critical values, we are given one and have to determine the unknown coefficients appearing in a polynomial.

### Example 3: Finding the Unknown Coefficients in a Quadratic Function given the Minimum Value of the Function

Given that the function has a minimum value of 2 at , determine the values of and .

### Answer

In this example, we have to use the knowledge of the value of a critical point, in particular a local minimum, to determine the unknown coefficients in a quadratic equation.

Since and are constants, we can apply the usual rules for differentiating power terms and calculate the first derivative of the function as

Since is a critical value, the first derivative should vanish at this point. This allows us to determine the coefficient :

As we are told in the question that the minimum value of 2 occurs at , we can use to determine the coefficient :

For completeness, we can also use the first derivative test to check if this point is indeed a local minimum. We pick a test value from the interval and from the interval . At these points,

 𝑥 𝑓′(𝑥) −2 −1 0 < 0 0 > 0

We can see that the sign of the first derivative switches from negative to positive as it crosses ; therefore, it is indeed a local minimum.

In fact, a quadratic curve will only ever have one stationary point, the nature of which is determined by the sign of the leading coefficient (the term) of the function. The stationary point is a minimum if the leading coefficient is positive and a maximum if the leading coefficient is negative, due to the shape of the curve.

In this case, has a positive leading coefficient and therefore we can be sure, even without the first derivative test, that it will have a local minimum.

To summarize, the values of and are given by

In our next example, we will demonstrate how to find a local maximum value for a function using the product rule with exponentials.

### Example 4: Finding the Local Maximum Value of a Function Involving Using the Product Rule with Exponential Functions

Determine where has a local maximum, and give the value there.

### Answer

In this example, we have to find the local maximum of a function involving the product of an exponential and quadratic function.

Let’s begin by taking the first derivative. Recall that the product rule for two differentiable functions and is given by

Letting and , we find and ; therefore,

This derivative is always defined for ; therefore, we only have to consider the critical points when and we have to solve

Since cannot be zero, we can multiply this expression by to find,

Therefore the solutions to are given by and , which are where the critical points occur. We can evaluate the function at these -coordinates to give

Therefore the critical points are located at and . We can classify these points using the first derivative test by checking the signs of the first derivative at test values contained in the intervals , , and , which we can choose as , and 3 respectively.

Evaluating the first derivative at these points,

We can summarize this in a table to show the sign of the first derivative as it passes through the critical points:

 𝑥 𝑓′(𝑥) −1 0 1 < 0 0 > 0
 𝑥 𝑓′(𝑥) 1 2 3 > 0 0 < 0

We can see that the sign of the first derivative switches from negative to positive as it crosses , so the critical point at is a local minimum by the first derivative test. The first derivative also switches from positive to negative as it crosses , so the critical point at is a local maximum.

We note that we could have also arrived at this conclusion directly from the function evaluated at these points or the -coordinates, since the function is continuous and they are the only two critical points.

Therefore, one must be a maximum and the other a minimum; we can just compare the function values evaluated at these points, , which tells us that is a minimum and is a maximum.

Therefore, the location and value of the local maximum is given by

In our last example, we will learn how to determine any critical points for a function involving a logarithmic function and classify them using the first derivative test.

### Example 5: Finding the Local Maximum and Minimum Values of a Function Involving a Logarithmic Function, If Any

Find, if any, the local maxima and minima for .

### Answer

In this example, we have to find any local maxima or minima of a function involving the sum of a logarithmic and quadratic function. Since the logarithmic function is defined only for positive values, the domain of the function is .

Let’s begin by taking the first derivative of the function using the fact that: :

This derivative is clearly undefined at and is equal to zero at and . However, since the domain of is values of in the interval (i.e ), we only need to consider the point . The function evaluated at this point is

Therefore, the critical point is located at , and in order to classify this, we use the first derivative test. We need to check the sign of the first derivative at test values contained in the intervals for : and , which we choose as and 2 respectively. We can evaluate the first derivative at these points to get

 𝑥 𝑓′(𝑥) 0.5 1 2 < 0 0 > 0

We can see that the sign of the first derivative switches from negative to positive as it crosses .

Therefore, the local minimum equals 1 at .

After establishing the critical points of a function, the second derivative test can also be used to determine whether we have local maximum or local minimum. In particular, if is a critical point (i.e., or is undefined), then the following is true:

• if , then has a local maximum at ;
• if , then has a local minimum at ;
• if , then may have a point of inflection at (although this needs to be determined).

Points of inflection are where the function changes concavity. Concave up corresponds to a positive second derivative and concave down corresponds to a negative second derivative. Since the function changes from concave up to concave down (or vice versa), the second derivative must equal zero at that point. Thus, in order to determine whether an inflection point occurs when , we consider the concavity on either side of the point .

However, this is beyond the scope of this explainer and will be covered elsewhere in more detail.

### Key Points

• At the critical points of a function , we have or is undefined. We also need to check that these values are contained in the domain of the function.
• A critical point is classified as either a local maximum, a local minimum, or a point of inflection.
• The first derivative test can be used to classify critical points.

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy.