词条 | Finite difference |
释义 |
A finite difference is a mathematical expression of the form {{math|f (x + b) − f (x + a)}}. If a finite difference is divided by {{math|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. Certain recurrence relations can be written as difference equations by replacing iteration notation with finite differences. Today, the term "finite difference" is often taken as synonymous with finite difference approximations of derivatives, especially in the context of numerical methods.[1][2][3] Finite difference approximations are finite difference quotients in the terminology employed above. Finite differences have also been the topic of study as abstract self-standing mathematical objects, such as in works by George Boole (1860), L. M. Milne-Thomson (1933), and Károly Jordan (1939), tracing its origins back to one of Jost Bürgi's algorithms ({{circa|1592}}) and others including Isaac Newton. In this viewpoint, the formal calculus of finite differences is an alternative to the calculus of infinitesimals.[4] Forward, backward, and central differencesThree forms are commonly considered: forward, backward, and central differences.[1][2][3] A forward difference is an expression of the form Depending on the application, the spacing {{mvar|h}} may be variable or constant. When omitted, {{mvar|h}} is taken to be 1: {{math|Δ[ f ](x) {{=}} Δ1[ f ](x)}}. A backward difference uses the function values at {{mvar|x}} and {{math|x − h}}, instead of the values at {{math|x + h}} and {{mvar|x}}: {{anchor|central difference}}Finally, the central difference is given by Relation with derivatives{{anchor|finite difference approximation}}The derivative of a function {{mvar|f}} at a point {{mvar|x}} is defined by the limit. If {{mvar|h}} has a fixed (non-zero) value instead of approaching zero, then the right-hand side of the above equation would be written Hence, the forward difference divided by {{mvar|h}} approximates the derivative when {{mvar|h}} is small. The error in this approximation can be derived from Taylor's theorem. Assuming that {{mvar|f}} is differentiable, we have The same formula holds for the backward difference: However, the central (also called centered) difference yields a more accurate approximation. If {{mvar|f}} is twice differentiable, The main problem{{citation needed|date=December 2017}} with the central difference method, however, is that oscillating functions can yield zero derivative. If {{math|f (nh) {{=}} 1}} for {{mvar|n}} odd, and {{math|f (nh) {{=}} 2}} for {{mvar|n}} even, then {{math|f ′(nh) {{=}} 0}} if it is calculated with the central difference scheme. This is particularly troublesome if the domain of {{mvar|f}} is discrete. 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).[1][2][3] {{see also|Symmetric derivative}}Higher-order differences{{more citations needed|date=July 2018}}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 {{math|f ′(x + {{sfrac|h|2}})}} and {{math|f ′(x − {{sfrac|h|2}})}} and applying a central difference formula for the derivative of {{math|f ′}} at {{mvar|x}}, we obtain the central difference approximation of the second derivative of {{mvar|f}}:
Similarly we can apply other differencing formulas in a recursive manner.
More generally, the {{mvar|n}}th order forward, backward, and central differences are given by, respectively,
or for {{math|h {{=}} 1}},
These equations use binomial coefficients after the summation sign shown as {{math|({{su|p=n|b=i|a=c}})}}. Each row of Pascal's triangle provides the coefficient for each value of {{mvar|i}}. Note that the central difference will, for odd {{mvar|n}}, have {{mvar|h}} 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 {{math|δn[ f ](x − {{sfrac|h|2}})}} and {{math|δn[ f ](x + {{sfrac|h|2}})}}. Forward differences applied to a sequence 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 techniques; by contrast, the forward difference series can be extremely hard to evaluate numerically, because the binomial coefficients grow rapidly for large {{mvar|n}}. The relationship of these higher-order differences with the respective derivatives is straightforward, 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 {{mvar|h}}. However, the combination approximates {{math|f ′(x)}} up to a term of order {{math|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. Arbitrarily sized kernelsUsing 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.[5] 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 these notes. The Finite Difference Coefficients Calculator constructs finite difference approximations for non-standard (and even non-integer) stencils given an arbitrary stencil and a desired derivative order. Properties
Finite difference methods{{main article|Finite difference method}}An important application of finite differences is in numerical analysis, especially in numerical 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. An open Python package of the finite difference method for arbitrary accuracy and order in any dimension on uniform and non-uniform grids is the [https://github.com/maroba/findiff Findiff project]. Newton's seriesThe Newton series consists of the terms of the Newton forward difference equation, named after Isaac Newton; in essence, it is the Newton interpolation formula, first published in his Principia Mathematica in 1687,[6] namely the discrete analog of the continuum Taylor expansion, {{Equation box 1|indent =: |equation = |cellpadding= 6 |border |border colour = #0073CF |background colour=#F9FFF7}} which holds for any polynomial function {{mvar|f}} and for many (but not all) analytic functions (It does not hold when {{mvar|f}} is exponential type . This is easily seen, as the sine function vanishes at integer multiples of ; 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 is the binomial coefficient, and is the "falling factorial" or "lower factorial", while the empty product {{math|(x)0}} is defined to be 1. In this particular case, there is an assumption of unit steps for the changes in the values of {{math|x, h {{=}} 1}} of the generalization below. Note the formal correspondence of this result to Taylor's theorem. Historically, this, as well as the Chu–Vandermonde identity, (following from it, and corresponding to the binomial theorem), are included in the observations that matured to the system of umbral calculus. To illustrate how one may use Newton's formula in actual practice, consider the first few terms of doubling the Fibonacci sequence {{math|f {{=}} 2, 2, 4, ...}} One can find a polynomial that reproduces these values, by first computing a difference table, and then substituting the differences that correspond to {{math|x0}} (underlined) into the formula as follows, For the case of nonuniform steps in the values of {{mvar|x}}, Newton computes the divided differences, the series of products, and the resulting polynomial is the scalar product,[7] . In analysis with {{mvar|p}}-adic numbers, Mahler's theorem states that the assumption that {{mvar|f}} is a polynomial function can be weakened all the way to the assumption that {{mvar|f}} 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 Calculus of finite differencesThe forward difference can be considered as an operator, called the {{vanchor|difference operator}}, which maps the function {{mvar|f}} to {{math|Δh[ f ]}}.[8][9] This operator amounts to where {{math|Th}} is the shift operator with step h, defined by {{math|Th[ f ](x) {{=}} f (x + h)}}, and {{mvar|I}} is the identity operator. The finite difference of higher orders can be defined in recursive manner as {{math|Δ{{su|b=h|p=n}} ≡ Δh(Δ{{su|b=h|p=n − 1}})}}. Another equivalent definition is {{math|Δ{{su|b=h|p=n}} {{=}} [Th − I]n}}. The difference operator {{math|Δh}} is a linear operator, as such it satisfies {{math|Δh[αf + βg](x) {{=}} α Δh[ f ](x) + β Δh[g](x)}}. It also satisfies a special Leibniz rule indicated above, {{math|Δh(f (x)g(x)) {{=}} (Δhf (x)) g(x+h) + f (x) (Δhg(x))}}. Similar statements hold for the backward and central differences.Formally applying the Taylor series with respect to {{mvar|h}}, yields the formula where {{mvar|D}} denotes the continuum derivative operator, mapping {{mvar|f}} to its derivative {{math|f ′}}. The expansion is valid when both sides act on analytic functions, for sufficiently small {{mvar|h}}. Thus, {{math|Th {{=}} ehD}}, and formally inverting the exponential yields 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 {{math|f ′(x)}} mentioned at the end of the section Higher-order differences. The analogous formulas for the backward and central difference operators are The calculus of finite differences is related to the umbral calculus of combinatorics. This remarkably systematic correspondence is due to the identity of the commutators of the umbral quantities to their continuum analogs ({{math|h → 0}} limits), {{Equation box 1|indent =: |equation = |cellpadding= 6 |border |border colour = #0073CF |background colour=#F9FFF7}} A large number of formal differential relations of standard calculus involving functions {{math|f (x)}} thus map systematically to umbral finite-difference analogs involving {{math|f (xT{{su|b=h|p=−1}})}}. For instance, the umbral analog of a monomial {{mvar|xn}} is a generalization of the above falling factorial (Pochhammer k-symbol), so that hence the above Newton interpolation formula (by matching coefficients in the expansion of an arbitrary function {{math|f (x)}} in such symbols), and so on. For example, the umbral sine is As in the continuum limit, the eigenfunction of {{math|{{sfrac|Δh|h}}}} also happens to be an exponential, 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.[10] This umbral exponential thus amounts to the exponential generating function of the Pochhammer symbols. Thus, for instance, the Dirac delta function maps to its umbral correspondent, the cardinal sine function, and so forth.[11] Difference equations can often be solved with techniques very similar to those for solving differential equations. 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 operatorsAnalogous to rules for finding the derivative, we have:
All of the above rules apply equally well to any difference operator, including {{math|∇}} as to {{math|Δ}}.
or
See references.[12][13][14][15] Generalizations
where {{math|μ {{=}} (μ0,… μN)}} 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 {{math|μk}} depend on point {{mvar|x}}: {{math|μk {{=}} μk(x)}}, thus considering weighted finite difference. Also one may make the step {{mvar|h}} depend on point {{mvar|x}}: {{math|h {{=}} h(x)}}. Such generalizations are useful for constructing different modulus of continuity.
Finite difference in several variablesFinite differences can be considered in more than one variable. They are analogous to partial derivatives in several variables. Some partial derivative approximations are: Alternatively, for applications in which the computation of {{mvar|f}} is the most costly step, and both first and second derivatives must be computed, a more efficient formula for the last case is since the only values to compute that are not already needed for the previous four equations are {{math|f (x + h, y + k)}} and {{math|f (x − h, y − k)}}. See also{{columns-list|colwidth=22em|
}} References1. ^1 2 {{cite book|author1=Paul Wilmott|author2=Sam Howison|author3=Jeff Dewynne|title=The Mathematics of Financial Derivatives: A Student Introduction|year=1995|publisher=Cambridge University Press|isbn=978-0-521-49789-3|page=137}} * Richardson, C. H. (1954): An Introduction to the Calculus of Finite Differences (Van Nostrand (1954) online copy2. ^1 2 {{cite book|author=Peter Olver|author-link=Peter J. Olver|title=Introduction to Partial Differential Equations|year=2013|publisher=Springer Science & Business Media|isbn=978-3-319-02099-0|page=182}} 3. ^1 2 {{cite book|author=M Hanif Chaudhry|title=Open-Channel Flow|year=2007|publisher=Springer|isbn=978-0-387-68648-6|pages=369}} 4. ^Jordán, op. cit., p. 1 and Milne-Thomson, p. xxi. Milne-Thomson, Louis Melville (2000): The Calculus of Finite Differences (Chelsea Pub Co, 2000) {{ISBN|978-0821821077}} 5. ^{{cite journal|last1=Fraser|first1=Duncan C.|title=On the Graphic Delineation of Interpolation Formulæ|journal=Journal of the Institute of Actuaries|date=1 January 1909|volume=43|issue=2|pages=235–241|url=https://archive.org/stream/journal43instuoft#page/236/mode/2up|accessdate=17 April 2017}} 6. ^Newton, Isaac, (1687). [https://books.google.com/books?id=KaAIAAAAIAAJ&dq=sir%20isaac%20newton%20principia%20mathematica&as_brr=1&pg=PA466#v=onepage&q&f=false Principia, Book III, Lemma V, Case 1] 7. ^Richtmeyer, D. and Morton, K.W., (1967). Difference Methods for Initial Value Problems, 2nd ed., Wiley, New York. 8. ^Boole, George, (1872). A Treatise On The Calculus of Finite Differences, 2nd ed., Macmillan and Company. [https://archive.org/details/cu31924031240934 On line]. Also, [Dover edition 1960] 9. ^Jordan, Charles, (1939/1965). "Calculus of Finite Differences", Chelsea Publishing. On-line: [https://books.google.com/books?hl=en&lr=&id=3RfZOsDAyQsC&oi=fnd&pg=PA1&ots=AqSuAgOKs3&sig=fzPpAdvnzp7sG6PorqIe5qFjD2Q#v=onepage] 10. ^{{cite journal |last =Zachos|first =C.| authorlink =Cosmas Zachos| year =2008| title =Umbral Deformations on Discrete Space-Time | journal =International Journal of Modern Physics A| volume =23 | issue=13| pages =2005–2014 | doi = 10.1142/S0217751X08040548 | url =https://arxiv.org/pdf/0710.2306| arxiv =0710.2306| bibcode =2008IJMPA..23.2005Z}} 11. ^{{Cite journal | last1 = Curtright | first1 = T. L. | last2 = Zachos | first2 = C. K. | doi = 10.3389/fphy.2013.00015 | title = Umbral Vade Mecum | journal = Frontiers in Physics | volume = 1 | year = 2013 | pmid = | pmc = | arxiv = 1304.0429 | bibcode = 2013FrP.....1...15C }} 12. ^{{cite book|last=Levy|first=H.|author2=Lessman, F.|title=Finite Difference Equations|year=1992|publisher=Dover|isbn=0-486-67260-3}} 13. ^Ames, W. F., (1977). Numerical Methods for Partial Differential Equations, Section 1.6. Academic Press, New York. {{ISBN|0-12-056760-1}}. 14. ^Hildebrand, F. B., (1968). Finite-Difference Equations and Simulations, Section 2.2, Prentice-Hall, Englewood Cliffs, New Jersey. 15. ^{{Cite journal | first1 = Philippe | last1 = Flajolet | authorlink2 = Robert Sedgewick (computer scientist) | first2 = Robert | last2 = Sedgewick | url = http://algo.inria.fr/flajolet/Publications/FlSe95.pdf | title = Mellin transforms and asymptotics: Finite differences and Rice's integrals | journal=Theoretical Computer Science | volume = 144 | issue = 1–2 | year = 1995 | pages = 101–124 | doi = 10.1016/0304-3975(94)00281-M | postscript = {{inconsistent citations}}}}.
External links
6 : Finite differences|Numerical differential equations|Mathematical analysis|Factorial and binomial topics|Linear operators in calculus|Numerical analysis |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。