Derivation: finite differences from Taylor
How the truncated Taylor expansion yields the forward, backward and central finite differences of the first derivative.
Forward, backward and central
Take Taylor with and , keeping first order. Solving for the derivative gives the forward difference:
With and (looking backward) we get the backward difference:
Subtracting the forward minus the backward expansion cancels the even term and yields the central difference, more accurate. With equally spaced nodes (step h), x_{i+1}−x_{i−1}=2h: