Maximum And Minimum Values With Differentiation