Stationary points
Stationary points are defined as:
A point is called a stationary point of the function if exists and if .
For example, the stationary points of occur at . Solving for gives the only stationary point at . As another example consider with stationary points at ; this gives where . Of course there are functions with no stationary points where the gradient is never zero like for instance whose derivative is .
Second derivative test
Here we discuss local and global minimum and maximum values of a function; these occur at stationary points. We start with the definitions of local extrema.
Suppose that is a stationary point of a differentiable function . Then, the function has a:
(i) local minimum at if
(ii) local maximum at if
Note that if we do not necessarily have a minimum or maximum point at . At a minimum value, the function changes from decreasing to increasing while at a maximum, the function changes from increasing to decreasing. If the function has a zero slope at but it is either always increasing or always decreasing on either side of the point, we refer to it as a point of inflection. Coming back to the second derivative test:
if , the test is inconclusive: may be a local minimum, a local maximum, or a point of inflection.
If and then is a point of inflection. Note that the converse is not true, i.e. if is a point of inflection then it does not follow that and . For instance, is a point of inflection of but .- Also, it is possible that at a point which is not a point of inflection, e.g. at .
Higher-order (or general) derivative test
Since the second derivative test is inconclusive for a stationary point where , we need to use another test. The higher-order derivative test (also referred to as the general derivative test) can help us identify whether a function's critical points are maxima, minima, or inflection points. Note the slight subtlety in the definitions of critical and stationary points. All stationary points are critical points but the reverse is not true. A critical point occurs if exists and wherever either or does not exist. If does not exist then, it follows that is not differentiable at and is a singular point (as mentioned in the discussion in the differentiation section). Further, if , then the critical point is a stationary point (as stated in the definition of stationary points).
Consider a function with the point in its domain and where is a stationary point. Suppose that the first derivatives of at are zero and the derivative of at exists and it is nonzero, i.e.
So, is the first derivative that is nonzero-valued at the point . Then, we have the following possibilities:
(i) If is odd and : is a local maximum
(ii) If is odd and is a local minimum
Note that the first two cases are equivalent to the second derivative test when .
(iii) If is even and is a point of inflection and the function is decreasing there.
(iv) If is even and is a point of inflection and the function is increasing there.
When several derivatives of a function vanish at a point, the function becomes pretty flat there. Note that the second derivative test is mathematically equivalent to the special case of in the higher-order derivative test.
For example, say we wanted to determine the stationary points and inflection points of the graph of . Stationary points occur at , so:
giving and as stationary points. The second derivative is which, when evaluated at each of the stationary points gives
according to the second derivative test, is a local maximum and are local minima. Further, at and . Since and , the points are points of inflection. Note however that since , these are not stationary points.
Global extrema
So far we have talked about local minima and maxima. We require that a point is a local maximum (minimum) relative to some open interval of 's around . That is to say that there may be larger (smaller) values somewhere else in the domain but local (i.e. very close) to is larger (smaller) than all other values that can take.
At a global maximum (minimum), is the largest (smallest) value can take. We illustrate the different types of extrema using the graph of a function :
The function has 3 stationary points at , and 1 . The point at is a local minimum since is smaller than at some in the neighbourhood of (i.e. very close to , on both sides). Additionally, the point is also a local minimum since is smaller than at some in the neighbourhood of . Since is the smallest value can take in the domain in which is defined, we also refer to as a global minimum. There exists only one maximum at and it is both a local and global maximum.