Differential calculus
So when we go from point A to point B, the vertical position has gone from f(x) to f(x + h), and the horizontal position has gone from x to x + h. Now, remember that the slope is how much it goes up divided by how much it goes across. So the slope will be: