Abstract
Typhoid fever is a contagious disease that is generally caused by bacteria known as Salmonella typhi. This disease spreads through manure contamination of food or water and infects unprotected people. In this work, our focus is to numerically examine the dynamical behavior of a typhoid fever nonlinear mathematical model. To achieve our objective, we utilize a conditionally stable Runge–Kutta scheme of order 4 (RK-4) and an unconditionally stable non-standard finite difference (NSFD) scheme to better understand the dynamical behavior of the continuous model. The primary advantage of using the NSFD scheme to solve differential equations is its capacity to discretize the continuous model while upholding crucial dynamical properties like the solutions convergence to equilibria and its positivity for all finite step sizes. Additionally, the NSFD scheme does not only address the deficiencies of the RK-4 scheme, but also provides results that are consistent with the continuous system's solutions. Our numerical results demonstrate that RK-4 scheme is dynamically reliable only for lower step size and, consequently cannot exactly retain the important features of the original continuous model. The NSFD scheme, on the other hand, is a strong and efficient method that presents an accurate portrayal of the original model. The purpose of developing the NSFD scheme for differential equations is to make sure that it is dynamically consistent, which means to discretize the continuous model while keeping significant dynamical properties including the convergence of equilibria and positivity of solutions for all step sizes. The numerical simulation also indicates that all the dynamical characteristics of the continuous model are conserved by discrete NSFD scheme. The theoretical and numerical results in the current work can be engaged as a useful tool for tracking the occurrence of typhoid fever disease.
Similar content being viewed by others
Introduction
Infectious diseases can be transmitted among people either directly or indirectly. These diseases take place when germs enter into the body, enhance in quantity, and then cause a reaction of the body. Typhoid fever is a severe infection disease that can spread in the whole body, influencing numerous organs. If not treated on time, it can cause genuine difficulties and can be life threatening. It is caused by bacteria named Salmonella Typhi1. This bacteria is found in constipated food or water, and it causes illness when it enters the body through drinking or eating. Although, the sanitation of water coverage is improved but the spread of typhoid disease is still a noteworthy public health issue in several emergent countries2. The most common typhoid symptoms are migraine, stomach ache, knee pain, spine, muscular pain, lack of appetite, spew, dysentery, spots, and fever3.
Typhoid fever can become more dangerous if not treated instantly. It can damage the internal flow of blood and cause infection in the tissue that lies in the stomach4. Typhoid fever can be diagnosed by using some simple blood or stool tests. These tests identify the existence of Salmonella typhi in blood or stool samples. Typhoid fever preventive and control strategies include antibiotic treatments, stool standard precautions, vaccination, environmental sanitation and clean water5. Typhoid fever maybe treated with medicines and the symptoms improve within four weeks. The symptoms may return if treatment is not completed6. Over 110 years ago, the first typhoid vaccine was developed. Typhoid fever vaccines are available in two forms: oral and injectable. Vi polysaccharide vaccine is a licensed injectable vaccine which is secure and 65% defensive while Ty21a is a licensed liquid oral vaccine that can be used for children of 2 years and older. The oral vaccine is more costly than the Vi polysaccharide vaccine7. Many studies have been carried out over the last few decades, and different studies have resulted into different mathematical models4,5,6,7.
Numerous physical phenomena are being explained by researchers using fractional and integer order mathematical models8,9,10,11,12,13,14,15. The implementation of mathematical modelling enables us to focus on the process by which an infectious disease spreads throughout a region. To comprehend various infectious diseases and their dynamical properties, experts from all around the world developed several mathematical models16,17,18. Mathematical models can be used to relate the evolving dynamics of infection and biological mechanisms of transmission at the population level19,20. By using optimal control techniques, Getachew et al.21 built a deterministic mathematical model of typhoid disease to investigate its effects. The author also utilized some control strategies with cost-effective approaches. Musa et al.22 inspected the spread dynamics of the typhoid fever epidemic. The model evaluates how public health education initiatives affect the pathogenesis of typhoid fever, which can lead to significant outbreaks, especially in areas with limited resources. To analyze the dynamics of typhoid fever sickness while considering infection resistance, a mathematical model was formed by Nthiiri et al.23 using a set of ordinary differential equations. Adeboye et al.24 constructed and investigated a mathematical model of typhoid and malaria co-infection that tackles the control of the spread of malaria and typhoid simultaneously. Pitzer et al.25 considered a parsimonious age-structured mathematical model of typhoid fever to estimate the initial and indirect impact of vaccination. Cook et al.26 examined a mathematical model that discusses both direct and indirect vaccine safety as well as the benefits of a widespread vaccination programme.
Recently, Karunditu et al.27 investigated a nonlinear epidemic model for typhoid disease transmission. The stability of the disease-free and endemic equilibria was thoroughly examined for the continuous model. The main intention of this work is to use two finite difference schemes, i.e. RK-4 and NSFD schemes to evaluate various properties of the continuous model to exhibit its sustainability and biological viability. The RK-4 scheme cannot exactly maintain the basic dynamical aspects of the continuous model, resulting in numerical solutions that change from the solutions of the original system. On the other hand, our findings demonstrate that the NSFD method is not only suitable for the continuous model but also yields incredibly accurate and efficient outcomes. Mickens28 actually came up with the concept for this. He proposed the name NSFD scheme to differentiate the new numerical system from the previous SFD scheme. In order to compensate for the shortcomings of the RK-4 scheme, the NSFD scheme was developed.
The present paper is structured as follows: The mathematical model is given in Sect. 2. In Sect. 3, the equilibria and basic reproduction number are provided for the model. In Sect. 4, we utilized the RK-4 scheme for the nonlinear mathematical model. We consider the advanced NSFD scheme in Sect. 5 to solve a variety of problems. Using the Schur-Cohn criterion, the local stability of disease-free equilibrium point is examined. However, the Routh-Hurwitz condition is engaged to validate the local stability of the endemic equilibrium point for the NSFD scheme. The global stability of endemic and disease-free equilibria is examined employing the properties of the Lyapunov function. In order to explain our analytical conclusions, numerical simulations are provided in each section. To summarize the whole paper, the conclusions are given in the final section.
Mathematical model and parameters explanation
The present paper discusses and evaluates a deterministic model for the dynamics of typhoid disease. We presume that the whole population \(N(t)\) is separated into four sections: Susceptible (\(S\)), Exposed (\(E\)), Infected (\(I\)), and Recovered (\(R\)), i.e. \(N(t)\)=\(S(t)+E(t)+I(t)+R(t)\). The model employs the subsequent procedure as: \(S\to E\to I\to R\). A fractional map for SEIR model of typhoid disease transmission among unprotected people compartments is shown in Fig. 1.
From Fig. 1, we can describe the following SEIR disease system27 of nonlinear ordinary differential equations as:
Parameters
The following are descriptions of the parameters used in model (1).
-
1.
$$\psi \,{\text{The rate of innate dying}}$$
-
2.
$$\delta \,{\text{The number of people who die as a result of an illness}}{.}$$
-
3.
$$\varphi \,{\text{The pace of human recruiting }}\left( {{\text{birth}}} \right)$$
-
4.
$$\alpha \,{\text{The rate of disease interaction}}$$
-
5.
$$\tau \,{\text{The rate of unprotected symptoms}}\,$$
-
6.
$$\theta \,{\text{The rate of infectious recovery}}$$
-
7.
$$\sigma \,{\text{The rate at which recovered humans loses temporary immunity}}$$
The parameters \(\psi ,\delta ,\varphi ,\alpha ,\tau ,\theta ,\sigma\) are all positive constants. As we know that.
Consequently, by combining all dynamical equations in system (1), we get.
From Eq. (2), we can write
and.
Therefore, the feasible area for the continuous system (1) becomes.
Equilibrium points and basic reproductive number
In this section, we establish the equilibrium points of the model (1) and basic reproductive number.
Equilibrium points
For system (1), there exist the following two nonnegative equilibria.
-
1.
Disease-free equilibrium (DFE) point \({E}^{0}=\left({S}^{0},{E}^{0},{I}^{0},{R}^{0}\right)=\left(\frac{\varphi }{\psi },\mathrm{0,0},0\right).\)
-
2.
Disease endemic equilibrium (DEE) point \({E}^{*}\)= (\({S}^{*},{E}^{*},{I}^{*}{,R}^{*})\),
where
Basic reproductive number \({({\varvec{R}}}_{0})\)
The fundamental reproductive number \({(R}_{0}\)), which measures the average rate of latest cases in a residents that is perfectly susceptible, is a critical threshold value in epidemiology. To find the reproductive number, we utilize the idea of next generation matrix provided by the authors in29. For typhoid fever disease model (1), we can easily get
In the following two sections, a comparison between NSFD scheme and RK-4 is provided. As our main concern is NSFD scheme, therefore the advantages and uses of NSFD are discussed in detail. Specifically, traditional issues concerned to the behavior of these schemes, i.e. equilibrium points, positivity and stability are discussed with respect to increment of the time step.
The RK-4 scheme
The RK-4 scheme30 is widely used approach to solve a system of ordinary differential equations. In numerous situations, we frequently employ the RK-4 scheme, unless stated otherwise. Let \(S={H}_{i},E={L}_{i},I={P}_{i},R={Q}_{i}\) for \(i=\mathrm{1,2},\mathrm{3,4}\), then system (1) may be signified using the RK-4 scheme as given below.
Stage -1
Stage-2
Stage-3
Stage-4
Thus general form is
The RK-4 approach is graphically depicted in Fig. 2a–d with various step sizes. The RK-4 approach clearly yields stable and positive solutions for small step sizes, as seen in Fig. 2a,b. As the step size is increased, the equilibrium point stability is shattered for model (1), as illustrated in Fig. 2c,d. Hence, we conclude that the RK-4 technique cannot be employed for large step sizes.
The NSFD scheme
In this section, our main objective is to discuss the dynamics of NSFD scheme for model (1). The NSFD scheme concept was presented by Mickens in 199428. The NSFD scheme is an iterative method in which we move closer to a solution through iterations31. The NSFD scheme is a valuable technique used to solve problems in epidemiology32,33,34,35,36, ecology37,38, and meta-population modeling39. The following will show that, despite the step size \(h\), the discrete NSFD scheme sustains the dynamical properties of the corresponding continuous model (1).
Construction of NSFD scheme
For model (1), we use the notation \({S}_{n}\), \({E}_{n},{ I}_{n}\) and \({R}_{n}\) to indicate the numerical estimates of \(S\left(t\right),E(t),I(t)\) and \(R\left(t\right)\) at time step \(t=nh\), where \(h\) is nonnegative time step size and \(n\) is a nonnegative integer40.
It is assumed that the starting quantities of NSFD SEIR model (4) are also nonnegative. From (4), we get
In the same way like continuous model (1), we can determine a feasible region for the discrete scheme (5). If we indicate \({N}_{n}={S}_{n}+{E}_{n}+{I}_{n}+{R}_{n}\), then by combining all the four equations in system (4) we obtain
and.
By employing the discrete Gronwall inequality41,42,43, if \(0<N(0)<\frac{\varphi }{\psi }\) then.
Since \(\left(\frac{1}{1+h\psi }\right)<1\), so we get \({N}_{n}\to \frac{\varphi }{\psi }\) as \(n\to \infty\). Therefore, the feasible region for NSFD scheme (5) becomes.
In the following, we provide the stability conditions of DFE and DEE points for the discrete NSFD scheme (5). We first describe the local stability of both equilibrium points in order to achieve this goal.
Local stability for NSFD Scheme
To prove that DFE and DEE points are locally asymptotically stable (LAS), we consider
To demonstrate that DFE and DEE points are LAS, as stated in Lemma 1, we shall utilize the Schur-Cohn condition44,45.
Lemma 1
The roots of equation \({\lambda }^{2}-T\lambda +D=0\) guarantee \(|{\lambda }_{i}|<1\), \(i\)=1,2 if and only if the requirements listed below are met.
-
i.
$$D < 1$$
-
ii.
$$1 + D + T > 0$$
-
iii.
$$1 - T + D > 0$$
where \(T\) and \(D\) stand for the Jacobian matrix trace and determinant, respectively.
Theorem 1
For all \(h>0\), the DFE point \({E}^{0}\) of the NSFD model (5) is LAS whenever \({R}_{0}<1\).
Proof
Let us consider the Jacobian matrix.
In the following, we first find all the derivatives used in (8).
\(\begin{aligned} \frac{{\partial F_{1} }}{\partial S} & = \frac{1}{{1 + h\left( {\alpha I_{n} + \psi } \right)}},\frac{{\partial F_{1} }}{\partial E} = 0,\frac{{\partial F_{1} }}{\partial I} = \frac{{ - h\alpha \left( { S_{n} + h\varphi + h\alpha R_{n + 1} } \right)}}{{\left( {1 + h\left( {\alpha I_{n} + \psi } \right)} \right)^{2} }},\frac{{\partial F_{1} }}{\partial R} = \frac{h\alpha }{{1 + h\left( {\alpha I_{n} + \psi } \right)}},\\ \frac{{\partial F_{2} }}{\partial S} &= \frac{{h\alpha I_{n} }}{1 + h\psi + h\tau }, \frac{{\partial F_{2} }}{\partial E} = \frac{1}{{1 + h\left( {\psi + \tau } \right)}},\frac{{\partial F_{2} }}{\partial I} = \frac{{h\alpha S_{n + 1} }}{{1 + h\left( {\psi + \tau } \right)}},\frac{{\partial F_{2} }}{\partial R} = 0,\frac{{\partial F_{3} }}{\partial S} = 0,\\ \frac{{\partial F_{3} }}{\partial E} & = \frac{h\tau }{{1 + h\left( {\psi + \theta + \delta } \right)}}, \frac{{\partial F_{3} }}{\partial I} = \frac{1}{{1 + h\left( {\psi + \theta + \delta } \right)}}, \frac{{\partial F_{3} }}{\partial R} = 0,\frac{{\partial F_{4} }}{\partial S} = 0,\frac{{\partial F_{4} }}{\partial E} = 0, \\ \frac{{\partial F_{4} }}{\partial I} & = \frac{h\theta }{{1 + h\left( {\sigma + \psi } \right)}}, \frac{{\partial F_{4} }}{\partial R} = \frac{1}{{1 + h\left( {\sigma + \psi } \right)}}. \\ \end{aligned}\)
By substituting the values of all the derivatives in Eq. (8), we get.
The aforementioned matrix becomes at DFE point \({E}^{0}=(\frac{\varphi }{\psi },\mathrm{0,0},0)\)
To determine the eigenvalues, we take into consideration.
The above equation can be rewritten as.
The Eq. (9) gives \({\lambda }_{1}=\frac{1}{1+h\psi }<1,{\lambda }_{2}=\frac{1}{1+h\left(\sigma +\psi \right)}<1\). To discuss the other two eigenvalues, we consider.
From Eq. (10), we obtain.
Comparing (11) with \({\lambda }^{2}-T\lambda +D=0\), we get \(T=\frac{1}{1+h\left(\psi +\tau \right)}+\frac{1}{1+h\left(\theta +\delta +\psi \right)}\) and \(D=\frac{1}{\left(1+h\left(\psi +\theta +\delta \right)\right)(1+h\left(\psi +\tau \right))}-\frac{h\alpha \varphi }{\psi (1+h\left(\psi +\tau \right))(1+h\left(\psi +\theta +\delta \right))}\). If \({R}_{0}<1\), i.e. \(\alpha \varphi \tau <\psi (\tau +\psi )(\psi +\theta +\delta )\) then all the three conditions of Lemma 1 are satisfied, i.e.
All of the Schur–Cohn requirements described in Lemma 1 are consequently satisfied whenever \({R}_{0}<1\). As a result, the DFE point \({E}^{0}\) of discrete NSFD scheme (5) is LAS, provided that \({R}_{0}<1\).
When a disease is prevalent in a population, it will continue to exist in that community. In the following theorem, we will use Routh-Hurwitz criterion46,47 to examine that DEE point \({E}^{*}\) is LAS.
Theorem 2
For all \(h>0\), the DEE point \({E}^{*}\) of the NSFD model (5) is LAS whenever \({R}_{0}>1\).
Proof
The Jacobian matrix is obtained according to Theorem 1 as.
By putting DEE point \({E}^{*}\), we obtain.
To determine the eigenvalues, we take into consideration.
The characteristic equation for above equation becomes as.
where
\(\begin{aligned} P_{1} & = \frac{1}{{1 + h\left( {\alpha I^{*}_{n} + \psi } \right)}} + \frac{1}{{1 + h\left( {\psi + \tau } \right)}} + \frac{1}{{1 + h\left( {\sigma + \psi } \right)}} > 0, \\ P_{2} & = \frac{1}{{\left( {1 + h\left( {\psi + \theta + \delta } \right)} \right)\left( {1 + h\left( {\tau + \psi } \right)} \right)}} - \frac{{h^{2} \tau \alpha S_{n + 1}^{*} }}{{\left( {1 + h\left( {\tau + \psi } \right)} \right)\left( {1 + h\left( {\psi + \theta + \delta } \right)} \right)}} \\ & \quad - \left( {\frac{1}{{1 + h\left( {\alpha I^{*}_{n} + \psi } \right)}} + \frac{1}{{1 + h\left( {\sigma + \psi } \right)}}} \right)\left( {\frac{1}{{\left( {1 + h\left( {\psi + \theta + \delta } \right)} \right)\left( {1 + h\left( {\tau + \psi } \right)} \right)}}} \right)\\&\quad + \frac{1}{{\left( {1 + h\left( {\alpha I^{*}_{n} + \psi } \right)} \right)\left( {1 + h\left( {\sigma + \psi } \right)} \right)}} > 0, \\ P_{3} & = \frac{1}{{\left( {1 + h\left( {\alpha I^{*}_{n} + \psi } \right)} \right)}} + \frac{1}{{\left( {1 + h\left( {\sigma + \psi } \right)} \right)\left( {1 + h\left( {\tau + \psi } \right)} \right)\left( {1 + h\left( {\psi + \theta + \delta } \right)} \right)}} \\ & \quad + \frac{{h^{2} \tau \alpha S_{n + 1}^{*} }}{{\left( {1 + h\left( {\alpha I^{*}_{n} + \psi } \right)} \right)\left( {1 + h\left( {\sigma + \psi } \right)} \right)\left( {1 + h\left( {\tau + \psi } \right)} \right)\left( {1 + h\left( {\psi + \theta + \delta } \right)} \right)}} \\ &\quad+ \frac{{h^{2} \tau \alpha }}{{\left( {1 + h\left( {\alpha I^{*}_{n} + \psi } \right)} \right)(1 + h\left( {\alpha I^{*}_{n} + \psi } \right)^{2} }} \\ & \quad + \frac{1}{{\left( {1 + h\left( {\alpha I^{*}_{n} + \psi } \right)} \right)\left( {1 + h\left( {\sigma + \psi } \right)} \right)\left( {1 + h\left( {\tau + \psi } \right)} \right)(1 + h\left( {\psi + \theta + \delta } \right)}} > 0, \\ P_{4} & = \frac{{h^{2} \tau \alpha \left( {S^{*}_{n} + h\varphi + h\alpha R^{*}_{n} } \right)}}{{\left( {1 + h\left( {\alpha I^{*}_{n} + \psi } \right)} \right)\left( {1 + h\left( {\alpha I^{*}_{n} + \psi } \right)} \right)^{2} \left( {1 + h\left( {\sigma + \psi } \right)} \right)}} \\ &\quad+ \frac{{h^{3} \tau \alpha \theta }}{{\left( {1 + h\left( {\sigma + \psi } \right)} \right)\left( {1 + h\left( {\alpha I^{*}_{n} + \psi } \right)} \right)\left( {1 + h\left( {\alpha I^{*}_{n} + \psi } \right)} \right)}} \\ & \quad + \frac{1}{{\left( {1 + h\left( {\alpha I^{*}_{n} + \psi } \right)} \right)\left( {1 + h\left( {\sigma + \psi } \right)} \right)\left( {1 + h\left( {\tau + \psi } \right)} \right)\left( {1 + h\left( {\psi + \theta + \delta } \right)} \right)}}. \\ \end{aligned}\)
From above informations, it is clear that if \({R}_{0}>1\), then
According to the Routh-Hurwitz criteria, all of the solutions to the Eq. (12) must have negative real parts. As a result, the DEE point \({E}^{*}\) of the discrete NSFD scheme (5) is LAS whenever \({R}_{0}>1\).
Global stability for NSFD Scheme
In the following, we now show that \({R}_{0}\) is a critical value for the global stability. If \({R}_{0}\le 1\), then the DFE point \({E}^{0}\) is globally asymptotically stable (GAS) and when \({R}_{0}>1\), then DEE point \({E}^{*}\) becomes GAS. To discuss the global stability of equilibria, we employ the same criterion used by Vaz et al.48.
Theorem 3
For all \(h>0\), the DFE point \({E}^{0}\) of the NSFD model (5) is GAS whenever \({R}_{0}\le 1\).
Proof
From the feasible region (6) discussed for NSFD scheme (5), it is clear that \({S}_{n}+{E}_{n}+{I}_{n}+{R}_{n}\le \frac{\varphi }{\psi }\). If \({E}_{n}={I}_{n}={R}_{n}=0\), then \({S}_{n}\le \frac{\varphi }{\psi }\). Therefore, if we take \(\upeta > 0\), then there exists an integer \({n}_{0}\) such that for any \(n \ge n_{0} , S_{n + 1} < \frac{\varphi }{\psi } +\upeta\). Consider the sequence \({\left\{w(n)\right\}}_{n=0}^{\infty }\) such that.
where \({C}_{2}=\left(\sigma +\psi \right)\) and \({C}_{3}=\left(\theta +\delta +\psi \right)\). For \(n\ge {n}_{0}\), we have
By applying the NSFD scheme (5), we obtain
Let \({C}_{1}=(\tau +\psi )\), then the above expression becomes
If we put \({C}_{1}{C}_{3}- \omega \tau =D\), the above expression becomes
We can choose \(\beta\) a very small positive number such that
Therefore, we get
Let \(C=\frac{\psi (\tau +\psi )(\theta +\delta +\psi )}{\alpha \varphi }\), then we get
Since \(\beta\) is a very small number and \(\upeta\) is imprecise Therefore, if \({R}_{0}\le 1\) then we reach the conclusion that for any \(n\ge 0\), \(0\ge w\left(n+1\right)-w\left(n\right)\) and \(\mathop {\lim }\limits_{n \to \infty } I_{n} = 0\). The sequence \({\left\{w(n)\right\}}_{n=0}^{\infty }\) is a monotonically decreasing and \(\underset{n\to \infty }{\mathrm{lim}}{S}_{n}=\frac{\varphi }{\psi }\). Therefore, the DFE point \({E}^{0}\) is GAS whenever \({R}_{0}\le 1\).
The numerical simulations shown in Figs. 3a–d and 4a–d for \({R}_{0}<1\) and \({R}_{0}=1\), respectively also exhibit that the solutions of NSFD scheme (5) converges to the DFE point \({E}^{0}\) independent of the step size. By combining the above two conditions, we conclude that if \({R}_{0}\le 1\) then the DFE point \({E}^{0}\) is GAS for NSFD scheme (5). The NSFD scheme is hence convergent for model (1) for all finite step sizes.
Theorem 4
For all \(h>0\), the DEE point \({E}^{*}\) of the NSFD model (5) is GAS whenever \({R}_{0}>1\).
Proof
Let us construct a sequence \({\left\{w(n)\right\}}_{n=0}^{\infty }\) such that.
Where \(p\left(x\right)=x-1-\mathrm{ln}\left(x\right)\) such that \(x\in {R}^{+},{ C}_{2}=\sigma +\psi \mathrm{and }{C}_{3}=\theta +\delta +\psi\). It is evident that \(p(x)\ge 0\) and if \(x=1\), the equality holds. From above, we can write
In the same way
Let \({C}_{1}=\tau +\psi\), then
and
and
The difference of \(w(n)\) satisfies
Hence, the sequence \({\left\{w(n)\right\}}_{n=1}^{\infty }\) for any \(n\ge 0\) is monotonic decreasing. Since \(0\le w(n)\) and \(\underset{n\to \infty }{\mathrm{lim}}(w\left(n+1\right)-w\left(n\right))=0\), we conclude that \(\underset{n\to \infty }{\mathrm{lim}}{S}_{n+1}={S}^{*}\), \(\underset{n\to \infty }{\mathrm{lim}}{E}_{n+1}={E}^{*}\), \(\underset{n\to \infty }{\mathrm{lim}}{I}_{n+1}={I}^{*}\) and \(\underset{n\to \infty }{\mathrm{lim}}{R}_{n+1}={R}^{*}\). This completes the proof.
The numerical illustration in Fig. 5a–d additionally illustrates that, for any step size, the NSFD scheme (5) solutions converge to the DEE point if \({R}_{0}>1\). This reveals the NSFD scheme's unconditional convergence.
Numerical simulation of SEIR model \(\left(1\right)\) by using NSFD scheme with \(\left( {\mathbf{a}} \right)\,h = 0.01,\left( {\mathbf{b}} \right)\,h = 1,\left( {\mathbf{c}} \right)\,h = 20,\left( {\mathbf{d}} \right)\,h = 50\). Remaining parameters are set as \(\varphi = 4.5,\tau = 0.0{99925},\psi = 0.02,\theta = 0.1503,\alpha = 0.0125,\delta = 0.625,\sigma = 0.125.\)
Conclusions
In the present paper, a nonlinear epidemic model of a typhoid fever disease is numerically studied using two finite difference schemes. It was shown that the spread of the disease is mostly determined by the rate of contact with sick individuals within a community. The RK-4 and NSFD schemes are employed to discuss the dynamical characteristics of DFE and DEE points, including their local and global stabilities. The findings demonstrate that the NSFD method provides precise numerical solutions while eliminating drawback of RK-4 scheme. The convergence is demonstrated that presents that the NSFD scheme retains their stability and positivity characteristics. The key benefits of NSFD are demonstrated theoretically as well as numerically which reveal that this scheme have good dynamical behavior even for large time step size. At the same time, the RK-4 scheme cannot exactly sustain the fundamental properties of the original continues model and consequently, it can produce numerical solutions which are not quite the same as the solutions of the original model. The NSFD scheme is an easy approach that exhibits how discrete and continuous models act appropriately and produce results that are mathematically accurate. Figures 3, 4, and 5 depicts that the NSFD scheme (5) remains stable for each step size. This demonstrates that for each step size, the NSFD scheme is positive forever and unconditionally convergent. The RK-4 scheme, however, shows convergence only for lower step sizes, as shown in Fig. 3a–d. We can effectively monitor the spread of typhoid fever disease by utilizing the NSFD system. The results provided in this study are advantageous to humanity as well as in the sector of healthcare. Numerical simulations are included in each section to support our theoretical conclusions.
Data availability
The data used to support the findings of this study are included within the article.
References
Mushayabasa, S., Bhunu, C. P. & Ngarakana-Gwasira, E. T. Mathematical analysis of a typhoid model with carriers, direct and indirect disease transmission. Int. J. Math. Sci. Eng. Appl. 7(1), 79–90 (2013).
Ivanoff, B., Levine, M. M. & Lambert, P. Vaccination against typhoid fever: Present status. Bull. World Health Organ. 72(6), 957 (1994).
Nsutebu, E. F., Martins, P. & Adiogo, D. Prevalence of typhoid fever in febrile patients with symptoms clinically compatible with typhoid fever in Cameroon. Trop. Med. Int. Health 8(6), 575–578 (2003).
Schemmer, A. K. Heterogeneity of inflammation and host metabolism in a typhoid fever model (Doctoral dissertation, University_of_Basel) (2012).
Bhan, M. K., Bahl, R. & Bhatnagar,. Typhoid and paratyphoid fever. Lancet 366(9487), 749–762 (2005).
Butler, T. Treatment of typhoid fever in the 21st century: promises and shortcomings. Clin. Microbiol. Infect. 17(7), 959–963 (2011).
Cook, J. et al. The cost-effectiveness of typhoid Vi vaccination programs: Calculations for four urban sites in four Asian countries. Vaccine 26(50), 6305–6316 (2008).
Gao, X. Y., Guo, Y. J. & Shan, W. R. Similarity reductions for a (3+ 1)-dimensional generalized Kadomtsev–Petviashvili equation in nonlinear optics, fluid mechanics and plasma physics. Appl. Comput. Math. 20(3), 421–429 (2021).
Pankov, P. S., Zheentaeva, Z. K., & Shirinov, T. Asymptotic reduction of solution space dimension for dynamical systems. TWMS J. Pure Appl. Math. 12(2) (2021)
Musaev, H. K. (2021). The Cauchy problem for degenerate parabolic convolution equation. TWMS J. Pure Appl. Math. 12(2) (2021)
Sunday, J., Shokri, A., Kwanamu, J. A. & Nonlaopon, K. Numerical integration of stiff differential systems using non-fixed step-size strategy. Symmetry 14(8), 1575 (2022).
Juraev, D. A., Shokri, A. & Marian, D. Regularized solution of the Cauchy problem in an unbounded domain. Symmetry 14(8), 1682 (2022).
Rafiq, M., Ahmad, W., Abbas, M. & Baleanu, D. A reliable and competitive mathematical analysis of Ebola epidemic model. Adv. Diff. Equ. 2020, 1–24 (2020).
Ahmad, W., Rafiq, M. & Abbas, M. Mathematical analysis to control the spread of Ebola virus epidemic through voluntary vaccination. Eur. Phys. J. Plus 135(10), 775 (2020).
Ahmad, W., Abbas, M., Rafiq, M. & Baleanu, D. Mathematical analysis for the effect of voluntary vaccination on the propagation of Corona virus pandemic. Results Phys. 31, 104917 (2021).
Butt, A. I. K., Shah, N. A., Ahmad, W., Botmart, T. & Ahmad, N. On implementation of a semi-analytic strategy to develop an analytical solution of a steady-state isothermal tube drawing model. Sci. Rep. 12(1), 7636 (2022).
Hanif, A., Kashif Butt, A. I., & Ahmad, W. Numerical approach to solve Caputo‐Fabrizio‐fractional model of corona pandemic with optimal control design and analysis. Math. Methods Appl. Sci. (2023).
Butt, A. I. K., Rafiq, M., Ahmad, W. & Ahmad, N. Implementation of computationally efficient numerical approach to analyze a Covid-19 pandemic model. Alex. Eng. J. 69, 341–362 (2023).
Kumar, P., Erturk, V. S., Abboubakar, H. & Nisar, K. S. Prediction studies of the epidemic peak of coronavirus disease in Brazil via new generalised Caputo type fractional derivatives. Alex. Eng. J. 60, 3189–3204 (2021).
Nazir, A. et al. An advanced version of a conformable mathematical model of Ebola virus disease in Africa. Alex. Eng. J. 59, 3261–3268 (2020).
Getachew, T. T., Makinde, O. D. & Malonza, D. Modelling and optimal control of typhoid disease with cost-effective strategies. Comput. Math. Methods Med., Article ID 2324518 (2017).
Musa, S. S., Zhao, S., Hussaini, N., Usaini, S. & He, D. Dynamics analysis of typhoid fever with public health education programs and final epidemic size relation. Results Appl. Math. 10, 100153 (2021).
Nthiiri, J. K. et al. Mathematical modelling of typhoid fever disease incorporating protection against infection. Br. J. Math. Comput. Sci. 14(1), 1–10 (2016).
Adeboye, K. R. & Haruna, M. A Mathematical model for the transmission and control of malaria typhoid co-infection using sirs approach. Niger. Res. J. Math 2(2), 1–24 (2015).
Pitzer, V. E. et al. Predicting the impact of vaccination on the transmission dynamics of typhoid in South Asia: A mathematical modeling study. PLoS Negl. Trop. Dis. 8(1), e2642 (2014).
Cook, J. H. Are cholera and typhoid vaccines a good investment for a slum in Kolkata, India? Ph.D. Dissertation. Chapel Hill, NC: Department of Environmental Sciences and Engineering, The University of North Carolina at Chapel Hill (2007).
Karunditu, J. W., Kimathi, G. & Osman, S. Mathematical modeling of typhoid fever disease incorporating unprotected humans in the spread dynamics. J. Adv. Math. Comput. Sci. 32(3), 1–11 (2019).
Mickens, R. E. Nonstandard finite difference models of differentials equations. World Sci. (1994).
Van den Driessche, P. & Watmough, J. Reproduction numbers and sub-threshold endemic equilibria for compartmental models of disease transmission. Math. Biosci. 180(1–2), 29–48 (2002).
Chamuchi, M. N., Sigey, J. K., Okello, J. A. & Okwoyo, J. M. SI IC R Model and Simulation of the effects of carriers on the transmission dynamics of typhoid fever in Kisii town, Kenya. SIJ Trans. Comput. Sci. Eng. Appl. (CSEA) 2(3), 109–116 (2014).
Gentile, I. & Borgia, G. Vertical transmission of hepatitis B virus: Challenges and solutions. Int. J. Womens Health 6, 605–611 (2014).
Edward, S. et al. Global stability in a mathematical modeling of tuberculosis. Appl. Comput. Math. 4(6), 396–408 (2015).
Mickens, R. E. Nonstandard finite difference schemes for differential equations. J. Differ. Equ. Appl. 8(9), 823–847 (2002).
Cui, Q., Xu, J., Zhang, Q. & Wang, K. An NSFD scheme for SIR epidemic models of childhood diseases with constant vaccination strategy. Adv. Diff. Equ. 2014(1), 1–15 (2014).
Hattaf, K., Lashari, A. A., Boukari, B. E. & Yousfi, N. Effect of discretization on dynamical behavior in an epidemiological model. Diff. Equ. Dyn. Syst. 23(4), 403–413 (2015).
Rao, P. R. S., Ratnam, K. V. & Murthy, M. S. R. Stability preserving non-standard finite difference schemes for certain biological models. Int. J. Dyn. Control 6(4), 1496–1504 (2018).
Darti, I., Suryanto, A. & Hartono, M. Global stability of a discrete SIR epidemic model with saturated incidence rate and death induced by the disease. Commun. Math. Biol. Neurosci. (2020).
Darti, I. & Suryanto, A. Dynamics of a SIR epidemic model of childhood diseases with a saturated incidence rate: Continuous model and its nonstandard finite difference discretization. Mathematics 8(9), 1459 (2020).
Shabbir, M. S., Din, Q., Safeer, M., Khan, M. A. & Ahmad, K. A dynamically consistent nonstandard finite difference scheme for a predator-prey model. Adv. Differ. Equ. 2019(1), 1–17 (2019).
Dang, Q. A. & Hoang, M. T. Complete global stability of a meta population model and its dynamically consistent discrete models. Qual. Theory Dyn. Syst. 18(2), 461–475 (2019).
Pachpatte, B. G. On the discrete generalizations of Gronwall’s inequality. J. Indian Math. Soc. 37, 147–156 (1973).
Clark, D. S. Short proof of a discrete Gronwall inequality. Discret. Appl. Math. 16(3), 279–281 (1987).
Dixon, J. & McKee, S. Weakly singular discrete Gronwall inequalities. Z. Angew. Math. Mech. 66(11), 535–544 (1986).
Brauer, F. & Castillo-Chavez, C. Mathematical models in population biology and epidemiology Vol. 2, 508 (Springer, New York, 2012).
Elaydi, S. An international to difference equation 3rd edn. (Springer- Verlag, 2005).
Jia, J. & Li, P. Global analysis of an SVEIR epidemic model with partial immunity. Math. Terna 8(8), 547–561 (2011).
Khatun, Z., Islam, M. S. & Ghosh, U. Mathematical modeling of hepatitis B virus infection incorporating immune responses. Sens. Int. 1, 100017 (2020).
Vaz, S. & Torres, D. F. M. A dynamically-consistent nonstandard finite difference scheme for the SICA model. Math. Biosci. Eng. 18(4), 4552–4571 (2021).
Author information
Authors and Affiliations
Contributions
I.U.K.: Conceptualization, Methodology, Software. S.M.: Writing, paper Original draft setting, Software A.S.: Reviewing and Editing, visualization S.L.: Reviewing and Editing, original draft preparation A.A.: Reviewing and Editing, visualization A.B.: Reviewing and Editing, visualization.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Khan, I.U., Mustafa, S., Shokri, A. et al. The stability analysis of a nonlinear mathematical model for typhoid fever disease. Sci Rep 13, 15284 (2023). https://doi.org/10.1038/s41598-023-42244-5
Received:
Accepted:
Published:
Version of record:
DOI: https://doi.org/10.1038/s41598-023-42244-5
This article is cited by
-
Mathematical modeling and dynamic analysis of dengue fever: examining economic and psychological impacts and forecasting disease trends through 2030—a case study of Nepal
Scientific Reports (2025)
-
Discussing the epidemiology of COVID-19 model with the effective numerical scheme
Scientific Reports (2025)
-
A stochastic neural network procedure for the nonlinear typhoid fever disease system
Network Modeling Analysis in Health Informatics and Bioinformatics (2025)
-
A non-linear mathematical model for typhoid fever transmission dynamics with medically hygienic compartment
Modeling Earth Systems and Environment (2024)







