Derivatives, stationary points and inflexions