In calculus, a derivative test uses the derivatives of a function to locate the critical points of a function and determine whether each point is a local maximum, a local minimum, or a saddle point. Derivative tests can also give information about the concavity of a function.
Contents
- First derivative test
- Precise statement of monotonicity properties
- Precise statement of first derivative test
- Applications
- Second derivative test single variable
- Proof of the second derivative test
- Concavity test
- Higher order derivative test
- Example
- Multivariable case
- References
The usefulness of derivatives to find extrema is proved mathematically by Fermat's theorem of stationary points.
First derivative test
The first derivative test examines a function's monotonic properties (where the function is increasing or decreasing) focusing on a particular point in its domain. If the function "switches" from increasing to decreasing at the point, then the function will achieve a highest value at that point. Similarly, if the function "switches" from decreasing to increasing at the point, then it will achieve a least value at that point. If the function fails to "switch", and remains increasing or remains decreasing, then no highest or least value is achieved.
One can examine a function's monotonicity without calculus. However, calculus is usually helpful because there are sufficient conditions that guarantee the monotonicity properties above, and these conditions apply to the vast majority of functions one would encounter.
Precise statement of monotonicity properties
Stated precisely, suppose f is a real-valued function of a real variable, defined on some interval containing the point x.
Note that in the first two cases, f is not required to be strictly increasing or strictly decreasing to the left or right of x, while in the last two cases, f is required to be strictly increasing or strictly decreasing. The reason is that in the definition of local maximum and minimum, the inequality is not required to be strict: e.g. every value of a constant function is considered both a local maximum and a local minimum.
Precise statement of first derivative test
The first derivative test depends on the "increasing-decreasing test", which is itself ultimately a consequence of the mean value theorem.
Suppose f is a real-valued function of a real variable defined on some interval containing the critical point a. Further suppose that f is continuous at a and differentiable on some open interval containing a, except possibly at a itself.
Again, corresponding to the comments in the section on monotonicity properties, note that in the first two cases, the inequality is not required to be strict, while in the next two, strict inequality is required.
Applications
The first derivative test is helpful in solving optimization problems in physics, economics, and engineering. In conjunction with the extreme value theorem, it can be used to find the absolute maximum and minimum of a real-valued function defined on a closed, bounded interval. In conjunction with other information such as concavity, inflection points, and asymptotes, it can be used to sketch the graph of a function.
Second derivative test (single variable)
After establishing the critical points of a function, the second derivative test uses the value of the second derivative at those points to determine whether such points are a local maximum or a local minimum. If the function f is twice differentiable at a critical point x (i.e. f′(x) = 0), then:
In the latter case, Taylor's Theorem may be used to determine the behavior of f near x using higher derivatives.
Proof of the second derivative test
Suppose we have
Thus, for h sufficiently small we get
which means that
Concavity test
A related but distinct use of second derivatives is to determine whether a function is concave up or concave down at a point. It does not, however, provide information about inflection points. Specifically, a twice-differentiable function f is concave up if
Higher-order derivative test
The higher-order derivative test or general derivative test is able to determine whether a function's critical points are maxima, minima, or points of inflection for a wider variety of functions than the second-order derivative test. As shown below, the second derivative test is mathematically identical to the special case of n=1 in the higher-order derivative test.
Let f be a real-valued, sufficiently differentiable function on the interval
There are four possibilities, the first two cases where c is an extremum, the second two where c is a (local) saddle point:
Since n must be either odd or even, this analytical test classifies any stationary point of f, so long as a nonzero derivative shows up eventually.
Example
Say we want to perform the general derivative test on the function
As shown above, at x=0, the function
Multivariable case
For a function of more than one variable, the second derivative test generalizes to a test based on the eigenvalues of the function's Hessian matrix at the critical point. In particular, assuming that all second order partial derivatives of f are continuous on a neighbourhood of a critical point x, then if the eigenvalues of the Hessian at x are all positive, then x is a local minimum. If the eigenvalues are all negative, then x is a local maximum, and if some are positive and some negative, then the point is a saddle point. If the Hessian matrix is singular, then the second derivative test is inconclusive.