This app allows us to explore the relationship between the average and instantaneous rates of change of a function.

You can drag the points A and B along the graph of the function f and from their coordinates can calculate the average rate of change of the function between those points. The instantaneous rate of change of the function at point A is the limit of the average rates of change as the point B approaches the point A.