Abstract
Herein, we adduce, analyze, and come up with spectral collocation procedures to iron out a specific class of nonlinear singular Lane–Emden (LE) equations with generalized Caputo derivatives that appear in the study of astronomical objects. The offered solution is approximated as a truncated series of the normalized shifted Jacobi polynomials under the assumption that the exact solution is an element in . The spectral collocation method is used as a solver to obtain the unknown expansion coefficients. The Jacobi roots are used as collocation nodes. Our solutions can easily be a generalization of the solutions of the classical LE equation, by obtaining a numerical solution based on new parameters, by fixing these parameters to the classical case, we obtain the solution of the classical equation. We provide a meticulous convergence analysis and demonstrate rapid convergence of the truncation error concerning the number of retained modes. Numerical examples show the effectiveness and applicability of the method. The primary benefits of the suggested approach are that we significantly reduce the complexity of the underlying differential equation by solving a nonlinear system of algebraic equations that can be done quickly and accurately using Newton’s method and vanishing initial guesses.
1. Introduction
The Lane–Emden equation appears in astrophysics and is a dimensionless form of Poisson’s equation for the gravitational potential of a Newtonian self-gravitating, spherically symmetric, polytropic fluid. This equation was first named in 1870 after astrophysicists Jonathan Homer Lane and Robert Emden []. The classical form of the LE equations is
subject to the standard boundary conditions
where is an independent variable representing the dimensionless radius, is the density function, and thus the pressure is the central density, and the number n denotes the polytropic index. This equation has no closed-form solution in general; for the three cases and 5, we have the following closed-form solutions
The LE equation describes the dimensionless density distribution in an isothermal gas sphere and plays an important role in galactic dynamics and in the theory of stellar structure and evolution []. The LE equation was further investigated with more general nonlinear terms of the form in both classical and fractional cases, and recently, many numerical and analytical methods have been applied to handle this LE equation, for instance, the high-order wavelets method [], the Bernoulli wavelets method [], the Monte Carlo method [], the Taylor series method [], the Morlet wavelets neural network method [], the Bessel polynomials method [], the neuro-evolution approach [], the power series method [], the implicit method [], the composite Chebyshev finite difference method [], the computational approximate method [], the collocation method [], and the tau and Galerkin methods [,]. Within our study, we use the typical shifted Jacobi collocation method; the collocation method is very important in solving many types of differential problems [,,,].
The study of the calculus of nonintegral order generalizes the concept of differentiation and integration in the classical sense; it takes into consideration the memory effect of the phenomena, which extensively helps to manipulate real-life phenomena that cannot be precisely characterized by the classical differentiation definition. For the purpose of establishing a formula for the fractional order, Riemann used a generalization of a Taylor series and invented an arbitrary complementary function. This idea motivated Caputo, in 1967, to precisely define the most significant definition of the fractional derivatives, which was named Caputo fractional derivative []. Later, some seminal textbooks discussed in-depth these definitions in the theory of fractional differential equations, for instance, [,].
Recently, a more general helpful generalization of fractional integral operators was introduced and used to describe the derivatives with more nonlocality properties by introducing a fractional-order integral of a given function related to another function [,,]. This definition and its promising properties allowed researchers to study the availability of spectral methods to handle the LE equation in a more general form by replacing the term with the fractional derivative in the fractal–fractional sense and replacing the term with a nonlinear quadratic function in .
Orthogonal Jacobi polynomials [,,] have many lucrative fixtures that make them very important in the numerical solution of different kinds of differential problems, primarily via spectral methods. The most important features of Jacobi polynomials are orthogonality, exponential accuracy, and the existence of two parameters that may affect the variety of the approximate solutions, which make these polynomials appropriate for solving diverse problems. In our work, we use the orthonormal Jacobi polynomials, which help us construct a spectral collocation algorithm to handle the nonlinear fractal–fractional LE equation.
It is worth reporting that, within this study, we handled a more general form of the LE equation with a generalized fractional derivative, which helps the interpretation of the solutions with a wide temporal capture of the phenomena of astronomical objects. As far as we know, this is the first time in the literature that the orthonormal shifted Jacobi polynomials are used as basis functions to solve spectrally the LE equation with generalized a fractal–fractional derivative with a detailed study of the truncation error. The main advantages of the proposed methods are that we drastically convert the underlying problem to that of solving a nonlinear system of algebraic equations that can be easily solved via Newton’s method with vanishing initial guesses, with stunted computational time; for recent advances in the field of numerical treatment of related models, the interested readers are referred to [,,].
In bullet points, the main contributions of this study are as follows:
- We suggest orthonormal Jacobi polynomials as the basis of the solution.
- We build and prove all derivatives needed within the algorithm.
- We construct and implement a collocation scheme to handle the nonlinear LE equation with a generalized fractional derivative.
- We study in detail the truncation error of the method.
- We perform some numerical examples with comparisons, when possible, with other existing methods.
This manuscript is organized as follows: in Section 2, we report all needed definitions, and state and prove very essential lemmas and theorems. Section 3 is devoted to the structure of the spectral collocation algorithm for handling the generalized fractal–fractional LE equation. In Section 4, we give an upper estimate of the truncation error. In Section 5, we perform some numerical experiments with comparisons to test and validate the method; some concluding remarks are reported in Section 6.
2. Preliminaries
In this section, the essential definitions of the generalized Caputo fractional operators and some relevant properties of the orthonormal normalized Jacobi polynomials are reported, which are subsequently of important use.
2.1. Generalized Caputo Type Fractional Derivative
Definition 1
([]). Let ρ be a positive constant, the generalized fractional integral of a continuous function of order is defined by
Definition 2
([]). Let , and ; the generalized Caputo fractional derivative of order α of a function is defined as
The generalized Caputo fractional derivative satisfies:
if , then
It should be noted here that, in Definition 2, if we set , we directly obtain the usual Caputo derivative.
2.2. An Account of Shifted Orthonormal Normalized Jacobi Polynomials
The shifted normalized Jacobi polynomials on the interval associated with the real parameters are a sequence of polynomials that can be defined as
where are the shifted classical Jacobi polynomials.
Suppose that
where
The orthonormality relation of is given by
where and
The power-form representation of can be represented as
Moreover, the inversion formula of is
where
Lemma 1.
For all nonnegative integers i and j, the following linearization formula is valid []
The generalized hypergeometric function is defined by
Theorem 1
([]). The qth derivative of is given explicitly by
Corollary 1.
The first derivative of is given explicitly by
Corollary 2.
The second derivative of is given explicitly by
Proof.
The proof of Corollaries 1 and 2 are a direct result from using the definition of along with Theorem 1. □
Corollary 3.
The following relation is valid for and
Proof.
Putting and in Definition 2, one has
Theorem 2.
The following formula holds for
Proof.
Using Corollary 3 along with the power form of one has
3. Collocation Approach for the Nonlinear Generalized Fractional LE Equation
Consider the following nonlinear generalized fractional LE equation:
subject to the initial conditions
where , are known constants, and is a known continuous source term.
As we know, the set forms an orthonormal basis function in the space function . Consequently, any function can be written as
and approximated as
Now, we present our technique when for the following two cases:
- The case in which and
- The case in which and
3.1. The Case in Which and
The application of Lemma 1 and Corollary 2 along with Theorem 2 enables us to write the residual of Equation (24) as
Multiplying the last equation by , we get
3.2. The Case in Which and
Using similar steps as those given in the previous case along with Lemma 1, Corollary 1, and Corollary 2, we get the nonlinear algebraic system of equations in the unknown expansion coefficients that can be solved using Newton’s iterative method.
Remark 1.
| Algorithm 1: Coding algorithm for the proposed scheme. |
| Input and . |
| Step 1. Assume an approximate solution as in (27). |
| Step 2. Compute as in (29). |
| Step 3. Apply the collocation method to obtain the system in (32). |
| Step 4. Use FindRoot command with initial guess |
| to solve the system in (32) to get . |
| Output |
4. Error Bound
We first define the following error norms:
Consider the following space functions
5. Illustrative Examples and Comparisons
Before providing the following examples, we would like to mention that all codes were written and debugged using Mathematica 11 on an HP Z420 workstation, with an Intel (R) Xeon(R) CPU E5-1620 3.6 GHz processor, 16 GB RAM DDR3, and 512 GB storage.
Example 1
([]). Consider the following nonlinear generalized fractional LE equation
Figure 1.
Different solutions of Example 1.
Table 1.
Comparison of error of Example 1.
Example 2.
Consider the following nonlinear generalized fractional LE equation
Table 2.
and errors of Example 2.
Figure 2.
The absolute error (left) and approximate solution (right) of Example 2.
Example 3.
Consider the following nonlinear generalized fractional LE equation
Figure 3.
The absolute errors of Example 3.
Table 3.
and errors of Example 3.
Example 4.
Consider the following nonlinear generalized fractional LE equation
Figure 4.
The maximum absolute errors of Example 4.
Figure 5.
The absolute errors of Example 4.
Example 5.
Consider the following nonlinear generalized fractional LE equation
Table 4.
Residual error of Example 5.
6. Closing Remarks
Within this research work, we presented and analyzed an accurate collocation solver for a specific nonlinear LE equation with a generalized fractal–fractional Caputo derivative. We also discussed the truncation error of the suggested approximate orthonormal Jacobi solution. Some numerical results and comparisons were exhibited to check and verify the validity and the accuracy of the proposed algorithm. We believe that the offered scheme can be extended to more general models in different disciplines in engineering, mathematics, and physics. As an expected future work, we aim to employ the developed theoretical results in this paper along with suitable spectral methods to treat numerically some other types of generalized fractional differential equations; see, e.g., [,].
Author Contributions
Conceptualization, Y.H.Y.; methodology, Y.H.Y. and A.G.A.; software, Y.H.Y. and A.G.A.; formal analysis, A.G.A.; data curation, Y.H.Y. and A.G.A.; writing—original draft, A.G.A.; writing—review and editing, Y.H.Y.; supervision, Y.H.Y.; project administration, Y.H.Y. All authors have read and agreed to the published version of the manuscript.
Funding
The authors received no funding for this study.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Not applicable.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Lane, H.J. On the theoretical temperature of the sun, under the hypothesis of a gaseous mass maintaining its volume by its internal heat, and depending on the laws of gases as known to terrestrial experiment. Am. J. Sci. 1870, 2, 57–74. [Google Scholar] [CrossRef]
- Liu, F. Polytropic gas spheres: An approximate analytic solution of the Lane-Emden equation. MNRAS 1996, 281, 1197–1205. [Google Scholar] [CrossRef]
- Singh, M.; Singh, K. An efficient technique based on higher order Haar wavelet method for Lane–Emden equations. Math. Comput. Simul. 2023, 206, 21–39. [Google Scholar]
- Kumbinarasaiah, S.; Manohara, G.; Hariharan, G. Bernoulli wavelets functional matrix technique for a system of nonlinear singular Lane Emden equations. Math. Comput. Simul. 2023, 204, 133–165. [Google Scholar]
- El-Essawy, S.H.; Nouh, M.I.; Soliman, A.A.; Rahman, H.I.; Abd-Elmougod, G.A. Monte Carlo simulation of Lane–Emden type equations arising in astrophysics. Astron. Comput. 2023, 42, 100665. [Google Scholar] [CrossRef]
- He, J.H.; Ji, F.Y. Taylor series solution for Lane–Emden equation. J. Math. Chem. 2019, 57, 1932–1934. [Google Scholar] [CrossRef]
- Sabir, Z.; Wahab, H.A.; Umar, M.; Sakar, M.G.; Raja, M.A. Novel design of Morlet wavelet neural network for solving second order Lane–Emden equation. Math. Comput. Simul. 2020, 172, 1–14. [Google Scholar] [CrossRef]
- Izadi, M.; Srivastava, H.M.; Adel, W. An Effective Approximation Algorithm for Second-Order Singular Functional Differential Equations. Axioms 2022, 11, 133. [Google Scholar] [CrossRef]
- Sabir, Z.; Raja, M.A.Z.; Botmart, T.; Weera, W. A neuro-evolution heuristic using active-set techniques to solve a novel nonlinear singular prediction differential model. Fractal Fract. 2022, 6, 29. [Google Scholar] [CrossRef]
- Awonusika, R.O. Analytical Solutions of a Class of Fractional Lane–Emden Equation: A Power Series Method. Int. J. Appl. Comput. Math. 2022, 8, 155. [Google Scholar] [CrossRef]
- Momoniat, E.; Harley, C. Approximate implicit solution of a Lane-Emden equation. New Astron. 2006, 11, 520–526. [Google Scholar] [CrossRef]
- Aydinlik, S.; Kiris, A.; Roul, P. An effective approach based on Smooth Composite Chebyshev Finite Difference Method and its applications to Bratu-type and higher order Lane–Emden problems. Math. Comput. Simul. 2022, 202, 193–205. [Google Scholar] [CrossRef]
- Bisheh-Niasar, M. A computational method for solving the Lane-Emden initial value problems. Comput. Methods Differ. Equ. 2020, 8, 673–684. [Google Scholar]
- Adel, W.; Sabir, Z.; Rezazadeh, H.; Aldurayhim, A. Application of a Novel Collocation Approach for Simulating a Class of Nonlinear Third-Order Lane–Emden Model. Math. Probl. Eng. 2022, 2022, 5717924. [Google Scholar] [CrossRef]
- Abd-Elhameed, W.; Ahmed, H.M. Tau and Galerkin operational matrices of derivatives for treating singular and Emden–Fowler third-order-type equations. Int. J. Mod. Phys. C 2022, 33, 2250061. [Google Scholar] [CrossRef]
- Abdelhakem, M.; Youssri, Y.H. Two spectral Legendre’s derivative algorithms for Lane-Emden, Bratu equations, and singular perturbed problems. Appl. Numer. Math. 2021, 169, 243–255. [Google Scholar] [CrossRef]
- Luo, W.H.; Li, C.; Huang, T.Z.; Gu, X.M.; Wu, G.C. A high-order accurate numerical scheme for the Caputo derivative with applications to fractional diffusion problems. Numer. Funct. Anal. Optim. 2018, 39, 600–622. [Google Scholar] [CrossRef]
- Bu, S. A collocation methods based on the quadratic quadrature technique for fractional differential equations. AIMS Math. 2022, 7, 804–820. [Google Scholar] [CrossRef]
- Derakhshan, M. The stability analysis and numerical simulation based on Sinc Legendre collocation method for solving a fractional epidemiological model of the Ebola virus. Partial Differ. Equ. Appl. Math. 2021, 3, 100037. [Google Scholar] [CrossRef]
- Dadkhah, E.; Shiri, B.; Ghaffarzadeh, H.; Baleanu, D. Visco-elastic dampers in structural buildings and numerical solution with spline collocation methods. J. Appl. Math. Comput. 2020, 63, 29–57. [Google Scholar] [CrossRef]
- Caputo, M. Linear models of dissipation whose Q is almost frequency independent—II. Geophys. J. Int. 1967, 13, 529–539. [Google Scholar] [CrossRef]
- Podlubny, I. Fractional differential equations. Math. Sci. Eng. 1999, 198, 41–119. [Google Scholar]
- Kilbas, A.A.; Srivastava, H.M.; Trujillo, J.J. Theory and Applications of Fractional Differential Equations; Elsevier: Amsterdam, The Netherlands, 2006; Volume 204. [Google Scholar]
- Odibat, Z.; Baleanu, D. Numerical simulation of initial value problems with generalized Caputo-type fractional derivatives. Appl. Numer. Math. 2020, 156, 94–105. [Google Scholar] [CrossRef]
- Katugampola, U.N. New approach to a generalized fractional integral. Appl. Math. Comput. 2011, 218, 860–865. [Google Scholar] [CrossRef]
- Youssri, Y.H. Orthonormal ultraspherical operational matrix algorithm for fractal–fractional Riccati equation with generalized Caputo derivative. Fractal Fract. 2021, 5, 100. [Google Scholar] [CrossRef]
- Shen, J.; Tang, T.; Wang, L. Spectral Methods: Algorithms, Analysis and Applications; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2011; Volume 41. [Google Scholar]
- Ashry, H.; Abd-Elhameed, W.M.; Moatimid, G.M.; Youssri, Y.H. Robust Shifted Jacobi-Galerkin Method for Solving Linear Hyperbolic Telegraph Type Equation. Palestine J. Math. 2022, 11, 504–518. [Google Scholar]
- Youssri, Y.H.; Hafez, R.M. Exponential Jacobi spectral method for hyperbolic partial differential equations. Math. Sci. 2019, 13, 347–354. [Google Scholar] [CrossRef]
- Marasi, H.; Sharifi, N.; Piri, H. Modified differential transform method for singular Lane-Emden equations in integer and fractional order. TWMS J. Appl. Eng. Math. 2015, 5, 124–131. [Google Scholar]
- Zhao, Y.L.; Zhu, P.Y.; Gu, X.M.; Zhao, X.L.; Jian, H.Y. A preconditioning technique for all-at-once system from the nonlinear tempered fractional diffusion equation. J. Sci. Comput. 2020, 83, 10. [Google Scholar] [CrossRef]
- Abd-Elhameed, W.M.; Alsuyuti, M.M. Numerical Treatment of Multi-Term Fractional Differential Equations via New Kind of Generalized Chebyshev Polynomials. Fractal Fract. 2023, 7, 74. [Google Scholar] [CrossRef]
- Abd-Elhameed, W.M.; Ali, A.; Youssri, Y.H. Newfangled Linearization Formula of Certain Nonsymmetric Jacobi Polynomials: Numerical Treatment of Nonlinear Fisher’s Equation. J. Funct. Spaces 2023, 2023, 9833404. [Google Scholar]
- Abd-Elhameed, W.M.; Doha, E.H.; Youssri, Y.H. Efficient spectral-Petrov-Galerkin methods for third-and fifth-order differential equations using general parameters generalized Jacobi polynomials. Quaest. Math. 2013, 36, 15–38. [Google Scholar] [CrossRef]
- Atta, A.G.; Moatimid, G.M.; Youssri, Y.H. Generalized Fibonacci operational collocation approach for fractional initial value problems. Int. J. Appl. Comput. Math. 2019, 5, 1–11. [Google Scholar] [CrossRef]
- Hafez, R.; Youssri, Y. Shifted Gegenbauer–Gauss collocation method for solving fractional neutral functional-differential equations with proportional delays. Kragujev. J. Math. 2022, 46, 981–996. [Google Scholar] [CrossRef]
- Atta, A.G.; Youssri, Y.H. Advanced shifted first-kind Chebyshev collocation approach for solving the nonlinear time-fractional partial integro-differential equation with a weakly singular kernel. Comput. Appl. Math. 2022, 41, 1–19. [Google Scholar] [CrossRef]
- Bhrawy, A.H.; Zaky, M.A. A method based on the Jacobi tau approximation for solving multi-term time-space fractional partial differential equations. J. Comput. Phys. 2015, 281, 876–895. [Google Scholar] [CrossRef]
- Aghazadeh, N.; Ahmadnezhad, G.; Mohammadi, A. Chebyshev-quasilinearization method for solving fractional singular nonlinear Lane-Emden equations. Commun. Math. 2022, 30, 201–228. [Google Scholar]
- 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]
- Shiralashetti, S.C.; Deshi, A.B.; Desai, P.B.M. Haar wavelet collocation method for the numerical solution of singular initial value problems. Ain Shams Eng. J. 2016, 7, 663–670. [Google Scholar] [CrossRef]
- Khodier, A.M.M.; Hassan, A.Y. One-dimensional adaptive grid generation. Internat. J. Math. Math. Sci. 1997, 20, 577–584. [Google Scholar] [CrossRef]
- Saeed, U. Haar Adomian method for the solution of fractional nonlinear Lane-Emden type equations arising in astrophysics. Taiwan. J. Math. 2017, 21, 1175–1192. [Google Scholar] [CrossRef]
- Gu, X.M.; Sun, H.W.; Zhao, Y.L.; Zheng, X. An implicit difference scheme for time-fractional diffusion equations with a time-invariant type variable order. Appl. Math. Lett. 2021, 120, 107270. [Google Scholar] [CrossRef]
- Gu, X.M.; Huang, T.Z.; Zhao, Y.L.; Lyu, P.; Carpentieri, B. A fast implicit difference scheme for solving the generalized time–space fractional diffusion equations with variable coefficients. Numer. Methods Partial Differ. Equ. 2021, 37, 1136–1162. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. 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 (https://creativecommons.org/licenses/by/4.0/).