結果 : how to find intervals where a function is decreasing