Independent variables are variables of a quantity that are not affected by any conditions.
Dependent variables are variables of a quantity that change if conditions relative to that variable changes.
For example, we generally we take x as independent variable by x variable and dependent variable by y variable.
To find the rate of change we get two values of independent variable (x's) and two values of dependent variables (y's) to get two coordinates in form of
(x,1,y1) and (x2,y2).
[tex]m= \frac{y_2-y_1}{x_2-x_1}[/tex].