FACTOID # 120: Nepal’s flag isn’t square or rectangular. It’s a double triangle.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > Finite difference

A finite difference is a mathematical expression of the form f(x + b) − f(x + a). If a finite difference is divided by ba, one gets a difference quotient. The approximation of derivatives by finite differences plays a central role in finite difference methods for the numerical solution of differential equations, especially boundary value problems. The primary vehicle of calculus and other higher mathematics is the function. ... In mathematics, more precisely in numerical analysis, finite differences play an important role, they are one of the simplest ways of approximating a differential operator, and are extensively used in solving differential equations. ... Numerical analysis is the study of approximate methods for the problems of continuous mathematics (as distinguished from discrete mathematics). ... Visualization of airflow into a duct modelled using the Navier-Stokes equations, a set of partial differential equations. ... Shows a region where a differential equation is valid and the associated boundary values In mathematics, in the field of differential equations, a boundary value problem is a differential equation together with a set of additional restraints, called the boundary conditions. ...


In mathematical analysis, operators involving finite differences are studied. A difference operator is an operator which maps a function f to a function whose values are the corresponding finite differences. Analysis has its beginnings in the rigorous formulation of calculus. ... In mathematics, an operator is a function that performs some sort of operation on a number, variable, or function. ... In mathematics, a difference operator maps a function f(x) to another function f(x + a) − f(x + b). ...

Contents

Forward, backward, and central differences

Only three forms are commonly considered: forward, backward, and central differences.


A forward difference is an expression of the form

 Delta_h[f](x) = f(x + h) - f(x). ,

Depending on the application, the spacing h may be variable or held constant.


A backward difference uses the function values at x and xh, instead of the values at x + h and x:

 nabla_h[f](x) = f(x) - f(x-h).

Finally, the central difference is given by

 delta_h[f](x) = f(x+tfrac12h)-f(x-tfrac12h).

Relation with derivatives

The derivative of a function f at a point x is defined by the limit This article is about derivatives and differentiation in mathematical calculus. ... Wikibooks Calculus has a page on the topic of Limits In mathematics, the concept of a limit is used to describe the behavior of a function as its argument either gets close to some point, or as it becomes arbitrarily large; or the behavior of a sequences elements as...

 f'(x) = lim_{hto0} frac{f(x+h) - f(x)}{h}.

If h has a fixed (non-zero) value, instead of approaching zero, then the right-hand side is

 frac{f(x + h) - f(x)}{h} = frac{Delta_h[f](x)}{h}.

Hence, the forward difference divided by h approximates the derivative when h is small. The error in this approximation can be derived from Taylor's theorem. Assuming that f is continuously differentiable, the error is The exponential function (continuous red line) and the corresponding Taylors polynomial about a = 0 of degree four (dashed green line) In calculus, Taylors theorem, named after the mathematician Brook Taylor, who stated it in 1712, gives the approximation of a differentiable function near a point by a polynomial...

 frac{Delta_h[f](x)}{h} - f'(x) = O(h) quad (h to 0).

The same formula holds for the backward difference:

 frac{nabla_h[f](x)}{h} - f'(x) = O(h).

However, the central difference yields a more accurate approximation. Its error is proportional to square of the spacing (if f is twice continuously differentiable):

 frac{delta_h[f](x)}{h} - f'(x) = O(h^{2}) . !

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 f'(x + h / 2) and f'(xh / 2) and applying a central difference formula for the derivative of f' at x, we obtain the central difference approximation of the second derivative of f:

 f''(x) approx frac{delta_h^2[f](x)}{h^2} = frac{f(x+h) - 2 f(x) + f(x-h)}{h^{2}} .

More generally, the nth-order forward, backward, and central differences are respectively given by:

Delta^n_h[f](x) = sum_{i = 0}^{n} (-1)^i binom{n}{i} f(x + (n - i) h),
nabla^n_h[f](x) = sum_{i = 0}^{n} (-1)^i binom{n}{i} f(x - ih),
delta^n_h[f](x) = sum_{i = 0}^{n} (-1)^i binom{n}{i} fleft(x + left(frac{n}{2} - iright) hright).

Note that the central difference will, for odd n, have h multiplied by non-integers. If this is a problem (usually it is), it may be remedied taking the average of δn[f](xh / 2) and δn[f](x + h / 2).


The relationship of these higher-order differences with the respective derivatives is very straightforward:

frac{d^n f}{d x^n}(x) = frac{Delta_h^n[f](x)}{h^n}+O(h) = frac{nabla_h^n[f](x)}{h^n}+O(h) = frac{delta_h^n[f](x)}{h^n} + O(h^2).

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 h. However, the combination

 frac{Delta_h[f](x) - frac12 Delta_h^2[f](x)}{h} = - frac{f(x+2h)-4f(x+h)+3f(x)}{2h}

approximates f'(x) up to a term of order h2. This can be proven by expanding the above expression in Taylor series, or by using the calculus of finite differences, explained below. Series expansion redirects here. ...


If necessary, the finite difference can be centered about any point by mixing forward, backward, and central differences.


Properties

  • For all positive k and n
Delta^n_{kh} (f, x) = sumlimits_{i_1=0}^{k-1} sumlimits_{i_2=0}^{k-1} ... sumlimits_{i_n=0}^{k-1} Delta^n_h (f, x+i_1h+i_2h+...+i_nh).
Delta^n_h (fg, x) = sumlimits_{k=0}^n binom{n}{k} Delta^k_h (f, x) Delta^{n-k}_h(g, x+kh).

In calculus, the Leibniz rule, named after Gottfried Leibniz, generalizes the product rule. ...

Finite difference methods

An important application of finite differences is in numerical analysis, especially in numerical ordinary differential equations and numerical partial differential equations, which aim at the numerical solution of ordinary and partial differential equations respectively. 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. In mathematics, more precisely in numerical analysis, finite differences play an important role, they are one of the simplest ways of approximating a differential operator, and are extensively used in solving differential equations. ... Numerical analysis is the study of approximate methods for the problems of continuous mathematics (as distinguished from discrete mathematics). ... Numerical ordinary differential equations is the part of numerical analysis which studies the numerical solution of ordinary differential equations (ODEs). ... Numerical partial differential equations is the branch of numerical analysis that studies the numerical solution of partial differential equations. ... In mathematics, an ordinary differential equation (or ODE) is a relation that contains functions of only one independent variable, and one or more of its derivatives with respect to that variable. ... In mathematics, a partial differential equation (PDE) is a relation involving an unknown function of several independent variables and its partial derivatives with respect to those variables. ...


Common applications of the finite difference method are in computational science and engineering disciplines, such as thermal engineering, fluid mechanics, etc. This box:      Fluid mechanics is the study of how fluids move and the forces on them. ...


Calculus of finite differences

Main article: difference operator

The forward difference can be considered as a difference operator, which maps the function f to Δh[f]. This operator satisfies In mathematics, a difference operator maps a function f(x) to another function f(x + a) − f(x + b). ...

Delta_h = T_h-I, ,

where Th is the shift operator with step h, defined by Th[f](x) = f(x + h), and I is an identity operator. In mathematics, and in particular functional analysis, the shift operators are examples of linear operators, important for their simplicity and natural occurrence. ... In mathematics, an identity function, also called identity map or identity transformation, is a function that does not have any effect: it always returns the same value that was used as its argument. ...


Finite difference of higher orders can be defined in recursive manner as Delta^n_h(f,x):=Delta_h(Delta^{n-1}_h(f,x), x) or, in operators notation, Delta^n_h:=Delta_h(Delta^{n-1}_h). Another possible (and equivalent) definition is Delta^n_h = [T_h-I]^n.


The difference operator Δh is linear and satisfies Leibniz rule. Similar statements hold for the backward and central difference. In mathematics, a linear transformation (also called linear operator or linear map) is a function between two vector spaces that respects the arithmetical operations addition and scalar multiplication defined on vector spaces, or, in other words, it preserves linear combinations. Definition and first consequences Formally, if V and W are... At least two results in calculus are called Leibnizs rule or the Leibniz rule, in honor of Gottfried Leibniz. ...


Taylor's theorem can now be expressed by the formula The exponential function (continuous red line) and the corresponding Taylors polynomial about a = 0 of degree four (dashed green line) In calculus, Taylors theorem, named after the mathematician Brook Taylor, who stated it in 1712, gives the approximation of a differentiable function near a point by a polynomial...

 Delta_h = hD + frac12 h^2D^2 + frac1{3!} h^3D^3 + cdots = mathrm{e}^{hD} - 1,

where D denotes the derivative operator, mapping f to its derivative f'. Formally inverting the exponential suggests that

 hD = log(1+Delta_h) = Delta_h - frac12 Delta_h^2 + frac13 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 f'(x) mentioned at the end of the section Higher-order differences. In mathematics and applications, particularly the analysis of algorithms, asymptotic analysis is a method of classifying limiting behaviour, by concentrating on some trend. ...


The analogous formulas for the backward and central difference operators are

 hD = -log(1-nabla_h) quadmbox{and}quad hD = 2 , operatorname{arcsinh}(tfrac12delta_h).

Generalizations

A generalized finite difference is usually defined as

Delta_h^mu[f](x) = sum_{k=0}^N mu_k f(x+kh),

where mu = (mu_0,ldots,mu_N) is its coefficients 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 μk depend on point x : μk = μk(x), thus considering weighted finite difference. Also one may make step h depend on point x : h = h(x). Such generalizations are useful for constructing different modulus of continuity. In mathematics, a series is often represented as the sum of a sequence of terms. ... In mathematics, the modulus of continuity is a precise way to measure the smoothness of a function. ...


See also

Numerical differentiation is a technique of numerical analysis to produce an estimate of the derivative of a mathematical function or function subroutine using values from the function and perhaps other knowledge about the function. ... In numerical analysis, given a rectangular grid in one or two dimensions, the five-point stencil of a point in the grid is made up of the point itself together with its four neighbors. In one dimension, if the spacing between points in the grid is , then the five-point... In mathematics divided differences is a recursive division process. ... In mathematics, the modulus of continuity is a precise way to measure the smoothness of a function. ...

References

  • William F. Ames, Numerical Method for Partial Differential Equations, Section 1.6. Academic Press, New York, 1977. ISBN 0-12-056760-1.
  • Francis B. Hildebrand, Finite-Difference Equations and Simulations, Section 2.2, Prentice-Hall, Englewood Cliffs, New Jersey, 1968.
  • Boole, George, A Treatise On The Calculus of Finite Differences, 2nd ed., Macmillan and Company, 1872. [See also: Dover edition 1960].
  • Robert D. Richtmyer and K. W. Morton, Difference Methods for Initial Value Problems, 2nd ed., Wiley, New York, 1967.

External links

For other uses, see Mathematica (disambiguation). ...

  Results from FactBites:
 
Finite difference - definition of Finite difference in Encyclopedia (197 words)
One is a finite analogue to differential calculus.
The approach taken by finite difference methods for partial differential equations is to approximate differential operators such as u'(x) by a difference operator such as (u(x+h)-u(x))/h for some small but finite h.
The term "truncation error" reflects the fact that a difference operator can be viewed as a finite part of the infinite Taylor series of the differential operator.
  More results at FactBites »


 
 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms, 1022, m