When a function lacks an easy analytic derivative, we often turn to finite differences. The idea is simple: sample at points near and use these values to estimate the slope. The forward formula gives a first-order approximation. Backward difference uses , while the central difference generally offers higher accuracy.
Type in your function using math.js
syntax along with the evaluation point and a small step size . Choose a method and press Approximate to obtain the derivative. The smaller is, the closer the approximation is to the true derivative, but very tiny values may introduce rounding errors due to floating-point limitations.
Finite difference methods underpin many numerical algorithms, from solving differential equations to simulating physical systems. Engineers and scientists often discretize continuous problems using these techniques when closed-form solutions are unavailable.
Apply Aitken's delta-squared process to improve the convergence of a sequence.
Compute Möbius transformations of complex numbers.
Compute the directional derivative of a multivariable function at a point.