The final step after identifying the critical points and testing them for local extrema is to determine on which intervals the function is increasing or decreasing. This determination is based on the sign of the first derivative of the function over various intervals.
By selecting test points between the critical points and plugging them into the first derivative
\[f'(x)\],
you can ascertain the function's behavior. If the first derivative is positive between two critical points, the function is increasing on that interval. Conversely, if the derivative is negative, the function is decreasing.
Let's relate this to our function
\[f(x) = x^3 - 2x - 2\cos(x)\].
Suppose we found some critical points; now, by choosing a number in-between each pair of critical points and evaluating the first derivative at that number, we would see if the function slopes upwards or downwards in that segment.
- If
\[f'(x) > 0\],
it suggests the function is heading upward as you move from left to right. - If
\[f'(x) < 0\],
the function is on a decline in that same direction.
The knowledge of these intervals is exceptionally beneficial, as it provides a better insight into the overall trend of the function, beyond just knowing where the peaks and valleys lie.