Sounds easy enough. Do you understand the maths behind finding maxima and minima (it involves differentiation)? If so, where are you stuck, or haven't you started at all yet?