• Tidak ada hasil yang ditemukan

An economical first order Runge-Kutta Method for solving Ordinary Differential Equations

N/A
N/A
Protected

Academic year: 2024

Membagikan "An economical first order Runge-Kutta Method for solving Ordinary Differential Equations"

Copied!
6
0
0

Teks penuh

(1)

An Economical First Order Runge-Kutta Method for Solving Ordinary Differential Equations

Lim Tian Hwee1* and Nor’aini Aris2

1Foundation, Studies and Language Institute, University of Reading Malaysia, Persiaran Graduan, Educity, 79200 Iskandar Puteri, Johor, Malaysia.

2Department of Mathematical Sciences, Faculty of Science, University Technologi Malaysia, 81310 Johor Bahru, Johor, Malaysia.

ABSTRACT

In this paper, we presented a type of Runge-Kutta method to solve initial value problems in Ordinary Differential Equations. Similar to Euler’s method, the new method is of order one, easy to implement and only require one function evaluation per step except the initial step.

The only different is this method requires the information from the previous step. We studied the stability of the new method and numerical results are presented.

Keywords: Economical Runge-Kutta Method, First Order, Ordinary Differential Equations.

1. INTRODUCTION

There are a lot of methods proposed to solve the following ordinary differential equations (ODEs)

0 0

' ( , ),

( ) .

y f x y y x y

 (1)

One of the methods is the Runge-Kutta method. Euler’s method can be considered the easiest and most economical method in the family of Runge-Kutta method. However, this method also has some disadvantages. For example, Euler’s method is well known to be less accurate compare to higher order Runge-Kutta method, it is unstable for stiff problems and its approximated solution converge slower to analytical solution [5].

Higher order Runge-Kutta method is often used rather than Euler’s method to improve accuracy.

However, higher order method often more computational costly. For example, the famous Improved Euler method proposed by Heun is a second order method and it requires two function evaluations [6]. As a result, introduction of additional stage is necessary to improve accuracy of first order method. For example, Ashour and Hanna [1] proposed a two stages first order method, which is more efficient than Euler’s method for solving mildly stiff and non-stiff problems.

When talking about economical method for solving ODEs, one would probably think of pseudo Runge-Kutta method. The idea of pseudo Runge-Kutta method is first proposed by Bryrne and Lambert [2]. This method has been studied extensively and modified by Costabile [3] and Nakashima [7]. Unlike Runge-Kutta methods, pseudo Runge-Kutta methods require information from the previous step and they are more economical compare to the conventional method of the same order. However, pseudo Runge-Kutta methods are not self-starting. In other words,

*Corresponding Author: [email protected]

(2)

62

they need two initial values wherey1is normally computed by using Runge-Kutta method [7, 9].

A few years later Costabile et. al. [4] invented a new method for ODEs, called the Economical Runge-Kutta method. This method is presented as:

1

1 1

0 0

1 1 1

2

, ( , ),

, .

s n

n n i i

i s

i

n n n

i n i n i s ij j

j

y y h b K

K f x y

K f x c h y h a K a K

 

  

      

(2)

where b1

0

and cs

1

. Unlike pseudo Runge- Kutta method, this method is self-starting and is computational cheaper than traditional Runge-Kutta method. They have presented second, third, forth and fifth order methods in their paper [4].

We follow the ideas from Costabile et. al. [4] to construct an economical first order method to solve ODEs. The only different is our method is with b1

0

. The method proposed has the same feature as Euler’s method, which is of order one, simple, easy to implement and not computational expensive. Since the proposed method has small stability region, like Euler’s method, the proposed method is not suitable for stiff problems. Therefore, the test problems in section 4 are non-stiff problems.

2. DERIVATION OF THE METHOD

Consider the following two stages Runge-Kutta method:

 

 

1 1 1 2 2

1

2 2 2 1

, ( , ),

, .

n n

n n

n

n n

n n

n n

y y h b K b K K f x y

K f x c h y hc K

  

  

(3)

If we set c2

1

, the necessary condition for the above method to be first order will be

1 1 2

b  b , 2 1

b  2. (4)

As mentioned, Ashour-Hanna method [1] is an example of two stages first order method. Since

2

1

c , it is not hard to see that

 

1 2

1 2

n n

KK O h . (5)

By using (5), method (3) with can be written as

 

 

1

1 1 1 2 2

1

2 2

,

, .

n n

n n

n n

n n

y y h b K b K K f x h y hK

  

   (6)

(3)

63 with K21f x y( 0, 0). Therefore, method (6) is in the form of Economical Runge-Kutta method as (2). Since this method has the same error bound as method (3), according to Ralston [8], we defined the error bound for method (6)

1 2 2

E   b ML. (7)

Since it satisfies conditions in (4), it is not hard to see that method (6) will become a second order method by selecting 2 1

b  2. Our objective is to select a value so that (7) is not too small until it looks like a second order method and it should also be a “nice number”. Finally, we select

2

3

b 5 with | E | = 0.2ML.

3. STABILITY ANALYSIS

By applying the test equationy

yto method (6), we obtained the following stability polynomial

1 2 2 1

2

1

( 1 ) ( )

  n  n

n h b y h b h b K

y

 

. (8)

Let 

 

 1

2 n n

n hK

u y and z h, equation (8) can be written as

n

n Au

u 1  , (9)

where 

 

  

z z

zb b A 1 zb2 1 2

. According to Costabile et. al. [4], the characteristic polynomial for the proposed method is

0 ) (

) 1

( 2 1 2 2

2 zbzbzz b

. (10)

Solve (10), we obtain the following complex roots:

2 2

1 2

1 4 25 120 124 1 4 25 120 124

, .

2 5 10 2 5 10

z z z z

z z

  

   (11)

Consider z = x + yI ,

1

1

and

2

1

, we obtained the stability region for method (3) as follows:

(4)

64

Figure 1. Stability region of the new first order economical Runge-Kutta method.

By definition, a numerical method is said to be A-stable if its region of absolute stability contains the whole of the left-hand half plane. For stiff differential equation, it is desirable to have A- stable numerical method [5, 6]. Since the stability region of the proposed method is small and is not A-stable, we conclude that this method is only suitable for non-stiff problems.

4. NUMERICAL RESULTS

In this section, we compare the method we proposed in section 2 with Euler’s method by solving a few ODEs. Since our method is not suitable to solve stiff differential equations, the test problems in this section are all non-stiff problems. Test problem 1 to 3 are obtained from Costabile et. al [4] and test problem 4 is obtained from Nakashima [7].

Problem 1 yy, y(0) = 1

Exact solution: y x( )ex, for 0 ≤ x ≤ 10.

Problem 2

2

y3

y , y(0) = 1

Exact solution:

x x

y  

1 ) 1

(

, for 0 ≤ x ≤ 10.

Problem 3

 

 



1 20 4

y

y y , y(0) = 1

Exact solution:

19 4

1 ) 20

( x

e x

y

  , for 0 ≤ x ≤ 10.

(5)

65 Problem 4

, 2 3

,

2 1 2

2 1

y y y

y y

2 ) 0 (

2 ) 0 (

2 1

y y

Exact solution:

x x

x x

e e x y

e e x y

3 2

3 1

3 ) (

)

(

, for 0 ≤ x ≤ 2.

Below is the notation used:

H : Step size

EULER : Euler’s method ECO1 : The proposed method MAXERROR : Maximum error | y(xi) – yi |

Table 1 Numerical result for problem 1

H Method MAXERROR

0.1 EULER

ECO1 1.9201 × 10 – 2

2.5280 × 10 – 3

0.05 EULER

ECO1 9.3935 × 10 – 3

1.5520 × 10 – 3

0.01 EULER

ECO1 1.8471 × 10 – 3

3.5641 × 10 – 4

0.005 EULER

ECO1 9.2162 × 10 – 4

1.8107 × 10 – 4

0.001 EULER

ECO1 1.8402 × 10 – 4

3.6673 × 10 – 5 Table 2 Numerical result for problem 2

H Method MAXERROR

0.1 EULER

ECO1 9.6944 × 10 – 3

1.3308 × 10 – 3

0.05 EULER

ECO1 4.7190 × 10 – 3

7.9124 × 10 – 4

0.01 EULER

ECO1 9.2430 × 10 – 4

1.7876 × 10 – 4

0.005 EULER

ECO1 4.6100 × 10 – 4

9.0674 × 10 – 5

0.001 EULER

ECO1 9.2016 × 10 – 5

1.8342 × 10 – 5 Table 3 Numerical result for problem 3

H Method MAXERROR

0.1 EULER

ECO1 9.5325 × 10 – 2

2.0381 × 10 – 2

0.05 EULER

ECO1 4.7812 × 10 – 2

9.8943 × 10 – 3

0.01 EULER

ECO1 9.5861 × 10 – 3

1.9306 × 10 – 3

0.005 EULER

ECO1 4.7945 × 10 – 3

9.6224 × 10 – 4

0.001 EULER

ECO1 9.5913 × 10 – 4

1.9196 × 10 – 4

(6)

66

Table 4 Numerical result for problem 4

H Method MAXERROR (y1) MAXERROR (y2)

0.1 EULER

ECO1 6.6324 × 10 – 1

1.8470 × 10 – 1 6.5651 × 10 – 1 1.8489 × 10 – 1

0.05 EULER

ECO1 3.5004 × 10 – 1

8.4086 × 10 – 2 3.4614 × 10 – 1 8.3661 × 10 – 2

0.01 EULER

ECO1 7.3256 × 10 – 2

1.5250 × 10 – 2 7.2386 × 10 – 2 1.5089 × 10 – 2

0.005 EULER

ECO1 3.6841 × 10 – 2

7.5190 × 10 – 3 3.6401 × 10 – 2 7.4342 × 10 – 3

0.001 EULER

ECO1 7.4027 × 10 – 3

1.4866 × 10 – 3 7.3137 × 10 – 3 1.4689 × 10 – 3

5. CONCLUSIONS

By using the idea from Costabile et al [4], we presented an economical first order method to solve ODEs. The only difference is our method does not necessarily require b1

0

. The proposed method is similar to Euler’s method, which is simple, easy to understand and only require one function evaluation per step.

We studied the stability of the new method in section 3. Since this method is not A-stable, we conclude that it is not suitable to solve stiff problems. We compare our method with Euler’s method in section 4. Numerical results show that the proposed method is more accurate and more reliable than Euler’s method.

REFERENCES

[1] Ashour, S. S. & Hanna, O. T. A very simple explicit method for the integration of mildly stiff ordinary differential equations. Computers & Chemical. Engineering, 14, 3 (1990) 267- 272.

[2] Byrne, G. & Lambert, R. Pseudo Runge-Kutta methhods involving two points, Journal of Association for Computing Machinery, 13, 1 (1966) 114-123.

[3] Costabile, F. Metodi Pseudo Runge-Kutta di seconda specie. Calcolo, 7 (1970) 305-322.

[4] Costabile, F., Caira, R., & Gualtieri, M. I. Economical Runge-Kutta method. Rend. Mat., 1, VII, (1995) 57-77.

[5] Hurol, S. Numerical Methods for Solving Systems of Ordinary Differential Equations.

Master Thesis, Eastern Mediterranean University, (2013).

[6] Lambert, J. D. “Computational Methods in Ordinary Differential Equation”, John Wiley and Sons, New York, (1973).

[7] Nakashima, M. On Pseudo Runge-Kutta method with 2 and 3 stages, RIMS, Kyoto University, 18 (1982) 895-909.

[8] Raltston, A. Runge-Kutta methods with minimum error bounds. Mathematics of Computation, 16 (1962) 431-437.

[9] Sabri, N. A. A & Mamat, M. Solving Delay Differential Equations (DDEs) using Nakashima’s 2 Stages 4th Order Pseudo Runge-Kutta Method. World Applied Sciences Journal, 21 (Special Issue of Applied math) (2013) 181-186.

Referensi

Dokumen terkait

A direct integration method of variable order and step size for solving systems of nonstif higher order ODEs has been discussed in [11] whereby [12] has proposed an algorithm based

In this section, we compare the number of iteration to obtain an approxi- mated root for Rafiullah’s Method (MR), equation (8), Second Derivative- Free Variant of Halley’s Method

Some of semi-analytic methods for solving fractional problems such as the Adomian decomposition method ADM [–], homotopy analysis method HAM [–], homo- topy perturbation method HPM

Refinement of SOR method for the rational finite difference solution of first-order fredholm integro-differential equations ABSTRACT As it is known, the linear rational finite