We use derivatives to help locate extrema.

Whether we are interested in a function as a purely mathematical object or in connection with some application to the real world, it is often useful to know what the graph of the function looks like. We can obtain a good picture of the graph using certain crucial information provided by derivatives of the function.

Extrema

A function has a value at each domain number. The set of all function values might have a greatest (maximum) or least(minimum) value. Together these are know as extreme values or extrema. These correspond to highest and lowest points on the graph.

A local extremum of a function corresponds to a point on the graph of where the -coordinate is larger (or smaller) than all other -coordinates of points on the graph whose -coordinates are “close to” .

Local extremum are numbers and they correspond to highest and lowest points on the graph.

In our next example, we clarify the definition of a local minimum.

Local maximum and minimum values of a function correspond to quite distinctive points on the graph of a function, and are, therefore, useful in understanding the shape of the graph. Many problems in real world and in different scientific fields turn out to be about finding the smallest (or largest) value that a function achieves (for example, we might want to find the minimum cost at which some task can be performed).

Critical Numbers

Consider the graph of the function .

The function has three local extremums: , , and These occur at , and . Notice that the function is not differentiable at and . Notice that and .

After this example, the following theorem should not come as a surprise.

Does Fermat’s Theorem say that if , then has a local extrema at ?
yes no

Fermat’s Theorem says that the only numbers at which a function can have a local maximum or minimum are numbers at which the derivative is zero or the derivative is undefined. As an illustration of the first scenario, consider the plots of and .

Make a correct choice that completes the sentence below.

At the number , the function has

a local maximum a local minimum no local extremum
Select the correct statement.
is undefined
Make a correct choice that completes the sentence below.

At the number , the function has

a local maximum a local minimum no local extremum
Select the correct statement.
is undefined
Make a correct choice that completes the sentence below.

At the number , the function has

a local maximum a local minimum no local extremum
Select the correct statement.
is undefined
As an illustration of the second scenario, consider the plots of and :
Make a correct choice that completes the sentence below.

At the number , the function has

a local maximum a local minimum no local extremum
Select the correct statement.
is undefined
Make a correct choice that completes the sentence below.

At the number , the function has

a local maximum a local minimum no local extremum
Select the correct statement.
is undefined

This brings us to our next definition.

Since both local maximum and local minimum occur at a critical number, when we locate a critical number, we need to determine which, if either, actually occurs.

The first derivative test

We will further explore and refine the method of the previous section for deciding whether there is a local maximum or minimum at a critical number. Recall that

  • If on an interval, then is increasing on that interval.
  • If on an interval, then is decreasing on that interval.

So how exactly does the derivative tell us whether there is a maximum, minimum, or neither at a number? Use the first derivative test.

Hence we have seen that if is zero at a number and increasing on an interval containing that number, then has a local minimum at the number. If is zero at a number and decreasing on an interval containing that number, then has a local maximum at the number. Thus, we see that we can gain information about by studying how changes. This leads us to our next section.

Inflection points

If we are trying to understand the shape of the graph of a function, knowing where it is concave up and concave down helps us get a more accurate picture. It is worth summarizing what we have seen already in to a single theorem.

Of particular interest are points at which the concavity changes from up to down or down to up.

It is instructive to see some examples of inflection points:

It is also instructive to see some nonexamples of inflection points:

We identify inflection points by first finding such that is zero or undefined and then checking to see whether does in fact go from positive to negative or negative to positive at these numbers.

Note that we need to compute and analyze the second derivative to understand concavity, so we may as well try to use the second derivative test for maxima and minima. If for some reason this fails we can then try one of the other tests.

The second derivative test

Recall the first derivative test:

  • If for all that are near and less than and for all that are near and greater than , then is a local maximum.
  • If for all that are near and less than and for all that are near and greater than , then is a local minimum.

Let be a critical number such that . If happens to be decreasing on some interval containing , then it changes from positive to negative at . Therefore, if is negative on some interval that contains , then is definitely decreasing, so there is a local maximum at the number in question. On the other hand, if is increasing, then it changes from negative to positive at . Therefore, if is positive on an interval that contains , then is definitely increasing, so there is a local minimum at the number in question. We summarize this as the second derivative test.

The second derivative test is often the easiest way to identify where in the domain local maximum and minimum occur. Sometimes the test fails and sometimes the second derivative is quite difficult to evaluate. In such cases we must fall back on one of the previous tests.

If , what does the second derivative test tell us?
The function has a local extremum at . The function does not have a local extremum at . It gives no information on whether the function has a local extremum at .