difference equation models of differential equations

3

Click here to load reader

Upload: ronald-e-mickens

Post on 26-Jun-2016

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Difference equation models of differential equations

MUM Cornput. Modelling, Vol. I I. pp. 528-530, 1988 089%7177/X8 $3.00 + 0.00

Printed in Great Britam Pergamon Press plc

LIE METHODS IN MATHEMATICAL MODELLING

DIFFERENCE EQUATION MODELS OF DIFFERENTIAL EQUATIONS

Ronald E. Mickens

Departments of Physics and Mathematics Atlanta University, Atlanta, Georgia 30314

Abstract. For purposes of numerical integration, differential equations are often modeled by finite-differences. However, these models raise a number of questions related to how the finite-difference schemes are to be constructed, the magnitude of the local truncation errors, the existence and elimination of numerical instabilities, etc. We prove a theorem which states that to each ordinary differential equation there corresponds an "exact" finite-difference scheme, i.e., the local truncation error is zero. This means that on the computational grid or lattice, the solution to the difference equation is exactly equal to the solution to the differential equation. We use the theorem to show, by means of a number of explicit examples, that the usual rules for constructing finite-difference schemes are "wrong." Several modeling principles are presented, as well as their application to partial differential equations.

Keywords~. Difference equations; differential equations; numerical analysis; mathematical modeling.

INTRODUCTION

Differential equations arise in the mathemati- cal modeling and analysis of dynamic systems (Drazin, 1983; Potter, 1973). The usual situa- tion is that seldom are general exact analyti- cal solutions known. Thus, interest may center on special solutions, i.e., singular or equili- brium solutions, traveling wave solutions, etc. Often aooroximations to exact solutions can be determined using perturbation procedures and related expansion techniques (Mickens, 1981; Nayfeh, 1973; Jordan and‘Smith, 1977). Numeri- cal integration of the differential equations can also be done usinq a varietv of orocedures: one of particular importance is"the use of finite-differences to model the relevant dif- ferential equations (Potter, 1973; Richtmyer and Morton, 1967). However, finite-difference techniques have inherent within them a number of potential problems.

First, the whole modeling procedure is non- unique. For example, the derivative dx(t)/dt can be replaced by any one of the following expressions (Potter, 1973)

Xk+l-xk + O(h) h 3 Xk+l-xk-l + o(h2)

Zh 3 (1)

where h = At is the step-size and xk = x(hk).

Note that the derivative is always modeled non- locally, i.e., its finite-difference equiva- lence is "spread" over two or more grid points.

However, nonlinear terms, such as x2, can be

represented either locally, i.e., as x:, or

nonlocally, e.g., as xk+lxk (Mickens, 1984).

Second, the inappropriate modeling of a dif- ferential equation (DE) by a difference equation (AE) can lead to both "ghost solutions" (Ushiki, 1982) and numerical instabilities

(Richtmyer and Morton, 1967). In fact, care- less procedures can produce AE models of DE's such that chaotic behavior appears for all step-sizes (Ushiki, 1982). All of these prob- lems are related to the issues of convergence, stability and consistency which arise in the use and analysis of finite-difference schemes (Richtmyer and Morton, 1967).

In the following, we prove that every ordinary DE has a corresponding "exact" AE model such that on the computational grid or lattice the solution to the AE is exactly equal to the solution to the DE. Further, this holds inde- pendently of the step-size. We then use this result to show, by means of a number of explicit examples, that the usual rules for constructing AE models of DE's are "wrong." We conclude with the listing of several modeling principles. The results presented here are an extension of previous work by the author (Mickens, 1984).

EXACT DIFFERENCE SCHEMES

Consider a first-order ordinary differential equation (ODE)

dx x = f(t,x), x0 = x(t,), (2)

and a first-order ordinary difference equation (OAF)

'k+l = g(k,xk). (3)

Let tk,' hk, for h > 0. Equations (2) and (3) are said to have the same general solution if and only if

'k = x(hk), (4)

for arbitrary constant values of h (Potts, 1982a; Mickens, 1984). An exact difference scheme is one for which the solution to the -has the same general solution as the asso- ciated ODE.

528

Page 2: Difference equation models of differential equations

Proc. 6th Int. Conf. on Mathematical Modeliing 529

We now prove an interesting theorem: Every ODE has an exact difference scheme. The proof con- sists of the actual construction of such a dif- ference scheme. Let f(x,t), in Eq. (2) have the necessary properties such that a solution, x(t) = @(xO,tO,t), exists. Now, the "group

property" (Nemytski and Stepanov, 1969) of the solutions to Eq. (2) gives

x(t+h) = $[x(t),t,t+h], (5)

where h is an arbitrary constant. If we now make the identifications

t-tt k

= hk, x(t) + x k = x(hk), (6)

then Eq. (5) becomes

'k+l = $[xk,hk,h(k+l)]. (7)

This is the required OAE which has the same general solution as Eq. (2).

Note that we have only obtained an existence theorem, i.e., exact finite-difference schemes exists for ODE's. Consequently, in practice, the theorem itself cannot be used to directly construct an exact difference scheme for a given ODE. However, we can apply this theorem to differential equations with known solutions and use these results to study the various possible modeling behaviors of derivatives and nonlinear terms. From this exercise, we can obtain useful information on modeling rules for realistic situations where exact solutions are not known a priori.

EXAMPLES

Using the results of the previous section, we now consturct exact difference schemes for a number of ODE's. While we do not give the actual details of the construction for each equation, it should be obvious from Eq. (7) how this is done. In summary: (i) The general solution to the initial value problem for the ODE is obtained, i.e., x(t) = $(xo,tO,t).

(ii) The substitutions, x(t) + x k+l> to -f hk,

t + h(k+l), then gives the desired OAE.

In the following, we list the ODE and its best difference scheme; h,w, etc. are constants and P(t) is an integrable function of t.

dx = -xx dt ’

e = P(t)x dt 3

P(z)dz - l]xk/h;

$ = P(t)x2,

Xk+l-xk h(k+l) ---=c h/k h P(z)dz/h]xkxk+,;

dx z = x(1-x);

(aa)

(8b)

(9a)

(gb)

(loa)

(lob)

(lla)

Xk+l-xk _ ___ - Xktl(l-xk); (l-edh)

-=-A, dt

'k+Kxk :i Jxk+l+5. ___- ] 2 ’

$$ = -AxLN(;),

(eehh_,)

Xk+,-xk _ _Ax l-($)

h 1

h I; dx 1

2x+x=;,

(lib)

2a)

2b)

3a)

(13b)

(143)

; (lab)

d2x dx -=xz. dt2

Xk+l-2xk+xk-l = h

Ah-1 (+)h

d2x 2 -+0x=0, dt2

Xk+l-2xk+xk-l + w2x

(-)sin2(a) 4 k = 0;

2 2 0

&_ 3 dt ' ’

2 'k+lxk'

dx x = tan x,

Xk+l-xk _ sin-'[eh sin x ] - k

x k --

h h

(Isa)

(15b)

(16a)

(16b)

(17a)

(17b)

(18a)

18b)

MODELING RULES

Given an ODE, how should we proceed to construct a finite-difference model? The following rules/ ideas are based on both analytic and numerical studies of a large number of linear and non- linear ODE's. The reader can refer to the results of the last section to verify directly certain of these procedures.

Rule 1. The order of the AE must be equal to theder of the DE. Violation of this rule means that "ghost solutions" will appear (Ushiki, 1982).

Rule 2 --. Nonlinear (power) terms should be modeled nonlocally on the computational grid. See Eqs. (lo), (11) and (17) and Potts (1982b, 1987).

Page 3: Difference equation models of differential equations

530 Proc. 6th Int. Confl on Mathemutical Modelling

Rule 3 / Denominator functions in the modeling of derivatives must, in general, be expressed in terms of more complicated functions of the step-size than those conventionally used (Richtmyer and Morton, 1967). See Eqs. (8), (ll), (14), (15) and (16).

Rule 4a. The number of singular points (equi- librium solutions) of the O&E and ODE must be the same. It should be indicated that a AE model can have moresingular points than the ODE. This can lead to numerical instabilities.

Rule 4b. The stability properties of the mr points of the OAE must be the same as the corresponding singular points of the ODE. Violation of this rule may lead to chaotic behavior (Ushiki, 1982).

Rule 5 -. Special or particular solutions of the OAE should correspond to special or particular solutions of the ODE. In fact, they should have the "same general solution" as defined above.

PARTIAL DIFFERENTIAL EQUATIONS

The above rules have been presented for ODE's. However, they may also be applied to the con- struction of AE models of partial differential equations (PDE). "Exact difference schemes" may not exist for PDE's. This is a consequence of the fact that the concept of a general solu- tion to PDE's is ambiguous. We do expect the existence of "exact difference schemes" for special classes of PDE's (Mickens, 1984).

As an illustration of the modeling process, consider the nonlinear diffusion equation

Ut = uu

xx' u = u(x,t). (19)

which has the following special solution

$) = ($)x2 + BIX + B2 , a, - at (20)

where (~x.cx,,B~.B~) are arbitrary constants.

Equation (19) can be modeled by the following explicit difference scheme

U (21) "',u; _ ++l ~l;r:";u;-ll ,

d

where t n = (At)n and xmL= (Ax)m. An easy cal-

culation, using the method of separation of variables, shows that Eq. (21) has also the

special solution given by u/=u (S)[(*x)m,(At)n].

Note that this AE model satisfies all the modeling rules of the previous section. While we do not expect Eq. (21) to be an exact dif- ference scheme for Eq. (19), it clearly is better than what would be obtained using con- ventional techniques (Richtmyer and Morton, 1967).

It should be indicated that At and Ax in Eq. (21) are not related to each other. However, in general, for PDE's, this will not be the case, i.e., a functional relationship will hold between the various step-sizes (Mickens, 1984).

CONCLUSION

The major advantage of obtaining exact AE models of DE's is that the usual problems relating to convergence, stability and consis- tency do not arise. In the absence of proce- dures for constructing exact difference schemes, the use of the above stated modeling rules will certainly lead to AE’s that have a number of desireable properties which would not be expected to hold true for the usual modeling techniques. A very important area where these procedures might be applied is to nonlinear PDE's which have soliton solutions (Drazin, 1983).

REFERENCES

Drazin, P. G. (1983). Solitons. Cambridge University Press, London.

Jordan, D. W. and P. Smith (1977). Nonlinear Ordinary Differential Equations. Clarendon Press, Oxford.

Mickens, R. E. (1981). Nonlinear Oscillations. Cambridge University Press, London.

Mickens, R. E. (1984). Difference equation models of differential equations having zero local truncation errors. In I. W. Knowles and R. T. Lewis (Eds.), Differen- tial Equations. North-Holland, Amsterdam, pp. 445-449.

Nayfeh, A. H. (1973). Perturbation Methods. Wiley, New York.

Potter, D. (1973). Computational Physics Wiley, New York.

Potts, R. B. (1982a). Differential and dif- ference equations. Am. Math. Mon., 89, 402-407.

Potts, R. B. (1982b). Best difference equation approximation to Duffing's equation. J- Austral. Math. Sot. Ser. B, 23, 349-356.

Potts, R. B. (19877. Weierstrass elliptic dif- ference equations. Bull. Austral. Math.

35 43-48. , sot., Nemytski, V. V. and V. V. Stepanov (1969).

Qualitative Theory of Differential Equa- tions. Princeton University Press; Princeton, NJ.

Richtmver, R. D. and K. W. Morton (1967). Difference Methods for Initiai-Value Problems, 2nd ed. Wiley-Interscience, New York.

Ushiki, S. (1982). Central difference scheme and chaos. Physica, D4, 407-424.