結果 : maximum and minimum problems differentiation