Estimating Derivatives

When ff can be evaluated anywhere, two quotients are standard. The one-sided quotient f(a+h)−f(a)h\frac{f(a + h) - f(a)}{h}, with h>0h > 0, uses aa and a point to its right. The centered quotient
f(a+h)−f(a−h)2h\frac{f(a + h) - f(a - h)}{2h}
uses points on both sides. For the same hh, the centered quotient is usually the closer estimate. On a curving graph the one-sided secant tilts toward the side it looks at, and the centered secant balances the two sides.
One-sided: the secant from a to a + h (blue) is steeper than the tangent at a (dashed orange).
Centered: the secant from a − h to a + h is nearly parallel to the tangent at a.

From a table

From a formula, with a calculator

From a graph

What a numerical derivative misses