Identify intervals on which the function is increasing, decr…