There's no surprise in this case.
Integers are not differentiable.
On the right side, it is a countinuous curve,
On the left, there is just some points on the curve.
Obviously the rate of change will not be the same unless
the curve is a straight line.
However, think about the fundamental of calculus,
you can see that as long as there's enough points to describe the curve,
the error will be considerably small.
So, it is widely used in engineering practice.
If you really want to learn how to prove whether there's enough
points,go look for books that talk about numerical method.
I am sure you will see it.