optimization of solution stiff differential equations...

5
17 Optimization of Solution Stiff Differential Equations Using MHAM and RSK Methods Department of Mathematics, Qazvin Branch, Islamic Azad University, Qazvin, Iran Shadan Sadigh Behzadi *Correspondence E-mail: [email protected] Iranian Journal of Optimization, 11(1): 17-21, 2019 Abstract In this paper, a nonlinear stiff differential equation is solved by using the Rosenbrock iterative method, modified homotpy analysis method and power series method. The approximate solution of this equation is calculated in the form of series which its components are computed by applying a recursive relation. Some numerical examples are studied to demonstrate the accuracy of the presented methods. Received: 17 December 2017 Accepted:27 April 2018 Keywords: optimization Stiff differential equations Power series method MHAM method RSK method Iranian Journal of Optimization Volume 11, Issue 1, 2019, 17-21 Research Paper Islamic Azad University Rasht Branch ISSN: 2588-5723 E-ISSN:2008-5427 Online version is available on: www.ijo.iaurasht.ac.ir

Upload: others

Post on 19-May-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Optimization of Solution Stiff Differential Equations …ijo.iaurasht.ac.ir/article_539488_72c728c010af85af53c...sider the problems in the following system of ordinary differential

17

Optimization of Solution Stiff Differential EquationsUsing MHAM and RSK Methods

Department of Mathematics, Qazvin Branch, Islamic Azad University, Qazvin, IranShadan Sadigh Behzadi

*Correspondence E-mail: [email protected]

Iranian Journal of Optimization, 11(1): 17-21, 2019

AbstractIn this paper, a nonlinear stiff differential equation is solved by using

the Rosenbrock iterative method, modified homotpy analysis methodand power series method. The approximate solution of this equation iscalculated in the form of series which its components are computed byapplying a recursive relation. Some numerical examples are studied todemonstrate the accuracy of the presented methods.

Received: 17 December 2017 Accepted:27 April 2018

Keywords:optimizationStiff differential equationsPower series methodMHAM methodRSK method

Iranian Journal of Optimization Volume 11, Issue 1, 2019, 17-21

Research PaperIslamic Azad University

Rasht BranchISSN: 2588-5723 E-ISSN:2008-5427Online version is available on: www.ijo.iaurasht.ac.ir

Page 2: Optimization of Solution Stiff Differential Equations …ijo.iaurasht.ac.ir/article_539488_72c728c010af85af53c...sider the problems in the following system of ordinary differential

INTRODUCTIONThe goal of this paper is to implement the

power seies method, MHAM method and RSKmethod the stiff differential equations, whichare often encounter in physical and electricalcircuits problems. This equation models longwave in a nonlinear dispersive system. Sosome numerical techniques prefer to considerovercoming this type of problem. In recentyears, much research has been focused on nu-merical solution of the system of differentialequations by using technique of Adomian’s de-composition methods. In the literature, theAdomian’s decomposition is used to find ap-proximate numerical and analytic solutions ofa wide class of linear or nonlinear differentialequations (Adomian 1994,1998; Kaya, 2004;Repaci, 1990). The basic purpose of this paperis to illustrate advantages of using Rosenbrockmethod over the other methods namely Padéapproximation method and Adomian’s decom-position method in terms of numerical compar-isons. However, it shall be considered theRosenbrock method (Wanner & Hairer, 1996;Rosenbrock 1960; Schmitt & Weiner 2004;Zhao et al., 2005), Padé approximation method(Baker and Morris 1996), and the Adomian’sdecomposition method in order to solve thesystem of first order differential equations. Alot of works have been done in order to findnumerical solution of this equation. For exam-ple (Adomian, 1994; Behiry et al.,2007; Per-turbation, 2003; Corliss & Chang, 1982;Wanner & Hairer, 1996; Wahlbin, 1974; Kaya,2004; Repaci, 1990).

ANALYSIS OF THE NUMERICALMETHODS

Power series methodSuppose k is a positive integer and f1 , f2 ,…, fk

are k real continuous functions defined on somedomain . To obtain k differentiable functions y1

, y2 , … , yk defined on the interval I such that(t, y1 (t), y2 (t),…, yk (t))∈G for t∈I. Let us con-sider the problems in the following system ofordinary differential equations:

(1)

where βi is a specified constant vector, yi (t)is the solution vector for i=1,2,…,k . In thepower series method, (1) is approximated bythe operators in the form: Lyi (t)=fi (t, y1 (t), y2(t),…, yk (t)) where L is the first order operatordefined by l=d⁄dt and i=1,2,…,k . Assumingthe inverse operator of L is L-1 which is invert-ible and denoted by L-1 (0)=∫t0t (0)dt, then ap-plying L-1 to lyi (t) yields

where i=1,2,…,k .. Thus yi (t)=yi (t0 )+L-1 fi (t,y1 (t), y2 (t),…, yk (t)). Hence the power seriesmethod consists of representing yi (t) in the se-ries form given by

where the components yi,n ,n≥1 and i=1,2,…,k can be computed readily in a recursive man-ner. Then the series solution is obtained as

MHAM methodThe MHAM method is a zeroth order approxi-

mating search algorithm that does not require anyderivatives of the desired function, just only sim-ple evaluations of the objective function are used.This method is particularly well suited when theobjective function does not require a great dealof computing power. In such a case, it is uselessto use very complicated optimization algorithmswhich are needed to loose more spare time in theoptimization calculations, instead of making a lit-tle bit more evaluations of the objective functionthat will lead, at the end, to a shorter calculationtime. The numerical solution of systems of ordi-nary differential equation of the form, y'

(x)=f(y(x)),y(x0)=y0. The MHAM methodsearches to look for the solution of the formyn+1=yn+h∑i=1

s ci ki where the corrections ki arefound by solving linear equations that generalizethe structure in

(2)

Here Jacobi matrix is denoted by The coefficients y, ci , αij and yij are fixed con-

Iranian Journal of Optimization, 11(1): 17-21, 201918

Page 3: Optimization of Solution Stiff Differential Equations …ijo.iaurasht.ac.ir/article_539488_72c728c010af85af53c...sider the problems in the following system of ordinary differential

19

stants independent of the problem.

RKS MethodSuppose that f(x) has a Maclaurin expansion

about the zero such as whereci=0,1,2,… .The RKS is a rational function(Zhao et al., 2005).

(3)

which has a Maclaurin expansion which agreeswith power series as far as possible. Notice thatP_f has a quotient of polynomials, which has L+1terms numerator coefficients and M+1 denomi-nator coefficients. There is a more or less irrele-vant common factor between them, and fordefiniteness we take β0=1. This choice turns outto be an essential part of the precise definitionand Pf is here conventional notation with thischoice for β0. So there are L+1. independent nu-merator coefficients and M independent denom-inator coefficients which makes L+M+1.unknown coefficients in all. This number sug-gests that normally the [[L⁄M]] must to fit thepower series through the orders 1,x, x2 , x3 ,…,x(L+M) in the notion of formal power series

(4)

Substituting (4) in (3), then

(5)

Equating the coefficients of in(5), then

(6)...

are obtained. If J<0, then cj=0 is defined forconsistency. Since β0=1, the system which isgiven by (6) become a set of M linear equationsfor unknown denominator coefficients asfollows:

Thus βI can be calculated easily. The numeratorcoefficients α0, α1 ,…, αL follow immediatelyfrom (5) by equating the coefficients 1, x," x2

x^3 ,,…, x^L, then α0 = c0 , , α1= c1+β1c0

,α2=c2+β1 c1+β2 c0 ,…, ,are obtained.

NUMERICAL EXAMPLESExample 1. Let us to consider the following

differential equation as follows (Rosenbrock,1960):

(7)

with initial conditions

The exact solution of this problem is

where initial conditions

(8)

R e -

garding to these approximate solutions, it is

Iranian Journal of Optimization, 11(1): 17-21, 2019

Page 4: Optimization of Solution Stiff Differential Equations …ijo.iaurasht.ac.ir/article_539488_72c728c010af85af53c...sider the problems in the following system of ordinary differential

illustrated with Tables in which the errors can be seen as follows:

Iranian Journal of Optimization, 11(1): 17-21, 201920

X Exact MHAM RKS Abs. Err. MHAM RKS. Err. Abs0.0 0 -9.35E-08 0.0011905 0 £012-

0.1 0.1617584 0.1617584 0.1619634 £016- £013-

0.2 0.3512394 0.3512394 0.3512605 £016- £014-

0.3 0.5630688 0.5630689 0.5630697 £016- £015-

0.4 0.7859815 0.7859816 0.7859815 £016- £018-

0.5 1 1.0000001 1 £017- 0

0.6 1.1725466 1.1725469 1.1725467 £015- £017-

0.7 1.2531327 1.253133 1.2531337 £015- £015-

0.8 1.166156 1.1661561 1.1661811 £016- £014-

0.9 0.8011947 0.8011947 0.8014527 £016- £013-

1 0 7.203E-07 0.0015873 £015- £012-

E £015- £012-

Example 2. We consider the system as follows:

(9)

with initial conditions

The exact solution of this problem is

X Exact Sol MHAM RKS Abs. Err. MHAM RKS. Err. Abs0.0 0 -1E-08 -0.0001984 ::; 10-8 ::; 10-3

0.1 0.2582482 0.2582482 0.2582214 ::; 10-7 ::; 10-4

0.2 0.3613712 0.3613712 0.3613692 ::; 10-7 ::; 10-4

0.3 0.3271114 0.3271114 0.3271114 ::; 10-6 ::; 10-6

0.4 0.1907226 0.1907226 0.1907226 ::; 10-7 ::; 10-9

0.5 0 2E-10 0 ::; 10-9 0

0.6 -0.1907226 -0.1907226 -0.1907226 ::; 10-7 ::; 10-9

0.7 -0.3271114 -0.3271114 -0.3271114 ::; 10-6 < 10-6

0.8 -0.3613712 -0.3613712 -0.3613692 ::; 10-7 ::; 10-4

0.9 -0.2582482 -0.2582482 -0.2582214 ::; 10-7 ::; 10-4

1 0 1E-08 0.0001984 ::; 10-8 ::; 10-3

E < 10-6 ::; 10-3

Page 5: Optimization of Solution Stiff Differential Equations …ijo.iaurasht.ac.ir/article_539488_72c728c010af85af53c...sider the problems in the following system of ordinary differential

21

CONCLUSIONThe RKS and MHAM methods have been

shown to solve effectively, easily and accuratelya large class of nonlinear stiff problems with theapproximations which convergent are rapidly toexact solutions. In this work, the RKS andMHAM methods have been successfully em-ployed to obtain the approximate analytical so-lution of the stiff differential equations. Thesolution is rapidly convergent by using this meth-ods.

REFERENCE Adomian, G. (1994). Solving frontier problems

of physics: The decomposition methodkluwer.Boston, MA.

Behiry, S. H., Hashish, H., El-Kalla, I. L., & El-said, A. (2007). A new algorithm for the de-composition solution of nonlinear differentialequations. Computers & Mathematics withApplications, 54(4), 459-466.

Corliss, G., & Chang, Y. F. (1982). Solving ordi-nary differential equations using Taylor series.ACM Transactions on Mathematical Software(TOMS), 8(2), 114-144.

Kaya, D. (2004). A reliable method for the nu-merical solution of the kinetics problems. Ap-plied mathematics and computation, 156(1),261-270.

Perturbation, B. (2003). Introduction to the Ho-motopy analysis method Chapman andHall/CRC Press, Boca Raton.

Rèpaci, A. (1990). Nonlinear dynamical systems:on the accuracy of Adomian's decompositionmethod. Applied Mathematics Letters, 3(4),35-39.

Rosenbrock, H. (1960). An automatic method forfinding the greatest or least value of a func-

tion. The Computer Journal, 3(3), 175-184.Schmitt, B. A., & Weiner, R. (2004). Parallel

two-step W-methods with peer variables.SIAM Journal on Numerical Analysis, 42(1),265-282.

Wahlbin, L. (1974). Error estimates for aGalerkin method for a class of model equa-tions for long waves. Numerische Mathe-matik, 23(4), 289-303.

Wanner, G., & Hairer, E. (1996) Solving Ordi-nary Differential Equations II, Stiff andDifferential-Algebraic Equations. Springer-Verlag, Berlin.

Zhao, J. J., Xu, Y., Dong, S. Y., & Liu, M. Z.(2005). Stability of the Rosenbrock methodsfor the neutral delay differential-algebraicequations. Applied mathematics and compu-tation, 168(2), 1128-1144.

Iranian Journal of Optimization, 11(1): 17-21, 2019

Fig. 1 Fig. 2