結果 : maximum value of a function using differentiation