Gradients of Curves, Maxima and Minima