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