Jump to content

Nonstandard finite difference scheme: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m Adding category Category:Mathematics (using HotCat)
Cleaned up the article a bit (especially formulae)
Line 8: Line 8:




==Basic Idea==


'''Basic Idea:'''<br />
A finite difference (FD) model of a differential equation (DE) can be formed by simply replacing the derivatives with FD approximations. But this is a naive "translation." If
A finite difference (FD) model of a differential equation (DE) can be formed by simply replacing the derivatives with FD approximations. But this is a naive "translation." If
we literally translate from English to Japanese by making a one-to-one correspondence between words, the original meaning is often lost. Similarly the naive FD model of a DE can be very different from the original DE, because the FD model is a difference equation with solutions that may be quite different from solutions of the DE. For a more technical definition see <ref name=Mickens2000/>.
we literally translate from English to Japanese by making a one-to-one correspondence between words, the original meaning is often lost. Similarly the naive FD model of a DE can be very different from the original DE, because the FD model is a difference equation with solutions that may be quite different from solutions of the DE. For a more technical definition see Mickens 2000.<ref name=Mickens2000/>

A nonstandard (NS) finite difference model, is a free and more accurate "translation" of a differential equation. For example in a parameter (call it ''v'') in the DE may take take another value, ''u'', in the NS-FD model.<br />


'''Example of a Nonstandard Finite Difference Model:'''<br />
As an example let us model the wave equation,<br />

<big>[ ∂<sub>t</sub><sup>2</sup> - v<sup>2</sup> ∂<sub>x</sub><sup>2</sup> ] ψ(x,t)= 0</big>
<br />

The naive finite difference model, which we now call the standard (S) FD model is found by approximating the derivatives with FD approximations. The central second order FD approximation of the first derivative is <br />

Approximating both derivatives of the wave equation in this way leads to the S-FD model, <br />


<big>ƒ'(x) ≅ {{frac|[ƒ(x+∆x/2)-ƒ(x-∆x/2)]|∆x}}</big>. <br />

For simplicity let us write {{math|d<sub>x</sub>ƒ(x)}} = {{math|ƒ(x+∆x/2)-ƒ(x-∆x/2)}}<br />

Applying the above FD approximation to ƒ'(x) we can derive the FD approximation for ƒ''(x). <br />

<big> ƒ"(x) ≅ {{frac|d<sub>x</sub><sup>2</sup>(x)|∆x<sup>2</sup>}} </big>, <br />

where {{math|d<sub>x</sub><sup>2</sup> ƒ(x)}} = {{math|ƒ(x+∆x) + ƒ(x-∆x) - 2ƒ(x)}}. This is easy
to show by repeating the action of d<sub>x</sub> on ƒ twice. <br />

Approximating both derivatives of the wave equation leads to the S-FD model, <br />

<big>[ d<sub>t</sub><sup>2</sup> - (v∆t/∆x)<sup>2</sup> d<sub>x</sub><sup>2</sup> ]ψ(x,t)= 0</big> <br />

If you insert a solution to the wave equation φ(x,t) = {{math|e<sup>i(kx-ωt)</sup>}} ( by definition ω / ''k'' = ''v'' )into the S-FD model you find that <br />

<big>[ d<sub>t</sub><sup>2</sup> - (v∆t/∆x)<sup>2</sup> d<sub>x</sub><sup>2</sup> ]φ(x,t)= ε. </big> <br />

In general ε 0 because the solution of the FD approximation to the wave equation is not the same as the wave equation itself. <br />

To construct a NS-FD model which has the same solution as the wave equation, put a free parameter, call it ''u'', in place of {{math|v∆t/∆x}} and try to find a value of ''u'' which makes ε = 0.
It turns out that this value of ''u'' is <br />



A nonstandard (NS) finite difference model, is a free and more accurate "translation" of a differential equation. For example in a parameter (call it ''v'') in the DE may take take another value ''u'' in the NS-FD model.
<big> ''u'' = {{math|sin(ω∆t/2) / sin(k∆x/2) }}</big>. <br />


Thus an exact nonstandard finite difference model of the wave equation is <br />


==Example of a Nonstandard Finite Difference Model==
<big>[ d<sub>t</sub><sup>2</sup> - (v∆t/∆x)<sup>2</sup> d<sub>x</sub><sup>2</sup> ]ψ(x,t)= 0</big> . <br />
As an example let us model the wave equation,
: <math> (\partial_t^2-v^2 \partial_x^2 ) \Psi(x,t) = 0 .</math>
The naive finite difference model, which we now call the standard (S) FD model is found by approximating the derivatives with FD approximations. The central second order FD approximation of the first derivative is
: <math>f'(x) \approx \frac{f(x+ \Delta x/2)-f(x- \Delta x/2)}{\Delta x}. </math>
Applying the above FD approximation to <math> f '(x)</math>, we can derive the FD approximation for <math>f '' (x)</math>,
: <math> f''(x) \approx \frac{\text{d}_x^2 f(x)}{\Delta x^2}, </math>
where we have introduced the shortcut <math> \text{d}_x f(x) = f(x+\Delta x/2) - f(x-\Delta x/2)</math> for simplicity such that <math> \text{d}_x{}^2 f(x) = f(x+\Delta x) + f(x-\Delta x) -2 f(x)</math> which can be check by applying <math> \text{d}_x </math> on <math>f(x)</math> twice.
Approximating both derivatives in the wave equation, leads to the S-FD model,
: <math> \left[\text{d}_t^2 - (v \Delta t/\Delta x)^2 \text{d}_x^2 \right] \Psi(x,t) = 0. </math>
If you insert the solution <math> \phi(x,t) = e^{i (kx -\omega t)} </math> of the wave equation (with <math> \omega/k = v </math>)into the S-FD model you find that
: <math> \left[\text{d}_t^2 - (v \Delta t/\Delta x)^2\text{d}_x^2 \right] \phi(x,t) = \epsilon.
</math>
In general <math>\epsilon \neq 0</math> because the solution of the FD approximation to the wave equation is not the same as the wave equation itself.


To construct a NS-FD model which has the same solution as the wave equation, put a free parameter, call it ''u'', in place of <math>v \Delta t/ \Delta x</math> and try to find a value of ''u'' which makes <math>\epsilon = 0 </math>.
Further details of this, and extensions of to two and three dimensions as well as to Maxwell's equations can be found in
It turns out that this value of ''u'' is
: <math>u = \frac{\sin(\omega \Delta t/2)}{\sin(k \Delta x/2) }. </math>
Thus an exact nonstandard finite difference model of the wave equation is
: <math> \left[ \text{d}_t^2 - (v\Delta t/\Delta x)^2 \text{d}_x^2 \right] \Psi(x,t) =0. </math>
Further details and extensions of to two and three dimensions as well as to Maxwell's equations can be found in Cole 2002.
<ref name=Cole2002/>
<ref name=Cole2002/>



Revision as of 12:00, 31 July 2010

Nonstandard finite difference schemes is a general set of methods in numerical analysis that gives numerical solutions to differential equations by constructing a discrete model. The general rules for such schemes are not precisely known.[1] [2]


Basic Idea

A finite difference (FD) model of a differential equation (DE) can be formed by simply replacing the derivatives with FD approximations. But this is a naive "translation." If we literally translate from English to Japanese by making a one-to-one correspondence between words, the original meaning is often lost. Similarly the naive FD model of a DE can be very different from the original DE, because the FD model is a difference equation with solutions that may be quite different from solutions of the DE. For a more technical definition see Mickens 2000.[1]

A nonstandard (NS) finite difference model, is a free and more accurate "translation" of a differential equation. For example in a parameter (call it v) in the DE may take take another value u in the NS-FD model.


Example of a Nonstandard Finite Difference Model

As an example let us model the wave equation,

The naive finite difference model, which we now call the standard (S) FD model is found by approximating the derivatives with FD approximations. The central second order FD approximation of the first derivative is

Applying the above FD approximation to , we can derive the FD approximation for ,

where we have introduced the shortcut for simplicity such that which can be check by applying on twice. Approximating both derivatives in the wave equation, leads to the S-FD model,

If you insert the solution of the wave equation (with )into the S-FD model you find that

In general because the solution of the FD approximation to the wave equation is not the same as the wave equation itself.

To construct a NS-FD model which has the same solution as the wave equation, put a free parameter, call it u, in place of and try to find a value of u which makes . It turns out that this value of u is

Thus an exact nonstandard finite difference model of the wave equation is

Further details and extensions of to two and three dimensions as well as to Maxwell's equations can be found in Cole 2002. [2]

References

  1. ^ a b Mickens, R.E. (2000). Applications of Nonstandard Finite Difference Schemes. World Scientific.
  2. ^ a b JB Cole, High Accuracy Yee Algorithm Based on Nonstandard Finite Differences: New Developments and Verifications, IEEE Trans. on Antennas and Propagation, vol. 50, no. 9, pp. 1185-1191 (2002)