Stability Analysis of a Numerical Integrator for Solving First Order Ordinary Differential Equation

Abstract

In this paper, we used an interpolation function to derive a Numerical Integrator that can be used for solving first order Initial Value Problems in Ordinary Differential Equation. The numerical quality of the Integrator has been analyzed to authenticate the reliability of the new method. The numerical test showed that the finite difference methods developed possess the same monotonic properties with the analytic solution of the sampled Initial Value Problems.

Share and Cite:

Olukayode Ayinde, S. , Obayomi, A. and Adebayo, F. (2017) Stability Analysis of a Numerical Integrator for Solving First Order Ordinary Differential Equation. Journal of Applied Mathematics and Physics, 5, 2196-2204. doi: 10.4236/jamp.2017.511179.

1. Introduction

Many Scholars have derived various Numerical Integrators using various techniques including interpolating functions that include the work of [1] [2] [3] [4] among others. All these authors have employed some analytically continuous functions to create numerically stable Integrators that can be used for ordinary differential equations. In this work we use an analytically differentiable interpolating function to create a one-step Finite Difference scheme for solving Initial Value Problems of first order Ordinary Differential Equations, and we are considering the concept of Nature, of Solutions of first order Ordinary Differential Equations to assume a theoretical solution and use that assumption to derive a discrete model that can be applied to some Ordinary differential equations.

Definition 1 [5]

Consider the nth-order ordinary differential equation

F ( x , y , y 1 , , y n ) = 0 (1)

where F is a real function of its (n + 2) arguments x , y , y 1 , , y n .

1) Let f be a real function defined for all x in a real interval I and having an nth derivative (and hence also all lower ordered derivatives) for all x I . The function f is called an explicit solution of the differential Equation (1) on interval I if it fulfills the following two requirements.

F ( x , f ( x ) , f 1 ( x ) , , f n ( x ) ) (2)

is defined for all x I , and

F ( x , f ( x ) , f 1 ( x ) , , f n ( x ) ) = 0 (3)

for all x I .

That is, the substitution of f ( x ) and its various derivatives for y and its corresponding derivatives.

2) A relation g ( x , y ) = 0 is called an implicit solution of (1) if this relation defines at least one real function f of the variable x on an internal I such that this function is an explicit solution of (1) on this interval.

3) Both explicit solutions and implicit solutions will usually be called simply Solutions.

We now consider the geometric significance of differential equations and their solutions. We first recall that a real function F(x) may be represented geometrically by a Curve y = F ( x ) in the xy plane and that the value of the derivative of F at x, F ( x ) , may be interpreted as the slope of the curve y = F ( x ) at x.

2. Formulation of the Interpolating Function

Consider the initial value problem of the IVP

y ( x ) = f ( x , y ) , y ( x 0 ) = η , (4)

where η is a discrete variables in the interval [ x n , x n + 1 ] . In this we consider the method based on local representation of the theoretical solution y ( x ) .

Let us assume that the theoretical solution y ( x ) to the initial value problem 4) can be locally represented in the interval [ x n , x n + 1 ] , n 1 by the non-polynomial interpolating function given by:

F ( x ) = α 1 e 2 x + α 2 x 2 + α 3 x + α 4 (5)

where α 1 , α 2 and α 3 are real undetermined coefficients, and α 4 is a constant.

3. Derivation of the Integrator

We assumed that the theoretical solution y ( x ) to the initial value problem (5) can be locally represented in the interval [ x n , x n + 1 ] , n 0 by the non-polynomial interpolating function;

F ( x ) = α 1 e 2 x + α 2 x 2 + α 3 x + α 4 (6)

where α 1 , α 2 and α 3 are real undetermined coefficients, and α 4 is a constant.

We shall assume y n is a numerical estimate to the theoretical solution y ( x ) and f n = f ( x n , y n ) .

We define mesh points as follows:

x n = a + n h , n = 0 , 1 , 2 , (7)

We impose the following constraints on the interpolating function (6) in order to get the undetermined coefficients:

1) The interpolating function must coincide with the theoretical solution at x = x n and x = x n + 1 . Hence we required that

F ( x n ) = α 1 e 2 x n + α 2 x n 2 + α 3 x n + α 4 (8)

F ( x n + 1 ) = α 1 e 2 x n + 1 + α 2 x n + 1 2 + α 3 x n + 1 + α 4 (9)

2) The derivatives of the interpolating function are required to coincide with the differential equation as well as its first, second, and third derivatives with respect to x at x = x n .

We denote the i-th derivatives of f ( x , y ) with respect to x with f ( i ) such that

F 1 ( x n ) = f n , F 2 ( x n ) = f n 1 , F 3 ( x n ) = f n 2 , (10)

This implies that,

f n = 2 α 1 e 2 x n + 2 α 2 x n + α 3 (11)

f n 1 = 4 α 1 e 2 x n + 2 α 2 (12)

f n 2 = 8 α 1 e 2 x n (13)

Solving for α 1 , α 2 and α 3 from Equations (11) (12) and (13), we have

α 1 = 1 8 f n 2 e 2 x n (14)

α 2 = 1 2 ( f n 1 + 1 2 f n 2 ) (15)

and

α 3 = ( f n 1 4 f n 2 ) ( f n 1 + 1 2 f n 2 ) x n (16)

Since F ( x n + 1 ) = y ( x n + 1 ) and F ( x n ) = y (xn)

Implies that y ( x n + 1 ) = y n + 1 and y ( x n ) = y n

F ( x n + 1 ) F ( x n ) = y n + 1 y n (17)

Then we shall have from (8) and (9) into (17)

y n + 1 y n = α 1 [ e 2 x n + 1 e 2 x n ] + α 2 [ x n + 1 2 x n 2 ] + α 3 [ x n + 1 x n ] (18)

Recall that x n = a + n h , x n + 1 = a + ( n + 1 ) h with n = 0 , 1 , 2 ,

Substitute (14) (15) (16), into (18), and simplify we have the integrator

y n + 1 = y n 1 8 f n 2 ( e 2 h 1 ) + 1 2 ( f n 1 + 1 2 f n 2 ) h 2 + ( f n 1 4 f n 2 ) h (19)

for solution of the first order differential equation.

4. Properties of the Integration Method

4.1. Qualitative Properties of the Scheme

4.1.1. Definition 2 [6]

Define any algorithm for solving differential equations in which the approximation y n + 1 to the solution at the point x n + 1 can be calculated if only x n , y n and h are known as one-step method. It is a common practice to write the functional dependence, y n + 1 , on the quantities x n , y n and h in the form:

y n + 1 = y n + h ( x n , y n ; h ) (20)

where ( x n , y n ; h ) is the increment function.

The numerical integrator can be expressed as a one-step method in the form (20) above thus:

From (19) i.e. y n + 1 = y n 1 8 f n 2 ( e 2 h 1 ) + 1 2 ( f n 1 + 1 2 f n 2 ) h 2 + ( f n 1 4 f n 2 ) h

Expanding e 2 h into the fourth term, we have

e 2 h = r = 0 ( 2 h ) r r ! = 1 2 h + ( 2 h ) 2 2 ! ( 2 h ) 3 3 ! + (21)

Put (21) into (19), then expand

y n + 1 = y n + f n h + f n 1 x n h + 1 2 f n 1 h 2 + 1 2 f n 2 x n h + 1 6 f n 2 h 3 (22)

= y n + h { f n + f n 1 ( x n + 1 2 h ) + f n 2 ( x n + 1 6 h 2 ) } (23)

Let A = x n + 1 2 h and B = x n + 1 6 h 2 (24)

Thus our integrator (19) can be written compactly as

y n + 1 = y n + h { f n + A f n 1 + B f n 2 } (25)

Which is in the form

y n + 1 = y n + h ( x n , y n ; h ) (26)

where ( x n , y n ; h ) = { f n + A f n 1 + B f n 2 } (27)

4.1.2. Theorem 1. [7]

Let the increment function of the method defined by (25) be continuous as a function of its arguments in the region defined by

x [ a , b ] , y ( , ) ; 0 h h o ,

where h o > 0 , and let there exists a constant L such that

| ( x n , y n * ; h ) ( x n , y n ; h ) | L | y n * y n | (28)

for all ( x n , y n ; h ) and ( x n , y n * ; h ) in the region just defined. Then the relation (28) is the Lipscitz condition and it is the necessary and sufficient condition for the convergence of our method (19).

We shall proof that (19) satisfies (28) in line with the established Fatunla’s theorem.

4.1.3. Proof of Convegence of the Integrator

The increment function ( x n , y n ; h ) can be written in the form

( x n , y n ; h ) = { f ( x n , y n ) + A f ( 1 ) ( x n , y n ) + B f ( 2 ) ( x n , y n ) } (29)

where A and B are constants defined below.

A = x n + 1 2 h

and

B = x n + 1 6 h 2

Consider Equation (29), we can also write

( x n , y n * ; h ) = { f ( x n , y n * ) + A f ( 1 ) ( x n , y n * ) + B f ( 2 ) ( x n , y n * ) }

( x n , y n * ; h ) ( x n , y n ; h ) = f ( x n , y n * ) f ( x n , y n ) + A [ f ( 1 ) ( x n , y n * ) f ( 1 ) ( x n , y n ) ] + B [ f ( 2 ) ( x n , y n * ) f ( 2 ) ( x n , y n * ) ] (30)

Let y ¯ be defined as a point in the interior of the interval whose points are y and y * , applying mean value theorem, we have

f ( x n , y n * ) f ( x n , y n ) = f ( x n , y ¯ ) y n ( y n * y n ) f ( 1 ) ( x n , y n * ) f ( 1 ) ( x n , y n ) = f ( 1 ) ( x n , y ¯ ) y n ( y n * y n ) and f ( 2 ) ( x n , y n * ) f ( 2 ) ( x n , y n ) = f ( 2 ) ( x n , y ¯ ) y n ( y n * y n ) } (31)

We define

L = sup ( x n , y n ) D f ( x n , y n ) y n L 1 = sup ( x n , y n ) D f ( 1 ) ( x n , y n ) y n and L 2 = sup ( x n , y n ) D f ( 2 ) ( x n , y n ) y n }

Therefore

( x n , y n * ; h ) ( x n , y n ; h ) = f ( x n , y ¯ ) y n ( y n * , y n ) + A { f ( 1 ) ( x n , y ¯ ) y n ( y n * , y n ) } + B { f 2 ( x n , y ¯ ) y n ( y n * , y n ) } = L ( y n * y n ) + A L 1 ( y n * y n ) + B L 2 ( y n * y n ) (32)

Taking the absolute value of both sides

| ( x n , y n * ; h ) ( x n , y n ; h ) | | L ( y n * y n ) + A L 1 ( y n * y n ) + B L 2 ( y n * y n ) | | L + A L 1 + B L 2 | | y * y | (33)

If we let M = | L + A L 1 + B L 2 |

then our Equation (33) turns to

| ( x n , y n * ; h ) ( x n , y n ; h ) | M | y * y | (34)

which is the condition for convergence.

4.2. Consistence of the Integrator

Definition 3 [8]

The integration scheme: y n + 1 = y n + h ( x n , y n ; h ) is said to be consistent with the initial-value problem y ( x ) = f ( x , y ( x ) ) , y ( a ) = y o , x [ a , b ] , y R provided the increment function ( x , y ; h ) satisfies the following relationship

( x , y ; h ) = f ( x , y ) (35)

The significance of the consistency of a formula is that it ensures that the method approximates the ordinary differential equation in its place.

Therefore from

y n + 1 = y n + h { f n + f n 1 ( x n + 1 2 h ) + f n 2 ( x n + 1 6 h 2 ) } (36)

where y n + 1 = y n + θ ( x n , y n ; h ) then

θ ( x n , y n ; h ) = h { f ( x n , y n ) + A f ( 1 ) ( x n , y n ) + B f ( 2 ) ( x n , y n ) }

and

A = x n + 1 2 h , B = x n + 1 6 h 2

If h = 0 , then (36) reduced to y n + 1 = y n

θ ( x n , y n ; 0 ) = f ( x , y ) (37)

It is a known fact that a consistent method has order of at least one [9] . Therefore, the new numerical integrator is consistent since Equation (36) can be reduced to (37) when h = 0 .

4.3. Stability Analysis of the Integration Method

We shall establish the stability analysis of the integrator by considering the theorem established by Lambert 1972.

Let y n = y ( x n ) and P n = P ( x n ) denote two different numerical solutions of initial value problem of ordinary differential Equation (35) with the initial conditions specified as y ( x o ) = η and p ( x o ) = η * respectively, such that | η η * | < ε , ε > 0 . If the two numerical estimates are generated by the integrator (19). From the increment function (26), we have

y n + 1 = y n + h ( x n , y n ; h ) (38)

P n + 1 = P n + h ( x n , p n ; h ) (39)

The condition that

| y n + 1 P n + 1 | K | η η * | (40)

is the necessary and sufficient condition that our new method (19) be stable and convergent.

Proof

From (27) we have

y n + 1 = y n + h { f n + A f n 1 + B f n 2 } (41)

Then let

y n + 1 = y n + h { f ( x n , y n ) + A f 1 ( x n , y n ) + B f 2 ( x n , y n ) } (42)

and

p n + 1 = p n + h { f ( x n , p n ) + A f 1 ( x n , p n ) + B f 2 ( x n , p n ) } (43)

Therefore,

y n + 1 p n + 1 = y n p n + h { f ( x n , y n ) f ( x n , p n ) + A [ f 1 ( x n , y n ) f 1 ( x n , p n ) ] + B [ f 2 ( x n , y n ) f 2 ( x n , p n ) ] } (44)

Applying the mean value theorem as before, we have

y n + 1 p n + 1 = y n p n + h { δ f ( x n , p n ) δ p n ( x n p n ) + A [ δ f 1 ( x n , p n ) δ P n ( x n p n ) ] + B [ δ f 2 ( x n , y n ) δ p n ( x n p n ) ] } (45)

y n + 1 p n + 1 = y n p n + h { sup ( x n , p n ) D δ f ( x n , p n ) δ p n ( x n p n ) + A sup ( x n , p n ) D δ f 1 ( x n , p n ) δ p n ( x n p n ) + B sup ( x n , p n ) D δ f 2 ( x n , p n ) δ p n ( x n p n ) } (46)

y n + 1 p n + 1 = y n p n + h { L ( x n , p n ) + A L 1 ( x n , p n ) + B L 2 ( x n , p n ) } (47)

Taking absolute value of both sides of (47) gives

| y n + 1 p n + 1 | | y n p n | + h | L + A L 1 + B L 2 | | x n p n | (48)

Let N = h | L + A L 1 + B L 2 | and y ( x o ) = η , P ( x o ) = η * , given ε > 0 , then

| y n + 1 p n + 1 | N | y n p n | (49)

and

| y n + 1 p n + 1 | N | η η * | < ε , for every ε > 0 (50)

Then we conclude that our method (19) is stable and hence convergent.

5. The Implementation of the Integrator

Example 1

Using the Integrator (19) to solve the initial value problem

y = 2 x 2 y , y ( 0 ) = 1 , intheinterval 0 x 1

The analytical solution y ( x ) = 5 e x + 2 x 2 4 x + 4 , h = 0.1

Example 2

Consider the initial value problem

y = 2 x y , y ( 0 ) = 1 , intheinterval 0 x 1

The analytical solution y ( x ) = 3 e x 2 ( x + 1 ) , h = 0.1

6. Summary and Conclusion

In this paper, we have proposed a new integration for the solution of standard initial value problem of first order ordinary differential equations. The new method was found to be convergence, consistence, and stable.

Conflicts of Interest

The authors declare no conflicts of interest.

References

[1] Ayinde, S.O., et al. (2015) A New Numerical Method for Solving First Order Differential Equations. American Journal of Applied Mathematics and Statistics, USA, 3, 156-160.
[2] Fatunla, S.O. (1988) Numerical Methods for Initial Value Problems in Ordinary Differential. Academic Press, San Diego, USA.
[3] Ibijola, E.A., et al. (2010) On a New Numerical Scheme for the Solution of Initial Value Problems in ODE. Australian Journal of Basic and Applied Sciences, 4, 5277-5282.
[4] Ogunrinde, R.B. (2010) A New Numerical Scheme for the Solution of Initial Value Problem (IVP) in Ordinary Differential Equations. Ph.D. Thesis, Ekiti State University, Ado Ekiti.
[5] Zwillinger, D. (1997) Handbook of Differential Equations. 3rd Ed., Academic Press, Boston, MA.
[6] Stoer, J. and Bulirsh, R. (1966) Numerical Treatment of ODEs by Extrapolation Methods. Numerische Mathematical, 8, 93-104.
[7] Henrici, P. (1962) Discrete Variable Methods in ODEs. New York, John Wiley and Sons., U.S.A.
[8] Lambert, J.D. (1972) Introductory Mathematics for Scientists and Engineers. John Wiley & Sons, New York.
[9] Shepley, L.R. (1984) Differential Equations. Third Edition, John Wiley & Sons Inc., Canada.

Copyright © 2024 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.