Derivative as slope of curve