Average rate of change of a function f(x) on an interval [a,b] is the slope of the secant line  . The instantaneous rate of change of f(x) at x=a is the slope of the tangent line. Therefore  the slope of the line measures the average rate of change of the function and can be found from any two points on the line. Also gradient

Average and Instantaneous

 

rate of changes