Finding average rate of change at specific points