Evaluating numerical algorithm
When symbolic calculus is impossible or discrete experimental data is collected, Numerical Differentiation uses symmetric finite difference stencils to compute high-precision derivative slopes and curvatures !
Consider the cubic polynomial function:
Let's evaluate and using step size !
Compute and around :
Plug functional values into central first derivative formula:
(Exact calculus value: ).
Plug values into central second derivative curvature formula:
(Exact calculus value: ).
With , central numerical differentiation matches the exact analytical slope 10 and curvature 12 to extraordinary accuracy!