Quite often, expressions such as "minimize costs" or "maximize space," "minimize" and "maximize" are usually interpreted as synonyms of "decrease" and "increase," respectively. However, it goes beyond that, as they refer to particular values of given functions. In this topic, we will define these extreme values and learn how to use derivatives to properly identify them.
Extrema
In general terms, a minimum is the smallest value a function can output, while maximum refers to the largest value. Together, they are commonly referred to as extrema.
Given our function and an arbitrarily small positive value , we can define local extrema as follows:
- has a local minimum at if for all
- has a local maximum at if for all
We can estimate the local extrema of some functions simply by inspecting their graphs. However, in order to precisely determine these points, we need to use derivatives.
Critical points
If is a local minimum for , then decreases on the interval and increases on . So is the point where the function switches from decreasing to increasing, or vice versa if is a local maximum instead. We can use this insight to find local extrema analytically.
We already know how to recognize when a function is either decreasing or increasing at a given point. We also know that the derivative represents the slope of the line tangent to at the point . When is positive, the tangent line points up; when it's negative, the tangent line points down. So,
- if , then is increasing at
-
if , then is decreasing at
-
if , then is a critical point of . The graph of the function is momentarily flat. This covers several possibilities: could be a local minimum, a local maximum, or something else entirely. We'll need more information to determine exactly what's happening.
For example, let's say
At , we have .
At , we have .
At , we have .
Therefore, we can say that is increasing at and decreasing at , and it has a critical point at .
So how do we find out if our critical point is a local extremum?
Second-derivative test
Just like the first derivative lets us know whether is increasing or decreasing, the second derivative tells us whether is increasing or decreasing. If the second derivative is positive at a critical point , then the first derivative (slope of the tangent line) is going from negative to positive, and is therefore a local minimum of the function. Likewise a negative second derivative at the critical point implies that we have a local maximum.
Then, we have the following:
- if and , then has a local minimum at ;
-
if and , then has a local maximum at ;
-
if and , then the second derivative test has failed to tell us anything. There could be a local minimum, local maximum, or neither at .
To continue with our example, we have
At , we have
Therefore, our critical point at is a local minimum.
We can use the first-derivative test to find all the critical points of a function, then the second-derivative test to find out which of them refer to local minima or local maxima.
Taking our example function , we have:
Thus our critical points are and .
We also have:
So, we have a minimum at and a maximum at .
In the previous graph, we can see that if we were to look only in the interval , wouldn't have a local maximum. Thus, given an interval , discard those critical points where before applying the second-derivative test.
Global extrema and local extrema
Let's say
Then, if we set ,
We can see that has three critical points: , , and .
Then, we have
Thus, we have two local minima at and a local maximum at
We can see that even though is a local maximum, it is not the largest value in the interval pictured. These values are known as absolute or global extrema. In order to find the global maximum and global minimum of a function in a given interval , the function must be evaluated at the interval boundaries in order to compare and to the local extrema obtained from the second derivative test.
For example, take the same and the interval . Since , we are left with only two critical points in the interval: and .
Now, we evaluate at the boundaries (endpoints) of the interval:
Since , we conclude that has a global maximum at , and a global minimum at . We only need to compare three points because is both a critical point of the function and an endpoint of the interval.
Conclusion
To sum up:
- The least value a function can output for all in a small interval near is called a local minimum, while the largest value is called a local maximum. These points are known together as local extrema.
- We can use the first-derivative test to know if is increasing or decreasing at a given point. A critical point is one where the function is defined, but it is neither increasing nor decreasing. By setting the first derivative equal to zero, we can determine the critical points of .
- We can use the second-derivative test to determine if a critical point is a local extremum.
- In order to define the absolute extrema for a given interval, we have to evaluate at the boundaries of the interval and compare these values to the local extrema found using the second-derivative test.