First Principles

m=dydx=limh0f(x+h)f(x)h

or

m=dydx=limxaf(x)f(a)xa