finite difference
(mathematics) The difference between the values of a function at two discrete points, used to approximate the derivative of the function.
|
Results for finite difference
|
On this page:
|
(mathematics) The difference between the values of a function at two discrete points, used to approximate the derivative of the function.
A finite difference is a mathematical expression of the form f(x + b) − f(x + a). If a finite difference is divided by b − a, 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.
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.
Only three forms are commonly considered: forward, backward and central differences.
A forward difference is an expression of the form
 = f(x + h) - f(x). \,](http://content.answers.com/main/content/wp/en/math/f/c/7/fc71b5687b55831d8c37d75ed7f67803.png)
Depending on the application, the spacing h is may be variable or held constant.
A backward difference uses the function values at x and x − h, instead of the values at x + h and x:
 = f(x) - f(x-h).](http://content.answers.com/main/content/wp/en/math/a/c/0/ac0bbebbe82390d4f23c47ac85a9086b.png)
Finally, the central difference is given by
The derivative of a function f at a point x is defined by the limit

If h has a fixed (non-zero) value, instead of approaching zero, then the right-hand side is
}{h}.](http://content.answers.com/main/content/wp/en/math/7/5/7/757400f2745c7cc6ba4f4e43baf4cabf.png)
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
}{h} - f'(x) = O(h) \quad (h \to 0).](http://content.answers.com/main/content/wp/en/math/4/7/5/475d8465a4ea17726430ae3cb71ca792.png)
The same formula holds for the backward difference:
}{h} - f'(x) = O(h).](http://content.answers.com/main/content/wp/en/math/4/1/5/415fabcde94e8a24b84ab476254fe50d.png)
However, the central difference yields a more accurate approximation. Its error is proportional to square of the spacing (if f is twice continuously differentiable):
}{h} - f'(x) = O(h^{2}) . \!](http://content.answers.com/main/content/wp/en/math/7/a/4/7a45867fa8cb69b0122039189f0a581c.png)
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'(x - h / 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:
}{h^2} = \frac{f(x+h) - 2 f(x) + f(x-h)}{h^{2}} .](http://content.answers.com/main/content/wp/en/math/1/9/5/1953a53dd7b94b8f9a1a3dff7d3d322b.png)
More generally, the nth-order forward, backward, and central differences are respectively given by:
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](x - h / 2) and δn[f](x + h / 2).
The relationship of these higher-order differences with the respective derivatives is very straightforward:
}{h^n} + O(h^2).](http://content.answers.com/main/content/wp/en/math/3/9/3/393e90ca5911b6e9458ecf95592a4a68.png)
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
 - \frac12 \Delta_h^2[f](x)}{h} = - \frac{f(x+2h)-4f(x+h)+3f(x)}{2h}](http://content.answers.com/main/content/wp/en/math/f/c/7/fc70d2c77bc379db24104f3ec369d28d.png)
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.
If necessary, the finite difference can be centered about any point by mixing forward, backward, and central differences.
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.
Common applications of the finite difference method are in computational science and engineering disciplines, such as thermal engineering, fluid mechanics, etc.
The forward difference can be considered as a difference operator, which maps the function f to Δh[f]. This operator satisfies

where Th is the shift operator with step h, defined by Th[f](x) = f(x + h), and I is an identity operator.
Finite difference of higher orders can be defined in recursive manner as
or,
in operators notation,
Another possible (and equivalent) defintion is ![\Delta^n_h = [T_h-I]^n.](http://content.answers.com/main/content/wp/en/math/d/7/b/d7bac350e0f122c3f788176280cd75a8.png)
The difference operator Δh is linear and satisfies Leibniz rule. Similar statements hold for the backward and central difference.
Taylor's theorem can now be expressed by the formula

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

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.
The analogous formulas for the backward and central difference operators are
A generalized finite difference is usually defined as
 = \sum_{k=0}^N \mu_k f(x+kh),](http://content.answers.com/main/content/wp/en/math/7/0/8/708de88797ca34cc08637cae669d4868.png)
where μ = (μ0,...,μ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.
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)
Some good "finite difference" pages on the web:
Math mathworld.wolfram.com |
Join the WikiAnswers Q&A community. Post a question or answer questions about "finite difference" at WikiAnswers.
Copyrights:
![]() | Sci-Tech Dictionary. McGraw-Hill Dictionary of Scientific and Technical Terms. Copyright © 2003, 1994, 1989, 1984, 1978, 1976, 1974 by McGraw-Hill Companies, Inc. All rights reserved. Read more | |
![]() | Wikipedia. This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Finite difference". Read more |
Mentioned In: