Professional Documents
Culture Documents
Numerical Analysis of Some Fractional Order Differential Equations Via Legendre Spectral Method
Numerical Analysis of Some Fractional Order Differential Equations Via Legendre Spectral Method
OPEN ACCESS
Fractals, Vol. 31, No. 2 (2023) 2340036 (13 pages)
c The Author(s)
DOI: 10.1142/S0218348X23400364
by UNIVERSITI PUTRA MALAYSIA (UPM) on 04/30/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
AZIZ KHAN
Department of Mathematics and Sciences
Prince Sultan University, Riyadh 11586, Saudi Arabia
akhan@psu.edu.sa
HAFSA NAZ∗ and MUHAMMAD SARWAR†
Department of Mathematics
University of Malakand, Chakdara Dir(L)
18000 Khyber Pakhtunkhwa, Pakistan
∗hafsayousafzai56@gmail.com
†sarwarswati@gmail.com
KAMAL SHAH
Department of Mathematics and Sciences
Prince Sultan University, Riyadh 11586, Saudi Arabia
Department of Mathematics
University of Malakand, Chakdara Dir(L)
18000 Khyber Pakhtunkhwa, Pakistan
kamalshah408@gmail.com; kshah@psu.edu.sa
‡
Corresponding author.
This is an Open Access article in the “Special Issue on Applications of Wavelets and Fractals in Engineering Sciences”,
edited by K. S. Nisar (Prince Sattam bin Abdulaziz University, Saudi Arabia), F. A. Shah (University of Kashmir, India),
S. K. Upadhyay (Indian Institute of Technology, BHU, India), P. E. T. Jorgensen (University of Iowa, USA) published by
World Scientific Publishing Company. It is distributed under the terms of the Creative Commons Attribution-NonCommercial-
NoDerivatives 4.0 (CC BY-NC-ND) License which permits use, distribution and reproduction, provided that the original work
is properly cited, the use is non-commercial and no modifications or adaptations are made.
2340036-1
2nd Reading
March 2, 2023 20:1 0218-348X 2340036
A. Khan et al.
MANAR A. ALQUDAH
Department of Mathematical Sciences
College of Science, Princess Nourah bint Abdulrahman University
P. O. Box 84428, Riyadh 11671, Saudi Arabia
maalqudah@pnu.edu.sa
THABET ABDELJAWAD‡
Department of Mathematics and Sciences
by UNIVERSITI PUTRA MALAYSIA (UPM) on 04/30/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
Abstract
In this research paper, we find the numerical solutions of fractional order scalers and coupled
system of differential equations under initial conditions using shifted Legendre polynomials.
By using the properties of shifted Legendre polynomials, we establish operational matrices
of integration and differentiation in order to simplify our considered problems under initial
conditions. In order to check the accuracy of the proposed model, some test problems are solved
along with the graphical representations. For coupled system, we applied the algorithm to the
Pharmacokinetic two-compartment model. As the proposed method is computer-oriented, we
use therefore the MATLAB for required calculations. Numerical results are shown graphically.
2340036-2
2nd Reading
March 2, 2023 20:1 0218-348X 2340036
Numerical Analysis of Some Fractional Order Differential Equations Via Legendre Spectral Method
scientists and researchers in the 21st century. So in Definition 1 (Ref. 35). The fractional order
the last few centuries, various numerical schemes derivative of α over [a, b] in Riemann–Liouville sense
have been developed by the researchers. The objec- is given by
tive of these schemes was for the higher rate of ν
α 1 di
accuracy. All of these methods have their own pros Da+ g(ν) = (ν − ϕ)i−α−1 ρ(ϕ) dϕ,
and cons. For example, Adomian decomposition Γ(i − α) dν i a
method,2 Homotopy analysis methods and various where i = [α] + 1.
iterational methods were developed for the better
by UNIVERSITI PUTRA MALAYSIA (UPM) on 04/30/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
lem and coupled systems are broadly utilized in function.36 Legendre polynomials have a simpler
various fields of science and engineering.21–32 Some weight function than other orthogonal polynomials.
important gravitational and electromagnetic prob- Because of the simple power function that values 1,
lems are modeled by coupled systems, see, for exam- it eliminates a lot of work, especially when approx-
ple, Refs. 33 and 34. In this research paper, we imating nonlinear integral components.37 However,
have developed operational matrices of integration its definitions’ interval is [−1, 1].38 The shifted Leg-
and differentiation using shifted Legendre polyno- endre polynomial is chosen in this project to better
mials for differential equations under initial condi- approximate the unknown analytical function in the
tions. We considered scaler problem and coupled vast interval.39
system. Using these operational matrices, our con- Its central concept is to utilize shifted Legen-
sidered problem is converted into simple algebraic dre polynomials as the fundamental function to
equation, and the solved using codes of MATLAB- perfectly approximate an unknown analytical func-
16. Scaler problem is of the following form: tion and to display the derivative function using a
C α matrix term. The algebraic equation is derived from
0 Dt V (t) ± V (t) = 0, 0 < α ≤ 1,
the governing equation. After solving the algebraic
t ∈ [0, T ], V (0) = v0 . (1) problem, the parameters of the estimated function
Coupled system is of the following form: are obtained. The numerical answers will be calcu-
⎧ β lated using a carefully determined approximation
c
⎨0 Dt w1 (t) + f1 (t, w1 , w2 ) = 0, 0 < β ≤ 1,
⎪ function.
c D α w (t) + f (t, w , w ) = 0, 0 < α ≤ 1, (2)
⎪ 0 t 2 2 1 2 Definition 3 (Ref. 35). Shifted Legendre poly-
⎩
w1 (0) = w0 , w2 (0) = w̄0 , nomials are named after Legendre which had been
where fi (i = 1, 2) : [0, 1] × R × R → R are linear introduced in 1782. It is defined on interval [0, 1] by
continues functions and w0 , w̄0 ∈ R. the following relation:
We develop operational matrices on the basis j
(−1)j+k Γ(j + k + 1) k
of shifted Legendre polynomials for our considered Lj (t) = t (3)
Γ2 (k + 1)Γ(j − k + 1)
problem to omit descritization of data, which save k=0
time and extra memory. for j = 0, 1, 2, 3, . . .
The first three shifted Legendre polynomials
2. PRELIMINARIES are
In this section, we review some basic definitions and (i) L0 (t) = 1,
results related to fractional calculus, which are use- (ii) L1 (t) = 2t − 1,
ful in developing our algorithm. (iii) L2 (t) = 24t3 − 3t + 1.
2340036-3
2nd Reading
March 2, 2023 20:1 0218-348X 2340036
A. Khan et al.
Orthogonality Condition: This is a system already established in Ref. 35, here we recall just
design feature that ensures that changing the tech- for our numerical interpretation.
nical impact generated by a system component does
not cause or propagate side effects to other sys- Lemma 3.1. Assume that L̂N (t) be any func-
tem components. The orthogonality condition of the tion, then integration of fractional α is defined as
shifted Legendre polynomial is given by Iα (LN (t) ≈ LαN ×N L̂N (t), where LαN ×N is the α
order operational matrix of integrals, and is given
1 below LαN ×N =
Lm (t)Ln (t)dt
by UNIVERSITI PUTRA MALAYSIA (UPM) on 04/30/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
0 2 3
0
X 0
X 0
X 0
X
⎧ 6
⎨ 1 υ0,0,u υ0,1,u ··· υ0,j,u · · · υ0,n,j 7
, where if n = m, 6 7
2n + 1 6 u=0 u=0 u=0 u=0 7
= (4) 6 7
⎩ 6 1 1 1 1 7
6X X X X 7
0 if n = m. 6
6 υ 1,0,u υ1,1,u ··· υ1,j,u ··· υ1,n,j 7
7
6 u=0 u=0 u=0 u=0 7
6 7
In account of above orthogonality condition 6 7
6 .. .. .. .. .. .. 7
6 7
defined in Eq. (4), any function g(x) ∈ [0, 1] can 6
6 s
. . . . . . 7,
7
6X Xs s
X Xs 7
be approximated in terms of shifted Legendre poly- 6
6 υt,0,u υs,1,u ··· υt,j,u ··· υs,n,u 7
7
nomial 6 u=0 u=0 u=0 u=0 7
6 7
Fractals 2023.31. Downloaded from www.worldscientific.com
6 7
6 .. .. .. .. .. .. 7
g(t) = QTN LN (t), (5) 6
6 . . . . . . 7
7
6 n 7
6X Xn n
X Xn 7
4 υn,0,u υn,1,u ··· υn,j,u ··· υn,n,u 5
where
u=0 u=0 u=0 u=0
N =n+1 (6)
2340036-4
2nd Reading
March 2, 2023 20:1 0218-348X 2340036
Numerical Analysis of Some Fractional Order Differential Equations Via Legendre Spectral Method
j = 0, 1, 2, . . . .
4.1. Construction of Algorithm
by UNIVERSITI PUTRA MALAYSIA (UPM) on 04/30/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
⎢ ⎥ C α T
⎢ .. .. .. .. .. .. ⎥ 0 Dt V (t) ≈ KN LN (t).
⎣ . . . . . . ⎦
Øn,0 Øn,1 ···
Øn,j · · · Øn,n Then by the application of fractional integration,
1 we have
where Øs,j = (2j + 1)∇s 0 ϕ(t)Lj (t)dt and
α C α
s
(−1)j+l Γ(s + l + 1) 0 It (0 Dt V (t)) = 0 Itα [KN
T
LN (t)],
∇s = .
Γ(s − l + 1)Γ(l + 1)Γ(α + l) T
V (t) − V (0) = KN [0Itα LN (t)],
l=0
T α
Remark 1. Operational matrices play a very V (t) = v0 + KN HN ×N LN (t). (10)
important role in the approximation of solution of
differential equations. By using the applications of Let
the above established operational matrices, we solve
the following problems. v0 ≈ FNT LN (t).
Fig. 1 Comparability between exact and numerical solution and absolute errors at different scale level.
2340036-5
2nd Reading
March 2, 2023 20:1 0218-348X 2340036
A. Khan et al.
So (10) implies Case II. In the same way, we can obtain the fol-
lowing matrix equation:
V (t) = FNT LN (t) + KN
T α
HN ×N LN (t),
T
KN − FNT − KN
T α
HN xN = 0
(9) implies
T
the methodology for the solution is same.
KN LN (t) + FNT LN (t) + KN
T α
HN ×N LN (t) = 0,
T
KN + FNT + KN
T α
HN ×N = 0. (11) 4.2. Numerical Examples for
Problem I
by UNIVERSITI PUTRA MALAYSIA (UPM) on 04/30/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
Fig. 2 Comparison between integer order and fractional order solution and absolute errors at fractional order 0.75.
Fig. 3 Comparability between exact and numerical solution and absolute errors at different scale level.
2340036-6
2nd Reading
March 2, 2023 20:1 0218-348X 2340036
Numerical Analysis of Some Fractional Order Differential Equations Via Legendre Spectral Method
by UNIVERSITI PUTRA MALAYSIA (UPM) on 04/30/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
Fractals 2023.31. Downloaded from www.worldscientific.com
Fig. 4 Comparison between integer order and fractional order solution and absolute errors at fractional order 0.75.
2340036-7
2nd Reading
March 2, 2023 20:1 0218-348X 2340036
A. Khan et al.
Now approximate w0 and w̄0 as in terms of to distribution to metabolism and excretion, like a
net balance sheet. The two-compartment PK model
w0 ≈ AN
T LN (t), w̄0 ≈ BTN LN (t). (19)
splits the body into central and peripheral compart-
By inserting this approximation in Eq. (18), we ments for intravenous delivery. The model depicts
have a drug’s rate of distribution as well as its rate of
T β
w1 (t) = ATN LN (t) + KN LN ×N LN (t), removal from the body. The model also assumes
that the medication is delivered to a peripheral
T T α compartment, which is represented by w2 , but
w2 (t) = BN LN (t) + KN LN ×N LN (t). (20)
by UNIVERSITI PUTRA MALAYSIA (UPM) on 04/30/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
T T α
LN (t) + f2 (t, LN (t)(BN + KN LN ×N ),
where
T β
LN (t)(ATN + KN LN ×N )) = 0. (22) w1 is the quantity of medication in the central
compartment.
Now by solving this system by using MATLAB, w2 is the quantity of medication in the peripheral
we get the approximate solution. compartment.
k12 = 0.04 signifies that the medicine has been
5.1. Numerical Examples for transferred from the central compartment to the
Problem II peripheral compartment.
k21 = 0.005 indicates that the medication has
Example 6 (Pharmacokinetic Compartment been moved from the peripheral to the central com-
Model). The proposed model is the “Pharmacoki- partment.
netic Two-Compartment Model”.35 Pharmacoki- k10 = 0.034 first-order elimination rate, which
netics is a set of mathematical equations describing indicates that the medication is eliminated from the
how a drug moves through the body, from intake central compartment and into the urine.
Fig. 5 Comparison between exact and numerical solutions at different scale level.
2340036-8
2nd Reading
March 2, 2023 20:1 0218-348X 2340036
Numerical Analysis of Some Fractional Order Differential Equations Via Legendre Spectral Method
by UNIVERSITI PUTRA MALAYSIA (UPM) on 04/30/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
Fig. 7 Comparability between exact solutions and numerical solutions at different fractional orders and scale level 5.
Fig. 8 Absolute errors at given scale level with fractional order 0.95.
2340036-9
2nd Reading
March 2, 2023 20:1 0218-348X 2340036
A. Khan et al.
by UNIVERSITI PUTRA MALAYSIA (UPM) on 04/30/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
Fig. 9 Comparison between exact solutions and numerical solutions at scale level 6.
Fractals 2023.31. Downloaded from www.worldscientific.com
Fig. 11 Comparison between integer order solutions and different fractional order solutions at scale level 8.
2340036-10
2nd Reading
March 2, 2023 20:1 0218-348X 2340036
Numerical Analysis of Some Fractional Order Differential Equations Via Legendre Spectral Method
by UNIVERSITI PUTRA MALAYSIA (UPM) on 04/30/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
Fractals 2023.31. Downloaded from www.worldscientific.com
Fig. 12 Absolute errors at various fractional orders and at given scale level = 6.
6. CONCLUSION AND
DISCUSSION ACKNOWLEDGMENTS
In this study, scaler problem and coupled system Manar A. Alqudah acknowledges the fund-
of fractional differential equations of variable order ing from the Princess Nourah bint Abdulrah-
under initial conditions are investigated to calculate man University Researchers Supporting Project
numerical solutions. For the establishment of opera- No. PNURSP2023R14, the Princess Nourah bint
tional matrices, properties of Shifted Legendre poly- Abdulrahman University, Riyadh, Saudi Arabia.
nomials are used. On the basis of the established The authors Aziz Khan, Kamal Shah and Thabet
operational matrices, our considered problems with Abdeljawad would like to thank the Prince Sultan
2340036-11
2nd Reading
March 2, 2023 20:1 0218-348X 2340036
A. Khan et al.
university for paying the APC and the support 14. H. Khan, J. F. Gómez-Aguilar, A. Alkhazzan and A.
through TAS research lab. Khan, A fractional order HIV-TB coinfection model
with nonsingular Mittag–Leffler law, Math. Methods
Appl. Sci. 43(6) (2020) 3786–3806.
REFERENCES 15. A. Khan, Y. Li, K. Shah and T. S. Khan, On coupled
p-Laplacian fractional differential equations with
1. N. H. Shah and M. Y. Jani, Partial Differential
nonlinear boundary conditions, Complexity 2017
Equations: An Introduction (CRC Press, New York,
(2017) 1–9.
2020).
16. A. Khan, M. I. Syam, A. Zada and H. Khan, Stabil-
by UNIVERSITI PUTRA MALAYSIA (UPM) on 04/30/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
2340036-12
2nd Reading
March 2, 2023 20:1 0218-348X 2340036
Numerical Analysis of Some Fractional Order Differential Equations Via Legendre Spectral Method
27. K. S. Nisar and V. Vijayakumar, Results concern- 34. K. S. Miller and B. Ross, An Introduction to
ing to approximate controllability of non-densely the Fractional Calculus and Fractional Differential
defined Sobolev-type Hilfer fractional neutral delay Equations (Wiley, 1993).
differential system, Math. Methods Appl. Sci. 44(17) 35. H. Khalil, K. Shah and R. Ali Khan, Approximate
(2021) 13615–13632. solution of boundary value problems using shifted
28. A. Singh, A. Shukla, V. Vijayakumar and R. Legendre polynomials, Appl. Comput. Math. 16(3)
Udhayakumar, Asymptotic stability of fractional (2017) 269–285.
order (1, 2] stochastic delay differential equations in 36. P. L. Kamen, Legendre orthogonal polynomials
Banach spaces, Chaos Solitons Fractals 150 (2021) approximation of system gramians and its applica-
by UNIVERSITI PUTRA MALAYSIA (UPM) on 04/30/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
dynamics, PAMM 13(1) (2013) 25–26. 39. C. Hwang and M. Chen, Analysis and parameter
32. Y. A. Rossikhin and M. V. Shitikova, Application identification of time-delay systems via shifted Leg-
of fractional calculus for dynamic problems of solid endre polynomials, Internat. J. Control 41(2) (1985)
mechanics: Novel trends and recent results, Appl. 403–415.
Mech. Rev. 63(1) (2010) 010801.
33. R. T. Baillie, Long memory processes and fractional
integration in econometrics, J. Econometrics 73(1)
(1996) 5–59.
2340036-13