HOME

TheInfoList



OR:

A finite difference is a mathematical expression of the form . If a finite difference is divided by , one gets a difference quotient. The approximation of
derivative In mathematics, the derivative of a function of a real variable measures the sensitivity to change of the function value (output value) with respect to a change in its argument (input value). Derivatives are a fundamental tool of calculus. ...
s by finite differences plays a central role in finite difference methods for the numerical solution of
differential equation In mathematics, a differential equation is an equation that relates one or more unknown functions and their derivatives. In applications, the functions generally represent physical quantities, the derivatives represent their rates of change, ...
s, especially
boundary value problem In mathematics, in the field of differential equations, a boundary value problem is a differential equation together with a set of additional constraints, called the boundary conditions. A solution to a boundary value problem is a solution to t ...
s. The difference operator, commonly denoted \Delta is the operator that maps a function to the function \Delta /math> defined by :\Delta x)= f(x+1)-f(x). A
difference equation In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a parameter ...
is a functional equation that involves the finite difference operator in the same way as a
differential equation In mathematics, a differential equation is an equation that relates one or more unknown functions and their derivatives. In applications, the functions generally represent physical quantities, the derivatives represent their rates of change, ...
involves
derivative In mathematics, the derivative of a function of a real variable measures the sensitivity to change of the function value (output value) with respect to a change in its argument (input value). Derivatives are a fundamental tool of calculus. ...
s. There are many similarities between difference equations and differential equations, specially in the solving methods. Certain recurrence relations can be written as difference equations by replacing iteration notation with finite differences. In
numerical analysis Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic manipulations) for the problems of mathematical analysis (as distinguished from discrete mathematics). It is the study of numerical methods ...
, finite differences are widely used for approximating derivatives, and the term "finite difference" is often used as an abbreviation of "finite difference approximation of derivatives". Finite difference approximations are finite difference quotients in the terminology employed above. Finite differences were introduced by
Brook Taylor Brook Taylor (18 August 1685 – 29 December 1731) was an English mathematician best known for creating Taylor's theorem and the Taylor series, which are important for their use in mathematical analysis. Life and work Brook Taylor ...
in 1715 and have also been studied as abstract self-standing mathematical objects in works by
George Boole George Boole (; 2 November 1815 – 8 December 1864) was a largely self-taught English mathematician, philosopher, and logician, most of whose short career was spent as the first professor of mathematics at Queen's College, Cork in ...
(1860), L. M. Milne-Thomson (1933), and (1939). Finite differences trace their origins back to one of
Jost Bürgi Jost Bürgi (also ''Joost, Jobst''; Latinized surname ''Burgius'' or ''Byrgius''; 28 February 1552 – 31 January 1632), active primarily at the courts in Kassel and Prague, was a Swiss clockmaker, a maker of astronomical instruments and a ma ...
's algorithms () and work by others including
Isaac Newton Sir Isaac Newton (25 December 1642 – 20 March 1726/27) was an English mathematician, physicist, astronomer, alchemist, Theology, theologian, and author (described in his time as a "natural philosophy, natural philosopher"), widely ...
. The formal calculus of finite differences can be viewed as an alternative to the
calculus Calculus, originally called infinitesimal calculus or "the calculus of infinitesimals", is the mathematics, mathematical study of continuous change, in the same way that geometry is the study of shape, and algebra is the study of generalizati ...
of
infinitesimal In mathematics, an infinitesimal number is a quantity that is closer to zero than any standard real number, but that is not zero. The word ''infinitesimal'' comes from a 17th-century Modern Latin coinage ''infinitesimus'', which originally re ...
s.


Basic types

Three basic types are commonly considered: ''forward'', ''backward'', and ''central'' finite differences. A forward difference, denoted \Delta_h of a function is a function defined as : \Delta_h x) = f(x + h) - f(x). Depending on the application, the spacing may be variable or constant. When omitted, is taken to be 1; that is, : \Delta x) = \Delta_1 x) =f(x+1)-f(x) . A backward difference uses the function values at and , instead of the values at and : : \nabla_h x) = f(x) - f(x-h)=\Delta_h x-h). Finally, the central difference is given by : \delta_h x) = f(x+\tfrac2)-f(x-\tfrac2)=\Delta_ x)+\nabla_ x).


Relation with derivatives

Finite difference is often used as an approximation of the derivative, typically in numerical differentiation. The
derivative In mathematics, the derivative of a function of a real variable measures the sensitivity to change of the function value (output value) with respect to a change in its argument (input value). Derivatives are a fundamental tool of calculus. ...
of a function at a point is defined by the
limit Limit or Limits may refer to: Arts and media * ''Limit'' (manga), a manga by Keiko Suenobu * ''Limit'' (film), a South Korean film * Limit (music), a way to characterize harmony * "Limit" (song), a 2016 single by Luna Sea * "Limits", a 2019 ...
. : f'(x) = \lim_ \frac. If has a fixed (non-zero) value instead of approaching zero, then the right-hand side of the above equation would be written : \frac = \frac. Hence, the forward difference divided by approximates the derivative when is small. The error in this approximation can be derived from Taylor's theorem. Assuming that is twice differentiable, we have : \frac - f'(x) = O(h)\to 0 \quad \texth \to 0. The same formula holds for the backward difference: : \frac - f'(x) = O(h)\to 0 \quad \texth \to 0. However, the central (also called centered) difference yields a more accurate approximation. If is three times differentiable, : \frac - f'(x) = O\left(h^2\right) . The main problem with the central difference method, however, is that oscillating functions can yield zero derivative. If for odd, and for even, then if it is calculated with the central difference scheme. This is particularly troublesome if the domain of is discrete. See also Symmetric derivative Authors for whom finite differences mean finite difference approximations define the forward/backward/central differences as the quotients given in this section (instead of employing the definitions given in the previous section).


Higher-order differences

In an analogous way, one can obtain finite difference approximations to higher order derivatives and differential operators. For example, by using the above central difference formula for and and applying a central difference formula for the derivative of at , we obtain the central difference approximation of the second derivative of : ;Second-order central : f''(x) \approx \frac = \frac = \frac . Similarly we can apply other differencing formulas in a recursive manner. ;Second order forward : f''(x) \approx \frac = \frac = \frac . ;Second order backward : f''(x) \approx \frac = \frac = \frac . More generally, the th order forward, backward, and central differences are given by, respectively, ;Forward :\Delta^n_h x) = \sum_^ (-1)^ \binom f\bigl(x + i h\bigr), or for , :\Delta^n x)= \sum_^n\binom ni(-1)^f(x + i) ;Backward :\nabla^n_h x) = \sum_^ (-1)^i \binom f(x - ih), ;Central :\delta^n_h x) = \sum_^ (-1)^i \binom f\left(x + \left(\frac - i\right) h\right). These equations use
binomial coefficient In mathematics, the binomial coefficients are the positive integers that occur as coefficients in the binomial theorem. Commonly, a binomial coefficient is indexed by a pair of integers and is written \tbinom. It is the coefficient of the t ...
s after the summation sign shown as . Each row of Pascal's triangle provides the coefficient for each value of . Note that the central difference will, for odd , have multiplied by non-integers. This is often a problem because it amounts to changing the interval of discretization. The problem may be remedied taking the average of and . Forward differences applied to a
sequence In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is called ...
are sometimes called the binomial transform of the sequence, and have a number of interesting combinatorial properties. Forward differences may be evaluated using the Nörlund–Rice integral. The integral representation for these types of series is interesting, because the integral can often be evaluated using asymptotic expansion or
saddle-point In mathematics, a saddle point or minimax point is a point on the surface of the graph of a function where the slopes (derivatives) in orthogonal directions are all zero (a critical point), but which is not a local extremum of the function. ...
techniques; by contrast, the forward difference series can be extremely hard to evaluate numerically, because the binomial coefficients grow rapidly for large . The relationship of these higher-order differences with the respective derivatives is straightforward, :\frac(x) = \frac+O(h) = \frac+O(h) = \frac + O\left(h^2\right). Higher-order differences can also be used to construct better approximations. As mentioned above, the first-order difference approximates the first-order derivative up to a term of order . However, the combination : \frac = - \frac approximates up to a term of order . This can be proven by expanding the above expression in
Taylor series In mathematics, the Taylor series or Taylor expansion of a function is an infinite sum of terms that are expressed in terms of the function's derivatives at a single point. For most common functions, the function and the sum of its Taylor ser ...
, or by using the calculus of finite differences, explained below. If necessary, the finite difference can be centered about any point by mixing forward, backward, and central differences.


Polynomials

For a given
polynomial In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An exampl ...
of degree , expressed in the function , with real numbers and and ''lower order terms'' (if any) marked as : P(x) = ax^n + bx^ + l.o.t. After pairwise differences, the following result can be achieved, where is a real number marking the arithmetic difference: \Delta_h^n x) = ah^nn! Only the coefficient of the highest-order term remains. As this result is constant with respect to , any further pairwise differences will have the value .


Inductive proof


Base case

Let be a polynomial of degree : \Delta_h x) = Q(x + h) - Q(x) = (x + h) + b- x + b= ah = ah^11! This proves it for the base case.


Step case

Let be a polynomial of degree where and the coefficient of the highest-order term be . Assuming the following holds true for all polynomials of degree : \Delta_h^ x) = ah^(m-1)! Let be a polynomial of degree . With one pairwise difference: \Delta_h x) = (x+h)^ + b(x+h)^ + l.o.t.- x^m + bx^ + l.o.t.= ahmx^ + l.o.t. = T(x) As , this results in a polynomial of degree , with as the coefficient of the highest-order term. Given the assumption above and pairwise differences (resulting in a total of pairwise differences for ), it can be found that: \Delta_h^ x) = ahm \cdot h^(m-1)! = ah^mm! This completes the proof.


Application

This identity can be used to find the lowest-degree polynomial that intercepts a number of points where the difference on the x-axis from one point to the next is a constant . For example, given the following points: We can use a differences table, where all cells to the right of the first , the following relation to the cells in the column immediately to the left exists for a cell , with the top-leftmost cell being at coordinate : (a+1, b+1) = (a, b) - (a, b+1) To find the first term, the following table can be used: This arrives at a constant . The arithmetic difference is , as established above. Given the number of pairwise differences needed to reach the constant, it can be surmised this is a polynomial of degree . Thus, using the identity above: 648 = a \cdot 3^3 \cdot 3! = a \cdot 27 \cdot 6 = a \cdot 162 Solving for , it can be found to have the value . Thus, the first term of the polynomial is . Then, subtracting out the first term, which lowers the polynomial's degree, and finding the finite difference again: Here, the constant is achieved after only 2 pairwise differences, thus the following result: -306 = a \cdot 3^2 \cdot 2! = a \cdot 18 Solving for , which is , the polynomial's second term is . Moving on to the next term, by subtracting out the second term: Thus the constant is achieved after only 1 pairwise difference: 108 = a \cdot 3^1 \cdot 1! = a \cdot 3 It can be found that and thus the third term of the polynomial is . Subtracting out the third term: Without any pairwise differences, it is found that the 4th and final term of the polynomial is the constant . Thus, the lowest-degree polynomial intercepting all the points in the first table is found: 4x^3 - 17x^2 + 36x - 19


Arbitrarily sized kernels

Using linear algebra one can construct finite difference approximations which utilize an arbitrary number of points to the left and a (possibly different) number of points to the right of the evaluation point, for any order derivative. This involves solving a linear system such that the Taylor expansion of the sum of those points around the evaluation point best approximates the Taylor expansion of the desired derivative. Such formulas can be represented graphically on a hexagonal or diamond-shaped grid. This is useful for differentiating a function on a grid, where, as one approaches the edge of the grid, one must sample fewer and fewer points on one side. The details are outlined in thes
notes
Th

constructs finite difference approximations for non-standard (and even non-integer) stencils given an arbitrary stencil and a desired derivative order.


Properties

* For all positive and \Delta^n_ (f, x) = \sum\limits_^ \sum\limits_^ \cdots \sum\limits_^ \Delta^n_h \left(f, x+i_1h+i_2h+\cdots+i_nh\right). *
Leibniz rule Leibniz's rule (named after Gottfried Wilhelm Leibniz) may refer to one of the following: * Product rule in differential calculus * General Leibniz rule, a generalization of the product rule * Leibniz integral rule * The alternating series test, al ...
: \Delta^n_h (fg, x) = \sum\limits_^n \binom \Delta^k_h (f, x) \Delta^_h(g, x+kh).


In differential equations

An important application of finite differences is in
numerical analysis Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic manipulations) for the problems of mathematical analysis (as distinguished from discrete mathematics). It is the study of numerical methods ...
, especially in
numerical differential equations Numerical may refer to: * Number * Numerical digit * Numerical analysis Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic manipulations) for the problems of mathematical analysis (as dist ...
, which aim at the numerical solution of ordinary and
partial differential equation In mathematics, a partial differential equation (PDE) is an equation which imposes relations between the various partial derivatives of a multivariable function. The function is often thought of as an "unknown" to be solved for, similarly to h ...
s. The idea is to replace the derivatives appearing in the differential equation by finite differences that approximate them. The resulting methods are called finite difference methods. Common applications of the finite difference method are in computational science and engineering disciplines, such as thermal engineering,
fluid mechanics Fluid mechanics is the branch of physics concerned with the mechanics of fluids ( liquids, gases, and plasmas) and the forces on them. It has applications in a wide range of disciplines, including mechanical, aerospace, civil, chemical and ...
, etc.


Newton's series

The Newton series consists of the terms of the Newton forward difference equation, named after
Isaac Newton Sir Isaac Newton (25 December 1642 – 20 March 1726/27) was an English mathematician, physicist, astronomer, alchemist, Theology, theologian, and author (described in his time as a "natural philosophy, natural philosopher"), widely ...
; in essence, it is the Newton interpolation formula, first published in his '' Principia Mathematica'' in 1687, namely the discrete analog of the continuous Taylor expansion, which holds for any
polynomial In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An exampl ...
function and for many (but not all)
analytic function In mathematics, an analytic function is a function that is locally given by a convergent power series. There exist both real analytic functions and complex analytic functions. Functions of each type are infinitely differentiable, but complex ...
s. (It does not hold when is exponential type \pi. This is easily seen, as the sine function vanishes at integer multiples of \pi; the corresponding Newton series is identically zero, as all finite differences are zero in this case. Yet clearly, the sine function is not zero.) Here, the expression :\binom = \frac is the
binomial coefficient In mathematics, the binomial coefficients are the positive integers that occur as coefficients in the binomial theorem. Commonly, a binomial coefficient is indexed by a pair of integers and is written \tbinom. It is the coefficient of the t ...
, and :(x)_k=x(x-1)(x-2)\cdots(x-k+1) is the "
falling factorial In mathematics, the falling factorial (sometimes called the descending factorial, falling sequential product, or lower factorial) is defined as the polynomial :\begin (x)_n = x^\underline &= \overbrace^ \\ &= \prod_^n(x-k+1) = \prod_^(x-k) \,. \e ...
" or "lower factorial", while the empty product is defined to be 1. In this particular case, there is an assumption of unit steps for the changes in the values of of the generalization below. Note the formal correspondence of this result to Taylor's theorem. Historically, this, as well as the
Chu–Vandermonde identity In combinatorics, Vandermonde's identity (or Vandermonde's convolution) is the following identity for binomial coefficients: :=\sum_^r for any nonnegative integers ''r'', ''m'', ''n''. The identity is named after Alexandre-Théophile Vandermon ...
, :(x+y)_n=\sum_^n \binom (x)_ \,(y)_k , (following from it, and corresponding to the binomial theorem), are included in the observations that matured to the system of
umbral calculus In mathematics before the 1970s, the term umbral calculus referred to the surprising similarity between seemingly unrelated polynomial equations and certain "shadowy" techniques used to "prove" them. These techniques were introduced by John Blis ...
. Newton series expansions can be superior to Taylor series expansions when applied to discrete quantities like quantum spins (see
Holstein–Primakoff transformation The Holstein–Primakoff transformation in quantum mechanics is a mapping to the spin operators from boson creation and annihilation operators, effectively truncating their infinite-dimensional Fock space to finite-dimensional subspaces. One impo ...
), bosonic operator functions or discrete counting statistics.Jürgen König and Alfred Hucht
''SciPost Phys. '' 10, 007 (2021)
To illustrate how one may use Newton's formula in actual practice, consider the first few terms of doubling the Fibonacci sequence One can find a
polynomial In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An exampl ...
that reproduces these values, by first computing a difference table, and then substituting the differences that correspond to (underlined) into the formula as follows, : \begin \begin \hline x & f=\Delta^0 & \Delta^1 & \Delta^2 \\ \hline 1&\underline& & \\ & &\underline& \\ 2&2& &\underline \\ & &2& \\ 3&4& & \\ \hline \end & \quad \begin f(x) & =\Delta^0 \cdot 1 +\Delta^1 \cdot \dfrac + \Delta^2 \cdot \dfrac \quad (x_0=1)\\ \\ & =2 \cdot 1 + 0 \cdot \dfrac + 2 \cdot \dfrac \\ \\ & =2 + (x-1)(x-2) \\ \end \end For the case of nonuniform steps in the values of , Newton computes the divided differences, :\Delta _=y_j,\qquad \Delta _=\frac\quad \ni \quad \left\,\qquad \Delta 0_k=\Delta _ the series of products, :=1,\quad \quad P_=P_k\cdot \left( \xi -x_k \right) , and the resulting polynomial is the scalar product, :f(\xi ) = \Delta 0 \cdot P\left( \xi \right) . In analysis with -adic numbers,
Mahler's theorem In mathematics, Mahler's theorem, introduced by , expresses continuous ''p''-adic functions in terms of polynomials. Over any field of characteristic 0, one has the following result: Let (\Delta f)(x)=f(x+1)-f(x) be the forward difference operat ...
states that the assumption that is a polynomial function can be weakened all the way to the assumption that is merely continuous. Carlson's theorem provides necessary and sufficient conditions for a Newton series to be unique, if it exists. However, a Newton series does not, in general, exist. The Newton series, together with the Stirling series and the Selberg series, is a special case of the general difference series, all of which are defined in terms of suitably scaled forward differences. In a compressed and slightly more general form and equidistant nodes the formula reads :f(x)=\sum_\binom \sum_^k (-1)^\binomf(a+j h).


Calculus of finite differences

The forward difference can be considered as an operator, called the difference operator, which maps the function to . This operator amounts to ::\Delta_h = T_h-I, where is the shift operator with step ''h'', defined by , and is the identity operator. The finite difference of higher orders can be defined in recursive manner as . Another equivalent definition is . The difference operator is a
linear operator In mathematics, and more specifically in linear algebra, a linear map (also called a linear mapping, linear transformation, vector space homomorphism, or in some contexts linear function) is a Map (mathematics), mapping V \to W between two vect ...
, as such it satisfies . It also satisfies a special
Leibniz rule Leibniz's rule (named after Gottfried Wilhelm Leibniz) may refer to one of the following: * Product rule in differential calculus * General Leibniz rule, a generalization of the product rule * Leibniz integral rule * The alternating series test, al ...
indicated above, . Similar statements hold for the backward and central differences. Formally applying the
Taylor series In mathematics, the Taylor series or Taylor expansion of a function is an infinite sum of terms that are expressed in terms of the function's derivatives at a single point. For most common functions, the function and the sum of its Taylor ser ...
with respect to , yields the formula : \Delta_h = hD + \frac h^2D^2 + \frac h^3D^3 + \cdots = \mathrm^ - I , where denotes the continuum derivative operator, mapping to its derivative . The expansion is valid when both sides act on
analytic function In mathematics, an analytic function is a function that is locally given by a convergent power series. There exist both real analytic functions and complex analytic functions. Functions of each type are infinitely differentiable, but complex ...
s, for sufficiently small . Thus, , and formally inverting the exponential yields : hD = \log(1+\Delta_h) = \Delta_h - \tfrac \Delta_h^2 + \tfrac \Delta_h^3 - \cdots. This formula holds in the sense that both operators give the same result when applied to a polynomial. Even for analytic functions, the series on the right is not guaranteed to converge; it may be an asymptotic series. However, it can be used to obtain more accurate approximations for the derivative. For instance, retaining the first two terms of the series yields the second-order approximation to mentioned at the end of the section ''Higher-order differences''. The analogous formulas for the backward and central difference operators are : hD = -\log(1-\nabla_h) \quad\text\quad hD = 2 \operatorname\left(\tfrac12\delta_h\right). The calculus of finite differences is related to the
umbral calculus In mathematics before the 1970s, the term umbral calculus referred to the surprising similarity between seemingly unrelated polynomial equations and certain "shadowy" techniques used to "prove" them. These techniques were introduced by John Blis ...
of combinatorics. This remarkably systematic correspondence is due to the identity of the
commutators In mathematics, the commutator gives an indication of the extent to which a certain binary operation fails to be commutative. There are different definitions used in group theory and ring theory. Group theory The commutator of two elements, ...
of the umbral quantities to their continuum analogs ( limits), A large number of formal differential relations of standard calculus involving functions thus ''map systematically to umbral finite-difference analogs'' involving . For instance, the umbral analog of a monomial is a generalization of the above falling factorial ( Pochhammer k-symbol), :~(x)_n\equiv \left(xT_h^\right)^n=x (x-h) (x-2h) \cdots \bigl(x-(n-1)h\bigr), so that :\frac (x)_n=n (x)_ , hence the above Newton interpolation formula (by matching coefficients in the expansion of an arbitrary function in such symbols), and so on. For example, the umbral sine is :\sin \left(x\,T_h^\right) = x -\frac + \frac - \frac + \cdots As in the
continuum limit In mathematical physics and mathematics, the continuum limit or scaling limit of a lattice model refers to its behaviour in the limit as the lattice spacing goes to zero. It is often useful to use lattice models to approximate real-world processe ...
, the eigenfunction of also happens to be an exponential, :\frac(1+\lambda h)^\frac =\frac e^= \lambda e^ , and hence ''Fourier sums of continuum functions are readily mapped to umbral Fourier sums faithfully'', i.e., involving the same Fourier coefficients multiplying these umbral basis exponentials. This umbral exponential thus amounts to the exponential
generating function In mathematics, a generating function is a way of encoding an infinite sequence of numbers () by treating them as the coefficients of a formal power series. This series is called the generating function of the sequence. Unlike an ordinary serie ...
of the Pochhammer symbols. Thus, for instance, the
Dirac delta function In mathematics, the Dirac delta distribution ( distribution), also known as the unit impulse, is a generalized function or distribution over the real numbers, whose value is zero everywhere except at zero, and whose integral over the enti ...
maps to its umbral correspondent, the cardinal sine function, :\delta (x) \mapsto \frac, and so forth.
Difference equation In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a parameter ...
s can often be solved with techniques very similar to those for solving
differential equation In mathematics, a differential equation is an equation that relates one or more unknown functions and their derivatives. In applications, the functions generally represent physical quantities, the derivatives represent their rates of change, ...
s. The inverse operator of the forward difference operator, so then the umbral integral, is the indefinite sum or antidifference operator.


Rules for calculus of finite difference operators

Analogous to rules for finding the derivative, we have: * Constant rule: If is a constant, then ::\Delta c = 0 * Linearity: if and are
constants Constant or The Constant may refer to: Mathematics * Constant (mathematics), a non-varying value * Mathematical constant, a special number that arises naturally in mathematics, such as or Other concepts * Control variable or scientific const ...
, ::\Delta (a f + b g) = a \,\Delta f + b \,\Delta g All of the above rules apply equally well to any difference operator, including as to . * Product rule: :: \begin \Delta (f g) &= f \,\Delta g + g \,\Delta f + \Delta f \,\Delta g \\ \nabla (f g) &= f \,\nabla g + g \,\nabla f - \nabla f \,\nabla g \end * Quotient rule: ::\nabla \left( \frac \right) = \frac \det \begin \nabla f & \nabla g \\ f & g \end \left( \det \right)^ :or ::\nabla\left( \frac \right)= \frac * Summation rules: ::\begin \sum_^ \Delta f(n) &= f(b+1)-f(a) \\ \sum_^ \nabla f(n) &= f(b)-f(a-1) \end See references..


Generalizations

*A generalized finite difference is usually defined as \Delta_h^\mu x) = \sum_^N \mu_k f(x+kh), where is its coefficient vector. An infinite difference is a further generalization, where the finite sum above is replaced by an infinite series. Another way of generalization is making coefficients depend on point : , thus considering weighted finite difference. Also one may make the step depend on point : . Such generalizations are useful for constructing different
modulus of continuity In mathematical analysis, a modulus of continuity is a function ω : , ∞→ , ∞used to measure quantitatively the uniform continuity of functions. So, a function ''f'' : ''I'' → R admits ω as a modulus of continuity if and only if :, f(x)-f( ...
. *The generalized difference can be seen as the polynomial rings . It leads to difference algebras. *Difference operator generalizes to Möbius inversion over a
partially ordered set In mathematics, especially order theory, a partially ordered set (also poset) formalizes and generalizes the intuitive concept of an ordering, sequencing, or arrangement of the elements of a set. A poset consists of a set together with a binary ...
. *As a convolution operator: Via the formalism of incidence algebras, difference operators and other Möbius inversion can be represented by
convolution In mathematics (in particular, functional analysis), convolution is a mathematical operation on two functions ( and ) that produces a third function (f*g) that expresses how the shape of one is modified by the other. The term ''convolution'' ...
with a function on the poset, called the Möbius function ; for the difference operator, is the sequence .


Multivariate finite differences

Finite differences can be considered in more than one variable. They are analogous to partial derivatives in several variables. Some partial derivative approximations are: :\begin f_(x,y) &\approx \frac \\ f_(x,y) &\approx \frac \\ f_(x,y) &\approx \frac \\ f_(x,y) &\approx \frac \\ f_(x,y) &\approx \frac . \end Alternatively, for applications in which the computation of is the most costly step, and both first and second derivatives must be computed, a more efficient formula for the last case is : f_(x,y) \approx \frac, since the only values to compute that are not already needed for the previous four equations are and .


See also


References

* Richardson, C. H. (1954): ''An Introduction to the Calculus of Finite Differences'' (Van Nostrand (1954)'
online copy
* Mickens, R. E. (1991): ''Difference Equations: Theory and Applications'' (Chapman and Hall/CRC)


External links

*

] * D. Gleich (2005),
''Finite Calculus: A Tutorial for Solving Nasty Sums''

Discrete Second Derivative from Unevenly Spaced Points
{{Calculus topics Finite differences, Numerical differential equations Mathematical analysis Factorial and binomial topics Linear operators in calculus Numerical analysis Non-Newtonian calculus