That depends on the definition of the average rate of change.
You could simply take the difference between the endpoint values of f and divide by the length of the interval.
Probably better is to divide the integral of the function over the interval divided by the length of the interval.