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

Local extrema on a function are points on the graph where the -coordinate is larger (or smaller) than all other -coordinates on the graph at points ‘‘close to’’ .

Local maximum and minimum points are quite distinctive on the graph of a function, and are therefore useful in understanding the shape of the graph. In many applied problems we want to find the largest or smallest value that a function achieves (for example, we might want to find the minimum cost at which some task can be performed) and so identifying maximum and minimum points will be useful for applied problems as well.

Critical points

If is a point where reaches a local maximum or minimum, and if the derivative of exists at , then the graph has a tangent line and the tangent line must be horizontal. This is important enough to state as a theorem, though we will not prove it.

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

Fermat’s Theorem says that the only points at which a function can have a local maximum or minimum are points at which the derivative is zero, consider the plots of and ,

PIC
or the derivative is undefined, as in the plot of and :
PIC
This brings us to our next definition.

Since the derivative is zero or undefined at both local maximum and local minimum points, we need a way to determine which, if either, actually occurs. The most elementary approach is to test directly whether the coordinates near the potential maximum or minimum are above or below the coordinate at the point of interest.

It is not always easy to compute the value of a function at a particular point. The task is made easier by the availability of calculators and computers, but they have their own drawbacks: they do not always allow us to distinguish between values that are very close together. Nevertheless, because this method is conceptually simple and sometimes easy to perform, you should always consider it.

The first derivative test

The method of the previous section for deciding whether there is a local maximum or minimum at a critical point by testing ‘‘near-by’’ points is not always convenient. Instead, since we have already had to compute the derivative to find the critical points, we can use information about the derivative to decide. 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 point? Use the first derivative test.

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