When you have a function that changes direction several times, how do you determine the interval over which the function is decreasing?

The first derivative will be negative.