• No results found

Numerical solution for stiff initial value problems using 2-point block multistep method

N/A
N/A
Protected

Academic year: 2021

Share "Numerical solution for stiff initial value problems using 2-point block multistep method"

Copied!
10
0
0

Loading.... (view fulltext now)

Full text

(1)

Journal of Physics: Conference Series

PAPER • OPEN ACCESS

Numerical solution for stiff initial value problems using 2-point block

multistep method

To cite this article: N Mohamad Noor et al 2018 J. Phys.: Conf. Ser. 1132 012017

View the article online for updates and enhancements.

(2)

3rd International Conference on Mathematical Sciences and Statistics IOP Conf. Series: Journal of Physics: Conf. Series 1132 (2019) 012017

IOP Publishing doi:10.1088/1742-6596/1132/1/012017

Numerical solution for stiff initial value problems using

2-point block multistep method

N Mohamad Noor1, Z B Ibrahim1,2 and F Ismail1,2

1Department of Mathematics, Faculty of Science, Universiti Putra Malaysia, 43400

UPM Serdang, Selangor, Malaysia

2Institute for Mathematical Research, Universiti Putra Malaysia, 43400 UPM Serdang,

Selangor, Malaysia

E-mail: [email protected]

Abstract. This paper focuses on the derivation of an improved 2-point Block Backward

Differentiation Formula of order five (I2BBDF(5)) for solving stiff first order Ordinary Differential Equations (ODEs). The I2BBDF(5) method is derived by using Taylor's series expansion to obtain the coefficients of the formula. To verify the efficiency of the I2BBDF(5) method, stiff problems from the literature are tested and compared with the existing solver for stiff ODEs. From the numerical results, we conclude that the I2BBDF(5) method can be an alternative solver for solving stiff ODEs.

1. Introduction

Ordinary differential equations (ODEs) are widely used in various field, such as geology, economics, biology, physics and many branches of engineering as an alternative solver to approximate the solution. Many of these ODEs are known as stiff ODEs and are difficult to solve since some of the numerical methods have absolute stability restriction on the step size. Therefore, our aim in this paper is to construct an efficient multistep 2-point block method which can solved stiff ODEs efficiently.

We consider linear system of first order ODEs of the form

( )

x y

( )

a a x b y A y'= ~+~ , ~ =~, ≤ ≤ ~

φ

η

(1) where ~yT =

(

y1,y2,,ys

)

and

(

s

)

T

η

η

η

η

~ = 1, 2,, . Stiffness of (1) as given by Lambert [9] is as

follows.

Definition 1: The linear system (1) is said to be stiff if i.

Re

( )

λ

t

<

0

,

t

=

1

,

2

,

,

m

ii.

( )

( )

t m t t m

t=

max

1,2,,

Re

λ

>>

=

min

1,2,,

Re

λ

where

λ

t are the eigenvalues of A. The ratio

( )

( )

t m t t m t

λ

λ

Re

min

Re

max

, , 2 , 1 , , 2 , 1   = = is

called the stiffness ratio.

The Backward Differentiation Formulas (BDF) which introduced by Gear [4] are well known and effective method for solving wide classes of stiff ODEs. Recently, many researchers extended the classical BDF and transform it into block methods. This extension of block methods was presented by

(3)

3rd International Conference on Mathematical Sciences and Statistics IOP Conf. Series: Journal of Physics: Conf. Series 1132 (2019) 012017

IOP Publishing doi:10.1088/1742-6596/1132/1/012017

2

Ibrahim et. al [8,6,7], Yatim et. al [17], Abasi et. al [1], and Zainuddin et. al [19]. Block method can be classified into one-step method and multi-step method. Example of one-step method is the Runge-Kutta method which has been studied by Rosser [13]. Followed by Watts and Shampine [16] who studied on A-stable r-block method implicit one-step method. As for multi-step method, Voss and Abbas [15] proposed 4th order block method which are used as predictor-corrector pair for solving (1). Ibrahim et. al [5] further the research on r-point block method for solving first order ODE by developed 2-point Block Backward Differentiation Formula (2BBDF) and 3-point Block Backward Differentiation Formula (3BBDF). Nasir et. al [12] extend the idea by increasing the order of the block method which is called fifth order two-point Block Backward Differentiation Formula (BBDF(5)). Musa et. al [10] modified r-point block method to superclass block method by adding extra future points.

The method explored in this paper is closely related to the Ibrahim et. al [5] and Musa et. al [10]. The purpose of the derivation is to improve the approximation solution while compare with the existing method with same order. Formulation of the method is briefly explained in the following section. In Section 3, the stability region of the method is analyzed. The performances of the method will be present in Section 5 by solving the numerical examples in Section 4. Section 6 will discuss the numerical results obtained and a simple conclusion is made in the last section.

2. Formulation of the Method

In this section, we discussed the derivation of two-point block method using four starting values,

y

n,

1 − n

y

, yn2 and yn3 for solving (1). The method is constructed by extending the idea proposed by Musa et. al [10]. This extension is done by including extra points as backvalues in order to improve the accuracy of the solution. To construct the two-point block method, the definition of linear multi-step method (LMM) of multi-step number k presented by Lambert [9] is used:

,

0 0

= + = +

=

k j j n j k j j n j

y

h

β

f

α

(2)

where

α

jand

β

j are constant; we assume that

α

k

0

and that not both

α

0and

β

0are zero.

Our two-point block method is derived by represent equation (2) in the form of block multistep method, particularly with

k

=

5

:

(

1

)

,

1

,

2

.

5 0 3 ,

=

+

+ −

=

=

= + −

y

h

k

f

n k

f

n k

i

k

j j n i j

β

ρ

α

(3)

where

α

j ,i,

β

k are the coefficients of

y

n and

f

nrespectively. In equation (3),

ρ

is a free parameter that will be chosen in the interval

(

−1,1

)

as stated by Vijitha-Kumara [14]. The linear difference operator L associated with equation (4) is given by

( )

[

]

(

)

(

)

(

)

(

)

(

)

( )

(

)

(

2

)

(

(

)

(

(

1

)

)

)

. 2 3 , , 5 , 4 , 3 , 2 , 1 , 0 1 2 , 5 1 , 4 , 3 1 , 2 2 , 1 3 , 0 1 5 0 3 , h k x f kh x f h h x y h x y x y h x y h x y h x y f f h y y y y y y f f h y h x y L n n k n i n i n i n i n i n i k n k n k n i n i n i n i n i n i k n k n k j j n i j n i − + − + − + + + + + − + − + − = − − + + + + + = − − = − + + + + − − − − + + = + −

ρ

β

α

α

α

α

α

α

ρ

β

α

α

α

α

α

α

ρ

β

α

(4) Expanding

y

(

x

n

3

h

)

,

y

(

x

n

2

h

)

,

y

(

x

n

h

)

,

y

( )

x

n ,

y

(

x

n

+

h

)

,

y

(

x

n

+

2

h

)

,

f

(

x

n

+

kh

)

and

(

)

(

x

k

h

)

f

n

+

1

using Taylor’s series and collecting like terms in

y

( )

x

n

,

y′

( )

x

n

,

y ′′

( )

x

n

,

y ′′

( )

x

n

,

(4)

3rd International Conference on Mathematical Sciences and Statistics IOP Conf. Series: Journal of Physics: Conf. Series 1132 (2019) 012017

IOP Publishing doi:10.1088/1742-6596/1132/1/012017

( )

[

,

]

( )

( )

( )

3, 3

( )

0, 2 , 2 , 1 , 0 + ′ + ′′ + ′′′ + = = i n i n i n i nn i y x h C y x C hy x C h y x C h y x L (5)

where i=1,2. We denote the derivation for the first point as Case 1 when

i

=

1

and let

α

4,1=1. Denote

Case 2 (second point) when we consider

i

=

2

and

α

5,2=1. Case 1 (

i

=

1

)

(

)

. 120 1 24 1 15 4 120 1 15 4 40 81 , 24 1 6 1 3 2 24 1 3 2 8 27 , 6 1 2 1 3 4 6 1 3 4 2 9 , 2 1 2 2 1 2 2 9 , 1 1 2 2 3 , 1 1 1 , 5 1 , 2 1 , 1 1 , 0 1 , 5 1 1 , 5 1 , 2 1 , 1 1 , 0 1 , 4 1 1 , 5 1 , 2 1 , 1 1 , 0 1 , 3 1 1 , 5 1 , 2 1 , 1 1 , 0 1 , 2 1 1 , 5 1 , 2 1 , 1 1 , 0 1 , 1 1 , 5 1 , 3 1 , 2 1 , 1 1 , 0 1 , 0 − = − + − − − = − = − + + + = − = − + − − − = − = − + + + = − = − − + − − − = − = + + + + =

β

α

α

α

α

β

α

α

α

α

β

α

α

α

α

β

α

α

α

α

β

ρ

α

α

α

α

α

α

α

α

α

C C C C C C (6)

Using the MAPLE software, the equations in (6) are solved by choosing

8

7

=

ρ

to obtain the constants of

α

j,1 and β1 as follows:

.

73

48

,

146

15

,

73

82

,

73

6

,

146

11

,

73

1

1 1 , 5 1 , 3 1 , 2 1 , 1 1 , 0

=

α

=

α

=

α

=

α

=

β

=

α

(7) Case 2 (

i

=

2

)

Similarly, we obtain the coefficients for second point as follows:

.

59

24

,

236

389

,

59

78

,

1

,

59

23

,

236

15

2 1 , 5 1 , 3 2 , 2 2 , 1 2 , 0

=

α

=

α

=

α

=

α

=

β

=

α

(8)

Substitute (7) and (8) into (4), we obtained the corrector formula of Improved 2-point Block Backward Differentiation Formula of order five (I2BBDF(5)) formulatedas follows:

.

59

24

59

21

236

389

59

78

59

23

236

15

,

73

48

73

42

146

15

73

82

73

6

146

11

73

1

2 1 1 1 2 3 2 1 2 1 2 3 1 + + + − − − + + + − − − +

+

+

+

+

=

+

+

+

+

=

n n n n n n n n n n n n n n n n

hf

hf

y

y

y

y

y

y

hf

hf

y

y

y

y

y

y

(9)

3. Stability Properties of the Method

The stability characteristic of the method is then analysed in this section. By applying scalar test equation y′=

λ

y,

λ

<0 to (9) and rearrange the formulas into matrix form will obtained the following equation

(5)

3rd International Conference on Mathematical Sciences and Statistics IOP Conf. Series: Journal of Physics: Conf. Series 1132 (2019) 012017

IOP Publishing doi:10.1088/1742-6596/1132/1/012017 4                 − − +                 − + − =                 − − − − − − − + + 2 3 1 2 1 59 23 236 15 146 11 73 1 59 78 1 73 42 73 82 73 6 59 24 1 59 21 236 389 146 15 73 48 1 n n n n n n y y y y h y y h h h (10)

where h

λ

=hwhich is equivalent to

AY

m

=

BY

m1

+

CY

m2. The stability polynomial of the method can be compute by using formula

R

( )

t

,

h

=

det

[

At

2

Bt

C

]

where

. 59 23 236 15 146 11 73 1 , 59 78 1 73 42 73 82 73 6 , 59 24 1 59 21 236 389 146 15 73 48 1           − − =           − + − =           − − − − = C h B h h h A

Therefore, the stability polynomial is obtained as follows.

( )

h t h t t h t h t h t t t h t t h t R 8614 315 4307 882 34456 19 4307 416 8614 7443 8614 19389 4307 1152 17228 12555 4307 1484 8614 8853 34456 40291 , 2 3 2 3 2 4 2 3 4 4 − − + − − − + − − − = (11)

The stability region of the I2BBDF(5) method is plotted and presented in figure 1. We found that the absolute stability region covers the exterior of the circle. Hence, the method is A-stable since the stability region covers the entire negative half plane. (Babangida et. al [2]).

Figure 1. Stability region of the I2BBDF(5) method.

4. Tested Problem

To investigate the performance of I2BBDF(5) method, we apply the method on the following first order ODEs.

Problem 1: Linear Problem [Source: Burden and Faires [3]]

( )

0

1

,

0

2

.

,

cos

sin

20

20

'

=

y

+

x

+

x

y

=

x

y

(6)

3rd International Conference on Mathematical Sciences and Statistics IOP Conf. Series: Journal of Physics: Conf. Series 1132 (2019) 012017

IOP Publishing doi:10.1088/1742-6596/1132/1/012017

Problem 2: Non-linear Problem [Source: Musa [11]]

( )

0

2

,

0

1

.

,

50

50

=

=

y

y

x

y

y

Exact solution:

y

( )

x

=

1

+

e

−100x .

Problem 3: System of 2 equations [Source: Burden and Faires [3]]

( )

( )

, 0 10. 3 2 0 , sin 3 1 cos 9 51 24 , 3 4 0 , sin 3 1 cos 5 24 9 2 2 1 2 1 2 1 1 ≤ ≤ = + − − − = ′ = − + + = ′ x y x x y y y y x x y y y

Exact solutions:

y

( )

x

e

x

e

x

cos

x

3

1

2

3 39 1

=

+

− − and

( )

cos

.

3

1

2

39 3 2

x

e

e

x

y

=

x

+

x

5. Numerical Results

In this section, we give some numerical examples solved by the I2BBDF(5) method and compare it with the 2-point Implicit Block Method with an Off-stage Function (2P4BBDF) method by Zainal [18] and Fifth Order Block Backward Differentiation Formula (BBDF(5)) method by Nasir et. al [12]. See [18] and [12] for the details of the algorithm. Below are the notations that will be used in the tables:

h : Step size

2P4BBDF : 2-point Implicit Block Method with an Off-stage Function BBDF(5) : Fifth Order Block Backward Differentiation Formula

I2BBDF(5) : Improved 2-point Block Backward Differentiation Formula of order five NS : Number of steps taken

FN : Number of function evaluation MAXE : Maximum Error

time : Computational time used by the method in seconds

The maximum error is evaluated by using formula

( )

i t

(

( )

i

)

t NS t

y

y

x

MAXE

=

≤ ≤ 1

max

where NS is the total steps,

y

i is the approximate solution and y

( )

xi is the analytical solution. The numerical results are shown in table 1-3.

Table 1. Numerical results for Problem 1.

h Method NS FN MAXE time

2P4BBDF 1,000 - 1.83398e-02 -

10-3 BBDF(5) 1,000 3,998 9.71195e-04 3.06729e-05

I2BBDF(5) 1,000 3,997 7.35546e-04 2.87142e-06 2P4BBDF 100,000 - 1.96648e-04 -

10-5 BBDF(5) 100,000 399,998 1.07891e-07 1.41603e-03

I2BBDF(5) 100,000 400,001 8.01838e-08 1.38498e-04 2P4BBDF 10,000,000 - 1.96785e-06 -

10-7 BBDF(5) 10,000,000 39,999,998 3.35482e-11 2.27564e-02

(7)

3rd International Conference on Mathematical Sciences and Statistics IOP Conf. Series: Journal of Physics: Conf. Series 1132 (2019) 012017

IOP Publishing doi:10.1088/1742-6596/1132/1/012017

6

Table 2. Numerical results for Problem 2.

h Method NS FN MAXE time

2P4BBDF 500 - 2.82446e-02 -

10-3 BBDF(5) 500 1,998 4.88893e-03 5.61089e-06

I2BBDF(5) 500 1,997 3.89820e-03 1.99995e-06 2P4BBDF 50,000 - 3.65253e-04 -

10-5 BBDF(5) 50,000 199,998 7.13439e-07 2.21668e-04

I2BBDF(5) 50,000 199,997 5.30439e-07 4.12432e-05 2P4BBDF 5,000,000 - 3.66172e-06 -

10-7 BBDF(5) 5,000,000 19,999,998 7.15947e-11 1.00759e-02

I2BBDF(5) 5,000,000 19,999,997 5.31992e-11 5.61090e-03

Table 3. Numerical results for Problem 3.

h Method NS FN MAXE time

2P4BBDF 5,000 - 6.77482e-02 -

10-3 BBDF(5) 5,000 39,998 6.64841e-03 7.73547e-05

I2BBDF(5) 5,000 39,997 5.12864e-03 3.62559e-05 2P4BBDF 500,000 - 7.75727e-04 -

10-5 BBDF(5) 500,000 3,999,998 8.17344e-07 3.79007e-03

I2BBDF(5) 500,000 3,999,997 6.07555e-07 2.12218e-03 2P4BBDF 50,000,000 - 7.76778e-06 -

10-7 BBDF(5) 50,000,000 399,999,998 1.59108e-10 9.90200e-01

I2BBDF(5) 50,000,000 400,000,005 1.25315e-10 2.89056e-01

The errors generated by the methods are depicted in Figure 1-3.

(8)

3rd International Conference on Mathematical Sciences and Statistics IOP Conf. Series: Journal of Physics: Conf. Series 1132 (2019) 012017

IOP Publishing doi:10.1088/1742-6596/1132/1/012017

Figure 3. Efficiency curves for Problem 2.

Figure 4. Efficiency curves for Problem 3.

6. Discussion

In this section the performance of 2P4BBDF, BBDF(5) and I2BBDF(5) methods are discussed in terms of its accuracy, number of function evaluations and computational time. We choose 2P4BBDF and BBDF(5) as the method of comparison since the method is of the same order as the derived method. Table 1, 2 and 3 presents the numerical results obtained from 2P4BBDF, BBDF(5) and I2BBDF(5) methods. Based on table 1-3, the maximum error is getting smaller as the h decreases. As for 2P4BBDF method, we only compare in terms of the accuracy since the code is not available to run for computational time and function evaluation. Meanwhile, figure 1, 2 and 3 shows the efficiency of the method in terms of maximum error versus number of function evaluation as well as the maximum error versus computation time required by BBDF(5) and I2BBDF(5) methods. From the graphs of log MAXE against log FN, its show that the I2BBDF(5) method gives better performance compared to the

(9)

3rd International Conference on Mathematical Sciences and Statistics IOP Conf. Series: Journal of Physics: Conf. Series 1132 (2019) 012017

IOP Publishing doi:10.1088/1742-6596/1132/1/012017

8

BBDF(5) method. In terms of the computational time, the maximum error decreased as execution time increased. Therefore, the I2BBDF(5) method is more efficient as compare to the BBDF(5) method.

7. Conclusion

In this paper, we have discussed the derivation of an Improved 2-point Block Backward Differentiation Formula of order five, (I2BBDF(5)) method for solving first order stiff ODEs. These new I2BBDF(5) method enhanced the accuracy of the numerical solutions and reduced computational time. Further research into variation of stepsize for the solution of ODEs will be useful to increase the efficiency further.

Acknowledgement

This research was supported by

Grant Research Fellowship (GRF),

Universiti Putra Malaysia

(UPM) and

Institute for Mathematical Research, Department of Mathematics, UPM under GP-IPS/2017/9518700.

References

[1] Abasi N, Suleiman M, Abbasi N and Musa H 2014 2-point Block BDF Method with Off-step Points for Solving Stiff ODEs Journal of Soft Computing and Applications 2014 1-15

[2] Babangida B, Musa H and Ibrahim L K 2016 A New Numerical Method for Solving Stiff Initial Value Problems Fluid Mechanics: Open Access 3 1-5

[3] Burden R L and Faires J D 2001 Numerical Analysis, PWS-KENT Publishing Company, Boston, Seventh edition

[4] Gear C W 1971 Numerical Initial Value Problems in Ordinary Differential Equations (New Jersey: Prentice Hall, Inc)

[5] Ibrahim Z B, Othman K I and Suleiman M 2007(a) Implicit r-point Block Backward Differentiation Formula for Solving First-Order Stiff ODEs Applied Mathematics and

Computation. 186 558-565

[6] Ibrahim Z B, Othman K I and Suleiman M 2007(b) Variable Step Block Bacward Differentiation Formula for Solving First Order Stiff ODEs Proceedings of the World

Congress in Engineering. 2 785-789

[7] Ibrahim Z B, Suleiman M and Othman K I 2008 Direct Block Backward Differentiation Formulas for Solving Second Order Ordinary Differential Equations International Journal of

Mathematical, Computational, Physical, Electrical and Computer Engineering. 2 260-262

[8] Ibrahim Z B, Suleiman M and Othman K I 2008 Fixed Coefficients Block Backward Differentiation Formulas for the Numerical Solution of Stiff Ordinary Differential Equations

European Journal of Scientific Research. 21 508-520

[9] Lambert J D, 1973 Computational Methods in Ordinary Differential Equations (New York: John Wiley and Sons)

[10] Musa H, Suleiman M B, Ismail F, Senu N and Ibrahim Z B 2013 An Improved 2-point Block Backward Differentiation Formula for Solving Stiff Initial Value Problems AIP Conf. Proc. 1522 211-220

[11] Musa H 2013 New Classes of Block Backward Differentiation Formula for Solving Stiff Initial

Value Problems PhD Thesis, UPM

[12] Nasir N A A M, Ibrahim Z B, Othman K I and Suleiman M 2012 Numerical Solution of First Order Stiff Ordinary Differential Equations using Fifth Order Block Backward Differentiation Formulas Sains Malaysiana 41 489-492

[13] Rosser J B 1967 A Runge-Kutta for All Seasons SIAM 9 417-440

[14] Vijitha-Kumara K H Y 1985 Variable Stepsize Variable Order Multistep Methods for Stiff

Ordinary Differential Equations PhD Thesis, Iowa States University

[15] Voss D and Abbas S 1997 Block Predictor-Corrector Schemes for the Parallel Solution of ODEs Comp. Math. Applic. 33 65-72

(10)

3rd International Conference on Mathematical Sciences and Statistics IOP Conf. Series: Journal of Physics: Conf. Series 1132 (2019) 012017

IOP Publishing doi:10.1088/1742-6596/1132/1/012017

[16] Watts H A and Shampine L F 1972 A-stable Block Implicit One-Step Methods BIT. 12 252-266 [17] Yatim S A M, Ibrahim Z B, Othman K I and Suleiman M B 2013 A Numerical Algorithm for

Solving Stiff Ordinary Differential Equations Mathematical Problems in Engineering. 2013 Article ID 989381

[18] Zainal S Z 2014 Fifth Order 2-point Implicit Block Method with and Off-stage Function for

Solving First Order Stiff Initial Value Problems Master Thesis, UPM

[19] Zainuddin N, Ibrahim Z B, Othman K I and Suleiman M 2016 Direct Fifth Order Block Backward Differentation Formulas for Solving Second Order Ordinary Differential Equations Chiang Mai J. Sci. 43 1171-1181

References

Related documents