Abstract
In this paper, we use the collocation method together with Chebyshev polynomials to solve system of Lane–Emden type (SLE) equations. We first transform the given SLE equation to a matrix equation by means of a truncated Chebyshev series with unknown coefficients. Then, the numerical method reduces each SLE equation to a nonlinear system of algebraic equations. The solution of this matrix equation yields the unknown coefficients of the solution function. Hence, an approximate solution is obtained by means of a truncated Chebyshev series. Also, to show the applicability, usefulness, and accuracy of the method, some examples are solved numerically and the errors of the solutions are compared with existing solutions.
1. Introduction
In this paper, we consider the system of the Lane–Emden type equation,
which are subject to the initial conditions,
where are positive integers and , , and are real constants. Notice that the Lane–Emden equation is linear for and nonlinear otherwise.
There are two basic forms of the the Lane–Emden equation in applied sciences [1,2,3,4,5]. The following equation, which is called the first type Lane–Emden equation, was used to model the problem of stellar structure and the thermal behaviour of a spherical cloud of gas acting under mutual attraction of its molecules [1,2,3,4,5].
where is some given function of . Among the most popular form of is with the conditions , . The exponent is called polytropic index and positive radially symmetric solutions of the above equation are used to describe the structure of the polytropic stars [1,2,3,4].
The second kind Lane–Emden equation is defined as follows:
which is used to model the star as a gaseous sphere in thermodynamic and hydrostatic equilibrium with a certain equation of state [2,4].
Several methods for the solution of Lane–Emden equations and the system of Lane–Emden equations have been presented, such as the sinc-collocation method [6], variational iteration method [7], Hermite collocation method [8], modified Homotopy analysis method [9], modified Adomian decomposition method [10], Legendre operational matrix method [11], and Berstein operational matrix method [12], among other methods [13,14,15,16,17].
Recently, the collocation method has been a very useful method to obtain the approximate solutions. Chebyshev collocation method has been used to obtain the numerical solutions to many other equations, such as differential-difference equations, delay-difference equations, pantograph equations, integro-differential-difference equations, and Abel equation, among others [18,19,20,21,22,23,24,25,26,27].
The aim of this study is to get approximate solutions as truncated Chebyshev series defined by
where , , , denotes the shifted Chebyshev polynomials of the first kind; denotes a sum whose first term is halved; are unknown Chebyshev coefficients, and is chosen any positive integer. To obtain a solution of the form Equation (3) of the problem Equation (1) with boundary conditions given by Equation (2), we can use collocation points [28,29].
which is the zeroes of the shifted Chebyshev polynomial . They are called Chebyshev–Gauss points. If we take these points in an interpolation problem, the obtained result is convergence into the given functions [28,29].
2. Fundamental Relations
In this section, we give the matrix form of Equations (1) and (2). Firstly, we convert the solution defined by Equation (3) and its derivative to matrix forms
where
On the other hand, it has been known that the relation between the powers tn and the shifted Chebyshev polynomials is [24,25].
Using the expression (7) and taking n = 0, 1, …, N, we find the corresponding matrix relation as follows:
where
which is a lower triangular matrix. As all the main diagonals of are not zero, is invertible matrix. Then, taking into account Equation (8), we obtain
and
We use the following relation to obtain the matrix in terms of the matrix
where
Consequently, by substituting the matrix forms Equations (9) and (10) into Equations (5) and (6), we have the matrix relation
Now, we construct the matrix form of the nonlinear term and , substituting the collocation points into , we obtain the following matrix representation
and
where
Then, we construct the following matrix relation
Similarly, can be written as
where
3. Method of Solution
In this section, the fundamental matrix equation corresponding to Equation (1) with conditions Equation (2) is constructed, and the solution method is presented. For this purpose, we substitute the matrix relations Equations (11),(12) and Equations (15),(16) into Equation (1) and obtain the following matrix relation:
We can rewrite the Equation (17) as follows:
where
Using collocation points, we get the matrix equations
where
and where
where the dimension of matrices , , , , , , are diagonal matrices and the dimension of these matrices are and is .
Hence, the matrix Equation (19) corresponding to Equation (1) can be written in the form
where
Moreover, the matrix form for conditions can be written as
where
Then, we can write the conditions as the following matrix form:
where
By replacing the conditions matrices (20) by the last four rows of the matrix (21), we obtain to a system of linear or nonlinear algebraic equations with unknown Chebyshev coefficients. Thereby, the unknown coefficients matrix and are obtained by solving the system by aid of Maple 13. Consequently, by replacing the obtained coefficients into Equation (3), we have the wanted approximate solution of Equation (1).
4. Algorithm
In this section, we give the algorithm of the proposed method (see also [26]).
Step 1. Our input data: , and conditions.
Step 2. Select .
Step 3. Construct the matrices ,, , , , .
Step 4. Determine the collocation points: .
Step 5. Compute , .
Step 6. Construct the system.
Step 7. On the proposed of finding , solve the obtained system by aid of Maple 13.
Step 8. Put the coefficients of truncated Chebyshev series in the truncated Chebyshev series.
Step 9. Out put data: the approximate solutions , .
5. Examples
In this section, several numerical examples are given to illustrate the accuracy and effectiveness properties of the method and all of them were performed on the computer using a program written in Maple 13. To study the behavior of the present method, we applied the following laws:
(1) Absolute error () is defined by the following:
where are the exact solutions and denote the approximate solution obtained by the present method.
(2) Relative error, which is defined by the following:
(3)
where are the exact solutions and denote the approximate solution obtained by the present method.
Example 1.
Let us consider the following linear systems of Lane–Emden equations
subject to initial conditions
which approximates a fully convective star, that is, a very cool late-type star.
Then,
Now, we can apply our technique described in Section 3 for ; that is, we seek the approximate solution of Equation (23) for by the terms of truncated Chebyshev polynomial series as
For , the Chebyshev–Gaus grid points are
Then, the matrix form of the problem
where
and where
Moreover, the matrix form for conditions can be written as follows:
where
06×1 is zero matrix.
Solving the augmented matrix based on conditions, Chebyshev coefficients matrix is obtained as follows:
Thereby, the solutions of the problem for become
which are the exact solution for Equation (23).
Example 2.
Let us consider the linear, non-homogeneous systems of Lane–Emden equations, which describes polytropes in hydrostatic equilibrium as simple models of a star.
subject to conditions,
The exact solutions of above equation are and . The absolute errors which are defined by are shown in Table 1 and Table 2. In Table 3, the computational results of the -norm error and truncated errors are summarized. The error in truncating a Chebyshev series by neglecting all terms of degree and higher is bounded by sum of the absolute values of neglected terms [28,29].
Table 1.
Numerical result for approximate solution of in Example 2.
Table 2.
Numerical result for approximate solution of in Example 2.
Table 3.
Numerical result for Example 2.
In Figure 1 and Figure 2, we plot the obtained absolute errors. Figure 3 and Figure 4 give us a comparison of the relative errors. All numerical results and figures are show us the presented method is very successful to obtain approximate solutions with small values. Note that .
Figure 1.
Comparison of absolute errors function for y1(t).
Figure 2.
Comparison of absolute errors function for y2(t).
Figure 3.
Relative errors of y1(t).
Figure 4.
Relative errors of y2(t).
Example 3.
Lastly, consider the following nonlinear problem [26]:
subject to conditions
with exact solutions
Wazwaz et al. [26] has introduced the systematic Adomian decomposition method, which has yielded the exact solution of this problem. Applying our method for , the obtained numerical results are displayed in Table 4 and Table 5. The tables and the figures show that the proposed method is in good agreement with the analytical solution.
Table 4.
Numerical result for approximate solution of y1(t) in Example 3.
Table 5.
Numerical result for approximate solution of y2(t) in Example 3.
6. Conclusions
As the system of the Lane–Emden type equations, which are nonlinear equations and singular, solutions of these types of equation are hardly obtained with the known classical methods. Herein, useful and effective approximate methods are needed. In this article, we deal with obtaining numerical solutions. The numerical method reduces the problem into the system of nonlinear algebraic equations with unknown coefficients. The effectiveness of the method is examined by comparing the obtained results with the exact solutions.
Funding
This research received no external funding.
Conflicts of Interest
The author declares no conflict of interest.
References
- Fowler, R.H. Further studies of Emden’s and similar differential equations. Q. J. Math. 1931, 2, 259–288. [Google Scholar] [CrossRef]
- Meerson, E.; Megged, E.; Tajima, T. On the quasi-hydrostatic flows of radiatively cooling self-gravitating gas clouds. Astrophys. J. 1996, 457, 321. [Google Scholar] [CrossRef]
- Chandrasekhar, S. Introduction to Study of Stellar Structure. Available online: https://www.amazon.com/Introduction-Study-Stellar-Structure-Astronomy/dp/0486604136 (accessed on 22 August 2018).
- Davis, H.T. Introduction to Nonlinear Differential and Integral Equations. J. Lond. Math. Soc. 1962, 16, 556. [Google Scholar] [CrossRef]
- Flockerzi, D.; Sundmacher, K. On coupled Lane-Emden equations arising in dusty fluid models. J. Phys. Conf. Ser. 2011, 268, 012006. [Google Scholar] [CrossRef]
- Parand, K.; Pirkhedri, K. Sinc-collocation method for solving astrophysics equations. New Astron. 2010, 15, 533–537. [Google Scholar] [CrossRef]
- 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]
- Parand, K.; Dehghan, M.; Rezaei, A.R.; Ghaderi, S. An approximation algorithm for the solution of the nonlinear Lane–Emden type equations arising in astrophysics using Hermite functions collocation method. Comput. Phys. Commun. 2010, 181, 1096–1108. [Google Scholar] [CrossRef]
- Singh, O.P.; Pandey, R.K.; Singh, V.K. An analytic algorithm of Lane–Emden type equations arising in astrophysics using modified Homotopy analysis method. Comput. Phys. Commun. 2009, 180, 1116–1124. [Google Scholar] [CrossRef]
- Hasan, Y.Q.; Zhu, L.M. Solving singular boundary value problems of higher-order ordinary differential equations by modified Adomian decomposition method. Commun. Nonlinear Sci. Numer. Simul. 2009, 14, 2592–2596. [Google Scholar] [CrossRef]
- Pandey, R.K.; Kumar, N.; Bhardwaj, A.; Dutta, G. Solution of Lane-Emden type equations using Legendre operational matrix of differentiation. Appl. Math. Comput. 2012, 218, 7629–7637. [Google Scholar] [CrossRef]
- Pandey, R.K.; Kumar, N. Solution of Lane-Emden type equations using Berstein operational matrix of differentiation. New Astron. 2012, 17, 303–308. [Google Scholar] [CrossRef]
- Agarwal, R.P.; O’Regan, D. Second order initial value problems of Lane-Emden type. Appl. Math. Lett. 2007, 20, 1198–1205. [Google Scholar] [CrossRef]
- Varani, S.K.; Aminataei, A. On the numerical solution of differential equations of Lane-Emden type. Comput. Math. Appl. 2010, 59, 2815–2820. [Google Scholar]
- Aslanov, A. A generalization of the Lane–Emden equation. Int. J. Comput. Math. 2008, 85, 1709–1725. [Google Scholar] [CrossRef]
- Wazwaz, A.M. A new algorithm for solving differential equations of Lane-Emden type. Appl. Math. Comput. 2001, 118, 287–310. [Google Scholar] [CrossRef]
- Wazwaz, A.M.; Rach, R.; Duan, J.S. A study on the systems of the Volterra integral forms of the Lane-Emden equations by the Adomian decomposition method. Math. Method Appl. Sci. 2013, 37, 10–19. [Google Scholar] [CrossRef]
- Marin, M. An approach of a heat-flux dependent theory for micropolar porous media. Meccanica 2016, 51, 1127–1133. [Google Scholar] [CrossRef]
- Marin, M. Some estimates on vibrations in Thermoelasticity of dipolar bodies. J. Vib. Control 2010, 16, 33–47. [Google Scholar] [CrossRef]
- Marin, M. A temporally evolutionary equation in elasticity of micropolar bodies with voids. U.P.B. Sci. Bull. Ser. A-Appl. Math. Phys. 1998, 60, 3–12. [Google Scholar]
- Gülsu, M.; Öztürk, Y.; Sezer, M. A new collocation method for solution of mixed linear integro-differential-difference equations. Appl. Math. Comput. 2010, 216, 2183–2198. [Google Scholar] [CrossRef]
- Gülsu, M.; Öztürk, Y.; Sezer, M. On the solution of the Abel equation of the second kind by the shifted Chebyshev polynomials. Appl. Math. Comput. 2011, 217, 4827–4833. [Google Scholar] [CrossRef]
- Daşçıoğlu, A.; Yaslan, H. The solution of high-order nonlinear ordinary differential equations by Chebyshev polynomials. Appl. Math. Comput. 2011, 217, 5658–5666. [Google Scholar]
- Öztürk, Y.; Anapalı, A.; Gülsu, M. A numerical scheme for continuous population models for single and interacting species. J. Balıkesir Univ. Inst. Sci. Technol. 2017, 19, 12–28. [Google Scholar] [CrossRef]
- Herrero, H.; Mancho, A.M. Numerical modeling in Chebyshev collocation methods applied to stability analysis of convection problems. Appl. Numer. Math. 2000, 33, 161–165. [Google Scholar] [CrossRef]
- Gürbüz, B.; Sezer, M. Modified Laguerre collocation method for solving 1-dimensional parabolic convection-diffusion problems. Math. Method. Appl. Sci. Spec. Issue Pap. 2017. [Google Scholar] [CrossRef]
- Jang, W.; Chen, Z.; Zhang, C. Chebshev collocation method for solving singular integral equation with cosecant kernel. Int. J. Comput. Math. 2012, 89, 975–982. [Google Scholar] [CrossRef]
- Boyd, J.P. Chebyshev and Fourier Spectral Methods. Available online: https://books.google.com.hk/books?hl=en&lr=&id=i9UoAwAAQBAJ&oi=fnd&pg=PP1&dq=Chebyshev+and+fourier+spectral+methods&ots=mCuqRE7G7u&sig=PdpyHdX0wV0ZzUCt1znEvdtFXAs&redir_esc=y&hl=zh-CN&sourceid=cndr#v=onepage&q=Chebyshev%20and%20fourier%20spectral%20methods&f=false (accessed on 22 August 2018).
- Mason, J.C.; Handscomb, D.C. Chebyshev Polynomials. Available online: https://www.crcpress.com/Chebyshev-Polynomials/Mason-Handscomb/p/book/9780849303555 (accessed on 22 August 2018).
© 2018 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).