When you calculate the average rate of change of a function, you are finding the slope of the secant line between the two points. f(x) = x2 and f(x + h) = (x + h)2 Therefore, the slope of the secant line between any two points on this function is 2x + h.