First Principles

m=dydx=limh→0f(x+h)−f(x)h

or

m=dydx=limx→af(x)−f(a)x−a