The post is aimed to summarize various finite difference schemes for partial derivatives estimation dispersed in comments on the Central Differences page. To gather them all in one place as a reference.
Listed formulas are selected as being advantageous among others of similar class – highest order of approximation, low rounding errors, etc. Please use comments to add other schemes.
Second order
:
(1)
:
(2)
The last formula is provided by “Felix”.
There are other formulas (e.g. provided by Edward F. Valeev) which can be beneficial for some applications (e.g. to use minimum number of function values in trade-off with decreased accuracy).
Third & Fourth order
To be continued…
One Comment
Pavel, really thanks to have these formulae summarized in one page !!
Sorry, 4 years have passed… I hope you can see this message…
I am wondering how easy is to get the formula to have precision on partial second derivative when the points are close to the border, (so, when or are not available).