Abstract
This work focuses on solving the singularly perturbed generalized Hodgkin-Huxley (HH) problem. The HH equation is numerically solved by a collocation approach using third-degree splines. The forward difference technique is utilized for time discretization, while -weighted schemes are employed for space discretization. Solving non-linear models using discretization and quasi-linearization results in a set of linear algebraic equations, which are solved using matrices. Furthermore, Von Neumann’s (VN) stability and Spectral Radius (S.R) reveal that the suggested technique is unconditionally stable. To assess the performance and accuracy of this method, absolute error (AE), , and norms are offered. The results align with the literature. Simulation results show that the proposed strategy produces accurate results.
Keywords:
cubic B-spline; Von Neumann stability; theta weighted scheme; Hodgkin Huxley equation; Fitzhugh-Nagumo equation MSC:
34E05; 92B20; 65D07; 65L10
1. Introduction
Alan Hodgkin and Andrew Huxley’s investigation into the ionic currents that generate neuron action potentials is considered one of the most significant scientific breakthroughs of the 20th century. Not surprisingly, that case has attracted the attention of historians, neuroscientists, and philosophers of science. In 1963, the Nobel Prize in Physiology and Medicine was awarded to Hodgkin and Huxley for their remarkable achievements. They established the model using data from several tests on nerve conduction in the squid Loligo’s enormous axon. According to their description, the axon is a separate cable composed of a neural core encased in a membrane that permits currents to move back and forth through ion and capacitive transport mechanisms [1]. In 1952, a well-known nonlinear one-dimensional response diffusion system that approximated nerve conduction in the massive squid Logilo axon was devised. They came to the following systems:
where , the time, and , the length of the axon longitudinally, are the independent variables. The transmembrane potential is the dependent variable, whereas the other variables , , and stand for certain conductance. The axon membrane potential’s logical dynamics are denoted by Equation (1). Evans and Shenk [2] studied the system provided by Equation (1), and the following equation was presented:
where is a real number, and .
The conditions associated with the exact solutions are
The exact solution is given by
where and .
The solution of the generalized Huxley (GH) equation was suggested by Hashim et al. [3] using the Adomian decomposition method (ADM). Batiha et al. [4] employed the Variational iteration method (VIM) to simulate the GH equation. Sangwan et al. suggested a three-step Taylor Galerkin approach [5]. They examined how the HH equation behaved when . The boundary layer has been more sharply captured using the Shishkin mesh. The HH equation was solved by Aderogba and Chapwanya [6] using a positive and bounded nonstandard finite difference method (FDM). Macias-Díaz et al. [7] have presented a non-standard FDM to estimate the solution of an extended Burgers-Huxley (BH) equation. To solve the generalized BH equation, Sari et al. [8] combined a fourth-order Runge–Kutta approach with an up to tenth-order FDM. A uniform convergent technique with piecewise uniform mesh was introduced by Kaushik and Sharma [9] for the singularly perturbed unsteady generalized BH problem. This scheme combines the FDM and the Euler implicit method. Numerous other numerical methods, like VIM [10], the Galerkin method [11], etc., are developed to solve the HH equation.
Several numerical methods, such as finite difference methods, finite element methods, and collocation-based schemes, have recently been proposed to solve singularly perturbed differential equations arising in neurodynamical and biological models. Many of these techniques have drawbacks, such as decreased stability in the presence of boundary layers, higher processing costs, or loss of smoothness in the numerical solution, even if they have shown respectable accuracy [12,13,14].
To overcome these difficulties, the current study uses a cubic B-spline collocation method (CBSCM). Compared with current methods, the proposed strategy has several advantages. First, higher-order continuity is offered by cubic B-splines, which is especially advantageous for neurodynamical models where smooth solution profiles have physical significance. Second, compared to global polynomial-based techniques, the local support property of B-spline basis functions results in sparse and well-conditioned algebraic systems, improving computational efficiency. Additionally, without the need for extremely fine meshes or unique layer-adapted grids, the technique successfully captures sharp boundary layers caused by minor perturbation factors [12,14,15]. B-spline is used in various fields, especially in finding approximate solutions. A regularized CBSCM for calculating the impact force time history is shown in a study in [16], mitigating the limitations of the well-posed problem. The cubic B-spline (CBS) function, which controls collocation point mesh size, follows a typical impact event profile. The numerical solution of the non-linear Foam-Drainage model (FDM) was estimated using the collocation approach in connection with the CBS basis [17,18]. The B-spline collocation method (BSCM) is also utilized for the solution of incompressible Navier–Stokes equations [19]. Akbar et al. use the quintic BSCM to find the solution of third-order equations, utilizing finite difference and theta-weighted schemes [20]. A fourth-order BSCM was used for the numerical investigation of the Burgers-Fisher problem [21]. Dag and Saka investigated the numerical solution of an equal-width equation using CBSCM [22]. The modified quintic B-spline approach is used to solve Burgers’ equations and the convection-diffusion equation [23]. Dhiman et al. present an implicit collocation algorithm for Caputo time-fractional PDE, utilizing extended CBS functions to discretize derivatives for the space variable [24]. A trigonometric and exponential CBS technique for the evaluation of the time-fractional diffusion equation is also reported [25,26].
The remaining paper is organized in the following manner. The CBS is defined in the Section 2. Then, in Section 3, we discuss the numerical scheme. In Section 4, the stability analysis is covered. Section 5 will give numerical experiments for various test problems. In the, Section 6 we conclude our article.
2. Formulation of Third Degree B-Spline
In this section, the introduction of CBS is discussed. The region is divided into uniform-sized finite elements of length h by the knots such that . Where and a and b are the lower and upper limits. The set of splines forms a basis for functions defined over . Thus, an approximation solution can be expressed in terms of the CBS functions as
where are the time-dependent quantities that need to be evaluated and are CBS functions.
The CBS basis function for , is defined as
Using approximate Function (5) and CBS (6), the values of B-spline at different are displayed in Table 1. The values of , , and at the knots are determined in terms of by
where and denote the first and second differentiation, respectively, concerning .
Table 1.
and its derivatives at nodal points.
3. Numerical Scheme
Consider the generalized HH equation,
After rearranging
The time derivative has been approximated by the finite difference formula, and using the -weighted scheme for space discretization, Equation (9) takes the following form:
Using quasi linearization described below, the non-linear terms and are linearized.
Substituting Equation (11) into Equation (10), which gives
Subsequently, the approximate solution, 1st and 2nd derivatives are obtained using the CBS as follows:
Substituting Equation (13) into Equation (12) with yields the following system:
After rearranging
The above system represents equations in unknowns , . Two more equations are required to complete the system. For this purpose, boundary conditions are as follows:
For finding a solution , for simplicity we write by utilizing CBS
The above equation can also be written as
where
and
In compact form the system can be written as
where represents the column matrix having dimensions , and the coefficient matrices are the square matrices with dimensions .
Where
The first and the last rows of and can be replced by utilizing the boundary conditions using the definition CBS, defined in Equation (16).
4. Stability Analysis
The stability of the proposed approach is evaluated using VN stability analysis. To linearize the nonlinear terms, take and as the local constants. Further, applying the Crank–Nicolson scheme, as follows:
Rearranging of terms gives
After using the CBS and taking we get
where
Substituting the following into Equation (27)
The amplification factor is , and k and h are the mode number and element size, respectively. By putting Equation (28) into Equation (27) and after further simplification we get
where
Taking the modulus of Equation (30) gives , Consequently, the approach is unconditionally stable.
5. Examples and Discussion
In order to verify the accuracy as well as efficiency of the approach, we examine numerical examples of generalized HH in this section. Here, and denote the exact and the proposed solutions, respectively. The calculation was performed using the following error norms:
- Maximum error norm:
- error norm:
- AE:
The Rate of Convergence (ROC) is determined by
The (S.R) is also provided, and the ROC in time is calculated using the formula above. The Haier Core m3 7th Gen Y11-C system is utilized for the computational tasks, and MATLAB (R2020a) software is employed to complete them.
5.1. Example 1
Consider Equations (2)–(4) with various values of . Here, , , and . The numerical solution obtained by CBS is compared with the exact solution and the solution obtained from ADM [3], VIM [10], and FDM [8]. The results of the proposed technique are better than the VIM and ADM but comparable with the FDM. At some points their results are slightly better, and at some points our results are good. In Table 2, a comparison of AE for the case is shown. Spatial and temporal step sizes are and , respectively. Similarly, for the case and comparison of AE is shown in Table 3 and Table 4, respectively. Figure 1 shows the surface profile of AE at different values of , which shows the agreement with [3]. Table 5 mentions , error norms along the ROC and (S.R). The ROC shows that it converges linearly and the (S.R) is less than one and confirms that the given method is stable. Furthermore, by increasing the value of , it is found that the accuracy of the CBS decreases.
Table 2.
Comparison of AE for , , , and of Example 1.
Table 3.
Comparison of AE for , , , and of Example 1.
Table 4.
Comparison of AE for , , , and of Example 1.
Figure 1.
Surface Plots of AE with , , , , and : (a) , (b) , (c) , (d) for Example 1.
Table 5.
The convergence order for different and at fixed .
5.2. Example 2
Consider Equations (2)–(4) with , . In Figure 2a–d, for various values of , , , and , a comparison between the exact and CBS solutions is displayed. Figure 3a–d, shows the surface plot of the NS for various values of . In Figure 4a,b, Comparison for , and is shown. In this case, , and . Each plot makes it clear that when the declines, the boundary layer becomes sharper. Figure 5 shows the surface plots for two different values of .
Figure 2.
vs. for Example 2 with , , , , and .
Figure 3.
Surface plots of for Example 2.
Figure 4.
vs. for Example 2 (, , , , ).
Figure 5.
Surface plots for different values of for Example 2.
5.3. Example 3
Consider Equations (2)–(4) where , , and various values of and . A comparison between and for and with [27] is provided in Table 6 and Table 7, which shows the superiority of our results over the ISF-Galerkin method (ISF-Gm1,2) and the collocation method mixed with finite difference (MFDCM) [27]. Similarly, comparisons of and for and various values of are presented in Table 8 and Table 9, respectively. Table 10 shows and error norms for different temporal sizes. The (S.R) shows that the given method is stable, and the ROC gives the convergence of the proposed scheme.
Table 6.
Errors comparison for Example 3 (, , , and ).
Table 7.
Comparison of errors for , , , and of Example 3.
Table 8.
Comparison of errors for , , , and of Example 3.
Table 9.
Comparison of errors for , , , and of Example 3.
Table 10.
and norms along with rate of convergence and spectral radius at fixed .
5.4. Example 4
HH successfully simulates various neural behaviors; however, its complexity, involving a number of dynamic variables, produces challenges for network simulations. To overcome this, Fitzhugh [28] In 1961, they proposed the Fitzhugh–Nagumo neuron (FHN), which Nagumo, along with their co-workers, refined in 1962 [29]. It is the streamlined version of the HH model. The FHN focuses on the basic aspects of the excitable systems and provides insights into threshold behavior, recovery process, and oscillations. Now by taking in Equation (2), we obtain the FH equation, given as
The exact solution is
The associated initial and boundary conditions are
and . Table 11 and Table 12 are given at various times and . The time step size is and , respectively, and . The results of CBS are compared with the septic B-Spline (SBS) using and error norms. As SBS required a lot of computational work and computational time. Furthermore, additional spline conditions are required in SBS to obtain a consistent algebraic system, which are obtained by taking the derivatives of the initial and boundary conditions; still, the results clearly show that CBS outperforms SBS. In Table 13, the and error norms for , and . Figure 6 displays the exact and CBS comparison, which concludes that both are in good agreement. The results show that CBS is efficient and more reliable to deal with the neurodynamical models.
Table 11.
Error values and at various times for and .
Table 12.
Error values and at various times for and .
Table 13.
Error values and at various times for and .
Figure 6.
Exact vs. approximate 2D plot at .
6. Conclusions
This work uses the CBSCM to solve the singularly perturbed generalized HH problem. To evaluate the effectiveness of the current approach, several examples are discussed. The CBS approach yields findings that are consistent with the exact answers. When compared to conventional finite difference and collocation techniques documented in the literature, the results show enhanced accuracy and stability. These findings show how effective and powerful this approach is for numerically analyzing a wide range of complex nonlinear PDEs. The Von Neumann stability of the proposed method and spectral radius showed that it is unconditionally stable. Overall, the proposed technique proved to be an efficient, accurate, and mesh-based approach for solving neurodynamical models and holds strong potential for future extensions to nonlinear, and fractional problems.
Author Contributions
Conceptualization, T.A., K.S.M., W.A.K. and A.I.; Methodology, A.Y., T.A., M.A.M., W.A.K. and A.I.; Software, T.A., K.S.M. and A.A.; Validation, W.A.K.; Formal analysis, T.A., A.A., W.A.K. and A.I.; Investigation, A.Y., T.A., K.S.M., A.A., M.A.M., W.A.K. and A.I.; Resources, K.S.M. and A.I.; Data curation, M.A.M.; Writing—original draft, A.Y., T.A. and A.I.; Writing—review & editing, T.A., K.S.M., M.A.M., W.A.K. and A.I.; Visualization, A.Y., K.S.M. and M.A.M.; Supervision, K.S.M. and A.I.; Project administration, A.A.; Funding acquisition, K.S.M. and A.A. All authors have read and agreed to the published version of the manuscript.
Funding
The researchers would like to thank the Deanship of Graduate Studies and Scientific Research at Qassim University for financial support (QU-APC-2025).
Data Availability Statement
The data used to support the findings of this study are available from the corresponding author upon request.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Cavaterra, C.; Grasselli, M. Robust Exponential Attractors for Singularly Perturbed Hodgkin–Huxley Equations. J. Differ. Equ. 2009, 246, 4670–4701. [Google Scholar] [CrossRef]
- Evans, J.; Shenk, N. Solutions to Axon Equations. Biophys. J. 1970, 10, 1090–1101. [Google Scholar] [CrossRef]
- Hashim, I.; Noorani, M.S.M.; Batiha, B. A Note on the Adomian Decomposition Method for the Generalized Huxley Equation. Appl. Math. Comput. 2006, 181, 1439–1445. [Google Scholar] [CrossRef]
- Batiha, B.; Noorani, M.S.M.; Hashim, I. Numerical Simulation of the Generalized Huxley Equation by He’s Variational Iteration Method. Appl. Math. Comput. 2007, 186, 1322–1325. [Google Scholar] [CrossRef]
- Sangwan, V.; Kumar, B.V.R.; Murthy, S.V.S.S.N.V.G.K.; Nigam, M. Three-Step Taylor Galerkin Method for Singularly Perturbed Generalized Hodgkin–Huxley Equation. Int. J. Model. Simul. Sci. Comput. 2010, 1, 257–276. [Google Scholar] [CrossRef]
- Aderogba, A.A.; Chapwanya, M. Positive and Bounded Nonstandard Finite Difference Scheme for the Hodgkin–Huxley Equations. Jpn. J. Ind. Appl. Math. 2018, 35, 773–785. [Google Scholar] [CrossRef]
- Macías-Díaz, J.E.; Ruiz-Ramírez, J.; Villa, J. The Numerical Solution of a Generalized Burgers–Huxley Equation through a Conditionally Bounded and Symmetry-Preserving Method. Comput. Math. Appl. 2011, 61, 3330–3342. [Google Scholar] [CrossRef]
- Sari, M.; Gürarslan, G.; Zeytinoğlu, A. High-Order Finite Difference Schemes for Numerical Solutions of the Generalized Burgers–Huxley Equation. Numer. Methods Part. Differ. Equ. 2011, 27, 1313–1326. [Google Scholar] [CrossRef]
- Kaushik, A.; Sharma, M.D. A Uniformly Convergent Numerical Method on Non-Uniform Mesh for Singularly Perturbed Unsteady Burger–Huxley Equation. Appl. Math. Comput. 2008, 195, 688–706. [Google Scholar] [CrossRef]
- Batiha, B.; Noorani, M.S.M.; Hashim, I. Application of Variational Iteration Method to the Generalized Burgers–Huxley Equation. Chaos Solitons Fractals 2008, 36, 660–663. [Google Scholar] [CrossRef]
- El-Kady, M.; El-Sayed, S.M.; Fathy, H.E. Development of Galerkin Method for Solving the Generalized Burger’s–Huxley Equation. Math. Probl. Eng. 2013, 2013, 165492. [Google Scholar] [CrossRef]
- Roos, H.G.; Stynes, M.; Tobiska, L. Robust Numerical Methods for Singularly Perturbed Differential Equations; Springer: Berlin/Heidelberg, Germany, 2008. [Google Scholar]
- Jain, M.K.; Iyengar, S.R.K.; Jain, R.K. Numerical Methods for Scientific and Engineering Computation; New Age International: New Delhi, India, 1997. [Google Scholar]
- Talwar, J.; Mohanty, R.K. Spline in tension method for nonlinear two-point boundary value problems on a geometric mesh. Math. Model. 2015, 27, 33–48. [Google Scholar]
- Rubin, S.G.; Khosla, P.K. Higher-order numerical solutions using cubic splines. AIAA J. 1977, 15, 421–424. [Google Scholar] [CrossRef]
- Qiao, B.; Chen, X.; Xue, X.; Luo, X.; Liu, R. The Application of Cubic B-Spline Collocation Method in Impact Force Identification. Mech. Syst. Signal Process. 2015, 64, 413–427. [Google Scholar] [CrossRef]
- Yousafzai, A.; Haq, S.; Ghafoor, A.; Shah, K.; Abdeljawad, T. Solution of the Foam-Drainage Equation with Cubic B-Spline Hybrid Approach. Phys. Scr. 2024, 99, 075279. [Google Scholar] [CrossRef]
- Iqbal, A.; Abd Hamid, N.N.; Md. Ismail, A.I. Soliton solution of Schrödinger equation using cubic B-spline Galerkin method. Fluids 2019, 4, 108. [Google Scholar] [CrossRef]
- Botella, O. On a Collocation B-Spline Method for the Solution of the Navier–Stokes Equations. Comput. Fluids 2002, 31, 397–420. [Google Scholar] [CrossRef]
- Akbar, T.; Haq, S.; Arifeen, S.U.; Iqbal, A. Numerical Solution of Third-Order Rosenau–Hyman and Fornberg–Whitham Equations via B-Spline Interpolation Approach. Axioms 2024, 13, 501. [Google Scholar] [CrossRef]
- Singh, A.; Dahiya, S.; Singh, S.P. A Fourth-Order B-Spline Collocation Method for Nonlinear Burgers–Fisher Equation. Math. Sci. 2020, 14, 75–85. [Google Scholar] [CrossRef]
- Dağ, İ.; Saka, B. A Cubic B-Spline Collocation Method for the EW Equation. Math. Comput. Appl. 2004, 9, 381–392. [Google Scholar] [CrossRef]
- Tamsir, M.; Dhiman, N.; Chauhan, A.; Chauhan, A. Solution of Parabolic PDEs by Modified Quintic B-Spline Crank–Nicolson Collocation Method. Ain Shams Eng. J. 2021, 12, 2073–2082. [Google Scholar] [CrossRef]
- Dhiman, N.; Tamsir, M.; Chauhan, A.; Nigam, D. An Implicit Collocation Algorithm Based on Cubic Extended B-Splines for Caputo Time-Fractional PDE. Mater. Today Proc. 2021, 46, 11094–11097. [Google Scholar] [CrossRef]
- Dhiman, N.; Huntul, M.J.; Tamsir, M. A Modified Trigonometric Cubic B-Spline Collocation Technique for Solving the Time-Fractional Diffusion Equation. Eng. Comput. 2021, 38, 2921–2936. [Google Scholar] [CrossRef]
- Tamsir, M.; Dhiman, N.; Nigam, D.; Chauhan, A. Approximation of Caputo Time-Fractional Diffusion Equation Using Redefined Cubic Exponential B-Spline Collocation Technique. AIMS Math. 2021, 6, 3805–3820. [Google Scholar] [CrossRef]
- Dehghan, M.; Nemati-Saray, B.; Lakestani, M. Three Methods Based on Interpolation Scaling Functions and Mixed Collocation Finite Difference Schemes for the Nonlinear Generalized Burgers–Huxley Equation. Math. Comput. Model. 2012, 55, 1129–1142. [Google Scholar] [CrossRef]
- FitzHugh, R. Impulses and physiological states in theoretical models of nerve membrane. Biophys. J. 1961, 1, 445–466. [Google Scholar] [CrossRef] [PubMed]
- Nagumo, J.; Arimoto, S.; Yoshizawa, S. An active pulse transmission line simulating nerve axon. Proc. IRE 1962, 50, 2061–2070. [Google Scholar] [CrossRef]
- Sucu, D.Y.; Karakoç, S.B.G.; Güngör, M. Investigation on the new numerical soliton solutions of FitzHugh–Nagumo equation with collocation method. Fundam. J. Math. Appl. 2025, 8, 180–186. [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.