結果 : how to find local max and min from first derivative graph