Abstract
This study is devoted to solving the nonlinear inhomogeneous time-fractional FitzHugh–Nagumo differential problem () using the spectral modified collocation method. The proposed algorithm uses non-symmetric polynomials, namely shifted Legendre polynomials (), which are orthogonal. The orthogonality property of and certain relations facilitate the acquisition of accurate spectral approximations. Comprehensive convergence and error studies are conducted to validate the accuracy of the suggested shifted Legendre expansion. Several numerical examples are presented to demonstrate the method’s effectiveness and accuracy. The proposed scheme is benchmarked against known analytical solutions and compared with other algorithms to ensure the applicability and efficiency of the proposed algorithm.
1. Introduction
Spectral methods are important numerical approaches employed to solve all types of differential equations [1,2,3]. The philosophy behind applying these methods is based on the assumption that the numerical solutions are represented in terms of suitable special functions that are often special polynomials. Unlike other numerical techniques, these methods present several advantages; see [4,5]. Also, these methods produce accurate approximations that converge rapidly. There are three primary spectral approaches. Each method has different advantages and applications. The selection of basis functions in the tau and collocation methods is less restrictive than that in the Galerkin approach; see [6,7,8]. References [9,10,11,12] demonstrate that the Galerkin and Petrov–Galerkin approaches are effective for various problems. For more studies, see [13,14,15,16,17,18].
In many fields, such as physics, engineering, and mathematics, orthogonal polynomials [19,20] are crucial. These polynomials can be classified as either symmetric or non-symmetric. These polynomials have some properties that make them more important in many situations. Applications of particular polynomials have been demonstrated in several publications; see [21,22,23]. In particular, are essential in various disciplines, including control theory, signal processing, and cryptography, due to their distinctive characteristics. These polynomials are used more frequently in numerical analyses and approximation theory. The authors of [24] employed in a numerical method to address fractional-order multi-point boundary value problems. Also, the authors of [25] employed the differential quadrature approach utilizing and generalized Laguerre polynomials to solve the Benjamin–Bona–Mahony equation.
The FitzHugh–Nagumo equation system was derived by both FitzHugh [26] and Nagumo et al. [27]. Its simplicity and ability to capture key dynamics make it a valuable tool in studying nonlinear dynamical systems and analyzing biological phenomena related to excitation and signal propagation. The , which combines diffusion and nonlinearity, has attracted the interest of many scientists in the fields of nuclear reactor theory, neurophysiology, branching Brownian motion, flame propagation, and logistic population growth [28]. The purpose of this study is to accurately solve the following nonlinear inhomogeneous :
constrained with
where u is a function of both and t, i.e., ; is the source function; and is a real number. Various numerical and analytical approaches have been used to solve the . For example, a Petrov–Galerkin finite element technique was applied to solving a space in [29]. A collocation method was developed in [30] to treat the using a kind of Chebyshev polynomial. The authors in [31] offered a spectral technique for finding solutions to the using shifted Lucas polynomials. Although this method demonstrated good accuracy, it required more terms in the retained modes compared to the presented method. The authors in [32] presented a numerical technique using approximations of radial basis functions to solve this problem. Finally, the authors of [33] applied the fractional reduced differential transform method to this problem. The disadvantage of the methods presented in [32,33] is that they offer a lower accuracy compared to that of the proposed method.
The following points are the main contributions and novelties of this work:
- Presenting two sets of basis functions in terms of ;
- Deriving some new identities is crucial for efficient computation of the collocation matrices;
- Using the collocation method to treat the ;
- Offering a thorough examination of the convergence and error, tailored to the suggested basis functions;
- Investigating our numerical algorithm by presenting some supporting numerical examples;
- We expect that the scheme utilized could be used to solve other problems [34] using the collocation method.
Also, some advantages of this work are
- Choosing the suggested basis functions results in faster convergence and improved stability;
- The procedure needs fewer computations to reach the desired precision.
This paper is structured as follows: Section 2 presents the main concepts and essential formulas. Section 3 introduces a collocation spectral method for the nonlinear inhomogeneous . A study on the convergence of the shifted Legendre expansion is presented in Section 4. Five examples are presented in Section 5. The conclusions are presented in Section 6.
2. Essential Principles and Formulas
This section presents some fundamentals of fractional calculus related to Caputo’s fractional derivative (FD). Furthermore, we will introduce key principles and significant formulas for the , which will be crucial for subsequent discussions.
2.1. A Review of Caputo’s FD
Definition 1.
Caputo’s FD is defined as [35]
In addition, we have
where denotes the ceiling function, , and .
2.2. A Basic Overview of Legendre Polynomials and Their Shifted Equivalents
The Legendre polynomial of degree s, , can be defined in numerous forms over the range , including using the following recurrence relation [36,37]:
A significant characteristic of the Legendre polynomials is their orthogonality on the interval regarding the inner product:
where is the renowned Kronecker delta function.
- The are defined on :
Theorem 1
([36]). Assume . Then, for all , the following holds:
where is provided by
and is the mth harmonic number, defined as
2.3. Trial Functions
We choose the trial functions to be
Based on the orthogonality relation in (7), we acquire the following relations:
and
where and .
Corollary 1.
For , one has
where
Proof.
The proof of this corollary can be readily derived by substituting and into Theorem 1. □
Remark 1.
The first and second derivatives of the vector are provided by
where is a matrix of order , whose nonzero elements can be expressly specified as
and also
and
For example, the matrices and take the following form for as
and
Theorem 2.
The subsequent formula is valid for :
where
and
Proof.
Based on (8), along with the definition of , one obtains
Using Caputo’s FD from (5) and the last relation, we can write
Now, based on the inversion formula of defined in (9) and for a sufficiently large positive number , we can approximate in the form
Inserting the previous relation into (27) leads to the following approximation:
The previous equation can be reformulated by rearranging the elements as
where
and
This concludes the proof of the theorem. □
Remark 2.
The fractional derivative of the vector is given by
where is a matrix of order whose nonzero elements are given in (24), and
For example, the matrices and take the following form for at as
and
3. The Collocation Method for the Nonlinear Inhomogeneous Time-Fractional FitzHugh–Nagumo Differential Problem
This part analyzes a numerical algorithm for solving the nonlinear inhomogeneous equation (1) subject to conditions (2) and (3).
To proceed with the proposed collocation technique, we define the following transformation:
where
Then, Equation (37) converts the nonlinear inhomogeneous (1) governed by (2) and (3) into the adapted equation that follows:
subject to homogeneous initial and boundary conditions (HIBCs)
where
Thus, we can solve the modified Equation (39) governed by (40) instead of solving (1) governed by (2) and (3).
Remark 3.
Using a modified collocation method with the HIBCs leads to fewer computations to achieve the desired precision, better numerical stability, and fewer computations to achieve the desired accuracy.
Now, assume the following space functions:
where , and Then, any can be approximated as
where and is the unknown matrix whose order is .
- The residual of Equation (39) is expressed as
Remark 4.
The term , which may include Caputo’s FD, is treated as known and evaluated at collocation points using its analytical form; fractional derivatives are computed numerically using Mathematica before substituting it into the nonlinear system.
4. The Error Analysis
This section focuses on the error analysis of the double expansion utilized for approximation.
Lemma 1.
The following inequalities are satisfied in the interval :
Proof.
this completes the proof of the theorem. □
To prove the first part, Equation (11) enables one to write
Using the following inequality [38]
the first part can be obtained.
- To prove the second part, Equation (11) along with the previous inequality enable us to write
Theorem 3.
Assume that the expansion is satisfied by a function with and having bounded fourth-order derivatives. After this, the series in (44) converges to ψ. Additionally, the following inequality is satisfied by the following bound on the expansion coefficients in (44).
where indicates that for a constant n.
Proof.
In light of the orthogonality of and , it is possible to obtain the following:
The last equation can be rewritten after using the assumption as
which can be rewritten as
where
and
Integrating by parts and four times, we obtain
where
and
Now, imitating similar steps to those in Theorem 4 in Ref. [37], we acquire the desired estimation
□
Remark 5.
If we follow the same principles as those for Theorem 3, we will have the following inequalities:
and
Theorem 4.
The truncation error can be approximated as
Proof.
First, we can write
With the aid of Lemma 1; Theorem 3; and Equations (64) and (65), the last equation becomes
Now, noting the inequality
we acquire
Inserting Equation (69) into Equation (68), we obtain
□
Theorem 5 (Stability).
Under the assumptions of Theorem 3, we have
Proof.
Applying the following inequality and Theorem 4 yields the desired result
This concludes the proof of this theorem. □
5. Illustrative Examples
In this section, we present some numerical examples to demonstrate the accuracy and efficiency of the suggested numerical algorithm by using the absolute error () and the error
All codes were written and debugged using Mathematica 11 on an HP Z420 Workstation, with an Intel(R) Xeon(R) CPU E5-1620 processor, v2, 3.70 GHz; 16 GB of RAM, DDR3; and 512 GB of storage.
Example 1
([32,33]). Consider the
constrained with
where is selected such that the exact solution of this problem is .
At , the error at various α values is compared between our technique at and the method described in [32] in Table 1. The absolute errors (s) at and are depicted in Figure 1. Table 2 presents a comparison of the between our method and method in [33] at and . The are presented in Table 3 at varying values of ε when and . Figure 2 illustrates the stability at and . Finally, Figure 3 illustrates the Log10(maximum ) at different values of when and . The results of this method are exceedingly near to the precise solution, as evidenced by these findings.
Table 1.
errors of Example 1.
Figure 1.
The of Example 1 at and .
Table 2.
Comparison of for Example 1 at .
Table 3.
The of Example 1 at .
Figure 2.
Stability at for Example 1.
Figure 3.
The Log10(maximum ) at of Example 1.
Example 2
([31,32,33]). Consider the
constrained with
where is selected such that the exact solution of (76) is .
In Table 4 and Table 5, we compare the of our technique at with those in [32,33] at different α and ε values. Table 6 also shows how the proposed technique and the method in [32] compare in terms of the error at different α values. When and , Figure 4 illustrates the at different values of . Figure 5 illustrates the stability at and . Finally, Figure 6 illustrates the Log10(maximum ) at different values of when and . These findings show that this method’s results are quite near to the exact solution.
Table 4.
Comparison of s of Example 2 at .
Table 5.
Comparison of s of Example 2 at .
Table 6.
errors of Example 2.
Figure 4.
The of Example 2 at .
Figure 5.
Stability at for Example 2.
Figure 6.
The Log10(maximum ) at of Example 2.
Example 3
([32]). Consider the
constrained with
where is selected such that the exact solution of this problem is .
Table 7 compares the error for our technique at with that of [32] at different α values when . Figure 7 shows the (left) and estimated solution () (right) at for . Table 8 shows the at and different values of ε at . Table 9 presents the at different values of α and ϵ when .
Table 7.
errors of Example 3.
Figure 7.
The (left) and (right) of Example 3 at , when .
Table 8.
The of Example 3 at .
Table 9.
The of Example 3 at .
Example 4.
Consider the
constrained with
Since the exact solution is not available, let us define the following absolute residual error norm:
and apply the presented method at and at different values of to obtain Table 10, which illustrates the ARE at various values of . Figure 8 illustrates the ARE and the approximate solution at , and .
Table 10.
The ARE for Example 4 at and .
Figure 8.
The ARE and the approximate solution of Example 4 at , and .
Remark 6.
The approximate solution at , , and is
Example 5.
Consider the
constrained with
where is selected such that the exact solution of this problem is at .
Table 11 presents the at and . In addition, Figure 9 illustrates the at different values of α when .
Table 11.
The for Example 5 at and .
Figure 9.
The of Example 5 at different values of .
Remark 7.
The source term that contains Caputo’s FD of the exact solution u for Examples 1, 2, 3, and 5 is evaluated numerically using Mathematica 11.
6. Concluding Remarks
This paper presents and analyzes an accurate solver employing a modified collocation technique for solving the nonlinear inhomogeneous . Specific theoretical findings related to were significant in applying our numerical methods to resolve this problem. We designed the proposed numerical method by using the integer derivatives and fractional operational matrices of . Numerous numerical findings and comparisons were presented to validate the proposed methodology. As expected future work, we think that the presented approach could be extended to treating other fractional-order PDE models [39,40].
Author Contributions
Conceptualization, A.A.A. and A.G.A.; Methodology, S.S.A., A.A.A. and A.G.A.; Software, A.G.A.; Validation, S.S.A., A.A.A. and A.G.A.; Formal analysis, S.S.A. and A.G.A.; Investigation, A.G.A.; Resources, A.A.A. and A.G.A.; Data curation, S.S.A., A.A.A. and A.G.A.; Writing—original draft, S.S.A. and A.G.A.; Writing—review & editing, S.S.A., A.A.A. and A.G.A.; Visualization, S.S.A., A.A.A. and A.G.A.; Supervision, A.G.A.; Project administration, A.G.A. All authors have read and agreed to the published version of the manuscript.
Funding
The authors received no funding for this study.
Data Availability Statement
Not applicable.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Bernardi, C.; Maday, Y. Spectral Methods. Handb. Numer. Anal. 1997, 5, 209–485. [Google Scholar]
- Shen, J.; Tang, T.; Wang, L.L. Spectral Methods: Algorithms, Analysis and Applications; Springer: Berlin/Heidelberg, Germany, 2011; Volume 41. [Google Scholar]
- Orszag, S.A. Spectral Methods for Problems in Complex Geometrics. In Numerical Methods for Partial Differential Equations; Elsevier: Amsterdam, The Netherlands, 1979; pp. 273–305. [Google Scholar]
- Abdelhakem, M.; Abdelhamied, D.; El-Kady, M.; Youssri, Y.H. Two Modified Shifted Chebyshev–Galerkin Operational Matrix Methods for Even-Order Partial Boundary Value Problems. Bound. Value Probl. 2025, 2025, 34. [Google Scholar] [CrossRef]
- Brahim, M.S.T.; Youssri, Y.H.; Alburaikan, A.; Khalifa, H.; Radwn, T. A Refined Galerkin Approach for Solving Higher-Order Differential Equations via Bernoulli Polynomials. Fractals 2025, 2540183. [Google Scholar] [CrossRef]
- Zaky, M.A.; Alharbi, W.G.; Alzubaidi, M.M.; Matoog, R.T. A Legendre Tau Approach for High-Order Pantograph Volterra–Fredholm Integro-Differential Equations. AIMS Math. 2025, 10, 7067–7085. [Google Scholar] [CrossRef]
- Alaa-Eldeen, T.; Alzabeedy, G.M.; Albalawi, W.; Nisar, K.S.; Abdel-Aty, A.H.; El-Kady, M.; Abdelhakem, M. Spectral Tau Explicit Form for Approximating Solutions to Real-Life IBVPs Using Chebyshev Derivatives. Int. J. Geom. Methods Mod. Phys. 2025, 22, 2450324. [Google Scholar] [CrossRef]
- Abd-Elhameed, W.M.; Alqubori, O.M.; Amin, A.K.; Atta, A.G. Numerical Solutions for Nonlinear Ordinary and Fractional Duffing Equations Using Combined Fibonacci–Lucas Polynomials. Axioms 2025, 14, 314. [Google Scholar] [CrossRef]
- Luo, M.; Xu, D.; Pan, X. Sinc–Galerkin method and a higher-order method for a 1D and 2D time-fractional diffusion equations. Bound. Value Probl. 2024, 2024, 106. [Google Scholar] [CrossRef]
- Ramadan, M.; Samy, H.; Hanafy, I.; Adel, W. Petrov–Galerkin finite element method for solving the time-fractional Rosenau–Hyman equation. J. Umm Al-Qura Univ. Appl. Sci. 2025, 1–14. [Google Scholar] [CrossRef]
- Li, Z.; He, G.; Yi, L. Postprocessing techniques of the C0- and C1-continuous Petrov–Galerkin methods for second-order Volterra integro-differential equations. J. Appl. Math. Comput. 2025, 1–38. [Google Scholar] [CrossRef]
- Talaei, Y.; Zaky, M.; Hendy, A. A fractional spectral Galerkin method for Fuzzy Volterra integral equations with weakly singular kernels: Regularity, convergence, and applications. Fuzzy Sets Syst. 2025, 518, 109488. [Google Scholar] [CrossRef]
- Yassin, N.M.; Atta, A.G.; Aly, E.H. Numerical Solutions for Nonlinear Ordinary and Fractional Newell–Whitehead–Segel Equation Using Shifted Schröder Polynomials. Bound. Value Probl. 2025, 2025, 57. [Google Scholar] [CrossRef]
- Doha, E.; Abd-Elhameed, W.; Youssri, Y. Second kind Chebyshev operational matrix algorithm for solving differential equations of Lane–Emden type. New Astron. 2013, 23, 113–117. [Google Scholar] [CrossRef]
- Taema, M.; Dagher, M.; Youssri, Y. Spectral collocation method via Fermat polynomials for Fredholm–Volterra integral equations with singular kernels and fractional differential equations. J. Math. 2025, 14, 481–492. [Google Scholar]
- Yüzbaşı, Ş. Fractional Bell collocation method for solving linear fractional integro-differential equations. Math. Sci. 2024, 18, 29–40. [Google Scholar] [CrossRef]
- Roop, J. A randomized neural network based Petrov–Galerkin method for approximating the solution of fractional order boundary value problems. Results Appl. Math. 2024, 23, 100493. [Google Scholar] [CrossRef]
- Pulch, R.; Singh, A. Stochastic Galerkin method for linear fractional differential equations. Int. J. Uncertain. Quantif. 2025, 15, 21–36. [Google Scholar] [CrossRef]
- Suetin, P. Orthogonal Polynomials in Two Variables; Routledge: Oxfordshire, UK, 2022. [Google Scholar]
- Abd-Elhameed, W.M.; Doha, E.H.; Ahmed, H.M. Linearization Formulae for Certain Jacobi Polynomials. Ramanujan J. 2016, 39, 155–168. [Google Scholar] [CrossRef]
- Boyd, J.P. Chebyshev and Fourier Spectral Methods; Courier Corp.: North Chelmsford, MA, USA, 2001. [Google Scholar]
- Hesthaven, J.S.; Gottlieb, D.I.; Gottlieb, S. Spectral Methods for Time-Dependent Problems; Cambridge Univ. Press: Cambridge, UK, 2007; Volume 21. [Google Scholar]
- Ismail, M.E.H.; Koelink, E. Theory and Applications of Special Functions; Springer: Berlin/Heidelberg, Germany, 2005. [Google Scholar]
- Sakar, M.G.; Saldır, O.; Ata, A. Numerical Solution of Fractional Order Multi-Point Boundary Value Problems Using Reproducing Kernel Method with Shifted Legendre Polynomials. Z. Angew. Math. Phys. 2025, 76, 141. [Google Scholar] [CrossRef]
- Vana, R.; Karunaka, P. Numerical Solutions of the Benjamin–Bona–Mahony Equation Using the Differential Quadrature Method with Shifted Legendre and Generalized Laguerre Polynomials. Indian J. Pure Appl. Math. 2025, 1–14. [Google Scholar] [CrossRef]
- FitzHugh, R. Impulses and physiological states in theoretical models of nerve membrane. Biophys. J. 1961, 1, 445–466. [Google Scholar] [CrossRef]
- Nagumo, J.; Arimoto, S.; Yoshizawa, S. An active pulse transmission line simulating nerve axon. Proc. IRE 2007, 50, 2061–2070. [Google Scholar] [CrossRef]
- Aronson, D.G.; Weinberger, H.F. Multidimensional nonlinear diffusion arising in population genetics. Adv. Math. 1978, 30, 33–76. [Google Scholar] [CrossRef]
- Onyeoghane, J.N.; Njoseh, I.N.; Igabari, J.N. A Petrov–Galerkin Finite Element Method for the Space Time Fractional FitzHugh–Nagumo Equation. Sci. Afr. 2025, 28, e02623. [Google Scholar] [CrossRef]
- Abd-Elhameed, W.M.; Alqubori, O.M.; Atta, A.G. A Collocation Procedure for the Numerical Treatment of FitzHugh–Nagumo Equation Using a Kind of Chebyshev Polynomials. AIMS Math. 2025, 10, 1201–1223. [Google Scholar] [CrossRef]
- Abd-Elhameed, W.M.; Alqubori, O.M.; Atta, A.G. A Collocation Procedure for Treating the Time-Fractional FitzHugh–Nagumo Differential Equation Using Shifted Lucas Polynomials. Mathematics 2024, 12, 3672. [Google Scholar] [CrossRef]
- Alam, M.; Haq, S.; Ali, I.; Ebadi, M.J.; Salahshour, S. Radial Basis Functions Approximation Method for Time-Fractional FitzHugh–Nagumo Equation. Fractal Fract. 2023, 7, 882. [Google Scholar] [CrossRef]
- Patel, H.S.; Patel, T. Applications of Fractional Reduced Differential Transform Method for Solving the Generalized Fractional-Order FitzHugh–Nagumo Equation. Int. J. Appl. Comput. Math. 2021, 7, 188. [Google Scholar] [CrossRef]
- Zhao, Y.L.; Gu, X.M.; Ostermann, A. A Preconditioning Technique for an All-at-Once System from Volterra Subdiffusion Equations with Graded Time Steps. J. Sci. Comput. 2021, 88, 11. [Google Scholar] [CrossRef]
- Podlubny, I. Fractional Differential Equations: An Introduction to Fractional Derivatives, Fractional Differential Equations, to Methods of Their Solution and Some of Their Applications; Elsevier: Amsterdam, The Netherlands, 1998; Volume 198. [Google Scholar]
- Abd-Elhameed, W.M.; Youssri, Y.H.; Doha, E.H. A Novel Operational Matrix Method Based on Shifted Legendre Polynomials for Solving Second-Order Boundary Value Problems Involving Singular, Singularly Perturbed and Bratu-Type Equations. Math. Sci. 2015, 9, 93–102. [Google Scholar] [CrossRef]
- Napoli, A.; Abd-Elhameed, W.M. Numerical Solution of Eighth-Order Boundary Value Problems by Using Legendre Polynomials. Int. J. Comput. Methods 2018, 15, 1750083. [Google Scholar] [CrossRef]
- Hussaini, M.Y.; Zang, T.A. Spectral Methods in Fluid Dynamics. Annu. Rev. Fluid Mech. 1987, 19, 339–367. [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. |
© 2025 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/).