average rate of change formula over an interval