Next Article in Journal
Bioheat Transfer with Thermal Memory and Moving Thermal Shocks
Next Article in Special Issue
A New Hybrid Block Method for Solving First-Order Differential System Models in Applied Sciences and Engineering
Previous Article in Journal
Multiple Solutions to a Non-Local Problem of Schrödinger–Kirchhoff Type in ℝN
Previous Article in Special Issue
Analysis of Cauchy Problems and Diffusion Equations Associated with the Hilfer–Prabhakar Fractional Derivative via Kharrat–Toma Transform
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Solving General Fractional Lane-Emden-Fowler Differential Equations Using Haar Wavelet Collocation Method

by
Kholoud Saad Albalawi
1,
Ashish Kumar
2,*,
Badr Saad Alkahtani
3 and
Pranay Goswami
2
1
Department of Mathematics and Statistics, College of Science, Imam Mohammad Ibn Saud Islamic University, Riyadh 11566, Saudi Arabia
2
School of Liberal Studies, Dr. B.R. Ambedkar University Delhi, Delhi 110006, India
3
Department of Mathematics, College of Science, King Saud University, Riyadh 11989, Saudi Arabia
*
Author to whom correspondence should be addressed.
Fractal Fract. 2023, 7(8), 628; https://doi.org/10.3390/fractalfract7080628
Submission received: 20 July 2023 / Revised: 13 August 2023 / Accepted: 15 August 2023 / Published: 17 August 2023

Abstract

:
This paper aims to solve general fractional Lane-Emden-Fowler differential equations using the Haar wavelet collocation method. This method transforms the fractional differential equation into a nonlinear system of equations, which is further solved for Haar coefficients using Newton’s method. We have constructed the higher-order Lane-Emden-Fowler equations. We have also discussed the convergence rate and stability analysis of our technique. We have explained the applications and numerically simulated the examples graphically and in tabular format to elaborate on the accuracy and efficiency of this approach.

1. Introduction

In the past few decades, the study of singular initial value problems has attracted the attention of many physicists and mathematicians. Lane-Emden-Fowler equations are these types of equations. Lane [1] introduced the equation in 1870, and Emden and Fowler [2] generalized the equation further. Lane explained the gravitation potential of a spherically symmetric Newtonian self-gravitating star [3] using these equations. These equations have a vast amount of applications in modeling many problems in physics and dynamics. The general Lane-Emden-Fowler equation is as follows:
ξ η D β ξ η D γ q = ω ξ , q ( ξ ) ,
where η > 0 is a positive real number called a shape factor, D = d d ξ is the differential operator, ω is linear or nonlinear function, and β + γ gives the order of the equation. These equations are used in magnetic field models [4], classical and quantum mechanics [5], biological systems, geometry [6], and fluid mechanics problems [7,8].
Several forms of fractional initial value problems have been proposed in standard models, and there has been a significant interest in developing numerical schemes for their solutions. Fractional calculus is a generalized form of integer order calculus. There are many applications of fractional calculus. Fractional calculus has been deployed to model the oscillation of earthquakes [9], neural networks [10,11], signal processing [12], economics [13], bioengineering [14], and electromagnetism [15].
Many researchers, such as Riemann, Liouville, Caputo, Hadamard, Grunwald, and others, have published extensively about the applications of fractional calculus. Mathematical models with fractional order derivatives provide more insight because they posses the memory effect. Many techniques have been developed to solve fractional problems, such as decomposition methods [16], collocation methods [17], residual power series methods [18,19], finite differences methods [20], perturbation methods, variational iteration methods [21]. Zhang and Han [22] proposed a quasi wavelet method to solve time-dependent fractional partial differential equations. Jiang et al. [23] presented a predictor–corrector difference scheme for nonlinear fractional differential equations. Yang and Zhang [24] proposed a spectral sinc-collocation method for fourth-order heat models.
Wavelet theory has made distinguished contributions to mathematical studies. It is a powerful tool for engineering. Wavelets are used in signal processing, optimal control, and time-frequency analysis [25]. There are many wavelets, such as Daubechies [26], B-spline [4], Legendre [27], and Haar [28]. The Haar wavelet is an orthonormal wavelet with compact support, introduced by a Hungarian mathematician, Alfred Haar, in 1910. The Haar wavelet gives accurate results for small grid points. It contains members of the Daubechies family, so it is very good for computer implementations and is easily expressed in the programming language. Chen and Hsiao [29] derived a Haar operational matrix of the integrals of Haar functions. They made a great contribution to the use of Haar wavelets in applications of dynamic systems. Lepik [30] solved the differential equations using the Haar wavelet. Islam et al. [31] solved the integro-differential equations using the Haar wavelet. Bujurke et al. [32] compute the eigenvalues and solutions of regular Sturm–Liouville problems using Haar wavelets. Chang et al. [33] describe the designation of Haar wavelet matrices in the numerical solution of ODEs. This article aims to solve general fractional Emden-Fowler-type equations using the Haar wavelet collocation method. We write the highest derivative in linear combinations of Haar functions and calculate other derivatives using the integration of Haar functions. This method transforms the fractional differential equation into a nonlinear system of equations, which is further solved for Haar coefficients using the Newton method. After calculating the Haar coefficients, we can easily determine the solution.
The present study is structured as follows: Section 2 defines the Haar wavelet and recalls the basic definitions of fractional calculus. In Section 3, we discuss the construction of the general equation of the Caputo-type fractional Lane-Emden-Fowler differential equation. In Section 4, we discuss the Haar wavelet method. In Section 5, we discuss the convergence rate, stability and error analysis of the technique. In Section 6, we discuss the examples and in Section 7 we discuss the numerical simulation of all of these examples graphically and in tabular format. In the end, we conclude our results.

2. Preliminaries

This section will recall some necessary definitions of fractional calculus and Haar wavelets. These definitions will assist us in the next sections.
Definition 1.
The Riemann-Liouville fractional integral operator I σ of order σ on L 2 [ 0 , 1 ] is given by
I σ ( q ( ξ ) ) = 1 Γ ( σ ) 0 ξ q ( κ ) ξ κ 1 σ d κ , I 0 ( q ( ξ ) ) = ( q ( ξ ) ) ,
where Γ ( λ ) = 0 κ λ 1 e κ d κ is gamma function and
I σ ξ υ = Γ ( υ + 1 ) Γ ( σ + υ + 1 ) ξ σ + υ .
Definition 2.
The Caputo fractional derivative of order σ is given by
D σ ( q ( ξ ) ) = I n σ D n ( q ( ξ ) ) = 1 Γ ( n σ ) 0 ξ q ( n ) ( κ ) ξ κ n + 1 + σ d κ
provided the integral exists, where n is the smallest integer such that n 1 < σ n . It satisfies the following properties:
I σ D σ ( q ( ξ ) ) = q ( ξ ) ε = 0 n 1 q ( ε ) ( 0 + ) ξ ε ε !
and
D σ ξ υ = Γ ( υ + 1 ) Γ ( υ σ + 1 ) ξ υ σ .

Haar Wavelet and Function Approximations

The family of Haar wavelets consists of piecewise constant functions over the real line. They contain only values 1 , 0 , 1 . They are discontinuous, and therefore not differentiable.
h j ( ς ) = 1 , θ 1 ( j ) ς < θ 2 ( j ) 1 , θ 2 ( j ) ς < θ 3 ( j ) 0 , o t h e r w i s e .
where θ 1 ( j ) = r 2 α ,   θ 2 ( j ) = r + 0.5 2 α ,   θ 3 ( j ) = r + 1 2 α ,     α = 0 ,   1 ,   2 ,   J and r = 0 ,   1 ,   2 ,   2 α 1 .
We manipulate the wavelet by translating and dilating it. α here represents the level of wavelet or dilation parameter level and ς represents the translation parameter. J is the maximum level of resolution and the relationship between 2 α and r is j = 2 α + r + 1 . For j = 1
h 1 ( ξ ) = 1 , ξ 0 , 1 0 , o t h e r w i s e .
h 2 ( ξ ) = 1 ,   ξ 0 , 1 2 1 ,   ξ 1 2 , 1 0 ,   o t h e r w i s e .
In particular, the Haar wavelet is an orthogonal square wave family, generally written as
h j ( ξ ) = h 2 2 α ξ r 2 α
for j 3 ,   j = 2 α + r + 1 ,   α 0 ,   0 r 2 α 1 and
0 1 h j ( ξ ) h l ( ξ ) d ξ = 2 α ; j = l 0 ; j l
If g ( ξ ) is a function defined on interval 0 , 1 , then the function is approximated using Haar functions, such as
g ( ξ ) = τ = 1 λ τ h τ ,
where λ τ are the Haar coefficients.
The generalized fractional integration can be calculated analytically as
ρ τ , σ ( ξ ) = 0 , ξ [ 0 , ς 1 ) 1 Γ ( σ + 1 ) ( ξ ς 1 ) σ , ξ [ ς 1 , ς 2 ) 1 Γ ( σ + 1 ) ( ξ ς 1 ) σ 2 ( ξ ς 2 ) σ , ξ [ ς 2 , ς 3 ) 1 Γ ( σ + 1 ) ( ξ ς 1 ) σ 2 ( ξ ς 2 ) σ + ( ξ ς 3 ) σ , ξ [ ς 3 , 1 ) ,
where σ is a positive real number.

3. Construction of Lane-Emden-Fowler Equation

Consider the general form of the Lane-Emden-Fowler equation
ξ η D β ξ η D γ q = ω ξ , q ( ξ ) .
We can obtain higher-order equations of fourth-, fifth- and sixth-order by taking
β + γ = 4 ,
β + γ = 5 ,
β + γ = 6 ,
respectively. There are three possible choices of fourth-order equations, four possibilities for fifth-order equations and five possible choices for sixth-order Lane-Emden-Fowler equations.

3.1. For Fourth-Order Equations

Case 1: When β = 3 , γ = 1 , the equation will be
ξ η D 3 ξ η D 1 q + ω ξ , q ( ξ ) = 0 .
After simplification, Equation (3) will be
D 4 q ( ξ ) + 3 η ξ D 3 q ( ξ ) + 3 η ( η 1 ) ξ 2 D 2 q ( ξ ) + η ( η 1 ) ( η 2 ) ξ 3 D q ( ξ ) + ω ξ , q ( ξ ) = 0 .
The Equation (4) in fractional order is taken as
D 4 σ q ( ξ ) + 3 η ξ σ D 3 σ q ( ξ ) + 3 η ( η 1 ) ξ 2 σ D 2 σ q ( ξ ) + η ( η 1 ) ( η 2 ) ξ 3 σ D σ q ( ξ ) + ω ξ , q ( ξ ) = 0 ,
with initial conditions q ( 0 ) = ϕ 0 ,   q ( σ ) ( 0 ) = ϕ 1 ,   q ( 2 σ ) ( 0 ) = ϕ 2 ,   q ( 3 σ ) ( 0 ) = ϕ 3 , where q ( σ ) ,   q ( 2 σ ) ,   q ( 3 σ ) denotes the Caputo derivative of order σ , 2 σ , 3 σ , respectively.
Case 2: When β = 2 , γ = 2 , the equation will be
ξ η D 2 ξ η D 2 q + ω ξ , q ( ξ ) = 0 .
After simplification, Equation (6) will be
D 4 q ( ξ ) + 2 η ξ D 3 q ( ξ ) + η ( η 1 ) ξ 2 D 2 q ( ξ ) + ω ξ , q ( ξ ) = 0 .
The Equation (7) in fractional order is taken as
D 4 σ q ( ξ ) + 2 η ξ σ D 3 σ q ( ξ ) + η ( η 1 ) ξ 2 σ D 2 σ q ( ξ ) + ω ξ , q ( ξ ) = 0 .
with initial conditions q ( 0 ) = ϕ 0 ,   q ( σ ) ( 0 ) = ϕ 1 ,   q ( 2 σ ) ( 0 ) = ϕ 2 ,   q ( 3 σ ) ( 0 ) = ϕ 3 , where q ( σ ) ,   q ( 2 σ ) ,   q ( 3 σ ) denotes the Caputo derivative of order σ , 2 σ , 3 σ , respectively.
Case 3: When β = 1 , γ = 3 , the equation will be
ξ η D 1 ξ η D 3 q + ω ξ , q ( ξ ) = 0 .
After simplification, Equation (9) will be
D 4 q ( ξ ) + η ξ D 3 q ( ξ ) + ω ξ , q ( ξ ) = 0 .
The Equation (10) in fractional order is taken as
D 4 σ q ( ξ ) + η ξ σ D 3 σ q ( ξ ) + ω ξ , q ( ξ ) = 0 .
with initial conditions q ( 0 ) = ϕ 0 ,   q ( σ ) ( 0 ) = ϕ 1 ,   q ( 2 σ ) ( 0 ) = ϕ 2 ,   q ( 3 σ ) ( 0 ) = ϕ 3 , where q ( σ ) ,   q ( 2 σ ) ,   q ( 3 σ ) denotes the Caputo derivative of order σ , 2 σ , 3 σ , respectively.

3.2. For Fifth-Order Equations

Case 1: When β = 4 , γ = 1 , the equation will be
ξ η D 4 ξ η D 1 q + ω ξ , q ( ξ ) = 0 .
After simplification, Equation (12) will be
D 5 q ( ξ ) + 4 η ξ D 4 q ( ξ ) + 6 η ( η 1 ) ξ 2 D 3 q ( ξ ) + 4 η ( η 1 ) ( η 2 ) ξ 3 D 2 q ( ξ ) + η ( η 1 ) ( η 2 ) ( η 3 ) ξ 4 D q ( ξ ) + ω ξ , q ( ξ ) = 0 .
The Equation (13) in fractional order is taken as
D 5 σ q ( ξ ) + 4 η ξ σ D 4 σ q ( ξ ) + 6 η ( η 1 ) ξ 2 σ D 3 σ q ( ξ ) + 4 η ( η 1 ) ( η 2 ) ξ 3 σ D 2 σ q ( ξ ) + η ( η 1 ) ( η 2 ) ( η 3 ) ξ 4 σ D σ q ( ξ ) + ω ξ , q ( ξ ) = 0 ,
with initial conditions q ( 0 ) = ϕ 0 ,   q ( σ ) ( 0 ) = ϕ 1 ,   q ( 2 σ ) ( 0 ) = ϕ 2 ,   q ( 3 σ ) ( 0 ) = ϕ 3 ,   q ( 4 σ ) ( 0 ) = ϕ 4 , where q ( σ ) ,   q ( 2 σ ) ,   q ( 3 σ ) ,   q ( 4 σ ) denotes the Caputo derivative of order σ , 2 σ , 3 σ , 4 σ , respectively.
Case 2: When β = 3 , γ = 2 , the equation will be
ξ η D 3 ξ η D 2 q + ω ξ , q ( ξ ) = 0 .
After simplification, Equation (15) will be
D 5 q ( ξ ) + 3 η ξ D 4 q ( ξ ) + 3 η ( η 1 ) ξ 2 D 3 q ( ξ ) + η ( η 1 ) ( η 2 ) ξ 3 D 2 q ( ξ ) + ω ξ , q ( ξ ) = 0 .
The Equation (16) in fractional order is taken as
D 5 σ q ( ξ ) + 3 η ξ σ D 4 σ q ( ξ ) + 3 η ( η 1 ) ξ 2 σ D 3 σ q ( ξ ) + η ( η 1 ) ( η 2 ) ξ 3 σ D 2 σ q ( ξ ) + ω ξ , q ( ξ ) = 0 .
with initial conditions q ( 0 ) = ϕ 0 ,   q ( σ ) ( 0 ) = ϕ 1 ,   q ( 2 σ ) ( 0 ) = ϕ 2 ,   q ( 3 σ ) ( 0 ) = ϕ 3 ,   q ( 4 σ ) ( 0 ) = ϕ 4 , where q ( σ ) ,   q ( 2 σ ) ,   q ( 3 σ ) ,   q ( 4 σ ) denotes the Caputo derivative of order σ , 2 σ , 3 σ , 4 σ , respectively.
Case 3: When β = 2 , γ = 3 , the equation will be
ξ η D 2 ξ η D 3 q + ω ξ , q ( ξ ) = 0 .
After simplification, Equation (18) will be
D 5 q ( ξ ) + 2 η ξ D 4 q ( ξ ) + η ( η 1 ) ξ 2 D 3 q ( ξ ) + ω ξ , q ( ξ ) = 0 .
The Equation (19) in fractional order is taken as
D 5 σ q ( ξ ) + 2 η ξ σ D 4 σ q ( ξ ) + η ( η 1 ) ξ 2 σ D 3 σ q ( ξ ) + ω ξ , q ( ξ ) = 0 ,
with initial conditions q ( 0 ) = ϕ 0 ,   q ( σ ) ( 0 ) = ϕ 1 ,   q ( 2 σ ) ( 0 ) = ϕ 2 ,   q ( 3 σ ) ( 0 ) = ϕ 3 ,   q ( 4 σ ) ( 0 ) = ϕ 4 , where q ( σ ) ,   q ( 2 σ ) ,   q ( 3 σ ) ,   q ( 4 σ ) denotes the Caputo derivative of order σ , 2 σ , 3 σ , 4 σ , respectively.
Case 4: When β = 1 , γ = 4 , the equation will be
ξ η D 1 ξ η D 4 q + ω ξ , q ( ξ ) = 0 .
After simplification, Equation (21) will be
D 5 q ( ξ ) + η ξ D 4 q ( ξ ) + ω ξ , q ( ξ ) = 0 .
The Equation (22) in fractional order is taken as
D 5 σ q ( ξ ) + η ξ σ D 4 σ q ( ξ ) + ω ξ , q ( ξ ) = 0 .
with initial conditions q ( 0 ) = ϕ 0 ,   q ( σ ) ( 0 ) = ϕ 1 ,   q ( 2 σ ) ( 0 ) = ϕ 2 ,   q ( 3 σ ) ( 0 ) = ϕ 3 ,   q ( 4 σ ) ( 0 ) = ϕ 4 , where q ( σ ) , q ( 2 σ ) ,   q ( 3 σ ) ,   q ( 4 σ ) denotes the Caputo derivative of order σ , 2 σ , 3 σ , 4 σ , respectively.

3.3. For Sixth-Order Equations

Case 1: When β = 5 , γ = 1 , the equation will be
ξ η D 5 ξ η D 1 q + ω ξ , q ( ξ ) = 0 .
After simplification, Equation (24) will be
D 6 q ( ξ ) + 4 η ξ D 5 q ( ξ ) + 10 η ( η 1 ) ξ 2 D 4 q ( ξ ) + 10 η ( η 1 ) ( η 2 ) ξ 3 D 3 q ( ξ ) + 5 η ( η 1 ) ( η 2 ) ( η 3 ) ξ 4 D 2 q ( ξ ) + η ( η 1 ) ( η 2 ) ( η 3 ) ( η 4 ) ξ 5 D q ( ξ ) + ω ξ , q ( ξ ) = 0 .
The Equation (25) in fractional order is taken as
D 6 σ q ( ξ ) + 4 η ξ σ D 5 σ q ( ξ ) + 10 η ( η 1 ) ξ 2 σ D 4 σ q ( ξ ) + 10 η ( η 1 ) ( η 2 ) ξ 3 σ D 3 σ q ( ξ ) + 5 η ( η 1 ) ( η 2 ) ( η 3 ) ξ 4 σ D 2 σ q ( ξ ) + η ( η 1 ) ( η 2 ) ( η 3 ) ( η 4 ) ξ 5 σ D σ q ( ξ ) + ω ξ , q ( ξ ) = 0 ,
with initial conditions q ( 0 ) = ϕ 0 ,   q ( σ ) ( 0 ) = ϕ 1 ,   q ( 2 σ ) ( 0 ) = ϕ 2 ,   q ( 3 σ ) ( 0 ) = ϕ 3 ,   q ( 4 σ ) ( 0 ) = ϕ 4 ,   q ( 5 σ ) ( 0 ) = ϕ 5 , where q ( σ ) ,   q ( 2 σ ) ,   q ( 3 σ ) ,   q ( 4 σ ) ,   q ( 5 σ ) denotes the Caputo derivative of order σ , 2 σ , 3 σ , 4 σ , 5 σ , respectively.
Case 2: When β = 4 , γ = 2 , the equation will be
ξ η D 4 ξ η D 2 q + ω ξ , q ( ξ ) = 0 .
After simplification, Equation (27) will be
D 6 q ( ξ ) + 4 η ξ D 5 q ( ξ ) + 6 η ( η 1 ) ξ 2 D 4 q ( ξ ) + 4 η ( η 1 ) ( η 2 ) ξ 3 D 3 q ( ξ ) + η ( η 1 ) ( η 2 ) ( η 3 ) ξ 4 D 2 q ( ξ ) + ω ξ , q ( ξ ) = 0 .
The Equation (28) in fractional order is taken as
D 6 σ q ( ξ ) + 4 η ξ σ D 5 σ q ( ξ ) + 6 η ( η 1 ) ξ 2 σ D 4 σ q ( ξ ) + 4 η ( η 1 ) ( η 2 ) ξ 3 σ D 3 σ q ( ξ ) + η ( η 1 ) ( η 2 ) ( η 3 ) ξ 4 σ D 2 σ q ( ξ ) + ω ξ , q ( ξ ) = 0 .
with initial conditions q ( 0 ) = ϕ 0 ,   q ( σ ) ( 0 ) = ϕ 1 ,   q ( 2 σ ) ( 0 ) = ϕ 2 ,   q ( 3 σ ) ( 0 ) = ϕ 3 ,   q ( 4 σ ) ( 0 ) = ϕ 4 ,   q ( 5 σ ) ( 0 ) = ϕ 5 , where q ( σ ) ,   q ( 2 σ ) ,   q ( 3 σ ) ,   q ( 4 σ ) ,   q ( 5 σ ) denotes the Caputo derivative of order σ , 2 σ , 3 σ , 4 σ , 5 σ , respectively.
Case 3: When β = 3 , γ = 3 , the equation will be
ξ η D 3 ξ η D 3 q + ω ξ , q ( ξ ) = 0 .
After simplification, Equation (30) will be
D 6 q ( ξ ) + 3 η ξ D 5 q ( ξ ) + 3 η ( η 1 ) ξ 2 D 4 q ( ξ ) + η ( η 1 ) ( η 2 ) ξ 3 D 3 q ( ξ ) + ω ξ , q ( ξ ) = 0 .
The Equation (31) in fractional order is taken as
D 6 σ q ( ξ ) + 3 η ξ σ D 5 σ q ( ξ ) + 3 η ( η 1 ) ξ 2 σ D 4 σ q ( ξ ) + η ( η 1 ) ( η 2 ) ξ 3 σ D 3 σ q ( ξ ) + ω ξ , q ( ξ ) = 0 .
with initial conditions q ( 0 ) = ϕ 0 ,   q ( σ ) ( 0 ) = ϕ 1 ,   q ( 2 σ ) ( 0 ) = ϕ 2 ,   q ( 3 σ ) ( 0 ) = ϕ 3 ,   q ( 4 σ ) ( 0 ) = ϕ 4 ,   q ( 5 σ ) ( 0 ) = ϕ 5 , where q ( σ ) ,   q ( 2 σ ) ,   q ( 3 σ ) ,   q ( 4 σ ) ,   q ( 5 σ ) denotes the Caputo derivative of order σ , 2 σ , 3 σ , 4 σ , 5 σ , respectively.
Case 4: When β = 2 , γ = 4 , the equation will be
ξ η D 2 ξ η D 4 q + ω ξ , q ( ξ ) = 0 .
After simplification, Equation (33) will be
D 6 q ( ξ ) + 2 η ξ D 5 q ( ξ ) + η ( η 1 ) ξ 2 D 4 q ( ξ ) + ω ξ , q ( ξ ) = 0 .
The Equation (34) in fractional order is taken as
D 6 σ q ( ξ ) + 2 η ξ σ D 5 σ q ( ξ ) + η ( η 1 ) ξ 2 σ D 4 σ q ( ξ ) + ω ξ , q ( ξ ) = 0 .
with initial conditions q ( 0 ) = ϕ 0 ,   q ( σ ) ( 0 ) = ϕ 1 ,   q ( 2 σ ) ( 0 ) = ϕ 2 ,   q ( 3 σ ) ( 0 ) = ϕ 3 ,   q ( 4 σ ) ( 0 ) = ϕ 4 ,   q ( 5 σ ) ( 0 ) = ϕ 5 , where q ( σ ) ,   q ( 2 σ ) ,   q ( 3 σ ) ,   q ( 4 σ ) , q ( 5 σ ) denotes the Caputo derivative of order σ , 2 σ , 3 σ , 4 σ , 5 σ , respectively.
Case 5: When β = 1 , γ = 5 , the equation will be
ξ η D 1 ξ η D 5 q + ω ξ , q ( ξ ) = 0 .
After simplification, Equation (36) will be
D 6 q ( ξ ) + η ξ D 5 q ( ξ ) + ω ξ , q ( ξ ) = 0 .
The Equation (37) in fractional order is taken as
D 6 σ q ( ξ ) + η ξ σ D 5 σ q ( ξ ) + ω ξ , q ( ξ ) = 0 .
with initial conditions q ( 0 ) = ϕ 0 ,   q ( σ ) ( 0 ) = ϕ 1 ,   q ( 2 σ ) ( 0 ) = ϕ 2 ,   q ( 3 σ ) ( 0 ) = ϕ 3 ,   q ( 4 σ ) ( 0 ) = ϕ 4 ,   q ( 5 σ ) ( 0 ) = ϕ 5 , where q ( σ ) ,   q ( 2 σ ) ,   q ( 3 σ ) ,   q ( 4 σ ) ,   q ( 5 σ ) denotes the Caputo derivative of order σ , 2 σ , 3 σ , 4 σ , 5 σ , respectively.

4. Method

Consider the general Equation (1)
ξ η D β ξ η D γ q = ω ξ , q ( ξ ) .
After simplifying and expanding this equation, we have
D β + γ q ( ξ ) + β C β 1 η ξ D β + γ 1 q ( ξ ) + β C β 2 η ( η 1 ) ξ 2 D β + γ 2 q ( ξ ) + β C 0 η ( η 1 ) ( η 2 ) ( η 3 ) ( η β + 1 ) ξ β D γ q ( ξ ) + ω ξ , q ( ξ ) = 0 .
we generalize this Equation (39) into fractional form as
D ξ ( β + γ ) σ q ( ξ ) + β C β 1 η ξ σ D ξ ( β + γ 1 ) σ q ( ξ ) + β C β 2 η ( η 1 ) ξ 2 σ D ξ ( β + γ 2 ) σ q ( ξ ) + β C 0 η ( η 1 ) ( η 2 ) ( η 3 ) ( η β + 1 ) ξ β σ D ξ ( γ ) σ q ( ξ ) + ω ( ξ , q ( ξ ) ) = 0 ,
with initial conditions q ( 0 ) = ϕ 0 ,   q ( σ ) ( 0 ) = ϕ 1 ,   q ( 2 σ ) ( 0 ) = ϕ 2 ,   q ( ( β + γ 1 ) σ ) ( 0 ) = ϕ β + γ 1 , where q ( σ ) ,   q ( 2 σ ) denotes the caputo derivative of order σ and 2 σ . D ξ = d d ξ in (40) represents Caputo fractional differential operator.
Clearly, when β = 1 , γ = 1 and η = 2 , we have the Equation (63) in example 7. In a similar fashion, we can extract all the examples by applying different values of β ,   γ ,   η .
Now, we discuss the method.
  • Step 1: We approximate the highest-order derivative using Haar functions:
    D ξ ( β + γ ) σ q ( ξ ) = τ = 1 2 L λ τ h τ .
  • Step 2: We integrate the Equation (41) again and again, and after applying the initial conditions, we get
    D ξ ( β + γ 1 ) σ q ( ξ ) = ϕ β + γ 1 + τ = 1 2 L λ τ ρ τ , σ ( ξ ) ,
    D ξ ( β + γ 2 ) σ q ( ξ ) = ϕ β + γ 2 + ξ σ Γ ( σ + 1 ) ϕ β + γ 1 + τ = 1 2 L λ τ ρ τ , 2 σ ( ξ ) .
    and so on. The last term is
    q ( ξ ) = τ = 1 2 L λ τ ρ τ , ( β + γ ) σ ( ξ ) + ξ ( β + γ 1 ) σ Γ ( ( β + γ 1 ) σ + 1 ) ϕ β + γ 1 + ϕ 0 .
  • Step 3: We collocate the points as
    ξ τ = τ 0.5 2 L , τ = 1 ,   2 ,   2 L .
    Now, we substitute all the values of derivatives into Equation (40) and collocate the points, resulting in the system of differential equations as follows
    τ = 1 2 L λ τ h τ ( ξ τ ) + β C β 1 η ξ τ σ ϕ β + γ 1 + τ = 1 2 L λ τ ρ τ , σ ( ξ τ ) + ω ( ξ τ , τ = 1 2 L λ τ ρ τ , ( β + γ ) σ ( ξ τ ) + ξ τ ( β + γ 1 ) σ Γ ( ( β + γ 1 ) σ + 1 ) ϕ β + γ 1 + ϕ 0 ) = 0 .
  • Step 4: We solve the system of equations (44) using the Newton method and obtain the values of the Haar coefficients λ τ ,   τ = 1 ,   2 ,   2 L .
  • Step 5: After substituting the values of Haar coefficients into Equation (43), we obtain the numerical solution of Equation (40).

5. Convergence Analysis

Lemma 1
([34]). Assume that q ( ξ ) L 2 ( ) and has a bounded first derivative, that is, | q ( ξ ) | G , ξ ( 0 , 1 ) , P > 0 and q ( ξ ) = τ = 1 λ τ h τ ( ξ ) . Then, | λ j | G 2 ( 3 l 2 ) / 2 .
Theorem 1
([34]). Suppose q ( ξ ) L 2 ( ) is a continuous function with a bounded first derivative in (0,1). Then, the error norm at the Jth level satisfies
| | E J | | G 12 D 2 ( 3 / 2 ) L
where | q ( ξ ) | G ,   ξ ( 0 , 1 ) , G > 0 and M = 2 J , where J is maximum resolution.
Proof. 
The proof is straightforward. We can refer to [34]. □

5.1. Numerical Error

The maximum absolute error is given by
E C = M a x . | q τ e x a c t q τ a p p r o x . | ,
where q τ e x a c t and q τ a p p r o x . are exact and approximate solutions at the τ th collocation point.

5.2. Rate of Convergence

Rate of convergence is defined by
R C ( L ) = log E C ( L / 2 ) / E C ( L ) log 2 ,
where E C ( L ) represents the maximum absolute error at L collocation points.

5.3. Stability

The condition number is significant to measure the stability of an algorithm [35]. For stability, the condition number should be bounded. We consider the system of equations formed in our algorithm as
H A = Υ ,
where H denotes the Haar weights, A denotes the unknown Haar coefficients and Y is a known vector. The condition number bound for some examples is given in Table 1.
Definition 3
([36]). Let us consider the system of equations to be of type H A = Υ , if the inverse of H exists and is bounded, then the algorithm is stable; that is,
| | H 1 | | Z ,
where Z is a constant.
The Condition number is bounded [35]; that is,
C o n d ( H ) 2 | | H | | 2 | | H 1 | | 2 .

6. Applications

Example 1.
Taking η = 2 in Equation (8) gives us this fourth-order fractional Lane-Emden-Fowler equation:
D ξ 4 σ q ( ξ ) + 4 ξ σ D ξ 3 σ q ( ξ ) + 2 ξ 2 σ D ξ 2 σ q ( ξ ) = 3 ( 12 53 ξ 4 + 12 ξ 8 ) ( q ( ξ ) ) 15 ,
with initial conditions q ( 0 ) = 1 ,   q ( σ ) ( 0 ) = 0 ,   q ( 2 σ ) ( 0 ) = 0 ,   q ( 3 σ ) ( 0 ) = 0 .
Now, we apply the method, and using initial conditions, we can write
q ( ξ ) = 1 + τ = 1 2 L λ τ ρ τ , 4 σ ( ξ ) .
After substituting all the values of q ( ξ ) and its derivatives into (45) and using collocation of points, we obtain a system of nonlinear equations as follows:
τ = 1 2 L λ τ h τ ( ξ τ ) + 4 ξ τ σ τ = 1 2 L λ τ ρ τ , σ ( ξ τ ) + 2 ξ τ 2 σ τ = 1 2 L λ τ ρ τ , 2 σ ( ξ τ ) 3 ( 12 53 ξ τ 4 + 12 ξ τ 8 ) ( 1 + τ = 1 2 L λ τ ρ τ , 4 σ ( ξ τ ) ) 15 = 0 .
We can easily solve this system (47) using the Newton method. After solving this system, we have the values of the Haar coefficients λ τ ,   τ = 1 ,   2 ,   2 L and substituting these values into (46) gives the approximate solution.
The exact solution of (45) when σ = 1 is q ( ξ ) = ( 1 + ξ 4 ) 1 4 . which is given in [37].
Example 2.
When we substitute η = 2 in Equation (11), we get this fourth-order fractional Lane-Emden-Fowler equation:
D ξ 4 σ q ( ξ ) + 2 ξ σ D ξ 3 σ q ( ξ ) + ξ ( q ( ξ ) ) 2 = ω ( ξ ) ,
with initial conditions q ( 0 ) = 0 ,   q ( σ ) ( 0 ) = 0 ,   q ( 2 σ ) ( 0 ) = 0 ,   q ( 3 σ ) ( 0 ) = 0 , where
ω ( ξ ) = Γ 1 + 4 σ + 8 Γ 4 σ Γ σ + ξ 1 + ξ 4 σ 2
Now, we apply the method, and using the initial conditions, we can write
q ( ξ ) = 1 + τ = 1 2 L λ τ ρ τ , 4 σ ( ξ ) .
After substituting all the values of q ( ξ ) and its derivatives into (48) and using collocation of points, we get a system of nonlinear equations as follows:
τ = 1 2 L λ τ h τ ( ξ τ ) + 2 ξ τ σ τ = 1 2 L λ τ ρ τ , σ ( ξ τ ) + ξ τ ( 1 + τ = 1 2 L λ τ ρ τ , 4 σ ( ξ τ ) ) 2 ω ( ξ τ ) = 0 .
We can easily solve this system (50) using the Newton method. After solving this system, we have the values of the Haar coefficients λ τ ,   τ = 1 ,   2 ,   2 L , and these values in (49) give the approximate solution.
The exact solution of (48) is q ( ξ ) = 1 + ξ 4 , when σ = 1 .
Example 3.
Taking η = 4 in Equation (14) gives the fifth-order fractional Lane-Emden-Fowler equation:
D ξ 5 σ q ( ξ ) + 16 ξ σ D ξ 4 σ q ( ξ ) + 72 ξ 2 σ D ξ 3 σ q ( ξ ) + 96 ξ 3 σ D ξ 2 σ q ( ξ ) + 24 ξ 4 σ D ξ σ q ( ξ ) + ( 1 ξ 5 σ ) ( q ( ξ ) ) + ξ 10 σ = ω ( ξ ) ,
with initial conditions q ( 0 ) = 0 ,   q ( σ ) ( 0 ) = 0 ,   q ( 2 σ ) ( 0 ) = 0 ,   q ( 3 σ ) ( 0 ) = 0 ,   q ( 4 σ ) ( 0 ) = 0 , where
ω ( ξ ) = 1 + Γ 1 + 5 σ + 80 Γ 5 σ Γ σ + 180 Γ 5 σ Γ 2 σ + 160 Γ 5 σ Γ 3 σ + 30 Γ 5 σ Γ 4 σ
Now, we apply the method, and using initial conditions, we can write
q ( ξ ) = 1 + τ = 1 2 L λ τ ρ τ , 5 σ ( ξ ) .
After putting all the values of q ( ξ ) and its derivatives into (51) we get a system of nonlinear equations as:
τ = 1 2 L λ τ h τ ( ξ τ ) + 16 ξ τ σ τ = 1 2 L λ τ ρ τ , σ ( ξ τ ) + 72 ξ τ 2 σ τ = 1 2 L λ τ ρ τ , 2 σ ( ξ τ ) + 96 ξ τ 3 σ τ = 1 2 L λ τ ρ τ , 3 σ ( ξ τ ) + 24 ξ τ 4 σ τ = 1 2 L λ τ ρ τ , 4 σ ( ξ τ ) + ( 1 ξ τ 5 σ ) ( 1 + τ = 1 2 L λ τ ρ τ , 5 σ ( ξ τ ) ) + ξ τ 10 σ ω ( ξ τ ) = 0 .
We can easily solve this system (53) using the Newton method. After solving this system, we have the values of Haar coefficients λ τ ,   τ = 1 ,   2 ,   2 L and putting these values in (52) gives the approximate solution.
The exact solution of (51) is q ( ξ ) = 1 + ξ 5 σ .
Example 4.
When we put η = 4 in Equation (32) we get this sixth-order fractional Lane-Emden-Fowler equation:
D ξ 6 σ q ( ξ ) + 12 ξ σ D ξ 5 σ q ( ξ ) + 36 ξ 2 σ D ξ 4 σ q ( ξ ) + 24 ξ 3 σ D ξ 3 σ q ( ξ ) 45 ( 280 + 17056 ξ 6 79987 ξ 12 + 63332 ξ 18 7712 ξ 24 + 32 ξ 30 ) ( q ( ξ ) ) 13 = 0 ,
with initial conditions q ( 0 ) = 1 ,   q ( σ ) ( 0 ) = 0 ,   q ( 2 σ ) ( 0 ) = 0 ,   q ( 3 σ ) ( 0 ) = 0 ,   q ( 4 σ ) ( 0 ) = 0 ,   q ( 5 σ ) ( 0 ) = 0 .
Now, we apply the method, and using the initial conditions, we can write
q ( ξ ) = 1 + τ = 1 2 L λ τ ρ τ , 6 σ ( ξ ) .
After putting all the values of q ( ξ ) and its derivatives into (54), we get a system of nonlinear equations as follows:
τ = 1 2 L λ τ h τ ( ξ τ ) + 12 ξ τ σ τ = 1 2 L λ τ ρ τ , σ ( ξ τ ) + 36 ξ τ 2 σ τ = 1 2 L λ τ ρ τ , 2 σ ( ξ τ ) + 24 ξ τ 3 σ τ = 1 2 L λ τ ρ τ , 3 σ ( ξ τ ) 45 ( 280 + 17056 ξ τ 6 79987 ξ τ 12 + 63332 ξ τ 18 7712 ξ τ 24 + 32 ξ τ 30 ) ( 1 + τ = 1 2 L λ τ ρ τ , 6 σ ( ξ τ ) ) 13 = 0 .
We can easily solve this system (53) using the Newton method. After solving this system, we have the values of Haar coefficients λ τ ,   τ = 1 ,   2 ,   2 L and substituting these values into (52) gives the approximate solution.
The exact solution of (54) when σ = 1 is q ( ξ ) = 1 1 + ξ 6 .
Example 5.
Consider the fractional Lane-Emden Fowler equation, [38]:
D ξ 2 σ q ( ξ ) + 1 ξ σ D ξ σ q ( ξ ) + 1 + ξ σ ( q ( ξ ) ) 5 = ω ( ξ ) ,
with initial conditions q ( 0 ) = 3 , q ( σ ) ( 0 ) = 0 , where
ω ( ξ ) = Γ 1 + 2 σ + Γ 1 + 2 σ Γ 1 + σ + 1 + ξ σ 3 + ξ 2 σ 5 .
The exact solution of (57) is q ( ξ ) = 3 + ξ 2 σ .
Now, we apply the method, and using the initial conditions, we can write
q ( ξ ) = 3 + τ = 1 2 L λ τ ρ τ , 2 σ ( ξ ) .
After putting all the values of q ( ξ ) and its derivatives into (57), we get a system of nonlinear equations as follows:
τ = 1 2 L λ τ h τ ( ξ τ ) + 1 ξ τ σ τ = 1 2 L λ τ ρ τ , σ ( ξ τ ) + 1 + ξ τ σ ( 3 + τ = 1 2 L λ τ ρ τ , 2 σ ( ξ τ ) ) 5 Γ 1 + 2 σ Γ 1 + 2 σ Γ 1 + σ 1 + ξ τ σ 3 + ξ τ 2 σ 5 = 0 .
We can easily solve this system (59) using the Newton method. After solving this system, we have the values of Haar coefficients λ τ ,   τ = 1 ,   2 ,   2 L and putting these values in (58) gives the approximate solution.
Example 6.
Consider this third-order fractional Lane-Emden-Fowler equation:
D ξ 3 σ q ( ξ ) + 3 ξ σ D ξ 2 σ q ( ξ ) ( q ( ξ ) ) 3 = ω ( ξ ) ,
with initial conditions q ( 0 ) = 0 ,   q ( σ ) ( 0 ) = 0 ,   q ( 2 σ ) ( 0 ) = 0 , where
ω ( ξ ) = ξ 9 σ e ξ + ξ 3 σ e ξ + 9 σ 2 ξ 3 σ 1 e ξ + ( 3 σ ) 2 ( 3 σ 1 ) 2 2 ξ 3 σ 2 e ξ + 3 ξ 2 σ e ξ + 18 σ 2 ξ 2 σ 1 e ξ + 9 σ 2 ( 3 σ 1 ) ( 2 σ 1 ) ξ 2 σ 2 e ξ + ( 3 σ ) 2 ( 3 σ 1 ) 2 ( 3 σ 2 ) 2 6 e ξ .
Clearly, when σ = 1 , Equation (60) becomes
q ( ξ ) + 3 ξ q ( ξ ) ( q ( ξ ) ) 3 = 24 e ξ + 36 ξ e ξ + 12 ξ 2 e ξ + ξ 3 e ξ ξ 9 e 3 ξ ,
which is given in [39].
Now, we apply the method, and using the initial conditions, we can write
q ( ξ ) = τ = 1 2 L λ τ ρ τ , 3 σ ( ξ ) .
After putting all the values of q ( ξ ) and its derivatives into (60), we get a system of nonlinear equations as follows:
τ = 1 2 L λ τ h τ ( ξ τ ) + 3 ξ τ σ τ = 1 2 L λ τ ρ τ , σ ( ξ τ ) ( τ = 1 2 L λ τ ρ τ , 3 σ ( ξ τ ) ) 3 ω ( ξ τ ) = 0 .
We can easily solve this system (62) using the Newton method. After solving this system, we have the values of Haar coefficients λ τ ,   τ = 1 ,   2 ,   2 L and substituting these values into (61) gives the approximate solution.
The exact solution of (60) is q ( ξ ) = ξ 3 σ e ξ .
Example 7.
Consider the fractional Lane-Emden-Fowler equation, which is given in [40]
D ξ 2 σ q ( ξ ) + 2 ξ σ D ξ σ q ( ξ ) + 8 e q ( ξ ) + 4 e q ( ξ ) / 2 = 0 ,
with initial conditions q ( 0 ) = 0 ,   q ( σ ) ( 0 ) = 0 . The exact solution of (63) when σ = 1 is q ( ξ ) = 2 log ( 1 + ξ 2 ) .
Now, we apply the method
D ξ 2 σ q ( ξ ) = τ = 1 2 L λ τ h τ .
Integrating (64) and applying the initial condition gives us
D ξ σ q ( ξ ) = τ = 1 2 L λ τ ρ τ , σ ( ξ ) .
In the same way, we can write
q ( ξ ) = τ = 1 2 L λ τ ρ τ , 2 σ ( ξ ) .
After substituting all the values of q ( ξ ) and its derivatives into (63) and after collocation of points, we get a system of nonlinear equations as follows:
τ = 1 2 L λ τ h τ ( ξ τ ) + 2 ξ σ τ = 1 2 L λ τ ρ τ , σ ( ξ τ ) + 8 e τ = 1 2 L λ τ ρ τ , 2 σ ( ξ τ ) + 4 e τ = 1 2 L λ τ ρ τ , 2 σ ( ξ τ ) 2 = 0 .
Using the Newton method, we can easily solve this system (66). After solving this system, we have the values of the Haar coefficients λ τ , τ = 1 , 2 , 2 L and putting these values in (65) gives the approximate solution.

7. Numerical Simulation and Conclusions

This paper uses the Haar wavelet collocation method to find the numerical solution to the general-order fractional Lane-Emden-Fowler equation. This numerical scheme is presented in general order. We have documented many examples of second-, third-, fourth-, fifth-, and sixth-order fractional differential equations. We have numerically simulated those examples graphically and in tabular format. It is clear from the simulations that this method works very nicely. Figure 1 and Figure 2 show the comparison of exact and numerical solutions and the absolute error of Example 1 for σ = 1 respectively. Figure 3 and Figure 4 show the HWCM solution for different values of σ and Haar coefficients of Example 1 respectively. Figure 5 and Figure 6 show the comparison of exact and numerical solutions and the absolute error of Example 2 for σ = 1 respectively. Figure 7 and Figure 8 show the HWCM solution for different values of σ and Haar coefficients respectively. Figure 9 and Figure 10 show the comparison of exact and numerical solutions and the absolute error of Example 3 for σ = 1 respectively. Figure 11 and Figure 12 show the HWCM solution for different values of σ and Haar coefficients respectively. Similarly, Figure 13 and Figure 14 show the comparison of exact and numerical solutions and the absolute error of Example 4 for σ = 1 respectively. Figure 15 and Figure 16 show the HWCM solution for different values of σ and Haar coefficients respectively. Figure 17 and Figure 18 show the comparison of exact and numerical solutions and the absolute error of Example 5 for σ = 1 respectively. Figure 19 and Figure 20 show the HWCM solution for different values of σ and Haar coefficients respectively. Figure 21 and Figure 22 show the comparison of exact and numerical solutions and the absolute error of Example 6 for σ = 1 respectively. Figure 23 and Figure 24 show the HWCM solution for different values of σ and Haar coefficients respectively. Figure 25 and Figure 26 show the comparison of exact and numerical solutions and the absolute error of Example 7 for σ = 1 respectively. Figure 27 and Figure 28 show the HWCM solution for different values of σ and Haar coefficients respectively. Table 2, Table 3, Table 4, Table 5, Table 6, Table 7, Table 8, Table 9, Table 10, Table 11, Table 12, Table 13, Table 14 and Table 15 give us a comparison of the numerical values of Haar and the exact solution and document the numerical values for different values of σ . From all the tables and graphs, we conclude that the method is quite accurate and gives us good outcomes.

Author Contributions

P.G. led the study and organized the required literature. A.K. wrote the manuscript, interpreted the results and conducted all the numerical calculations and made the graphs. K.S.A. and B.S.A. summarized the data for tables, created the study site map, and formatted the final document. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported and funded by the Deanship of Scientific Research at Imam Mohammad Ibn Saud Islamic University (IMSIU) (grant number IMSIU-RP23028).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors extend their appreciation to the Deanship of Scientific Research at Imam Mohammad Ibn Saud Islamic University (IMSIU) (grant number IMSIU-RP23028) for funding and supporting this work. Ashish Kumar is also thankful to UGC for providing a Junior Research Fellowship.

Conflicts of Interest

Researchers state that there are no conflict of interest to report regarding the presented article.

References

  1. 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]
  2. Fowler, R. Some results on the form near infinity of real continuous solutions of a certain type of second order differential equation. Proc. Lond. Math. Soc. 1914, 2, 341–371. [Google Scholar] [CrossRef]
  3. Chandrasekhar, S. An Introduction to the Study of Stellar Structure; Dover Publications: New York, NY, USA, 1957. [Google Scholar]
  4. Dehghan, M.; Shakeri, F. Solution of an integro-differential equation arising in oscillating magnetic fields using He’s homotopy perturbation method. Prog. Electromagn. Res. 2008, 78, 361–376. [Google Scholar] [CrossRef]
  5. Ramos, J.I. Linearization methods in classical and quantum mechanics. Comput. Phys. Commun. 2003, 153, 199–208. [Google Scholar] [CrossRef]
  6. Bhrawy, A.; Alofi, A.; Van Gorder, R. An efficient collocation method for a class of boundary value problems arising in mathematical physics and geometry. Abstr. Appl. Anal. 2014, 2014, 425648. [Google Scholar] [CrossRef]
  7. Boubaker, K.; Van Gorder, R.A. Application of the BPES to Lane–Emden equations governing polytropic and isothermal gas spheres. New Astron. 2012, 17, 565–569. [Google Scholar] [CrossRef]
  8. Flockerzi, D.; Sundmacher, K. On coupled Lane-Emden equations arising in dusty fluid models. J. Phys. Conf. Ser. 2011, 268, 012006. [Google Scholar] [CrossRef]
  9. He, J. Nonlinear oscillation with fractional derivative and its applications. In Proceedings of the International Conference on Vibrating Engineering, Dalian, China, 6–9 August 1998; Volume 98, pp. 288–291. [Google Scholar]
  10. Alzabut, J.; Tyagi, S.; Abbas, S. Discrete fractional-order BAM neural networks with leakage delay: Existence and stability results. Asian J. Control 2020, 22, 143–155. [Google Scholar] [CrossRef]
  11. Pratap, A.; Raja, R.; Alzabut, J.; Dianavinnarasi, J.; Cao, J.; Rajchakit, G. Finite-time Mittag-Leffler stability of fractional-order quaternion-valued memristive neural networks with impulses. Neural Process. Lett. 2020, 51, 1485–1526. [Google Scholar] [CrossRef]
  12. Panda, R.; Dash, M. Fractional generalized splines and signal processing. Signal Process. 2006, 86, 2340–2350. [Google Scholar] [CrossRef]
  13. Baillie, R.T. Long memory processes and fractional integration in econometrics. J. Econom. 1996, 73, 5–59. [Google Scholar] [CrossRef]
  14. Magin, R. Fractional calculus in bioengineering, part 1. Crit. Rev. Trade Biomed. Eng. 2004, 32, 1–104. [Google Scholar] [CrossRef]
  15. Engheta, N. On fractional calculus and fractional multipoles in electromagnetism. IEEE Trans. Antennas Propag. 1996, 44, 554–566. [Google Scholar] [CrossRef]
  16. Al-Khaled, K.; Momani, S. An approximate solution for a fractional diffusion-wave equation using the decomposition method. Appl. Math. Comput. 2005, 165, 473–483. [Google Scholar] [CrossRef]
  17. Al-Mdallal, Q.M.; Syam, M.I.; Anwar, M. A collocation-shooting method for solving fractional boundary value problems. Commun. Nonlinear Sci. Numer. Simul. 2010, 15, 3814–3822. [Google Scholar] [CrossRef]
  18. Alquran, M.; Al-Khaled, K.; Chattopadhyay, J. Analytical solutions of fractional population diffusion model: Residual power series. Nonlinear Stud. 2015, 22, 31–39. [Google Scholar]
  19. Jaradat, H.; Al-Shara, S.; Khan, Q.J.; Alquran, M.; Al-Khaled, K. Analytical solution of time-fractional Drinfeld-Sokolov-Wilson system using residual power series method. IAENG Int. J. Appl. Math. 2016, 46, 64–70. [Google Scholar]
  20. Meerschaert, M.M.; Tadjeran, C. Finite difference approximations for two-sided space-fractional partial differential equations. Appl. Numer. Math. 2006, 56, 80–90. [Google Scholar] [CrossRef]
  21. Das, S. Analytical solution of a fractional diffusion equation by variational iteration method. Comput. Math. Appl. 2009, 57, 483–487. [Google Scholar] [CrossRef]
  22. Zhang, H.; Han, X. Quasi-wavelet method for time-dependent fractional partial differential equation. Int. J. Comput. Math. 2013, 90, 2491–2507. [Google Scholar] [CrossRef]
  23. Jiang, X.; Wang, J.; Wang, W.; Zhang, H. A Predictor–Corrector Compact Difference Scheme for a Nonlinear Fractional Differential Equation. Fractal Fract. 2023, 7, 521. [Google Scholar] [CrossRef]
  24. Yang, X.; Wu, L.; Zhang, H. A space-time spectral order sinc-collocation method for the fourth-order nonlocal heat model arising in viscoelasticity. Appl. Math. Comput. 2023, 457, 128192. [Google Scholar] [CrossRef]
  25. Guf, J.S.; Jiang, W.S. The Haar wavelets operational matrix of integration. Int. J. Syst. Sci. 1996, 27, 623–628. [Google Scholar] [CrossRef]
  26. Díaz, L.A.; Martín, M.T.; Vampa, V. Daubechies wavelet beam and plate finite elements. Finite Elem. Anal. Des. 2009, 45, 200–209. [Google Scholar] [CrossRef]
  27. ur Rehman, M.; Khan, R.A. The Legendre wavelet method for solving fractional differential equations. Commun. Nonlinear Sci. Numer. Simul. 2011, 16, 4163–4173. [Google Scholar] [CrossRef]
  28. Lepik, Ü. Numerical solution of evolution equations by the Haar wavelet method. Appl. Math. Comput. 2007, 185, 695–704. [Google Scholar] [CrossRef]
  29. Chen, C.F.; Hsiao, C.H. Haar wavelet method for solving lumped and distributed-parameter systems. IEE Proc.-Control Theory Appl. 1997, 144, 87–94. [Google Scholar] [CrossRef]
  30. Lepik, Ü. Numerical solution of differential equations using Haar wavelets. Math. Comput. Simul. 2005, 68, 127–143. [Google Scholar] [CrossRef]
  31. ul Islam, S.; Aziz, I.; Fayyaz, M. A new approach for numerical solution of integro-differential equations via Haar wavelets. Int. J. Comput. Math. 2013, 90, 1971–1989. [Google Scholar] [CrossRef]
  32. Bujurke, N.; Salimath, C.; Shiralashetti, S. Computation of eigenvalues and solutions of regular Sturm–Liouville problems using Haar wavelets. J. Comput. Appl. Math. 2008, 219, 90–101. [Google Scholar] [CrossRef]
  33. Chang, P.; Piau, P. Haar wavelet matrices designation in numerical solution of ordinary differential equations. IAENG Int. J. Appl. Math. 2008, 38, 1–5. [Google Scholar]
  34. Ray, S.S. On Haar wavelet operational matrix of general order and its application for the numerical solution of fractional Bagley Torvik equation. Appl. Math. Comput. 2012, 218, 5239–5248. [Google Scholar]
  35. Sun, H.; Mei, L.; Lin, Y. A new algorithm based on improved Legendre orthonormal basis for solving second-order BVPs. Appl. Math. Lett. 2021, 112, 106732. [Google Scholar] [CrossRef]
  36. LeVeque, R.J. Finite Difference Methods for Ordinary and Partial Differential Equations: Steady-State and Time-Dependent Problems; SIAM: Philadelphia, PA, USA, 2007. [Google Scholar]
  37. Ali, K.K.; Mehanna, M.; Abdelrahman, M.I.; Shaalan, M. Analytical and numerical solutions for fourth order Lane–Emden–Fowler equation. Partial. Differ. Equ. Appl. Math. 2022, 6, 100430. [Google Scholar] [CrossRef]
  38. Syam, M.I. Analytical solution of the fractional initial Emden–Fowler equation using the fractional residual power series method. Int. J. Appl. Comput. Math. 2018, 4, 106. [Google Scholar] [CrossRef]
  39. Iqbal, M.K.; Abbas, M.; Wasim, I. New cubic B-spline approximation for solving third order Emden–Flower type equations. Appl. Math. Comput. 2018, 331, 319–333. [Google Scholar] [CrossRef]
  40. Mohammadi, A.; Ahmadnezhad, G.; Aghazadeh, N. Chebyshev-quasilinearization method for solving fractional singular nonlinear Lane-Emden equations. Commun. Math. 2022, 30. [Google Scholar] [CrossRef]
  41. Yıldırım, A.; Öziş, T. Solutions of singular IVPs of Lane–Emden type by the variational iteration method. Nonlinear Anal. Theory Methods Appl. 2009, 70, 2480–2484. [Google Scholar] [CrossRef]
Figure 1. Comparison of Exact and HWCM solution of Example 1 when σ = 1 .
Figure 1. Comparison of Exact and HWCM solution of Example 1 when σ = 1 .
Fractalfract 07 00628 g001
Figure 2. Absolute error of HWCM of Example 1 when σ = 1.
Figure 2. Absolute error of HWCM of Example 1 when σ = 1.
Fractalfract 07 00628 g002
Figure 3. HWCM solution of Example 1 for different values of σ .
Figure 3. HWCM solution of Example 1 for different values of σ .
Fractalfract 07 00628 g003
Figure 4. Haar coefficients of Example 1 for different values of σ .
Figure 4. Haar coefficients of Example 1 for different values of σ .
Fractalfract 07 00628 g004
Figure 5. Comparison of Exact and HWCM solution of Example 2 when σ = 1 .
Figure 5. Comparison of Exact and HWCM solution of Example 2 when σ = 1 .
Fractalfract 07 00628 g005
Figure 6. Absolute error of HWCM of Example 2 when σ = 1.
Figure 6. Absolute error of HWCM of Example 2 when σ = 1.
Fractalfract 07 00628 g006
Figure 7. HWCM solution of Example 2 for different values of σ .
Figure 7. HWCM solution of Example 2 for different values of σ .
Fractalfract 07 00628 g007
Figure 8. Haar coefficients of Example 2 for different values of σ .
Figure 8. Haar coefficients of Example 2 for different values of σ .
Fractalfract 07 00628 g008
Figure 9. Comparison of Exact and HWCM solution of Example 3 when σ = 1 .
Figure 9. Comparison of Exact and HWCM solution of Example 3 when σ = 1 .
Fractalfract 07 00628 g009
Figure 10. Absolute error of HWCM of Example 3 when σ = 1.
Figure 10. Absolute error of HWCM of Example 3 when σ = 1.
Fractalfract 07 00628 g010
Figure 11. HWCM solution of Example 3 for different values of σ .
Figure 11. HWCM solution of Example 3 for different values of σ .
Fractalfract 07 00628 g011
Figure 12. Haar coefficients of Example 3 for different values of σ .
Figure 12. Haar coefficients of Example 3 for different values of σ .
Fractalfract 07 00628 g012
Figure 13. Comparison of Exact and HWCM solution of Example 4 when σ = 1 .
Figure 13. Comparison of Exact and HWCM solution of Example 4 when σ = 1 .
Fractalfract 07 00628 g013
Figure 14. Absolute error of HWCM of Example 4 when σ = 1.
Figure 14. Absolute error of HWCM of Example 4 when σ = 1.
Fractalfract 07 00628 g014
Figure 15. HWCM solution of Example 4 for different values of σ .
Figure 15. HWCM solution of Example 4 for different values of σ .
Fractalfract 07 00628 g015
Figure 16. Haar coefficients of Example 4 for different values of σ .
Figure 16. Haar coefficients of Example 4 for different values of σ .
Fractalfract 07 00628 g016
Figure 17. Comparison of Exact and HWCM solution of Example 5 when σ = 1 .
Figure 17. Comparison of Exact and HWCM solution of Example 5 when σ = 1 .
Fractalfract 07 00628 g017
Figure 18. Absolute error of HWCM of Example 5 when σ = 1.
Figure 18. Absolute error of HWCM of Example 5 when σ = 1.
Fractalfract 07 00628 g018
Figure 19. HWCM solution of Example 5 for different values of σ .
Figure 19. HWCM solution of Example 5 for different values of σ .
Fractalfract 07 00628 g019
Figure 20. Haar coefficients of Example 5 for different values of σ .
Figure 20. Haar coefficients of Example 5 for different values of σ .
Fractalfract 07 00628 g020
Figure 21. Comparison of Exact and HWCM solution of Example 6 when σ = 1 .
Figure 21. Comparison of Exact and HWCM solution of Example 6 when σ = 1 .
Fractalfract 07 00628 g021
Figure 22. Absolute error of HWCM of Example 6 when σ = 1.
Figure 22. Absolute error of HWCM of Example 6 when σ = 1.
Fractalfract 07 00628 g022
Figure 23. HWCM solution of Example 6 for different values of σ .
Figure 23. HWCM solution of Example 6 for different values of σ .
Fractalfract 07 00628 g023
Figure 24. Haar coefficients of Example 6 for different values of σ .
Figure 24. Haar coefficients of Example 6 for different values of σ .
Fractalfract 07 00628 g024
Figure 25. Comparison of Exact and HWCM solution of Example 4 when σ = 1 .
Figure 25. Comparison of Exact and HWCM solution of Example 4 when σ = 1 .
Fractalfract 07 00628 g025
Figure 26. Absolute error of HWCM of Example 7 when σ = 1.
Figure 26. Absolute error of HWCM of Example 7 when σ = 1.
Fractalfract 07 00628 g026
Figure 27. HWCM solution of Example 7 for different values of σ .
Figure 27. HWCM solution of Example 7 for different values of σ .
Fractalfract 07 00628 g027
Figure 28. Haar coefficients of Example 7 for different values of σ .
Figure 28. Haar coefficients of Example 7 for different values of σ .
Fractalfract 07 00628 g028
Table 1. Condition number bound for Examples 1 and 3.
Table 1. Condition number bound for Examples 1 and 3.
ResolutionSizeExample 1Example 3
3 16 × 16 1.4133 × 10 2 1.8795 × 10 2
4 32 × 32 2.8277 × 10 2 3.8086 × 10 2
5 64 × 64 5.6547 × 10 2 7.6413 × 10 2
Table 2. Comparison of HWCM and exact solution of Example 1 for J = 5.
Table 2. Comparison of HWCM and exact solution of Example 1 for J = 5.
ξ HWCMExact ψ 10 [37]QBSM [37] ψ 8 [37] σ = 0.75 σ = 0.85 σ = 0.95
0.11.000021.000021.000031.000031.000031.000871.000211.00005
0.41.006331.006331.006341.006341.006341.048671.023051.00989
0.51.015271.015271.015271.015271.015271.085071.046831.02262
0.61.030931.030931.030931.030931.030931.128701.081121.04374
0.91.134421.134411.134401.134381.134381.273341.235191.16789
Table 3. Error Comparison of Example 1.
Table 3. Error Comparison of Example 1.
ξ HWCM Error E 8 [37] E 10 [37]
0.106.6342 × 10 6 2.1208 × 10 6
0.43.1 × 10 8 4.0829 × 10 6 1.3122 × 10 6
0.52.01 × 10 7 6.8710 × 10 7 2.2781 × 10 7
0.64.19 × 10 7 4.7993 × 10 6 1.5386 × 10 6
0.95.85 × 10 6 3.4277 × 10 5 1.1079 × 10 5
Table 4. Comparison of HWCM and exact solution of Example 2 for J = 3.
Table 4. Comparison of HWCM and exact solution of Example 2 for J = 3.
ξ / 32 Haar SolutionExact Solution σ = 0.55 σ = 0.75 σ = 0.95
1/321.000000951.000000951.000488281.000030521.00000191
3/321.000077251.000077251.00547441.000823971.00012402
5/321.000596051.000596051.01684241.00381471.000864
7/321.002289771.002289771.035309031.010467531.00310315
9/321.006257061.006257061.06137671.022247311.00806402
11/321.013962751.013962751.095440771.04061891.01728711
13/321.027237891.027237891.137830531.067047121.03261481
15/321.048279761.048279761.188829921.102996831.05617937
17/321.079651831.079651831.248689631.149932861.09039325
19/321.124283791.124283791.317634721.209320071.13794113
21/321.185471531.185471531.395869911.282623291.20177316
23/321.266877171.266877171.483583291.371307371.28509911
25/321.372529031.372529031.580949081.476837161.39138314
27/321.506821631.506821631.688129741.600677491.52433927
29/321.674515721.674515721.805277651.744293211.68792719
31/321.880738261.880738261.932536361.909149171.88634851
Table 5. Absolute error of HWCM of Example 2 for σ = 1 .
Table 5. Absolute error of HWCM of Example 2 for σ = 1 .
Resolution (J)345678
HWM error2.2204 × 10 16 004.4409 × 10 16 00
CPU time (seconds)1.1325631.3830341.8613074.54159218.758987125.318744
Table 6. Absolute error of HWCM of Example 2 for different σ .
Table 6. Absolute error of HWCM of Example 2 for different σ .
Resolution34567
σ = 0.55 3.4658 × 10 11 3.7683 × 10 11 3.9526 × 10 11 4.0468 × 10 11 4.0935 × 10 11
σ = 0.75 1.207 × 10 12 1.3634 × 10 16 1.4571 × 10 16 1.5068 × 10 16 1.533 × 10 16
σ = 0.95 2.2204 × 10 16 4.4409 × 10 16 4.4409 × 10 16 2.2204 × 10 16 2.2204 × 10 16
Table 7. Comparison of HWCM and exact solution of Example 3 for J = 3.
Table 7. Comparison of HWCM and exact solution of Example 3 for J = 3.
ξ / 32 Haar SolutionExact Solution σ = 0.55 σ = 0.75 σ = 0.95
1/321.000000031.000000031.000072581.000002271.00000007
3/321.000007241.000007241.001489091.00013961.00001309
5/321.000093131.000093131.006067431.000948041.00014813
7/321.000500891.000500891.015305821.003348151.00073241
9/321.00175981.00175981.030549491.008592051.00241652
11/321.004799691.004799691.053047751.018235181.00626834
13/321.011065391.011065391.083981051.034117331.01386017
15/321.022631141.022631141.12447671.05834851.02735087
17/321.042315041.042315041.175619051.09329771.04956442
19/321.07379351.07379351.238456681.141583781.08406539
21/321.121715691.121715691.31400761.206067671.13523194
23/321.191817971.191817971.403263251.289845721.20832665
25/321.29103831.29103831.507191681.396243851.30956557
27/321.427630751.427630751.626740061.528812391.44618555
29/321.611279881.611279881.762836731.691321391.62651014
31/321.853215191.853215191.9163931.887756491.86001428
Table 8. Absolute error of HWCM of Example 3 for σ = 1 .
Table 8. Absolute error of HWCM of Example 3 for σ = 1 .
Resolution (J)345678
HWCM error2.2204 × 10 16 4.4409 × 10 16 2.2204 × 10 16 4.4409 × 10 16 4.4409 × 10 16 2.2204 × 10 16
CPU time (seconds)0.9479301.1523021.5801083.50623314.58102496.118520
Table 9. Absolute error of HWCM of Example 3 for different σ .
Table 9. Absolute error of HWCM of Example 3 for different σ .
Resolution34567
σ = 0.55 9.6373 × 10 7 8.6165 × 10 7 8.8235 × 10 7 8.924 × 10 7 8.9734 × 10 7
σ = 0.75 1.5783 × 10 7 1.6771 × 10 7 1.7277 × 10 7 1.7534 × 10 7 1.7663 × 10 7
σ = 0.95 2.855 × 10 8 3.0805 × 10 8 3.1984 × 10 8 3.2587 × 10 8 3.2891 × 10 8
Table 10. Comparison of HWCM and exact solution of Example 5 for J = 3.
Table 10. Comparison of HWCM and exact solution of Example 5 for J = 3.
ξ / 32 Haar SolutionExact Solution σ = 0.55 σ = 0.75 σ = 0.95
1/323.0009773.0009773.0220973.0055243.001381
3/323.0087893.0087893.0739893.0287053.011136
5/323.0244143.0244143.1297783.0617633.029394
7/323.0478523.0478523.1879073.1023113.055706
9/323.0791023.0791023.2477433.1491553.089800
11/323.1181643.1181643.3089353.2015413.131480
13/323.1650393.1650393.3712553.2589353.180596
15/323.2197273.2197273.4345463.3209313.237022
17/323.2822273.2822273.4986883.3872123.300655
19/323.3525393.3525393.5635913.4575153.371404
21/323.4306643.4306643.6291823.5316233.449192
23/323.5166023.5166023.6954023.6093503.533947
25/323.6103523.6103523.7622003.6905343.625606
27/323.7119143.7119143.8295363.7750343.724113
29/323.8212893.8212893.8973733.8627243.829414
31/323.9384773.9384773.9656793.9534933.941461
Table 11. Absolute error of HWCM of Example 5.
Table 11. Absolute error of HWCM of Example 5.
Resolution (J)345678
HWM error1.3323 × 10 15 1.3323 × 10 15 1.3323 × 10 15 8.8818 × 10 16 8.8818 × 10 16 8.881 × 10 16
CPU time (seconds)0.9840971.1055061.7666585.01333523.477339163.859775
Table 12. Comparison of HWCM and exact solution of Example 6 for J = 5.
Table 12. Comparison of HWCM and exact solution of Example 6 for J = 5.
ξ Haar SolutionExact SolutionAbs. ErrorQBSM [39] σ = 0.75 σ = 0.85 σ = 0.95
0.10.0011039550.0011051701.215 × 10 6 0.0010868900.0108009930.0045533550.001757272
0.20.0097659780.0097712225.244 × 10 6 0.0097345510.0459492980.0257028350.013439484
0.30.0364338100.0364461871.237 × 10 5 0.0363925850.1154499270.0751156990.046307124
0.40.0954537990.0954767802.298 × 10 5 0.0954086900.2334428970.1674181010.115047307
0.50.2060527350.2060901583.742 × 10 5 0.2060113490.4157146800.3207103790.238809970
0.60.3935215150.3935776605.614 × 10 5 0.3934935950.6833198630.5571811150.442071948
0.70.6906376390.6907171787.953 × 10 5 0.6906354471.0718588780.9082807930.756777190
0.81.1393688421.1394769551.081 × 10 4 1.1394077721.6141568011.4110989281.223361386
0.91.7929081541.7930506681.425 × 10 4 1.7930074372.3501581492.1092318581.891889010
Table 13. Absolute error of HWCM of Example 6 for σ = 1.
Table 13. Absolute error of HWCM of Example 6 for σ = 1.
Resolution (J)345678
HWCM error2.70 × 10 3 7.0396 × 10 4 1.7755 × 10 4 4.2618 × 10 5 8.5528 × 10 6 1.5229 × 10 6
R C ( L ) 1.9393941.9872682.0586902.3169942.489575
CPU time (seconds)0.9855591.1756521.6419204.26947919.495244136.006084
Table 14. Comparison of HWCM and exact solution of Example 7 for J = 3.
Table 14. Comparison of HWCM and exact solution of Example 7 for J = 3.
ξ Haar SolutionExact SolutionAbs. ErrorVIM [41] σ = 0.55 σ = 0.75 σ = 0.95
0.1 0.01990248 0.01990066 8.95 × 10 5 0.01990066 0.24073779 0.08666051 0.02698493
0.2 0.07847532 0.07844142 3.4 × 10 5 0.07844138 0.44642869 0.22954585 0.09871719
0.3 0.17240439 0.17235539 4.9 × 10 5 0.17235319 0.61995038 0.39098635 0.20674133
0.4 0.29695266 0.29684001 1.12 × 10 4 0.29680298 0.76453325 0.55548832 0.34321737
0.5 0.44645232 0.44628710 1.65 × 10 4 0.44596354 0.89619911 0.71772963 0.50067339
0.6 0.61519627 0.61496939 2.26 × 10 4 0.61310592 1.01542342 0.87501502 0.67261708
0.7 0.79786090 0.79755223 3.08 × 10 4 0.78950866 1.11575420 1.02264092 0.85328881
0.8 0.98975390 0.98939248 3.61 × 10 4 0.96127658 1.20678787 1.16109114 1.03825098
0.9 1.18708784 1.18665369 4.34e-04 1.10296039 1.29291002 1.29224026 1.22443125
Table 15. Abs. error of HWCM of Example 7 for σ = 1.
Table 15. Abs. error of HWCM of Example 7 for σ = 1.
Resolution (J)345678
HWCM error4.70 × 10 4 1.19 × 10 4 3.0098 × 10 5 7.5548 × 10 6 1.8926 × 10 6 4.7363 × 10 7
R C ( L ) 1.9639641.9787091.9884041.9929061.9987031.998537
CPU time (seconds)2.3885901.8685062.8025587.32451933.503430196.555354
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.

Share and Cite

MDPI and ACS Style

Albalawi, K.S.; Kumar, A.; Alkahtani, B.S.; Goswami, P. Solving General Fractional Lane-Emden-Fowler Differential Equations Using Haar Wavelet Collocation Method. Fractal Fract. 2023, 7, 628. https://doi.org/10.3390/fractalfract7080628

AMA Style

Albalawi KS, Kumar A, Alkahtani BS, Goswami P. Solving General Fractional Lane-Emden-Fowler Differential Equations Using Haar Wavelet Collocation Method. Fractal and Fractional. 2023; 7(8):628. https://doi.org/10.3390/fractalfract7080628

Chicago/Turabian Style

Albalawi, Kholoud Saad, Ashish Kumar, Badr Saad Alkahtani, and Pranay Goswami. 2023. "Solving General Fractional Lane-Emden-Fowler Differential Equations Using Haar Wavelet Collocation Method" Fractal and Fractional 7, no. 8: 628. https://doi.org/10.3390/fractalfract7080628

APA Style

Albalawi, K. S., Kumar, A., Alkahtani, B. S., & Goswami, P. (2023). Solving General Fractional Lane-Emden-Fowler Differential Equations Using Haar Wavelet Collocation Method. Fractal and Fractional, 7(8), 628. https://doi.org/10.3390/fractalfract7080628

Article Metrics

Back to TopTop