Approximate numerical formulae can be derived using Taylor series.
For all the definitions below, is a small positive number, and is called the step size.
First Order Derivative
Section titled “First Order Derivative”Taylor series expansion of around , truncated after derivative.
Error is bounded by:
Forward difference formula
Section titled “Forward difference formula”Here is a bound on between and .
Backward difference formula
Section titled “Backward difference formula”Here is a bound on between and .
Centered difference formula
Section titled “Centered difference formula”Aka. three-point mid point formula. Truncated after derivative.
Error is in order of which is better than .
Second Order Derivatives
Section titled “Second Order Derivatives”Second forward difference formula
Section titled “Second forward difference formula”Second backward difference formula
Section titled “Second backward difference formula”Second centered difference formula
Section titled “Second centered difference formula”Higher Order Derivatives
Section titled “Higher Order Derivatives”For -th derivative, Taylor series is truncated after derivative.
n-th forward difference formula
Section titled “n-th forward difference formula”n-th backward difference formula
Section titled “n-th backward difference formula”n-th centered difference formula
Section titled “n-th centered difference formula”Accuracy
Section titled “Accuracy”The accuracy of these divided difference formulas can be increased by including additional terms in the Taylor series. In each step the accuracy is improved by a power of .