Skip to main content
QUICK REVIEW

[Paper Review] Formulae of numerical differentiation

Maxim Dvornikov|ArXiv.org|Jun 5, 2003
Iterative Methods for Nonlinear EquationsMathematics7 references22 citations
TL;DR

This paper derives explicit, closed-form formulae for central numerical differentiation of first and second derivatives using an arbitrary number of equidistant discrete points, bypassing the need to construct interpolating polynomials. The method employs spectral analysis of weight coefficients to demonstrate high accuracy across a wide range of spatial frequencies, with convergence to exact derivatives in the limit of infinite points, validated on sin(x).

ABSTRACT

We derived the formulae of central differentiation for the finding of the first and second derivatives of functions given in discrete points, with the number of points being arbitrary. The obtained formulae for the derivative calculation do not require direct construction of the interpolating polynomial. As an example of the use of the developed method we calculated the first derivative of the function having known analytical value of the derivative. The result was examined in the limiting case of infinite number of points. We studied the spectral characteristics of the weight coefficients sequence of the numerical differentiation formulae. The performed investigation enabled one to analyze the accuracy of the numerical differentiation carried out with the use of the developed technique.

Motivation & Objective

  • To develop a general method for computing first and second derivatives of functions given at discrete, equidistant points without constructing interpolating polynomials.
  • To address the limitation of existing numerical differentiation formulae, which are typically restricted to fixed, small numbers of interpolation points.
  • To analyze the spectral properties of the weight coefficients in the differentiation formulae to assess accuracy across different spatial frequencies.
  • To validate the method by computing the derivative of sin(x) and examining convergence as the number of points tends to infinity.
  • To provide explicit, closed-form expressions for the weight coefficients valid for any number of interpolation points, enabling efficient implementation in numerical simulations.

Proposed method

  • The method uses symmetric differences of function values at diametrically opposite points to eliminate even-powered polynomial coefficients, isolating odd-powered terms for derivative approximation.
  • It formulates a system of linear equations for the odd-degree polynomial coefficients using the differences $ d_m = f_m - f_{-m} $, which are expressed as a sum over odd powers of $ m $.
  • The solution to this system is derived via Cramer's rule, yielding explicit expressions for the coefficients $ c_{2k+1} $ in terms of the weight coefficients $ \alpha_m^{(2k+1)}(n) $.
  • The weight coefficients $ \alpha_m^{(1)}(n) $ and $ \alpha_m^{(2)}(n) $ for the first and second derivatives are computed using determinants of Vandermonde-like matrices.
  • The spectral characteristics of the weight coefficient sequences are analyzed by computing their discrete Fourier transforms, comparing them to ideal derivative spectra.
  • The method is implemented in MATLAB using an algorithm that computes the coefficients iteratively via recursive products, avoiding full matrix inversion.

Experimental results

Research questions

  • RQ1Can explicit, closed-form formulae for numerical differentiation be derived for an arbitrary number of interpolation points without constructing the interpolating polynomial?
  • RQ2How do the spectral properties of the weight coefficient sequences affect the accuracy of numerical differentiation across different spatial frequencies?
  • RQ3What is the convergence behavior of the numerical derivative as the number of interpolation points increases, particularly in the limit $ n \to \infty $?
  • RQ4How does the accuracy of the derived formulae compare to analytical derivatives for smooth functions like $ \sin x $?
  • RQ5Can the method be efficiently implemented and scaled for use in high-precision lattice simulations of quantum field theories?

Key findings

  • The derived formulae for the first and second derivatives are expressed in closed form for any number $ n $ of interpolation points, avoiding the need for polynomial interpolation.
  • The spectral analysis shows that the weight coefficient sequences for the first derivative closely approximate the ideal derivative spectrum $ (2\pi r/N)^2 $ over a wide range of spatial frequencies, especially as $ n $ increases.
  • For $ n=11 $, the first derivative approximation is accurate up to spatial frequency $ r \lesssim 750 $, and for $ n=21 $, up to $ r \lesssim 800 $, indicating high-frequency accuracy.
  • The method converges to the exact derivative of $ \sin x $ in the limit $ n \to \infty $, confirming theoretical consistency.
  • The second derivative formulae also exhibit high accuracy, with spectral deviations from the ideal parabolic response remaining small over a broad frequency band.
  • The MATLAB implementation efficiently computes the weight coefficients using recursive products, enabling practical use in large-scale simulations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.