結果 : how to find when a function is decreasing