Rate of Change is used to describe the ratio of a change in one variable compare to a change of another variable

If there is a function then the rate of change of the function correspond to the rate of change of variable z is

If there are two points and