Next Article in Journal
Insights into Exploration and Exploitation Power of Optimization Algorithm Using DSCTool
Next Article in Special Issue
Imaging Noise Suppression: Fourth-Order Partial Differential Equations and Travelling Wave Solutions
Previous Article in Journal
The Italian Domination Numbers of Some Products of Directed Cycles
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Efficient Scheme for Time-Dependent Emden-Fowler Type Equations Based on Two-Dimensional Bernstein Polynomials

by
Ahmad Sami Bataineh
1,2,
Osman Rasit Isik
3,
Abedel-Karrem Alomari
4,
Mohammad Shatnawi
5 and
Ishak Hashim
2,*
1
Department of Mathematics, Faculty of Science, Al-Balqa’ Applied University, Al Salt 19117, Jordan
2
Department of Mathematical Sciences, Faculty of Science & Technology, Universiti Kebangsaan Malaysia, Bangi 43600 UKM, Selangor, Malaysia
3
Elementary Mathematics Education Program, Faculty of Education, Mugla Sitki Kocman University, Mugla 48000, Turkey
4
Department of Mathematics, Faculty of Science, Yarmouk University, Irbid 21163, Jordan
5
Department of Basic Science, Al-Huson University College, Al-Balqa’ Applied University, P.O. Box 50, Al-Huson, Irbid 21510, Jordan
*
Author to whom correspondence should be addressed.
Mathematics 2020, 8(9), 1473; https://doi.org/10.3390/math8091473
Submission received: 29 June 2020 / Revised: 16 August 2020 / Accepted: 27 August 2020 / Published: 1 September 2020

Abstract

:
In this study, we introduce an efficient computational method to obtain an approximate solution of the time-dependent Emden-Fowler type equations. The method is based on the 2D-Bernstein polynomials (2D-BPs) and their operational matrices. In the cases of time-dependent Lane–Emden type problems and wave-type equations which are the special cases of the problem, the method converts the problem to a linear system of algebraic equations. If the problem has a nonlinear part, the final system is nonlinear. We analyzed the error and give a theorem for the convergence. To estimate the error for the numerical solutions and then obtain more accurate approximate solutions, we give the residual correction procedure for the method. To show the effectiveness of the method, we apply the method to some test examples. The method gives more accurate results whenever increasing n , m for linear problems. For the nonlinear problems, the method also works well. For linear and nonlinear cases, the residual correction procedure estimates the error and yields the corrected approximations that give good approximation results. We compare the results with the results of the methods, the homotopy analysis method, homotopy perturbation method, Adomian decomposition method, and variational iteration method, on the nodes. Numerical results reveal that the method using 2D-BPs is more effective and simple for obtaining approximate solutions of the time-dependent Emden-Fowler type equations and the method presents a good accuracy.

1. Introduction

The heat equation which expresses the diffusion of heat can be given by the following form [1,2,3]:
2 y x 2 ( x , t ) + r x y x ( x , t ) + a f ( x , t ) g ( y ( x , t ) ) + h ( x , t ) = y t ( x , t ) , 0 < x L , 0 < t < T ,
subject to
y ( 0 , t ) = α , y x ( 0 , t ) = 0 ,
where y ( x , t ) represents the temperature and t the time, r > 0 and a is an integer, α is a constant and the term f ( x , t ) g ( y ) + h ( x , t ) is the nonlinear heat source, where f , g and h are some smooth functions. For the steady case with h ( x , t ) = 0 and r = 2 , Equation (1) is the Emden-Fowler equation [4,5,6], that is,
2 y x 2 + 2 x y x + a f ( x ) g ( y ) = 0 .
In addition, if f ( x ) = 1 , then Equation (3) becomes the Lane–Emden equation of mathematical physics [7,8].
In this work, we study the numerical solution, which is a simply applied and effective method, of the time-dependent Emden-Fowler type equations. First, the heat-type Equation (1) is considered. To solve Equation (1) by the proposed numerical technique, an operational matrix based on two-dimensional Bernstein polynomials is constructed. Second, with the same notations, we obtain the approximate solutions of the following wave-type equation:
2 y x 2 ( x , t ) + r x y x ( x , t ) + a f ( x , t ) g ( y ( x , t ) ) + h ( x , t ) = 2 y t 2 ( x , t ) ,
subject to
y ( 0 , t ) = α , y x ( 0 , t ) = 0 .
The main issue arisen in the analysis of Equations (1) and (4) is treating the singularity at x = 0 . To overcome this singularity behavior at this point, there are some semi-analytical methods which are used to solve nonlinear problems in the literature such as Adomian’s decomposition method (ADM) [1,5], homotopy analysis method (HAM) [9,10,11,12], variational iteration method (VIM) [4,13,14,15,16,17], and homotopy perturbation method (HPM) [18,19,20,21,22]. Wazwaz [5] used ADM to get approximate analytic solutions of (3). He obtained more accurate results for several examples. Another study by Wazwaz [1] for time-dependent Emden-Fowler equation was given with a generalization of the previous work. He employed ADM to solve Equations (1) and (4) and obtained convergent results for several examples. Chowdhury and Hashim [3] applied HPM to get approximate analytical solutions of (1) and (4). Bataineh et al. [6] applied HAM to solve the problems (1) and (4). Belal et al. [23] used VIM to solve this problem.
Since the operational matrices method can achieve the singularity behavior at the point x = 0 , it has been applied to some singular problems. Yousefi and Behroozifar [24] applied the Bernstein operational matrix to solve the Emden-Fowler equation for the steady-state case. The same problem was considered by Gupta and Sharma [25] and solved by the Taylor series method. Another work to solve the steady-state problem was given by Wazwaz et al. [26]. They applied VIM to the problem. When only the Lane–Emden equation is considered, there are many numerical methods that depend on ADM [27,28], VIM [29,30,31,32], HPM [8,33], and operational matrices method [34] or Bernstein collocation method [35] were used to get analytic or numerical solutions.
The methods based on operational matrix of differentiation were given in various forms in the literature. Some of them were constituted by Chebyshev polynomials [36], Legendre polynomials [37], and Bernstein polynomials [38,39,40,41,42,43,44]. One of the common properties of these polynomials is the basis of polynomial spaces. On the other hand, because of Bernstein polynomials are dense in L 2 ( Ω ) [45] and thus yields good approximation results, they have been used often recently to solve the problems in two-dimensions. The Bernstein operational matrices method is also known as the Bernstein matrix method [44] and Bernstein series solution [35].
In this work, we shall develop a method based Bernstein operational matrices to solve the nonlinear problem 1. The method is applied easily and presents a good accuracy. We first give Bernstein polynomials in 1D and 2D in Section 2. The matrix representations of the approximate functions and their operational matrices for both dimensions are given next. Section 3 presents the method of solution for heat-type and wave-type equations. In Section 4, we constitute the residual correction procedure both to estimate the absolute error and to get the corrected approximate solutions. The most important property of the procedure can be applied even if the exact solution is unknown. Section 5 contains some examples including linear and nonlinear models to demonstrate the applicability of the method. First, we apply the method to time-dependent Lane–Emden type problems and singular wave-type equations. We perform the method for different number of nodes. The numerical results show that increasing number of nodes gives a sequence of approximations, which converges to the exact solution, for linear problems. The method also gives good results for nonlinear problems. Residual correction procedure estimates the error in general. On the other hand, the corrected approximate solutions can be obtained and its error is less than the approximate solution. We compare the approximate solutions obtained by the method with the approximate solutions obtained by ADM, HPM, HAM, and VIM by calculating the error on some nodes in [ 0 , L ] × [ 0 , T ] . In the last section, we summarize the results.

2. 2D Bernstein Polynomials (2D-BPs) and Their Operational Matrices

In this section, because of defining two-dimensional Bernstein polynomials easily, we will give one-dimensional, Bernstein polynomials first. The Bernstein polynomials of degree m (1D-BPs) on [ 0 , 1 ] are defined as [46]
B i , m ( x ) = m i x i ( 1 x ) m i , i = 0 , 1 , , m ,
where m i = m ! i ! ( m i ) ! with B i , m = 0 if i < 0 or i > m . Equation (6) can be rewritten as
B i , m ( x ) = m i x i ( 1 x ) m i = m i x i k = 0 m i ( 1 ) k m i k x k = k = 0 m i ( 1 ) k m i m i k x k + i , i = 0 , 1 , , m .
Let y : I R be any real-valued continuous function. The truncated Bernstein polynomials approximation of y is
y ( x ) y m ( x ) = i = 0 m c i B i , m ( x ) = C m Φ m ( x ) ,
where
C m = [ c 0 , c 1 , , c m ] , Φ m ( x ) = [ B 0 , m ( x ) , B 1 , m ( x ) , , B m , m ( x ) ] T .
To ease computational complexity, the matrix representations of
y m ( x ) , y m ( x ) , , y m ( k ) ( x )
are to be determined. Let A i + 1 1 , j and T m ( x ) be 1 × ( m + 1 ) and ( m + 1 ) × 1 matrices respectively for j = 0 , 1 , , m as follows:
( A i + 1 ) 1 , j = 0 , j < i , ( 1 ) j i m i m i j i , j i . T m ( x ) = 1 x x m .
Then, the polynomial B i , m ( x ) is given by
B i , m ( x ) = A i + 1 T m ( x ) ,
which gives the identity:
Φ ( x ) = AT m ( x ) ,
where
A = A 1 A 2 A 3 A m + 1 .
Note that
T m ( x ) = A 1 Φ ( x ) ,
and
T m ( x ) = 0 1 2 x m x m 1 = 0 0 0 0 0 1 0 0 0 0 2 0 0 0 0 m 0 1 x x 2 x m = LT m ( x ) ,
where
L = 0 0 0 0 0 1 0 0 0 0 2 0 0 0 0 m 0 .
By using (10), we write y m ( x ) as
y m ( x ) = C Φ ( x ) = C AT m ( x ) = C AL T m ( x ) = C AL A 1 Φ ( x ) = C D Φ ( x ) ,
where D = ALA 1 . Similarly, for higher-order derivatives of y m ( x ) , one has
y m ( x ) = C ( Φ ( x ) ) = C ( D Φ ( x ) ) = C D 2 Φ ( x ) , y m ( k ) ( x ) = C Φ ( x ) ( k 1 ) = C D Φ ( x ) ( k 1 ) = = C D k Φ ( x ) .
The Bernstein polynomials of degree m n (2D-BPs) on [ 0 , 1 ] × [ 0 , 1 ] are defined as [47,48]
B i , j m , n ( x , t ) = m i n j x i ( 1 x ) m i t j ( 1 t ) n j , ( i = 0 , 1 , , m , j = 0 , 1 , , n ) ,
which can be rewritten as [45]
B i , j m , n ( x , t ) = k = 0 m i r = 0 n j ( 1 ) k + r m i n j m i k n j r x i + k t j + r .
Theorem 1
([45]). Let Ω = [ 0 , 1 ] × [ 0 , 1 ] . The set of all two-dimensional Bernstein polynomials { B i , j m , n ( x , t ) } i , j = 0 on the box Ω is dense in L 2 ( Ω ) .
Figure 1 shows the two components of the two-dimensional Bernstein polynomials of order (5,5).
Now, assume that y is a real-valued function defined on Ω R 2 . We want to approximate y ( x , t ) by the truncated 2D-BPs series, i.e.,
y ( x , t ) y m , n ( x , t ) = i = 0 m j = 0 n c i , j B i , j m , n ( x , t ) .
If the identity in [47] is applied to (17), we get
i = 0 m j = 0 n c i , j B i , j m , n ( x , t ) = i = 0 m j = 0 n c i , j B i , m ( x ) B j , n ( t ) .
Then, y m , n in (17) can be found using
y m , n ( x , t ) = C T Θ ( x ) Ψ ( t ) ,
where
C = [ c i , j ] 1 × ( m + 1 ) ( n + 1 ) T = [ c 0 , 0 , c 0 , 1 , , c 0 , n , , c m , 0 , c m , 1 , , c m , n ] T , Θ ( x ) = Φ ( x ) 0 0 0 Φ ( x ) 0 0 0 Φ ( x ) , Ψ ( t ) = B 0 , n ( t ) B 1 , n ( t ) B n , n ( t ) , B j , n ( t ) = B j , n ( t ) B j , n ( t ) B j , n ( t ) .
The partial derivatives y / x and y / t can be approximated as
y x ( x , t ) y m , n x ( x , t ) = C Θ x ( x ) Ψ ( t ) ,
y t ( x , t ) y m , n t ( x , t ) = C Θ ( x ) Ψ t ( t ) .
Upon using (9), (13), and (15), one gets the identities
d Θ d x ( x ) = Φ x ( x ) 0 0 0 Φ x ( x ) 0 0 0 Φ x ( x ) = D Φ ( x ) 0 0 0 D Φ ( x ) 0 0 0 D Φ ( x )
= D Φ ( x ) ¯ , d Ψ d t ( t ) = B ( 0 , n ) ( t ) t B ( 1 , n ) ( t ) t B ( n , n ) ( t ) t T = A 1 L T n ( t ) A 2 L T n ( t ) A n + 1 L T n ( t ) = A L T n ( t ) ¯ ,
where
D Φ ( x ) ¯ = D Φ ( x ) 0 0 0 D Φ ( x ) 0 0 0 D Φ ( x ) , A L T n ( t ) ¯ = A 1 L T n ( t ) A 2 L T n ( t ) A n + 1 L T n ( t ) .
Hence, we get
y m , n x ( x , t ) = C D Φ ( x ) ¯ Ψ ( t ) ,
y m , n t ( x , t ) = C Θ ( x ) A L T n ( t ) ¯ .
For the higher-order derivatives, we have
s y m , n x s 1 t s 2 ( x , t ) = C D s 1 Φ ( x ) ¯ A L s 2 T n ( t ) ¯ , s = s 1 + s 2 , s 1 0 , s 2 0 , s y m , n x s ( x , t ) = C D s Φ ( x ) ¯ Ψ ( t ) , s y m , n t s ( x , t ) = C Θ ( x ) A L s T n ( t ) ¯ .

3. Solving Heat-Type and Wave-Type Equations by 2D-BPs

To approximate the solution of (1) subject to the initial condition (2), one substitutes the identities in (25), (26), and (27) into (1). The residual Re ( x , t ) are given by
Re ( x , t ) = C D 2 Φ ( x ) ¯ Ψ ( t ) + r x C D Φ ( x ) ¯ Ψ ( t ) + a f ( x , t ) g C Θ ( x ) Ψ ( t ) + h ( x , t ) C Θ ( x ) A L T n ( t ) ¯ .
Taking the nodes
( x i , t i ) : 0 < x 1 < < x m 1 = 1 , 0 t 1 < < t n + 1 = 1 [ 0 , 1 ] × [ 0 , 1 ] ,
in (28), we obtain ( m 1 ) ( n + 1 ) equations
Re ( x i , t j ) = C D 2 Φ ( x i ) ¯ Ψ ( t i ) + r x i C D Φ ( x i ) ¯ Ψ ( t i ) + a f ( x i , t i ) g C Θ ( x i ) Ψ ( t i ) + h ( x i , t i ) C Θ ( x i ) A L T n ( t i ) ¯ , i = 1 , 2 , , m 1 , j = 1 , 2 , , n + 1 .
The conditions (2) then yield
y ( 0 , t j ) = C Θ ( 0 ) Ψ ( t j ) = α , y x ( 0 , t ) = C D Φ ( 0 ) ¯ Ψ ( t j ) = 0 .
Thus, we have ( m + 1 ) ( n + 1 ) equations. By solving these equations by the command ’fsolve’ which uses Newton’s method for the unknown coefficients C i , j , we can find the matrix C so that y m , n ( x , t ) is obtained.
In this study, we select the collocation nodes as Newton–Cotes points
x i = 2 i 1 2 ( m + 1 ) , t j = 2 j 1 2 ( n + 1 ) , i = 1 , , ( m + 1 ) , j = 1 , , ( n + 1 ) .
When applied to the wave-type Equation (4), we get the following:
Re ( x i , t j ) = C D 2 Φ ( x i ) ¯ Ψ ( t i ) + r x i C D Φ ( x i ) ¯ Ψ ( t ) + a f ( x i , t i ) g C Θ ( x i ) Ψ ( t i ) + h ( x i , t i ) C Θ ( x i ) A L 2 T n ( t i ) ¯ , ( i = 1 , 2 , , m 1 , j = 1 , 2 , , n + 1 ) , y ( 0 , t j ) = C Θ ( 0 ) Ψ ( t j ) = α , y x ( 0 , t j ) = C D Φ ( 0 ) ¯ Ψ ( t j ) = 0 .

4. Error Analysis

In this section, we first give the Bernstein series that converges for the function in C 1 . The residual correction procedure is given to estimate the absolute error and to obtain corrected approximate solutions. To determine the convergence of the method, we define the constant M n + 1 as follows.
Definition 1.
Suppose that Ω = [ 0 , 1 ] × [ 0 , 1 ] and for k = 0 , 1 , , n , f ( k ) C 1 ( Ω ) , then
| f ( x , t ) i = 0 n j = 0 n i + j y x j t j ( 0 , 0 ) x i t j i ! j ! | M n + 1 1 ( n + 1 ) ! ( x + t ) n + 1 ,
where all partial derivatives of f of order n + 1 are bounded in magnitude M n + 1 , which is
M n + 1 = sup ( ζ , τ ) Ω | n + 1 ζ k τ n + 1 k f ( ζ , τ ) | , k = 0 , 1 , , n + 1 .
Now, the main theorem of function approximation using 2D-BPs are stated as follows.
Theorem 2.
Consider m , n N and Ω = [ 0 , 1 ] × [ 0 , 1 ] , η = max { m , n } . Let k x k t i k f ( x , t ) C 1 ( Ω ) , k = 0 , 1 , , η , i = 0 , 1 , , k . Next, suppose that
Y m , n = s p a n < B 0 , 0 m , n , B 0 , 1 m , n , , B m , n m , n > .
Approximating f ( x , t ) by f m , n ( x , t ) in the space Y m , n as
f ( x , t ) f m , n ( x , t ) = i = 0 m j = 0 n c i , j B i , m ( x ) B j , n ( t ) ,
where f m , n is the best approximation out of Y m , n and supposing that
E m , n ( f ) = 0 1 0 1 [ f ( x , t ) f m , n ( x , t ) ] 2 d x d t ,
then
lim m , n E m , n ( f ) = 0 .
Proof. 
Let
f ¯ m , n ( x , t ) = i = 0 m j = 0 n i + j f x j t j ( 0 , 0 ) x i t j i ! j ! .
Therefore, by considering Definition 1 and by taking η = max { m , n } , we get
| f ( x , t ) f ¯ m , n ( x , t ) | M η + 1 1 ( η + 1 ) ! ( x + t ) η + 1
By considering Taylor’s expansion formula in Definition 1, one has
f ( x , t ) f m , n ( x , t ) 2 2 f ( x , t ) f ¯ m , n ( x , t ) f ( x , t ) f ¯ η , η ( x , t ) = 0 1 0 1 [ f ( x , t ) f ¯ η , η ( x , t ) ] 2 d x d t = M η + 1 2 ( η + 1 ) ! 0 1 0 1 ( x + t ) 2 η + 2 d x d t = M η + 1 2 ( η + 1 ) ! 2 2 η + 4 2 ( 2 η + 3 ) ( 2 η + 4 ) .
Hence, we get
lim m , n f ( x , t ) f m , n ( x , t ) 2 2 = 0 .
This concludes the proof. ☐
Now, we constitute residual correction procedure for the problem. Let y ( x , t ) be the exact and y m , n ( x , t ) the 2D-BPs approximate solutions of Equation (1), respectively. Writing e m , n ( x , t ) = y ( x , t ) y m , n ( x , t ) as the error, then
2 e m , n x 2 + r x e m , n x + a f g ( y m , n + e m , n ) e m , n t = R ( x , t ) , e m , n ( 0 , t ) = α , e m , n x ( 0 , t ) = 0 ,
where
R ( x , t ) = 2 y m , n x 2 + r x y m , n x y m , n t + h ( x , t ) .
Substituting the approximate solution along with the constructed operational matrix in (42) yields the residual equation Re e r r ( x , t ) for the error as
Re e r r ( x , t ) = C e r r D 2 Φ ( x ) ¯ Ψ ( t ) + r x C e r r D Φ ( x ) ¯ Ψ ( t ) + a f ( x , t ) g C e r r Θ ( x ) Ψ ( t ) + y m , n ( x , t ) ] C e r r Θ ( x ) A L T n ( t ) ¯ + R ( x , t ) .
To solve Equation (43) numerically, we compute it at the following collocation points:
( x i , t i ) : 0 < x 1 < < x s 1 = 1 , 0 t 1 < < t p + 1 = 1 [ 0 , 1 ] × [ 0 , 1 ] .
Applying the proposed method to (43) with the given initial conditions gives us the coefficient matrix C e r r so that we get an approximate solution e ˜ s , p for the error. Hence, y m , n + e ˜ s , p is another approximate solution, which is called the corrected 2D-BPs approximate solution for the problem. In practice, selecting s m , p n yields better approximation results.
The solution y m , n s , p : = y m , n + e ˜ s , p improves the approximation y m , n provided that
e m , n e ˜ s , p = y ( y m , n + e ˜ s , p ) y m , n s , p .
Similar definitions and results can be given for the wave-type Equation (4).

5. Application to Several Test Problems

The applicability of the proposed 2D-BPS method is demonstrated via several test problems. To simulate the results, three types of equations are selected. Our results are compared with the methods of ADM, HPM, VIM, and HAM with h = 1 . We use the Newton–Cotes points (32) and Maple 15 to simulate the numerical outlets with 50-digit precision.

5.1. Time-Dependent Lane–Emden Type Problems

Example 1.
Consider
y x x + 2 x y x ( 6 + 4 x 2 cos t ) y = y t ,
subject to
y ( 0 , t ) = e sin t , y x ( 0 , t ) = 0 .
The exact solution is [1,2,3,4]:
y ( x , t ) e sin t 1 + x 2 + x 4 2 ! + x 6 3 ! + x 8 4 ! + = e x 2 + sin t .
To solve the above problem via the proposed method, we get from Equations (30) and (31) and Equations (46) and (47)
Re ( x , t ) = C D 2 Φ ( x ) ¯ Ψ ( t ) + 2 x C D Φ ( x ) ¯ Ψ ( t ) ( 6 + 4 x 2 cos t ) C Θ ( x ) Ψ ( t ) C Θ ( x ) A L s T n ( t ) ¯ ,
C Θ ( 0 ) Ψ ( t j ) = e sin t j , C T C D Φ ( 0 ) ¯ Ψ ( t j ) = 0 .
Substituting (32) into Equations (49) and (50) for m = n = 3 yields a system of linear equations for the unknown coefficients C i , j , which once computed numerically gives
y 3 , 3 ( x , t ) = 1.0057 ( 1 x ) 3 ( 1 t ) 3 + 3.0171 x ( 1 x ) 2 ( 1 t ) 3 + 3.9180 x 2 ( 1 x ) ( 1 t ) 3 + 2.3768 x 3 ( 1 t ) 3 + 3.9414 ( 1 x ) 3 t ( 1 t ) 2 + 11.8243 x ( 1 x ) 2 t ( 1 t ) 2 + 15.4612 x 2 ( 1 x ) t ( 1 t ) 2 + 9.4559 x 3 t ( 1 t ) 2 + 5.6529 ( 1 x ) 3 t 2 ( 1 t ) + 16.9589 x ( 1 x ) 2 t 2 ( 1 t ) + 22.0396 x 2 ( 1 x ) t 2 ( 1 t ) + 13.3483 x 3 t 2 ( 1 t ) + 2.3250 ( 1 x ) 3 t 3 + 6.9751 x ( 1 x ) 2 t 3 + 9.0971 x 2 ( 1 x ) t 3 + 5.5510 x 3 t 3 .
We perform the method to the problem for various n = m , s = p = 10 and s = p = 20 . The results are given in Table 1 and Table 2. As seen from the tables, increasing n gives the decreasing error sequence while the computational time increases. On the other hand, residual correction procedure estimates the error well for n p . The corrected solutions are more accurate than the solutions for n < p . We give the computational costs of the method in Table 3. Increasing n = m yields more computational costs which means that the method needs more computational times, numbers of multiplications, summations, assignments, and storages for big n , m . As a result, we can say that the numbers n , m are selected as not too big or not too small. It seems to be suitable for selecting n = m around 10 for Example 1.
The graphs of | e 12 , 12 | , | e ˜ 15 , 15 | and | y ( y 12 , 12 + e ˜ 15 , 15 ) | are plotted in Figure 2 which also depicts the absolute errors of the 5th-order approximate solutions of ADM, HPM, HAM and VIM [1,2,3,4]. We also give a comparison for the method with HAM and VIM in Table 4 for different nodes number. It can be seen from Figure 2 and Table 4 that the corrected 2D-BPs approximate solution yields better approximate results than the results obtained by ADM, HPM, HAM, and VIM. Moreover, the residual correction procedure estimates the error more accurately.

5.2. Singular Wave-Type Equations

Example 2.
We consider now
y x x + 2 x y x ( 5 + 4 x 2 ) y = y t t + ( 12 x 5 x 3 4 x 5 ) , y ( 0 , t ) = e t , y x ( 0 , t ) = 0 ,
where the exact solution is
y ( x , t ) = x 3 + e x 2 t .
The solution in series form by ADM [1], HAM [2], and HPM [3] is
y ( x , t ) x 3 + e t 1 + x 2 + x 4 2 ! + x 6 3 ! + x 8 4 ! + .
We applied the method to the problem for various m n . We can say from Table 5 that the norm of the absolute error decreases when m , n increases. The procedure estimates the error well and the corrected solutions are better than the solutions in the norm. The absolute error and corrected absolute error for s = p = 18 are shown in Figure 3. We also give the solutions of the problem by ADM, HPM, and HAM [1,2,3] to make a comparison in the same figure. We can conclude from this figure that the corrected absolute error is better than the absolute error, also better than the absolute error of ADM, HPM, and HAM.

5.3. Nonlinear Models

Example 3.
Consider
y x x + 5 x y x + ( 24 t + 16 t 2 x 2 ) e y 2 x 2 e y / 2 = y t ,
y ( 0 , t ) = 0 , y x ( 0 , t ) = 0 .
The exact solution of the problem [1,2,3,4] is y ( x , t ) = 2 ln ( 1 + t x 2 ) . We apply the method to the linear problem for various m = n and apply the procedure for s = p = 9 . The results are given in Table 6 and Table 7. As seen from the tables, increasing m = n yields more accurate results, whereas the computational times increase. On the other hand, the proposed method yields a much better approximate solution than the solutions obtained by ADM, HAM, and HPM [1,2,3], of order 5. We plot the error, the estimation of the error, and the corrected error for m = n = 8 and m s = p = 9 in Figure 4. We can say from the figures that the estimation by using the procedure fits the error well and the corrected error is smaller than the error.

6. Conclusions

In this study, we have proposed a numerical method to solve time-dependent Emden-Fowler type equations. In the numerical scheme, the 2D-BPs are utilized. The residual correction procedure is applied to estimate the error of the approximate solution. By using the suggested procedure, we obtain a new approximate solution which is more accurate than the 2D-BPs approximate solution. The error analysis as well as convergence of the proposed method have been investigated. We applied the method to several test problems including linear and nonlinear problems and also compared with some other methods to show the efficiency of the new method. As seen from the results of text examples, increasing the node numbers n , m yields a sequence which converges to the exact solution for all examples in the norm. The computational times and necessary operations in the code increase if n , m increases. Hence, the optimum n , m values are observed around 10. The procedure estimates the error with a good accuracy for n , m s , p . In addition, by using the procedure, more accurate results are obtained. We can conclude that the obtained results are consistent with the results of ADM, HPM, HAM, and VIM. Especially for the nonlinear problem, the method gives better approximate solutions with respect to the semi-analytic methods.

Author Contributions

Conceptualization, A.S.B., O.R.I., A.-K.A., M.S. and I.H.; methodology, A.S.B., O.R.I., A.-K.A. and M.S.; software, A.S.B., O.R.I., A.-K.A. and M.S.; validation, A.S.B., O.R.I., A.-K.A., M.S. and I.H.; formal analysis, A.S.B., O.R.I., A.-K.A. and M.S.; investigation, A.S.B., O.R.I., A.-K.A. and M.S.; writing-original draft preparation, A.S.B., O.R.I., A.-K.A. and M.S.; writing-review and editing, A.S.B., O.R.I., A.-K.A., M.S. and I.H.; funding acquisition, I.H.. All authors have read and agreed to the published version of the manuscript.

Funding

We are grateful for the financial support received from the Universiti Kebangsaan Malaysia under the research grant GP-2019-K006388.

Conflicts of Interest

All authors declare that they have no conflict of interest.

References

  1. Wazwaz, A.M. Analytical solution for the time-dependent Emden-Fowler type of equations by Adomian decomposition method. Appl. Math. Comput. 2005, 166, 638–651. [Google Scholar] [CrossRef]
  2. Bataineh, A.S.; Noorani, M.S.M.; Hashim, I. Solutions of time-dependent Emden-Fowler type equations by homotopy analysis method. Phys. Letts. A 2007, 371, 72–82. [Google Scholar] [CrossRef]
  3. Chowdhury, M.S.H.; Hashim, I. Solutions of time-dependent Emden-Fowler type equations by homotopy-perturbation method. Phys. Letts. A 2007, 368, 305–313. [Google Scholar] [CrossRef]
  4. Batiha, K. Approximate analytical solutions for time-dependent Emden-Fowler-type equations by variational iteration method. Am. J. Appl. Sci. 2007, 4, 439–443. [Google Scholar] [CrossRef]
  5. Wazwaz, A.M. Adomian decomposition method for a reliable treatment of the Emden-Fowler equation. Appl. Math. Comput. 2005, 161, 543–560. [Google Scholar] [CrossRef]
  6. Bataineh, A.S.; Noorani, M.S.M.; Hashim, I. Homotopy analysis method for singular IVPs of Emden-Fowler type. Commun. Nonlinear Sci. Numer. Simulat. 2009, 14, 1121–1131. [Google Scholar] [CrossRef]
  7. Chandrasekhar, S. An Introduction to the Study of Stellar Structure; Dover Publications: New York, NY, USA, 1957. [Google Scholar]
  8. Ramos, J.I. Series approach to the Lane–Emden equation and comparison with the homotopy perturbation method. Chaos Solitons Fractals 2008, 38, 400–408. [Google Scholar] [CrossRef]
  9. Liao, S.J. The Proposed Homotopy Analysis Technique for the Solution of Nonlinear Problems. Ph.D. Thesis, Shanghai Jiao Tong University, Shanghai, China, 1992. [Google Scholar]
  10. Liao, S.J. Beyond Perturbation: Introduction to Homotopy Analysis Method; Chapman and Hall/CRC Press: Boca Raton, FL, USA, 2003; p. 321. [Google Scholar]
  11. Liao, S.J. On the homotopy analysis method for nonlinear problems. Appl. Math. Comput. 2004, 147, 499–513. [Google Scholar] [CrossRef]
  12. Liao, S.J. Comparison between the homotopy analysis method and homotopy perturbation method. Appl. Math. Comput. 2005, 169, 1186–1194. [Google Scholar] [CrossRef]
  13. He, J.H. A new approach to nonlinear partial differential equation. Commun. Nonlinear Sci. Numer. Simul. 1997, 2, 230–235. [Google Scholar] [CrossRef]
  14. He, J.H. Approximate analytical solution for seepage flow with functional derivatives in porous media. Comput. Methods Appl. Mech. Eng. 1998, 167, 57–68. [Google Scholar] [CrossRef]
  15. He, J.H. Approximate solution of nonlinear differential equations with convolution roduct nonlinearities. Comput. Methods Appl. Mech. Eng. 1998, 167, 69–73. [Google Scholar] [CrossRef]
  16. He, J.H. Variational iteration method-a kind of nonlinear analytical technique: Some examples. Int. J. Non-Linear Mech. 1999, 34, 699–708. [Google Scholar] [CrossRef]
  17. He, J.H. Variational iteration method for autonomous ordinary differential systems. Appl. Math. Comput. 2000, 114, 115–123. [Google Scholar] [CrossRef]
  18. He, J.H. Homotopy perturbation method: A new nonlinear analytical technique. Appl. Math. Comput. 2003, 135, 73–79. [Google Scholar] [CrossRef]
  19. He, J.H. Asymptotology by homotopy perturbation method. Appl. Math. Comput. 2004, 156, 591–596. [Google Scholar] [CrossRef]
  20. He, J.H. The homotopy perturbation method for nonlinear oscillators with discontinuities. Appl. Math. Comput. 2004, 151, 287–292. [Google Scholar] [CrossRef]
  21. He, J.H. Application of homotopy perturbation method to nonlinear wave equations. Chaos Solitons Fractals 2005, 26, 695–700. [Google Scholar] [CrossRef]
  22. He, J.H. Homotopy perturbation method for bifurcation of nonlinear problems. Int. J. Nonlinear Sci. Numer. Simul. 2005, 6, 207–208. [Google Scholar] [CrossRef]
  23. Batiha, B.; Noorani, M.S.N.; Hashim, I. Application of variational iteration method to heat and wave-like equations. Phys. Letts. A 2007, 369, 55–61. [Google Scholar] [CrossRef]
  24. Yousefi, S.A.; Behroozifar, M. Operational matrices of Bernstein polynomials and their applications. Int. J. Syst. Sci. 2010, 41, 709–716. [Google Scholar] [CrossRef]
  25. Gupta, V.G.; Sharma, P. Solving singular initial value problems of Emden-Fowler and Lane–Emden type. Int. J. Appl. Math. Comput. Sci. 2009, 1, 206–212. [Google Scholar]
  26. Wazwaz, A.M. Solving two Emden-Fowler type equations of third order by the variational iteration method. Appl. Math. Inf. Sci. 2015, 9, 2429–2436. [Google Scholar]
  27. Wazwaz, A.-M. A new algorithm for solving differential equations of Lane–Emden type. Appl. Math. Comput. 2001, 118, 287–310. [Google Scholar] [CrossRef]
  28. Rach, R.; Wazwaz, A.M.; Duan, J.S. The Volterra integral form of the Lane–Emden equation: New derivations and solution by the Adomian decomposition method. J. Appl. Math. Comput. 2015, 47, 365–379. [Google Scholar] [CrossRef]
  29. Dehghan, M.; Shakeri, F. Approximate solution of a differential equation arising in astrophysics using the variational iteration method. New Astron. 2008, 13, 53–59. [Google Scholar] [CrossRef]
  30. Yildirim, A.; Ozis, T. Solutions of singular IVPs of Lane–Emden type by the variational iteration method, Nonlinear Analy. Theory Methods Appl. 2009, 70, 2480–2484. [Google Scholar] [CrossRef]
  31. Zomot, N.H.; Ababneh, O.Y. Solution of differential equations of Lane–Emden type by combining integral transform and variational iteration method. Nonlinear Analy. Diff. Equ. 2016, 4, 143–150. [Google Scholar] [CrossRef]
  32. Ghorbani, A.; Bakherad, M. A variational iteration method for solving nonlinear Lane–Emden problems. New Astron. 2017, 54, 1–6. [Google Scholar] [CrossRef]
  33. Rafig, A.; Hussain, S.; Ahmed, M. General homotopy method for Lane–Emden type differential equations. Int. J. Appl. Math. Mech. 2009, 5, 75–83. [Google Scholar]
  34. Kumar, N.; Pandey, R. Solution of the Lane–Emden equation using the Bernstein operational matrix of integration. ISRN Astron. Astrophys. 2011, 2011, 351747. [Google Scholar] [CrossRef] [Green Version]
  35. Isik, O.R.; Sezer, M. Bernstein series solution of a class of Lane–Emden type equations. Math. Probl. Eng. 2013, 2013, 423797. [Google Scholar] [CrossRef]
  36. Bhrawya, A.H.; Alofi, A.S. The operational matrix of fractional integration for shifted Chebyshev polynomials. Appl. Math. Lett. 2013, 26, 25–31. [Google Scholar] [CrossRef] [Green Version]
  37. Kashkari, B.S.; Syam, M.I. Fractional-order Legendre operational matrix of fractional integration for solving the Riccati equation with fractional order. Appl. Mathe. Comput. 2016, 290, 281–291. [Google Scholar] [CrossRef]
  38. Pandey, R.K.; Kumar, N. Solution of Lane–Emden type equations using Bernstein operational matrix of differentiation. New Astron. 2012, 17, 303–308. [Google Scholar] [CrossRef]
  39. Maleknejad, K.; Basirat, B.; Hashemizadeh, E. A Bernstein operational matrix approach for solving a system of high order linear Volterra-Fredholm integro-differential equations. Math. Comput. Model. 2012, 55, 1363–1372. [Google Scholar] [CrossRef]
  40. Yousefi, S.A.; Behroozifar, M.; Dehghan, M. The operational matrices of Bernstein polynomials for solving the parabolic equation subject to specification of the mass. J. Comput. Appl. Math. 2011, 335, 5272–5283. [Google Scholar] [CrossRef] [Green Version]
  41. Yousefi, S.; Behroozifar, M.; Dehghan, M. Numerical solution of the nonlinear age-structured population models by using the operational matrices of Bernstein polynomials. Appl. Math. Model. 2012, 36, 945–963. [Google Scholar] [CrossRef]
  42. Maleknejad, K.; Hashemizadeh, E.; Basirat, B. Computational method based on Bernstein operational matrices for nonlinear Volterra-Fredholm-Hammerstein integral equations. Commun. Nonlinear Sci. Numer. Simulat. 2012, 17, 52–61. [Google Scholar] [CrossRef]
  43. Parand, K.; Hossayni, S.A.; Rad, J.A. Operation matrix method based on Bernstein polynomials for the Riccati differential equation and Volterra population model. Appl. Math. Model. 2016, 40, 993–1011. [Google Scholar] [CrossRef]
  44. Bataineh, A.S.; Isik, O.R.; Hashim, I. Bernstein method for the MHD flow and heat transfer of a second grade fluid in a channel with porous wall. Alex. Eng. J. 2016, 55, 2149–2156. [Google Scholar] [CrossRef] [Green Version]
  45. Nemati, A. Numerical solution of 2D fractional optimal control problems by the spectral method along with Bernstein operational matrix. Int. J. Control 2018, 91, 2632–2645. [Google Scholar] [CrossRef]
  46. Bhatti, M.I.; Bracken, P. Solutions of differential equations in a Bernstein polynomial basis. J. Comput. Appl. Math. 2007, 205, 272–280. [Google Scholar] [CrossRef] [Green Version]
  47. Hosseini Shekarabi, F.; Maleknejad, K.; Ezzati, R. Application of two-dimensional Bernstein polynomials for solving mixed Volterra-Fredholm integral equations. Afr. Mat. 2015, 26, 1237–1251. [Google Scholar] [CrossRef]
  48. Asgari, M.; Ezzati, R. Using operational matrix of two-dimensional Bernstein polynomials for solving two-dimensional integral equations of fractional order. Appl. Math. Comput. 2017, 307, 290–298. [Google Scholar] [CrossRef]
Figure 1. Two components of the two-dimensional Bernstein polynomials of order (5,5): (a) B 0 , 2 5 , 5 ( x , t ) and (b) B 1 , 3 5 , 5 ( x , t ) .
Figure 1. Two components of the two-dimensional Bernstein polynomials of order (5,5): (a) B 0 , 2 5 , 5 ( x , t ) and (b) B 1 , 3 5 , 5 ( x , t ) .
Mathematics 08 01473 g001
Figure 2. (a) absolute error, (b) estimated absolute error, and (c) corrected absolute error for 2D-BPs solution for Example 1.
Figure 2. (a) absolute error, (b) estimated absolute error, and (c) corrected absolute error for 2D-BPs solution for Example 1.
Mathematics 08 01473 g002
Figure 3. (a) absolute error; (b) estimated absolute error; (c) corrected absolute error for 2D-BPs solution for Example 2.
Figure 3. (a) absolute error; (b) estimated absolute error; (c) corrected absolute error for 2D-BPs solution for Example 2.
Mathematics 08 01473 g003
Figure 4. (a) absolute error; (b) estimated absolute error; (c) corrected absolute error for 2D-BPs solution for Example 3.
Figure 4. (a) absolute error; (b) estimated absolute error; (c) corrected absolute error for 2D-BPs solution for Example 3.
Mathematics 08 01473 g004
Table 1. The norms of absolute errors, the estimation of the errors by using the residual correction procedure, and the errors obtained by the corrected approximate solutions of Example 1 for s = p = 10 .
Table 1. The norms of absolute errors, the estimation of the errors by using the residual correction procedure, and the errors obtained by the corrected approximate solutions of Example 1 for s = p = 10 .
n = m 34567
e n , n 0.7547 0.2304 0.0773 0.0183 4.45 × 10 3
e ˜ 10 , 10 0.7965 0.2249 0.0739 0.0180 4.53 × 10 3
e n , n e ˜ 10 , 10 4.17 × 10 2 5.46 × 10 3 3.42 × 10 3 3.06 × 10 4 8.09 × 10 5
Run time (s) 0.032 0.094 0.156 0.359 0.734
n 89101112
e n , n 9.28 × 10 4 2.04 × 10 4 3.94 × 10 5 7.28 × 10 6 1.19 × 10 5
e ˜ 10 , 10 9.18 × 10 4 1.65 × 10 4 1.08 × 10 5 1.69 × 10 6 6.71 × 10 8
e n , n e ˜ 10 , 10 9.76 × 10 6 3.93 × 10 5 3.94 × 10 5 8.97 × 10 6 1.26 × 10 6
Run time (s) 1.357 2.543 4.540 7.675 12.293
Table 2. The results for Example 1 and s = p = 20 .
Table 2. The results for Example 1 and s = p = 20 .
n = m 4681012
e n , n 0.2304 0.0183 9.28 × 10 4 3.94 × 10 5 1.19 × 10 6
e ˜ 20 , 20 0.2249 0.0180 9.56 × 10 4 3.82 × 10 5 1.22 × 10 6
e n , n e ˜ 20 , 20 5.42 × 10 3 2.68 × 10 4 2.85 × 10 5 1.22 × 10 6 2.94 × 10 8
Run time (s) 0.094 0.359 1.357 4.540 13.448
n 1416182022
e n , n 3.22 × 10 8 7.45 × 10 10 1.33 × 10 11 2.71 × 10 13 3.39 × 10 15
e ˜ 20 , 20 3.21 × 10 8 7.29 × 10 10 1.39 × 10 11 7.73 × 10 40 4.97 × 10 16
e n , n e ˜ 20 , 20 1.95 × 10 10 1.67 × 10 11 6.18 × 10 13 2.71 × 10 13 3.89 × 10 15
Run time (s) 30.389 71.090 150.509 300.521 534.194
Table 3. The computational costs of the obtaining Re ( x i , t j ) of the method for 0 i , j n in the Maple code for Example 1.
Table 3. The computational costs of the obtaining Re ( x i , t j ) of the method for 0 i , j n in the Maple code for Example 1.
n = m MultiplicationsAssignmentsAdditionsStorage
578272173901217
1040,9557275503727
15309,2071537184,2811537
20851,7682647549,7172647
Table 4. The results of the 2D-BPM, HAM, and VIM for Example 1.
Table 4. The results of the 2D-BPM, HAM, and VIM for Example 1.
Degree of polynomial n = 5 81015
(degree 10)(degree 16)(degree 20)(degree 30)
2D-BPM 0.0773 9.28 × 10 4 3.94 × 10 5 7.45 × 10 10
max. abs. error
Run time (s) 0.156 1.357 4.540 71.090
HAM m = 2 m = 4 m = 6 m = 8
(degree 8)(degree 16)(degree 24)(degree 32)
max. abs. error 0.1933 1.22 × 10 3 1.94 × 10 6 2.00 × 10 9
Run time (s) 0.188 0.327 0.499 0.717
VIM m = 2 m = 4 m = 6 m = 8
(degree 8)(degree 16)(degree 24)(degree 32)
max. abs. error 0.1933 1.22 × 10 3 1.94 × 10 6 1.09 × 10 9
Run time (s) 0.218 0.343 0.483 0.686
Table 5. The norms of absolute errors, the estimation of the errors by using the residual correction procedure, and the errors obtained by the corrected approximate solutions of Example 2 for s = 16 and p = 18 .
Table 5. The norms of absolute errors, the estimation of the errors by using the residual correction procedure, and the errors obtained by the corrected approximate solutions of Example 2 for s = 16 and p = 18 .
m = 4 , n = 5 m = 6 , n = 5 m = 6 , n = 8 m = 7 , n = 9
e m , n 0.0993 9.38 × 10 3 7.75 × 10 3 1.96 × 10 3
e ˜ 16 , 18 0.0976 7.71 × 10 3 7.74 × 10 3 1.96 × 10 3
e m , n e ˜ 16 , 18 1.68 × 10 3 1.68 × 10 3 6.38 × 10 6 8.23 × 10 7
Run time (s) 0.062 0.218 0.624 1.201
m = 10 , n = 8 m = 12 , n = 10 m = 14 , n = 12 m = 15 , n = 16
e m , n 2.29 × 10 5 6.23 × 10 7 1.50 × 10 8 2.14 × 10 9
e ˜ 16 , 18 1.65 × 10 5 5.25 × 10 7 1.36 × 10 8 1.83 × 10 9
e m , n e ˜ 16 , 18 6.38 × 10 6 9.81 × 10 8 1.42 × 10 9 3.13 × 10 10
Run time (s) 2.480 7.051 18.096 50.279
Table 6. The norms of absolute errors, the estimation of the errors by using the residual correction procedure, and the errors obtained by the corrected approximate solutions of Example 3 for s = p = 9 .
Table 6. The norms of absolute errors, the estimation of the errors by using the residual correction procedure, and the errors obtained by the corrected approximate solutions of Example 3 for s = p = 9 .
n = m 579
e n , n 2.48 × 10 4 4.43 × 10 5 2.66 × 10 6
e ˜ 9 , 9 2.45 × 10 4 4.70 × 10 5 5.65 × 10 12
e n , n e ˜ 9 , 9 2.66 × 10 6 2.66 × 10 6 2.66 × 10 6
Run time (s) 1.638 20.155 107.251
Table 7. The results of the 2D-BPM and HAM for Example 3.
Table 7. The results of the 2D-BPM and HAM for Example 3.
Degree of polynomial n = 4 (degree 8)6 (degree 12)8 (degree 16)
2D-BPM 1.87 × 10 3 1.57 × 10 4 2.86 × 10 5
max. abs. error
Run time (s) 0.422 4.680 44.398
HAM m = 2 ( degree 8 ) m = 3 ( degree 12 ) m = 6 ( degree 24 )
max. abs. error1.11301.32723.0520
Run time (s)1.7781.9502.340

Share and Cite

MDPI and ACS Style

Bataineh, A.S.; Isik, O.R.; Alomari, A.-K.; Shatnawi, M.; Hashim, I. An Efficient Scheme for Time-Dependent Emden-Fowler Type Equations Based on Two-Dimensional Bernstein Polynomials. Mathematics 2020, 8, 1473. https://doi.org/10.3390/math8091473

AMA Style

Bataineh AS, Isik OR, Alomari A-K, Shatnawi M, Hashim I. An Efficient Scheme for Time-Dependent Emden-Fowler Type Equations Based on Two-Dimensional Bernstein Polynomials. Mathematics. 2020; 8(9):1473. https://doi.org/10.3390/math8091473

Chicago/Turabian Style

Bataineh, Ahmad Sami, Osman Rasit Isik, Abedel-Karrem Alomari, Mohammad Shatnawi, and Ishak Hashim. 2020. "An Efficient Scheme for Time-Dependent Emden-Fowler Type Equations Based on Two-Dimensional Bernstein Polynomials" Mathematics 8, no. 9: 1473. https://doi.org/10.3390/math8091473

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop