TeX source:
m=\frac{\text { change in output }}{\text { change in input }}=\frac{f\left(x_{2}\right)-f\left(x_{1}\right)}{x_{2}-x_{1}}