The gradient of a curve and rates of change