Professional Documents
Culture Documents
Open Access. © 2020 Travis J. Moore and Vedat S. Ertürk, published by De Gruyter. This work is licensed under the Creative
Commons Attribution alone 4.0 License. Unauthenticated
Download Date | 7/22/19 2:25 PM
2 | Travis J. Moore and Vedat S. Ertürk, Comparison of the method of variation of parameters
Unauthenticated
Download Date | 7/22/19 2:25 PM
Travis J. Moore and Vedat S. Ertürk, Comparison of the method of variation of parameters | 3
The solution to (1) is therefore given by Moving R (y) to the right side of (5) and applying the in-
(︁ )︁ verse operator to both sides yields
∫︁x f t, y, y′ y2
y (x) = c1 y1 + c2 y2 − y1 ′ ′ dt y (x) = y0 − L−1 R (y) + L−1 N (y) (7)
y1 y2 − y2 y1
x0 ′ ′
(︁ )︁ where y0 = y (x0 ) + y (x0 ) x − y (x0 ) x0 is the first compo-
∫︁x f t, y, y′ y1
nent of the decomposition series given by
+ y2 ′ ′ dt (4)
y1 y2 − y2 y1 ∞
x0 ∑︁
y (x) = y n (x) . (8)
where the constants c1 and c2 are determined from the n=0
boundary conditions. Equation (4) is an exact solution to The nonlinear function N (y) is represented by the infinite
(1). However, due to the implicit nature of this solution, an series
iterative approach is required to approximate y. Numeri- ∞
∑︁
cal integration must be used during the iteration process N (y) = Nn (9)
′
and, if f is a function of y , finite difference methods are re- n=0
quired to approximate the derivative. The accuracy of this where the components N n are the Adomian polynomials
method is therefore limited by the accuracy of the numeri- which are defined as [21]
cal methods employed. Details regarding the comparisons [︃ (︃ n )︃]︃
between exact solutions and those obtained by VPM are 1 dn ∑︁ i
N n (y0 , y1 , . . . , y n ) = N yi λ , n ≥ 0.
n! dλ n
available in [20]. i=0 λ=0
(10)
Unauthenticated
Download Date | 7/22/19 2:25 PM
4 | Travis J. Moore and Vedat S. Ertürk, Comparison of the method of variation of parameters
where the coefficients Y (0), Y (1). . . Y (N ) are obtained by 5.1 Solution by the method of variation of
applying the differential transform parameters
1 dk y
[︂ ]︂
Y (k) = (13) The complementary solution to (18) is y c = c1 x + c2 where
k! dx k x=x0
y1 = x and y2 = 1. Using the method of variation of param-
to both sides of the differential equation. The result is an eters as outlined in Section 2 and applying the boundary
algebraic equation whose unknowns are the coefficients of conditions to find the constants c1 and c2 results in the
the series solution (12). Common operation properties of following solution to (18).
the one-dimensional differential transform can be found
in [23, 25]. Equation (1) can be rearranged as follows ∫︁1 (︁ )︁ ∫︁x (︁ )︁
t
y (x) = 1 − x e − y dt + x e t − y dt
d2 y dy (︁ ′
)︁
= −p ( x ) − q ( x ) y + f x, y, y (14) 0 0
dx2 dx
∫︁x (︁
and the differential transform operations applied, result-
)︁
− t e t − y dt (19)
ing in the following recursive relation
0
1
Y ( k + 2) = This solution is implicit and must be solved iteratively and
( k + 1 ) ( k + 2)
{︃ k
∑︁
}︃ the integrals must be evaluated numerically.
− [(l + 1) Y (l + 1) P (k − l) + Y (l) Q (k − l)] + F (k)
l=0
(15) 5.2 Solution by the Adomian decomposition
where Y (k), P (k), Q (k), and F (k) are the differential trans- method
formations
(︁ )︁ of y (x), p (x), q (x), and the nonlinear function
′
f x, y, y , respectively. This equation can be used along Application of the inverse operator (6) to both sides of (18)
with the transformed boundary conditions to find the val- yields
ues of Y (k) required in the series solution. As is the case
y (x) = y0 + xy′ 0 + L−1 e x − L−1 (y)
(︀ )︀
(20)
for ADM, DTM results in a truncated series solution which
only provides an accurate approximation of the true solu- where x0 = 0. Since y0 = y (0) = 1 and L−1 e x = e x − x −1,
(︀ )︀
tion in a very small region. then from (11)
x2 y′ 0 x3 x5 y′ x5
The following example will demonstrate the use of all y (x) =e x − x + y′ 0 x − − − + 0 +...
2 6 120 120
three methods to solve BVPs. Consider the following (22)
boundary value problem.
′ ′
where y0 = y (0) is found by applying the boundary con-
d2 y ′
+ y = ex ,
′
y (0) = 1, y (1) = 0 (16) dition y (1) = 0.
dx2
The analytical solution is
(︂ )︂
1 1 sin 1 − e 1 5.3 Solution by the differential
y (x) = cos (x) + sin (x) + e x . (17)
2 2 cos 1 2
transformation method
If (16) is rearranged as
d2 y ′
Application of the differential transform operators to (18),
= e x − y, y (0) = 1, y (1) = 0 (18) where the differential transform of e x is 1/k!, gives the fol-
dx2
lowing recurrence relation.
it can be treated as an equation of the form of (1) with
p (x) = q (x) = 0 and f = e x − y and can be solved us-
(︂ )︂
1 1
Y ( k + 2) = − Y(k) (23)
ing numerical and semi-analytical methods as presented (k + 1) (k + 2) k!
below.
Unauthenticated
Download Date | 7/22/19 2:25 PM
Travis J. Moore and Vedat S. Ertürk, Comparison of the method of variation of parameters | 5
From the differential transform given by (13), the trans- solved for in terms of the unknown constant Y (1), which
formed boundary conditions are was approximated at each iteration by applying the sec-
N ond boundary condition in (24). At each iteration, the se-
∑︁
Y (0) = 1, kY (k) = 0. (24) ries approximation of y was calculated over the domain
k=0 at 101 discrete values of x. Convergence was considered
Utilizing the recurrence relation in (23) and the first trans- achieved when the Euclidean norm of the difference be-
formed boundary condition, Y (k) for k ≥ 2 are found and tween the current and previous iteration values of y fell
the following series solution to (18) is obtained from (12). below 1 × 10−16 . Further decreasing this criterion had no
effect on the solution. Convergence was achieved in 0.047
x 4 Y ( 1) x 5
(︂ )︂
1 Y (1) seconds with 21 terms in the series solution. The average
y (x) = 1 + Y (1) x + − x3 + + + ....
6 6 24 120 percent error between the DTM solution and the exact so-
(25) lution at the discrete values was 3.14 × 10−14 %.
The second transformed boundary condition is used to In order to compare these methods to traditional nu-
′
solve for the unknown Y (1) = y (0). merical methods, (18) was also solved with the “bvp4c”
routine provided in MATLAB. This routine is a finite dif-
ference method (FDM) that implements the three-stage
5.4 Results and discussion Lobatto IIIa collocation formula to solve boundary value
problems. The solution to (18) was approximated at 101
In order to properly compare the accuracy and efficiency discrete values of x. The relative tolerance was set to 1 ×
of the method of variation of parameters to the semi- 10−7 below which there was no change to the solution.
analytical methods, all three methods were implemented The computational time required was 0.278 seconds and
in MATLAB [26], a high-level scripting language. Equation the average percent error between the FDM solution and
(19) was solved iteratively with an initial guess of y (x) = 0 the exact solution at the discrete values was 1.35 × 10−7 %.
for 101 discrete values of x equally spaced over the do- Table 1 shows a comparison of the computational time re-
main. Simpson’s rules were used to perform the numerical quired to achieve convergence and the average percent er-
integration. Convergence was considered achieved when ror for each of the methods. It also compares the results
the Euclidean norm of the difference between the current of each method at six discrete points with 10 significant
and previous iteration values of y fell below 1 × 10−9 . Fur- figures. Figure 1 shows a plot of the solutions at discrete
ther decreasing this criterion had no effect on the solution points.
for all 15 significant figures of the double precision val-
ues. Convergence was achieved after 25 iterations which
took 0.0338 seconds. The average percent error between
the VPM solution and the exact solution at the discrete val-
ues was 3.89 × 10−7 %.
To solve (18) in MATLAB using the Adomian decompo-
sition method, the terms in the series solutions were solved
for symbolically in terms of the unknown y′ 0 . At each iter-
ation, the boundary condition y′ (1) = 0 was enforced to
calculate a value for y′ 0 using a numeric solver and the
series approximation of y was calculated over the domain
at 101 discrete values of x. Convergence was considered
achieved when the Euclidean norm of the difference be-
tween the current and previous iteration values of yfell be-
low 1 × 10−12 . Further decreasing this criterion had no ef-
fect on the solution. Convergence was achieved in 3.24 sec-
onds with 9 terms in the series solution. The average per-
cent error between the ADM solution and the exact solu-
tion at the discrete values was 3.54 × 10−14 %.
Implementation of the differential transformation
method to solve (18) in MATLAB followed the same pro- Fig. 1: Comparison of the solutions to equation (18) using all meth-
ods
cedure as that used for ADM. The terms in the series were
Unauthenticated
Download Date | 7/22/19 2:25 PM
6 | Travis J. Moore and Vedat S. Ertürk, Comparison of the method of variation of parameters
All methods produced highly accurate results rela- 6.1 Solution by the method of variation of
tive to the exact solution. The accuracies of the two semi- parameters
analytical methods were roughly the same and were much
greater than those of the method of variation of parameters The complementary solution to (26) is θ c = c1 s + c2 where
and the finite difference method, which also had compara- θ1 = s and θ2 = 1. Using the method of variation of param-
ble accuracies. VPM was the most efficient of all methods. eters as outlined in Section 2 and applying the boundary
The required computational time was much lower than conditions to find the constants c1 and c2 results in the
ADM and FDM and slightly lower than DTM. The accuracy following solution to (26),
of VPM and FDM can be increased by using smaller dis-
∫︁1 ∫︁1 ∫︁s
cretization, which would decrease the efficiency. The ac-
θ (s) = f (t, θ) tdt − f (t, θ) dt + s f (t, θ) dt
curacy of VPM can also be increased by using more accu-
0 0 0
rate numerical quadrature methods. The following practi-
∫︁s
cal engineering applications show that the method of vari-
− f (t, θ) tdt (27)
ation of parameters is, in general, significantly faster than
0
semi-analytical methods and traditional numerical meth-
ods for soling boundary value problems while also main- where f (s, θ) = −λs cos θ is the nonlinear function.
taining a high level of accuracy.
ear boundary value problem as a model of the deflection where L−1 is given by (6) with s0 = 0. Since θ (0) = 0 then
of a cantilever beam under a concentrated load, θ0 = θ (0) and from (11)
Unauthenticated
Download Date | 7/22/19 2:25 PM
Travis J. Moore and Vedat S. Ertürk, Comparison of the method of variation of parameters | 7
Table 1: Comparison of the required computational time to solve (18) and solutions at six data points
Unauthenticated
Download Date | 7/22/19 2:25 PM
8 | Travis J. Moore and Vedat S. Ertürk, Comparison of the method of variation of parameters
Table 2: Comparison of the required computational time to solve (26) and solutions at six data points
Table 3: Comparison of the required computational time to solve (33) and solutions at six data points
d2 y dy
−λ = λµ (y − β) exp (y),
dx2 dx
′ ′
y (0) = λy (0) , y (1) = 0 (33)
Unauthenticated
Download Date | 7/22/19 2:25 PM
Travis J. Moore and Vedat S. Ertürk, Comparison of the method of variation of parameters | 9
7.2 Solution by the Adomian decomposition Equation (33) was solved in MATLAB using each of the
method methods with λ = 5, µ = 0.05, and β = 0.53, consis-
tent with [34–36]. The same procedures as those described
Application of the inverse operator to both sides of (33) and in Section 5.4 were used to implement the four solution
using (7) yields methods. The convergence criterion for VPM was 1 × 10−12
which was achieved in 0.0284 seconds after 8 iterations.
′ ′
(︁ )︁
y (x) = y (0) + xy (0) + λ L−1 y + µL−1 ((y − β) exp (y) ) Due to the slow rate of convergence of ADM, the conver-
(35) gence criterion set to 1 × 10−5 . Convergence was achieved
in 25.7 minutes with 6 terms in the series solution. The Ado-
where L−1 is given by (6) with x0 = 0. The first boundary mian polynomials were calculated with the aid of the MAT-
condition combined with the first two terms on the right LAB function “allVl1” [31]. Increasing the convergence cri-
side of (35) provide the first term in the series solution y0 = terion decreased the required computational time but also
y (0) + λx y (0). The recursive relation is therefore decreased the accuracy of the solution. The convergence
(︁ ′
)︁ criterion for DTM was 1 × 10−7 which was achieved in 25.2
y n+1 = λ L−1 y n + µL−1 (N n ) , n≥0 (36) seconds with 20 terms in the series solution. An under-
relaxation factor of 0.01 was required to achieve conver-
where N n (y) = N n (y0 , y1 , . . . , y n ) are the Adomian poly-
gence. The relative tolerance of the “bvp4c” routine for
nomials of the nonlinear operator N (y) = (y − β) exp (y).
FDM was 1 × 10−6 . The computational time required was
The series solution can be found in terms of the unknown
0.225 seconds. Table 3 shows a comparison of the compu-
y (0), which is found by applying the second boundary
tational time required to achieve convergence for each of
condition to the approximate solution.
the methods and compares the results at six discrete points
with 10 significant figures. Figure 4 shows a plot of the so-
lutions at discrete points.
7.3 Solution by the differential The error remainder function for (33) is
transformation method
d2 y n dy n
ER n (x) = −λ − λµ (y n − β) exp (y n ) (39)
Taking the differential transform of both sides of (33) re- dx2 dx
sults in the following recursive relation where y n is the approximate solution to (33) after n itera-
1 tions. Figure 5 compares the average error remainder func-
Y ( k + 2) = tion over the interval 0 ≤ x ≤ 1 as a function of iteration
( k + 1) ( k + 2)
(︃ k
∑︁
)︃ for the VPM, ADM, and DTM methods. The accuracy and
λ (k + 1) Y (k + 1) + λµ (Y (l) − βδ (l) W (k − l)) rate of convergence for ADM and DTM are comparable. The
l=0 initial accuracy of VPM is better than the semi-analytical
(37) methods but converges after few iterations. This may be a
result of the limitation of using finite-difference methods
where W (k) is the differential transform of exp (y) which ′′ ′
to approximate y n and y n in (39) for VPM.
can be found in [30]. The boundary conditions are trans-
formed as follows
N
∑︁
Y (1) − λY (0) = 0, kY (k) = 0. (38)
k=0
Unauthenticated
Download Date | 7/22/19 2:25 PM
10 | Travis J. Moore and Vedat S. Ertürk, Comparison of the method of variation of parameters
d2 w 1 dw 2
(︁ w )︁ ′
+ = −H 1 − , w (0) = 0, w (1) = 0
dr2 r dr 1 − αw
(40)
∫︁1
w (r) = f (w) t ln (t)dt
0
∫︁ r ∫︁ r
− f (w) t ln (t)dt + ln (r) f (w) tdt (41)
Fig. 5: Comparison of the average error remainder as a function of 0 0
iteration for the approximate solutions of equation (33) using VPM,
where f (w) = −H 2 1 − w/ (1 − αw) is the nonlinear inho-
(︀ )︀
ADM, and DTM.
mogeneity.
8 Application 3:
8.2 Solution by the Adomian decomposition
Electrohydrodynamic flow
method
Electrohydrodynamics is the study of the dynamics of elec- (︀ )︀
In (40) it is more efficient to keep the 1/r dw/dr term on
trically charged fluids. Mathematical modelling of electro-
the left side of the equation such that the equation can be
hydrodynamic flow is important in the design and analysis
Unauthenticated
Download Date | 7/22/19 2:25 PM
Travis J. Moore and Vedat S. Ertürk, Comparison of the method of variation of parameters | 11
N
∑︁
W (1) = 0, W (k) = 0. (48) The error remainder function for (40) is
k=0
Unauthenticated
Download Date | 7/22/19 2:25 PM
12 | Travis J. Moore and Vedat S. Ertürk, Comparison of the method of variation of parameters
Table 4: Comparison of the required computational time to solve (40) and solutions at six data points
Unauthenticated
Download Date | 7/22/19 2:25 PM
Travis J. Moore and Vedat S. Ertürk, Comparison of the method of variation of parameters | 13
[6] Hermann M, Saravi M (2016) Nonlinear Ordinary Differential [24] Bervillier C (2011) Status of the differential transformation
Equations: Analytical Approximations and Numerical Methods. method. Applied Mathematics and Computation 218:10158 –
Springer 10170
[7] Hatami M, Ganji DD, Sheikholeslami M (2016) Differential [25] Mirzaee F (2011) Differential transform method for solving lin-
Transformation Method for Mechanical Engineering Problems. ear and nonlinear systems of ordinary differential equations.
Academic Press Applied Mathematical Sciences 5:3465 – 3472
[8] Liao S (2014) Advances in the Homotopy Analysis Method. [26] MATLAB R2016b, The MathWorks, Inc., Natick, Massachusetts,
World Scientific Publishing Company United States
[9] Haldar K (2015) Decomposition Analysis Method in Linear and [27] Bisshopp K, Drucker DC (1945) Large deflection of cantilever
Nonlinear Differential Equations. Chapman and Hall beams. Quarterly of Applied Mathematics 3(3):272 – 275
[10] Barari A, Omidvar M, Ghotbi AR, Ganji DD (2008) Application [28] Beer FP (2015) Mechanics of Materials, 7th edn. McGraw-Hill
of homotopy perturbation method and variational iteration Higher Education
method to nonlinear oscillator differential equations. Acta [29] Siraj-ul-Islam, Aziz I, Šarler B (2010) The numerical solution of
Applicandae Mathematicae 104(2):161 – 171 second-order boundary-value problems by collocation method
[11] Moradi A, Ahmadikia H (2010) Analytical solution for differ- with the Haar wavelets. Mathematical and Computer Mod-
ent profiles of fin with temperature dependent thermal con- elling 52:1577 – 1590
ductivity. Mathematical Problems in Engineering Article ID [30] Chang S, Chang I (2008) A new algorithm for calculating one-
568263:15 pages dimensional differential transform of nonlinear functions.
[12] Müller JL, Siltanen S (2012) Linear and Nonlinear Inverse Prob- Applied Mathematics and Computation 195:799–808
lems with Practical Applications. SIAM [31] allVl1, Copyright © 2009, Bruno Luong, all rights reserved
[13] Moulton FR (1984) An Introduction to Celestial Mechanics, 2nd [32] Poore AB (1989) A tubular chemical reactor model. A collection
revised edition. Dover Publications of nonlinear model problems contributed to the proceedings
[14] Bogdanova MP (1962) On a generalization of the method of of the AMS-SIAM:28 – 31
variation of parameters. Doklady Akademii nauk BSSR 6:285 – [33] Feng W, Zhang G, Chai Y (2007) Existence of positive solutions
287 for second order differential equations arising from chemi-
[15] Keckic J (1976) Additions to Kamkes treatise VII: Variation of cal reactor theory. Discrete and Continuous Dynamical Sys-
parameters for nonlinear second order differential equations. tems:373 – 381
Publikacije Elektrotehničkog fakulteta. Serija Matematika i [34] Madbouly NM, McGhee DF, Roach GF (2001) Adomian’s
fizika 544:31 – 36 method for Hammerstein integral equations arising from
[16] Mohyud-Din ST, Noor MA, Waheed A (2010) Variation of pa- chemical reactor theory. Applied Mathematics and Compu-
rameters method initial and boundary value problems. World tation 117:241 – 249
Applied Sciences Journal 11(5):622 – 639 [35] Saadatmandi A, Razzaghi M, Dehghan M (2005) Sinc-Galerkin
[17] Moore TJ, Jones MR (2015) Solving nonlinear heat transfer solution for nonlinear two point boundary value problems with
problems using variation of parameters. International Journal applications to chemical reactor theory. Mathematical and
of Thermal Sciences 93:29 – 35 Computer Modelling 42:1237 – 1244
[18] Noor MA, Mohyud-Din ST, Waheed A (2008) Variation of pa- [36] Rashidinia J, Nabati M (2013) Sinc-collocation solution for non-
rameters method for solving fifth-order boundary value prob- linear two-point boundary value problems arising in chemical
lems. Applied Mathematics and Information Sciences 2(2):135 reactor theory. Malaya Journal of Matematik 4(1):97 – 106
– 141 [37] McKee S, Watson R, Cuminato JA, Caldwell J, Chen MS (1997)
[19] Zill DG, Cullen MR (2000) Advanced Engineering Mathematics, Calculation of electrohydrodynamic flow in a circular cylindri-
2nd edn. Jones and Bartlett Publishers cal conduit. Journal of Applied Mathematics and Mechanics
[20] Moore TJ (2014) Application of variation of parameters to solve 77:457 – 465
nonlinear multimode heat transfer problems. PhD disserta- [38] Mosayebidorcheh S (2013) Taylor series solution of the elec-
tion, Brigham Young University trohydrodynamic flow equation. Journal of Mechanical Engi-
[21] Adomian G (1994) Solving Frontier Problems of Physics: The neering and Technology 1(2):40 – 45
Decomposition Method. Kluwer Academic [39] Khan NA, Jamil M, Mahmood A, Ara A (2012) Approximate Solu-
[22] Urgulu Y, Kaya D, Inan IE (2011) Comparison of three semi- tion for the Electrohydrodynamic Flow in a Circular Cylindrical
analytical methods for solving (1+1)-dimensional dispersive Conduit. ISRN Computational Mathematics, Volume 2012,
long wave equations. Computers and Mathematics with Appli- Article ID 341069, 5 pages
cations 61:1278 – 1290 [40] Paullet JE (1999) On the solutions of electrohydrodynamic flow
[23] Zhou JK (1986) Differential transformation and its application in a circular cylindrical conduit. Journal of Applied Mathemat-
for electric circuits. Huazhong University Press, Wuhan, China ics and Mechanics 79:357 – 360
Unauthenticated
Download Date | 7/22/19 2:25 PM