Math 2.0

Numerical analysis Definition

Numerical differentiation

Builds on DerivativeHigher derivativeBig O notation

Definition

Let k≥1k \ge 1 be an integer, let ff be a real function defined near a point x∈ℝx \in \R, and let s1,…,sNs_1, \ldots, s_N be distinct real numbers. A numerical differentiation formula for the kk-th derivative f(k)(x)f^{(k)}(x) is an expression Dhf(x)=1hk∑j=1Naj f(x+sjh),h>0,D_h f(x) = \frac{1}{h^k} \sum_{j=1}^{N} a_j \, f(x + s_j h), \qquad h > 0, with real coefficients a1,…,aNa_1, \ldots, a_N that do not depend on hh or ff. It has order p≥1p \ge 1 if Dhf(x)−f(k)(x)=O(hp)D_h f(x) - f^{(k)}(x) = O(h^p) as h→0h \to 0 for every ff of class Ck+pC^{k+p} near xx, in big O notation. Numerical differentiation is the approximation of f(k)(x)f^{(k)}(x) by such formulas, or more generally by derivatives of functions fitted to finitely many values of ff.

Remarks

Example: the central difference Dhf(x)=f(x+h)−f(x−h)2hD_h f(x) = \frac{f(x + h) - f(x - h)}{2h} for k=1k = 1, with stencil −1,1-1, 1 and a=(−12,12)a = (-\tfrac12, \tfrac12), has order 22. Check with Taylor's theorem for f∈C3f \in C^3: f(x±h)=f(x)±hf′(x)+h22f′′(x)±h36f′′′(ξ±)f(x \pm h) = f(x) \pm h f'(x) + \frac{h^2}{2} f''(x) \pm \frac{h^3}{6} f'''(\xi_\pm), so Dhf(x)−f′(x)=O(h2)D_h f(x) - f'(x) = O(h^2). The forward difference f(x+h)−f(x)h\frac{f(x + h) - f(x)}{h} has only order 11, with error h2f′′(ξ)\frac{h}{2} f''(\xi). Non-example: f(x+h)+f(x)h\frac{f(x+h) + f(x)}{h} approximates no derivative; for f=1f = 1 it equals 2h\frac{2}{h}, which does not tend to f′(x)=0f'(x) = 0. In floating-point arithmetic with unit round-off uu, the forward difference has total error about h2∣f′′∣+2u∣f∣h\frac{h}{2}\abs{f''} + \frac{2u\abs{f}}{h}, which is smallest for hh of the order of u\sqrt{u}.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Big O notation concept
  2. Derivative concept
  3. Higher derivative concept
  4. Numerical differentiation definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Numerical_differentiation
About this page
TagVSTM4MZJXZ
URIm2://VSTM4MZJXZ
Kinddefinition
WritingW0 stub
MSC65D25
DefinesNumerical differentiation
UsesDerivative, Higher derivative, Big O notation

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.