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