Professional Documents
Culture Documents
Contents
Central finite difference
Forward finite difference
Backward finite difference
Arbitrary stencil points
See also
References
Derivative Accuracy −5 −4 −3 −2 −1 0 1 2 3 4 5
2 −1/2 0 1/2
2 1 −2 1
2 −1/2 1 0 −1 1/2
2 1 −4 6 −4 1
6 −13/288 19/36 −87/32 13/2 −323/48 0 323/48 −13/2 87/32 −19/36 13/288
2 1 −6 15 −20 15 −6 1
6 13/240 −19/24 87/16 −39/2 323/8 −1023/20 323/8 −39/2 87/16 −19/24 13/240
https://en.wikipedia.org/wiki/Finite_difference_coefficient 1/5
13/5/2020 Finite difference coefficient - Wikipedia
where represents a uniform grid spacing between each finite difference interval, and .
For the -th derivative with accuracy , there are central coefficients
where the only non-zero value on the right hand side is in the -th row.
An open source implementation for calculating finite difference coefficients of arbitrary derivates and accuracy order
in one dimension is available.[2]
https://en.wikipedia.org/wiki/Finite_difference_coefficient 2/5
13/5/2020 Finite difference coefficient - Wikipedia
Derivative Accuracy 0 1 2 3 4 5 6 7 8
1 −1 1
2 −3/2 2 −1/2
1 1 −2 1
2 2 −5 4 −1
1 −1 3 −3 1
1 1 −4 6 −4 1
2 3 −14 26 −24 11 −2
For example, the first derivative with a third-order accuracy and the second derivative with a second-order accuracy
are
https://en.wikipedia.org/wiki/Finite_difference_coefficient 3/5
13/5/2020 Finite difference coefficient - Wikipedia
In general, to get the coefficients of the backward approximations, give all odd derivatives listed in the table the
opposite sign, whereas for even derivatives the signs stay the same. The following table illustrates this[3]:
Derivative Accuracy −8 −7 −6 −5 −4 −3 −2 −1 0
1 −1 1
1 2 1/2 −2 3/2
1 1 −2 1
2
2 −1 4 −5 2
1 −1 3 −3 1
3
2 3/2 −7 12 −9 5/2
1 1 −4 6 −4 1
4
2 −2 11 −24 26 −14 3
See also
Finite difference method
Finite difference
Five-point stencil
Numerical differentiation
References
https://en.wikipedia.org/wiki/Finite_difference_coefficient 4/5
13/5/2020 Finite difference coefficient - Wikipedia
1. Fornberg, Bengt (1988), "Generation of Finite Difference Formulas on Arbitrarily Spaced Grids", Mathematics of
Computation, 51 (184): 699–706, doi:10.1090/S0025-5718-1988-0935077-0 (https://doi.org/10.1090%2FS0025-57
18-1988-0935077-0), ISSN 0025-5718 (https://www.worldcat.org/issn/0025-5718).
2. "A Python package for finite difference numerical derivatives in arbitrary number of dimensions" (https://github.com/m
aroba/findiff).
3. Taylor, Cameron (12 December 2019). "Finite Difference Coefficients Calculator" (http://web.media.mit.edu/~crtaylor/
calculator.html). MIT.
4. http://web.media.mit.edu/~crtaylor/calculator.html
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the
Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.
https://en.wikipedia.org/wiki/Finite_difference_coefficient 5/5