• No results found

On the convergence of a finite difference scheme for a second order differential equation containing nonlinearly a first derivative

N/A
N/A
Protected

Academic year: 2019

Share "On the convergence of a finite difference scheme for a second order differential equation containing nonlinearly a first derivative"

Copied!
8
0
0

Loading.... (view fulltext now)

Full text

(1)

ON THE CONVERGENCE OF A FINITE DIFFERENCE SCHEME FOR A SECOND ORDER DIFFERENTIAL EQUATION

CONTAINING NONLINEARLY A FIRST DERIVATIVE

S. MCKEE, JOS´E A. CUMINATO, AND R. K. MOHANTY

Department of Mathematics and Statistics, University of Strathclyde, Livingstone Tower, 26 Richmond Street, Glasgow G1 1XH, UK, s.mckee@strath.ac.uk Departamento de Matem´atica Aplicada e Estat´ıstica, Universidade de S˜ao Paulo,

S˜ao Carlos, SP, Brazil, jacuminato@gmail.com

Department of Applied Mathematics, South Asian University, Akbar Bhawan, Chanakyapuri, New Delhi - 110021, India, rmohanty@sau.ac.in

ABSTRACT.This note is concerned with the convergence of a finite difference scheme to the solu-tion of a second order ordinary differential equasolu-tion with the right-hand-side nonlinearly dependent on the first derivative. By defining stability as the linear growth of the elements of the inverse of a certain matrix and combining this with consistency, convergence is demonstrated. This stability concept is then interpreted in terms of a root condition.

Key Words: Finite Difference, Numerical Methods for ODE’s, Multistep Methods

Subject Classification: 65L06, 65L12, 65L20

1. Introduction

Convergence of finite difference methods (linear multistep methods) to y′ =

f(t, y) was first studied by [2]. Since that famous paper, the subject has been treated by a number of authors, most notably [4] whose analysis is quite general in that it includes the methods of [6], [7] and [5].

However, it would appear that no one has considered the problem of conver-gence for second order ordinary differential equations whose right-hand-side function contains y and y′. This note seeks to remedy this.

Consider

(1.1) y′′

=f(t, y(t), y′

(t))

subject to

y(0) = ˜y0, y(h) = ˜y1

and the associated difference scheme

(1.2) yn+1−2yn+yn−1 =h2f(tn, yn,(yn−yn−1)/h)

(2)

where yn ≃y(tn) is defined on the grid

tn=nh, n= 0,1, . . . , N.

Hereh = 1/N is the (constant) mesh spacing.

It will be assumed that the function f is Lipschitz continuous in its second and third variable, i.e. there exists L1, L2 such that

(1.3) |f(t, y, z)−f(t, y∗, z)|< L

1|y−y∗|+L2|z−z∗|.

2. Consistency

Re-write (1.2) as

y′

n−yn/h+yn−1/h = 0

(2.1)

yn+1−2yn+yn−1 = h2f(tn, yn, yn′)

(2.2)

Consider the totality of (2.1) and (2.2):

                           1 0 1 1 h − 1

h 1

0

1 −2 0 1

0 1

h 0 −

1

h 1

0 1 0 −2 0 1

0 0 0 1

h 0 −

1

h 1

0 0 0 1 0 −2 0 1

0 0 0 0 0 1

h 0 −

1

h 1

0 0 0 0 0 1 0 −2 0 1

(3)

h2                        0 0 0

0 0 0

0

0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 .. . . ..                                               f0 f1 f1 f2 f2 f3 f3 f4 f4 f5 ...                        +                        ˜ y0 ˜ y1 0 0 ...                        or

(2.3) Ahxh =h2BhFh+gh where

xh = (y0, y1, y1′, y2, y2′,· · · , yN−1, yN′ −1, yN)T,

(2.4)

Fh = (f(t0, y0, y0′), f(t1, y1, y1′), f(t1, y1, y′1), f(t2, y2, y2′), f(t2, y2, y′2),

. . . , f(tN−1, yN−1, y′N−1), f(tN−1, yN−1, yN−1′ ), f(tN, yN, y′N)) T

, (2.5)

gh = (˜y0,y˜1,0, . . . ,0)T,

are 2N ×1 vectors.

Note Ah and Bh are 2N ×2N matrices with elements

(Ah)ij,(Bh)ij, i, j= 0,1, . . . ,2N −1.

Define the vectors

(2.6) x= (y(t0), y(t1), y′(t1), y(t2), y′(t2), . . . , y(tN−1), y′(tN−1), y(tN))T

and

F = f(t0, y(t0), y′(t0)), f(t1, y(t1), y′(t1)), f(t1, y(t1), y′(t1)), f(t2, y(t2), y′(t2)),

f(t2, y(t2), y′(t2)), . . . , f(tN−1, y(tN−1), y′(tN−1)), f(tN−1, y(tN−1), y′(tN−1)),

f(tN, y(tN), y′(tN))

T

. (2.7)

The local truncation errors associated with (2.1) and (2.2) are, respectively, O(h2)

and O(h3). We may write the totality of local truncation errors as

θh=

(θh)0,(θh)1,(θh)2, . . . ,(θh)2N−2,(θh)2N−1

T

,

where

(4)

and

(2.9) (θh)n=

(

O(h2), n2, n even

O(h3), n3, n odd.

Thus consistency may be expressed as follows:

(2.10) Ahx−h2BhF−g =θh,

where, here,

g= (y(t0), y(t1),0, . . . ,0)T.

3. The inverse matrix

The proof of convergence will depend upon the behaviour ofA−1h , and in particular the behaviour of its elements asN → ∞.

Although the results of [3] may be invoked it is a simple matter in this case to compute the elements directly whereupon we observe that there exists an M, independently of N, such that

(1/N) max

0≤i≤j≤2N−1|(A −1

h )ij| ≤M.

Furthermore, direct computation shows that

(3.1) (A−1h )ij = 0, j = 2,4, . . . ,2N −2, i6=j.

These can be formally established by induction.

We also note that Ah may be written as

(3.2) Ah =

I 0

d AN

!

where I is the 2×2 unit matrix and d and AN are clear. Thus

(3.3) A−1h = I 0

−A−1N d A−1N

!

.

4. Convergence

Subtract (2.3) from (2.10) to obtain

Ah(x−xh) =h2Bh(F−Fh) +θh

or

(4.1) x−xh =h2A−1h Bh(F−Fh) +A−1h θh.

i.e. when i=j.

We first note that

(5)

−f(t2, y2, y2′),0, f(t3, y(t3), y′(t3))−f(t3, y3, y3′), . . . ,0,

f(tN−1, y(tn−1, y′(tN−1))−f(tN−1, yN−1, yN−1′ )) T

.

Thus, taking moduli and using the triangle inequality in (4.1) results in

|(x−xh)2i+1| ≤ h2 max

0≤i≤j≤2N−1|(A −1 h )ij|

i

X

j=1

|f(tj, y(tj), y′(tj))−f(tj, yj, y′j)|

(4.2)

+ max

0≤k≤2N−1|(A −1 h θh)k|

and

|(x−xh)2i| ≤ h2 max

0≤i≤j≤2N−1|(A −1 h )ij|

i−1

X

j=1

|f(tj, y(tj), y′(tj))−f(tj, yj, yj′)|

(4.3)

+ max

0≤k≤2N−1|(A −1 h θh)k|.

By appealing to (4.3) we observe that

max

0≤k≤2N−1|(A −1 h θh)|k|

≤ max (

max

0≤i≤2N−1|(A −1

h )i0| |(θh)0|, max 0≤i≤2N−1|(A

−1

h )i1| |(θh)1|,

max

0≤i≤2N−1

2N−1

X

j=2

(A−1h )ij(θh)j

)

= max (

max

0≤i≤2N−1|(A −1

h )i0| |(θh)0|, max 0≤i≤2N−1|(A

−1

h )i1| |(θh)1|,

max

0≤i≤2N−1

N−1

X

j=1

(A−1h )i,2j+1(θh)2j+1

)

using (4.1).

Thus

max

0≤k≤2N−1|(A −1 h θh)k|

≤ max

0≤i≤j≤2N−1|(A −1

h )ij|max

(

|(θh)0|,|(θh)1|,

N−1

X

j=1

|(θh)2j+1|

)

.

Furthermore, by using the Lipschitz condition (2.3) we may write

|(x−xh)2i+1| ≤h2 max

0≤i≤j≤2N−1|(A −1 h )ij|

i

X

j=1

{L1|y(tj)−yj|+L2|y′(tj)−yj′|}

+ max

0≤i≤j≤2N−1|(A −1

h )ij|max{|(θh)0|,|(θh)1|, N−1

X

j=1

(6)

LetL= max{L1, L2}and recall that there exists anM, independent ofN, such that

max

0≤i≤j≤2N−1|(A −1

h )ij|< MN.

Thus the inequality (5.4) becomes

|(x−xh)2i+1| ≤ h2LMN 2i

X

j=0

|(x−xh)j|

+ MNmax (

|(θh)0|,|(θh)1|,

N−1

X

j=1

|(θh)2j+1|

)

Note thatN = 1h and further that (θh)0 =O(h2),(θh)1 =O(h2) andPN−1

j=1 |(θh)2j+1| ≤

N max

1≤j≤N−1|(

θh)2j+1|.

Thus we have

|(x−xh)2i+1| ≤M h˜ 2i

X

j=0

|(x−xh)j|+δ

where δ=O(h), and ˜M =LM is independent of N.

By a similar argument we observe that

|(x−xh)2i| ≤M h˜ 2i−1

X

j=0

|(x−xh)j|+δ.

Thus we have

|(x−xh)k| ≤Mh˜ k−1

X

j=0

|(x−xh)j|+δ, k= 1,2, . . . ,2N −1

and an application of (a mild generalization of) the standard discrete Gronwall lemma (see eg. [1]) results in

|(x−xh)k| ≤δexp( ˜M kh)≤δexp( ˜M(2N −1)h)< δexp(2 ˜M)

since Nh= 1 and so convergence of O(h) has been demonstrated.

The restriction that the initial starting values be O(h2) is unnecessary; the

as-sumption was employed to minimise the complexity of the argument. From (4.3) we note thatdhas only a small finite (i.e. independent ofN) non-zero elements implying that (A−1N d)ij are independent ofN, that is (A−1h )ij(i= 0,1, . . . ,2N−1, j = 0,1) are

independent of N allowing the last term in (5.4) to be replaced by

max

max

0≤i≤2N−1|(A −1

h )i0k(θh)0|,0≤i≤2N−1max |(A −1

h )i1k(θh)1|,

max

0≤i≤j≤2N−1|(A −1 h )ij|

N−1

X

j=1

|(θh)2j+1|

(7)

5. Associated root condition

When [2] introduced linear multistep methods for solving y′(t) = f(t, y(t)) he

characterized them by the polynomials ρ(z) and σ(z). He defined zero-stability to be the case when ρ(z) has a single root at unity (required for consistency) and all the remaining roots strictly inside the unit circle or lying on the unit circle with multiplicity of one. He then proved that convergence was dependent on zero-stability and consistency.

In this note we have demonstrated convergence subject to the method being consistent and the elements ofA−1h being such that|(Ah)ij/N|are uniformly bounded

with respect to N. It is, however, natural to ask if there exists an associated root condition. We shall now demonstrate that such root condition does in fact exist.

First let us characterize the matrix AN in (3.2) by the two polynomials

g1(AN, z) = 1−Nz+Nz3 and g2(AN, z) = 1−2z2+z4.

We introduce the functions

gn

j(AN, z) =

1 2

2

X

ℓ=1

(−1)2−(ℓ−1)(n−1)gj(AN,(−1)ℓ−1z), n= 1,2,

and the associated matrix

T(AN, z) =

g1

1(AN, z) g12(AN, z)

g2

2(AN, z) g21(AN, z)

!

.

We now define the vector

g(AN, z) = (g1(AN, z), g2(AN, z))T.

It is not difficult to show that

T(AN, z)g(A−1N , z) =g(I, z) = (1,1) T

,

where we must interpret g(A−1N , z) as a truncated (vector) power series where all the terms of order 2N and above have been neglected.

Since T(AN, z) is a 2×2 matrix its inverse can be calculated in the normal way

from the quotient of its adjoint and its determinant. Each element of its adjoint is simply sums and products of polynomials. Clearly how g(A−1N , z) behaves depends on the behaviour of (detT(AN, z))−1.

In this case det|T(AN, z)| is easily computed:

det|T(AN, z)|=

1 −Nz+Nz3

0 1−2z2+z4

(8)

providing theO(N) growth of the elements ofA−1N which have clearly been established by direct computation. Thus, the associated root condition, i.e. the zero-stability equivalent for the finite difference scheme applied to y′′ =f(t, y, y) is

det|T(AN, z)|= 0.

For the differential equation (1.1) this may be stated simply: the polynomial det|T(AN, z)|must have a zero at one of multiplicity two (necessary for consistency)

and all the other roots must either lie strictly within the unit circle, or if they lie on the unit circle their multiplicity may not be greater than two.

6. Concluding remarks

This note has analyzed a finite difference scheme which approximates a second order differential equation. It has been shown to be zero-stable (in the sense of Dahlquist) and convergent. The fact that this scheme is zero-stable means that consistency, itself, implies convergence. Although this work has treated a simple finite difference scheme, the ideas are quite general and may, in principle, be applied to demonstrate the convergence of other more sophisticated schemes.

Acknowledgements

The first author is grateful to the Institute for Mathematics and its Applications for a travel grant to visit ICMC in Brazil and also to Fapesp grant #2013/07375-0. The second author acknowledges the support of Fapesp grant #2013/07375-0 and CNPq grant #301787/2008-5. The third author would like to acknowledge the receipt of financial support from the Royal Society of Edinburgh under the INSA-RSE Bilateral Exchange Programme 2014.

REFERENCES

[1] R. Bellman,Stability of Ordinary Differential Equations, McGraw-Hill, 1953.

[2] G. Dahlquist, Convergence and stability in the numerical integration of ordinary differential equations,Math. Scand., 4:33–53, 1956.

[3] S. McKee, Discretization methods and block isoclinal matrices,IMA J. Numer. Anal., 3:467–491, 1983.

[4] J. C. Butcher, On the convergence of the numerical solutions to ordinary differential equations,

Maths. Comp., 20:1–10, 1972.

[5] C. W. Gear, Hybrid methods for initial values problems in ordinary differential equations,SIAM J. Numer. Anal. Ser.B, 2:69–86, 1965.

[6] M. Urabe, Theory of errors in numerical integration of ordinary differential equations, J. Sci. Hiroshima Univ. Ser A-I, 25:3–62, 1961.

References

Related documents

In order to guarantee performance SLAs, service providers in the Cloud tend to over provision mainly due to the lack of capacity planning tools that guide

speed for vehicles and buses, the average and best fitness values obtained using the proposed parallel EA and the improve- ments of the results computed by the parallel EA over

Precast is economical when compared to other conventional methods which are being used since 700 B.C, precast is a cost and time saving construction method which assures quality

In some contexts, a high share of the knowledge only exists in an oral and distributed form as is the case when Pasi at the Department of Cardiac and Thoracic gathers information

Estimation Of Land Surface Temperature Of Kaduna Metropolis, Nigeria Using Landsat Images.. ESTIMATION OF LAND SURFACE TEMPERATURE OF KADUNA METROPOLIS, NIGERIA USING

This study found that the factors including children aged less than 2 years old, 2-3 family members per household, and parents’ knowledge of HFMD prevention and control are

i) From the calculation results, it is known that supply chain management is formed by customer relationship management of 44.5 percent internal supply chain

Several approaches to fabricating photodetector based on a single nanowire have been reported; among them, the use of single indium phosphide nanowires for photodetection with