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’’ .

True or false: ‘‘All absolute extrema are also local extrema.’’
true false

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.