Introduction

The discrete-time models or difference equations are more accurate to describe epidemics than the continuous-time models or ordinary differential equations because statistical data on epidemics is collected in discrete time. In addition, the numerical simulations of continuous-time models are obtained by discretizing the models or by using other methods proposed by Khan et al. in [13].

In the literature, many discrete models have been developed in order to understand disease transmission dynamics. Zhou et al. [4] formulated a discrete mathematical model to investigate the transmission of severe acute respiratory syndrome (SARS) and their simulation results match the statistical data well and indicate that early quarantine and a high quarantine rate are crucial to the control of SARS. Enatsu et al. [5] proposed a discrete \(SIR\) epidemic model with a class of nonlinear incidence rate and a distributed latent period by applying a variation of Euler Backward discretization. They proved that the global asymptotic stability of the equilibria is fully determined by the basic reproduction number \(R_{0}\) when the infection incidence rate has a suitable monotone property. Das et al. [6] proposed a discrete version of \(SI\) model with nonlinear incidence rate. They observed that the discrete system converges to a unique equilibrium point for certain effective transmission rate of the disease and beyond which stability of the system is disturbed. In [7], a simple discrete-time West Nile epidemic model is proposed and analysed. The derivation of this model is based on a continuous-time model proposed by Cruz-Pacheco et al. [8]. In [9], Jang and Elaydi formulated a discrete-time epidemic model with immigration of infectives which was obtained from the continuous-time model by using nonstandard discretization technique.

On the other hand, it is well known that the continuous model exhibits a threshold behavior such that the disease always cleared out from the population if the threshold parameter called the basic reproduction number is less than unity and the disease persist in the population if the basic reproduction number exceed unity. However, the corresponding discrete-time epidemic model exhibits more complex dynamical behaviors, such as flip bifurcation, Hopf bifurcation and chaos phenomenon [10, 11]. All the studies cited above are based on the discretization of the continuous epidemic models. Therefore, it is important to study the impact of the discretization on the dynamics of continuous models.

We consider the following continuous epidemic model with nonlinear incidence rate:

$$\begin{aligned} \begin{array}{ll} \dfrac{\mathrm{d}S}{\mathrm{d}t} &{} = \Lambda -\mu _{1}S-\dfrac{\beta SI}{1+\alpha I},\\ \\ \dfrac{\mathrm{d}I}{\mathrm{d}t} &{} = \dfrac{\beta SI}{1+\alpha I}-(\mu _{2}+\gamma )I,\\ \\ \dfrac{\mathrm{d}R}{\mathrm{d}t}&{}=\gamma I-\mu _{3}R,\end{array} \end{aligned}$$
(1)

where \(S,\,I\) and \(R\) denotes the susceptible, infectious and recovered classes, respectively. \(\Lambda \) is the recruitment rate of new individuals into the susceptible class. \(\mu _{1},\,\mu _{2}\) and \(\mu _{3}\) are positive constants representing the death rates in the susceptible, infectious and recovered class, respectively. The average time spent in class \(I\) before recovery is \({1}/{\gamma }\). \(\beta \) is the contact number and \(\alpha \) determines the level at which the force of infection saturates. Since, \(R\) does not appear in the first two equations, it is sufficient to analyze the behavior of solutions considering the first two equations of the system (1).

The basic reproduction number of system (1), denoted by \(R_{0}\) is given by

$$\begin{aligned} R_{0}=\frac{\Lambda \beta }{\mu _{1}(\mu _{2}+\gamma )}. \end{aligned}$$

System (1) always has a disease-free steady state \(E_{f}(S_{0}, 0)\) where \(S_{0}={\Lambda }/{\mu _{1}}\), and an endemic steady state \(E^{*}(S^{*}, I^{*})\) which exist when \(R_{0} > 1\), where

$$\begin{aligned} S^{*}=\frac{\Lambda \alpha +\mu _{2}+\gamma }{\beta +\alpha \mu _{1}}, \quad I^{*}=\frac{\Lambda \beta -\mu _{1}(\mu _{2}+\gamma )}{(\mu _{2}+\gamma )(\beta +\alpha \mu _{1})}=\frac{\mu _{1}(R_{0}-1)}{\beta +\alpha \mu _{1}}. \end{aligned}$$

In [12], a detailed analysis of the current model is presented. It is shown that if \(R_{0}<1\), then the disease-free equilibrium is globally asymptotically stable. If \(R_{0}>1\), then the disease-free equilibrium is unstable, the system is permanent, and there is an endemic equilibrium which is locally asymptotically stable. In [13], the author McCluskey showed that if \(R_{0}>1\), the endemic equilibrium is globally asymptotically stable, without any further conditions on the parameters. The generalization of the results presented in [12] and [13] is given by Hattaf et al. [14] by extending the work of [12] to more general incidence function. Moreover, the case when \(R_{0}=1\) is not discussed in [12] and [13], but in [14], Hattaf et al. proved that the disease-free equilibrium is globally asymptotically stable if \(R_{0}\le 1\).

The purpose of this paper is to study the impact of the discretization on the dynamics of the continuous model (1). First, we study the stability results for the discrete model obtained from (1) by applying forward Euler discretization. By using the linearization method, we establish the criteria on the local stability of the disease-free equilibrium and endemic equilibrium. Moreover, Hopf-bifurcation occurs in our discrete model which is not present in the continuous model (1). Secondly, we formulate another discrete model derived from (1) by the backward Euler discretization. By using the technique of Lyapunov functional we show that this discretization scheme preserves the global stability of both the disease-free and endemic equilibrium for the continuous model (1).

This paper is organized as follows. In the next section, we analyse the discrete model obtained by the forward Euler method. In “Analysis of the discrete model obtained by backward Euler method” section, we propose another discrete model derived from (1) by using the backward Euler method and a detailed stability analysis of the equilibria of this model is discussed. In “Numerical simulation” section, we present the numerical simulations to illustrate our theoretical results. Finally, we give a brief discussion of our results in “Conclusion and discussion” section.

Analysis of the discrete model obtained by forward Euler method

We discretize model (1) by using the forward Euler method, we obtain the following discrete model

$$\begin{aligned} \begin{array}{ll} S_{n+1} &{} = S_{n}+h\left( \Lambda -\mu _{1}S_{n}-\dfrac{\beta S_{n}I_{n}}{1+\alpha I_{n}}\right) ,\\ I_{n+1} &{} = I_{n}+h\left( \dfrac{\beta S_{n}I_{n}}{1+\alpha I_{n}}-(\mu _{2}+\gamma )I_{n}\right) , \end{array} \end{aligned}$$
(2)

where \(h>0\) is the step size and other parameters are same as in system (1).

The system (2) always has a disease-free fixed point \(E_{f}({\Lambda }/{\mu _{1}}, 0)\) and one endemic fixed point

$$\begin{aligned} E^{*}\left( \dfrac{\Lambda \alpha +\mu _{2}+\gamma }{\beta +\alpha \mu _{1}}, \dfrac{\mu _{1}(R_{0}-1)}{\beta +\alpha \mu _{1}} \right) . \end{aligned}$$
(3)

Now, we investigate the local behavior of the model around each of the above fixed points. The local stability analysis of the model can be studied by computing the variation matrix corresponding to each fixed point. The Jacobian matrix of the system (2) at an arbitrary point \(E(S,I)\) is given by

$$\begin{aligned} J(E)=\left( \begin{array}{cc} 1-h\mu _{1}-\dfrac{h\beta I}{1+\alpha I} &{} -\dfrac{h\beta S}{(1+\alpha I)^{2}} \\ \dfrac{h\beta I}{1+\alpha I} &{} 1+\dfrac{h\beta S}{(1+\alpha I)^{2}}-h(\mu _{2}+\gamma ) \\ \end{array} \right) \!. \end{aligned}$$

Let \(\lambda _{1}\) and \(\lambda _{2}\) be two eigenvalues of matrix \(J(E)\). We recall some definitions of topological types for a fixed point \(E(S,I)\):

(i):

\(E(S,I)\) is called a sink if \(|\lambda _{1}|<1\) and \(|\lambda _{2}|<1\), so the sink is locally asymptotically stable.

(ii):

\(E(S,I)\) is called a source if \(|\lambda _{1}|>1\) and \(|\lambda _{2}|>1\), so the source is locally unstable.

(iii):

\(E(S,I)\) is called a saddle if \(|\lambda _{1}|<1\) and \(|\lambda _{2}|>1\) (or \(|\lambda _{1}|>1\) and \(|\lambda _{2}|<1\)).

(iv):

\(E(S,I)\) is non-hyperbolic if either \(|\lambda _{1}|=1\) or \(|\lambda _{2}|=1\).

Stability of Disease-Free Equilibrium

The Jacobian matrix of model (2) at \(E_{f}({\Lambda }/{\mu _{1}}, 0)\) is

$$\begin{aligned} J(E_{f})=\left( \begin{array}{cc} 1-h\mu _{1} &{} -h(\mu _{2}+\gamma )R_{0} \\ 0 &{} 1+h(\mu _{2}+\gamma )(R_{0}-1) \\ \end{array} \right) . \end{aligned}$$

The two eigenvalues of \(J(E_{f})\) are \(\lambda _{1}=1-h\mu _{1}\) and \(\lambda _{2}=1+h(\mu _{2}+\gamma )(R_{0}-1)\). We can immediately obtain the following result.

Theorem 2.1

(i):

\(E_{f}\) is asymptotically stable if and only if

$$\begin{aligned} h<\min \left\{ \dfrac{2}{\mu _{1}},\dfrac{2}{(\mu _{2}+\gamma )(1-R_{0})}\right\} \quad and \quad R_{0}<1. \end{aligned}$$
(4)
(ii):

\(E_{f}\) is unstable if and only if

$$\begin{aligned} h>\min \left\{ \dfrac{2}{\mu _{1}},\dfrac{2}{(\mu _{2}+\gamma )(1-R_{0})}\right\} \quad and \quad R_{0}<1 \quad or \quad R_{0}>1. \end{aligned}$$
(5)
(iii):

\(E_{f}\) is non-hyperbolic if and only if

$$\begin{aligned} h=\dfrac{2}{\mu _{1}} \quad or \quad h=\dfrac{2}{(\mu _{2}+\gamma )(1-R_{0})} \quad and \quad R_{0}<1 \quad or \quad R_{0}=1. \end{aligned}$$
(6)

Stability of Endemic Equilibrium

In this subsection, we discuss the stability of endemic equilibrium \(E^{*}\).

The characteristic equation of Jacobian matrix \(J(E^{*})\) is

$$\begin{aligned} P(\lambda )=\lambda ^{2}+a_{1}\lambda +a_{2}=0, \end{aligned}$$
(7)

where

$$\begin{aligned} a_{1}&= h(\mu _{1}+\mu _{2}+\gamma +p-q)-2, \\ a_{2}&= 1-h(\mu _{1}+\mu _{2}+\gamma +p-q)+h^{2}\big ((\mu _{1}+p)(\mu _{2}+\gamma )-q\mu _{1}\big ), \end{aligned}$$

with

$$\begin{aligned} p=\dfrac{\beta I^{*}}{1+\alpha I^{*}}=\dfrac{\beta \mu _{1}(R_{0}-1)}{\beta +\alpha \mu _{1}R_{0}} \quad and \quad q=\dfrac{\beta S^{*}}{(1+\alpha I^{*})^{2}}=\dfrac{(\mu _{2}+\gamma )(\beta +\alpha \mu _{1})}{\beta +\alpha \mu _{1}R_{0}}. \end{aligned}$$
(8)

Theorem 2.2

Assume that \(R_{0}>1\). \(E^{*}\) is asymptotically stable if the following conditions are satisfied:

(i):

\(4+h^{2}(\mu _{2}+\gamma )(\mu _{1}+p)+2hq>2h(\mu _{1}+\mu _{2}+\gamma +p)+h^{2}\mu _{1}q.\)

(ii):

\(h<\dfrac{\mu _{1}+\mu _{2}+\gamma +p-q}{(\mu _{2}+\gamma )(\mu _{1}+p)-q\mu _{1}}.\)

Proof

From the Schur–Cohn criterion [15], the zeros of the characteristic polynomial (7) lie inside the unit disk if and only if

$$\begin{aligned} P(1)&= 1+a_{1}+a_{2}>0, \end{aligned}$$
(9)
$$\begin{aligned} P(-1)&= 1-a_{1}+a_{2}>0, \end{aligned}$$
(10)
$$\begin{aligned} 1-a_{2}&> 0. \end{aligned}$$
(11)

We have

$$\begin{aligned} 1+a_{1}+a_{2}&= h^{2}(\mu _{2}+\gamma )(\mu _{1}+p)-h^{2}\mu _{1}q, \end{aligned}$$
(12)
$$\begin{aligned} 1-a_{1}+a_{2}&= 4+h^{2}(\mu _{2}+\gamma )(\mu _{1}+p)+2hq-2h(\mu _{1}+\mu _{2}+\gamma +p)-h^{2}\mu _{1}q,\nonumber \\ \end{aligned}$$
(13)
$$\begin{aligned} 1-a_{2}&= h(\mu _{1}+\mu _{2}+\gamma +p)+h^{2}q\mu _{1}-h^{2}(\mu _{2}+\gamma )(\mu _{1}+p)-hq. \end{aligned}$$
(14)

It is easy to verify that \(1+a_{1}+a_{2}>0\) when \(R_{0}>1\). Hence, \(E^{*}\) is asymptotically stable if the conditions (i) and (ii) are satisfied. \(\square \)

Analysis of the Discrete Model Obtained by Backward Euler Method

Now, we discretize model (1) by using the backward Euler method. Then, we obtain the following discrete model

$$\begin{aligned} \begin{array}{ll} S_{n+1} &{} = S_{n}+h\left( \Lambda -\mu _{1}S_{n+1}-\dfrac{\beta S_{n+1}I_{n}}{1+\alpha I_{n}}\right) ,\\ I_{n+1} &{} = I_{n}+h\left( \dfrac{\beta S_{n+1}I_{n}}{1+\alpha I_{n}}-(\mu _{2}+\gamma )I_{n+1}\right) , \end{array} \end{aligned}$$
(15)

The system (15) always has a disease-free fixed point \(E_{f}({\Lambda }/{\mu _{1}}, 0)\) and one endemic fixed point

$$\begin{aligned} E^{*}\left( \dfrac{\Lambda \alpha +\mu _{2}+\gamma }{\beta +\alpha \mu _{1}}, \dfrac{\mu _{1}(R_{0}-1)}{\beta +\alpha \mu _{1}} \right) . \end{aligned}$$
(16)

Stability of Disease-Free Equilibrium

For an arbitrary equilibrium \(E(S,I)\), the characteristic equation is given by

$$\begin{aligned} \left| \begin{array}{cc} \displaystyle \dfrac{1+\alpha I}{(1\!+\!\alpha I)(1\!+\!h\mu _{1})\!+\!h\beta I}-\lambda &{} -\dfrac{h\beta (S\!+\!h\Lambda )}{\big ((1+\alpha I)(1\!+\!h\mu _{1})\!+\!h\beta I\big )^{2}} \\ \displaystyle \dfrac{h\beta I}{\big ((1+h(\mu _{2}+\gamma )\big )\big ((1+\alpha I)(1\!+\!h\mu _{1})\!+\!h\beta I\big )}&{}\dfrac{1}{1\!+\!h(\mu _{2}+\gamma )}\left[ 1\!+\! \dfrac{h\beta (1\!+\!h\mu _{1})(S\!+\!h\Lambda )}{\big ((1+\alpha I)(1\!+\!h\mu _{1})\!+\!h\beta I\big )^{2}}\right] -\lambda \nonumber \\ \end{array} \right| \!=\!0.\\ \end{aligned}$$
(17)

The characterization of the local stability of the disease-free equilibrium is given by the following theorem.

Theorem 3.1

  • If \(R_{0}<1\), then \(E_{f}\) is locally asymptotically stable.

  • If \(R_{0}>1\), then \(E_{f}\) is unstable.

Proof

At \(E_{f}\), (17) reduces to

$$\begin{aligned} \left( \frac{1}{1+h\mu _{1}}-\lambda \right) \left( \frac{1+hR_{0}(\mu _{2}+\gamma )}{1+h(\mu _{2}+\gamma )}-\lambda \right) =0. \end{aligned}$$
(18)

Clearly,

$$\begin{aligned} \lambda _{1}=\dfrac{1}{1+h\mu _{1}} \quad \hbox {and} \quad \lambda _{2}=\dfrac{1+hR_{0}(\mu _{2}+\gamma )}{1+h(\mu _{2}+\gamma )} \end{aligned}$$
(19)

are the roots of this equation. We have, \(0<\lambda _{1}<1\) and \(0<\lambda _{2}<1 \) if \(R_{0}<1\). Then \(E_{f}\) is locally asymptotically stable when \(R_{0}<1\).

On the other hand, it easy to show that \(\lambda _{2}>1\) when \(R_{0} > 1\). Then \(E_{f}\) is unstable. This proves the theorem. \(\square \)

Theorem 3.1 only establishes local stability of \(E_{f}\). However, the following theorem establishes the global asymptotic stability of the disease-free equilibrium.

Theorem 3.2

If \(R_{0} \le 1\), the disease-free equilibrium \(E_{f}\) is globally asymptotically stable.

Proof

Consider the following sequence \(\{V(n)\}_{n=0}^{+\infty }\) defined by

$$\begin{aligned} V(n)&= S_{0}g\left( \frac{S_{n}}{S_{0}}\right) +I_{n}+\frac{h\beta S_{0}I_{n}}{1+\alpha I_{n}}, \end{aligned}$$

where \(S_{0}={\Lambda }/{\mu _{1}}\) and \(g(x)=x-1-\ln x,\,x \in {\mathbb {R}}^{+}\). Obviously, \(g :{\mathbb {R}}^{+}\rightarrow {\mathbb {R}}^{+}\) attains its strict global minimum at \(x=1\) and \(g(1)= 0\).

$$\begin{aligned} V(n+1)-V(n)&= S_{n+1}-S_{n}+S_{0}\ln \left( \frac{S_{n}}{S_{n+1}}\right) + I_{n+1}-I_{n}+\frac{h\beta S_{0}I_{n+1}}{1+\alpha I_{n+1}}-\frac{h\beta S_{0}I_{n}}{1+\alpha I_{n}} \end{aligned}$$

From \(\ln x\le x-1\), we have

$$\begin{aligned} V(n+1)-V(n)&\le \left( 1-\frac{S_{0}}{S_{n+1}}\right) (S_{n+1}-S_{n})+ I_{n+1}-I_{n}+\frac{h\beta S_{0}I_{n+1}}{1+\alpha I_{n+1}}-\frac{h\beta S_{0}I_{n}}{1+\alpha I_{n}} \\&= \left( 1-\frac{S_{0}}{S_{n+1}}\right) h\left( \Lambda -\mu _{1}S_{n+1}-\dfrac{\beta S_{n+1}I_{n}}{1+\alpha I_{n}}\right) \\&+\,h\left( \dfrac{\beta S_{n+1}I_{n}}{1+\alpha I_{n}}-(\mu _{2}+\gamma )I_{n+1}\right) +\frac{h\beta S_{0}I_{n+1}}{1+\alpha I_{n+1}}-\frac{h\beta S_{0}I_{n}}{1+\alpha I_{n}}\\&= -h\mu _{1}S_{n+1}\left( 1-\frac{S_{0}}{S_{n+1}}\right) ^{2}+h(\mu _{2}+\gamma )I_{n+1}\left( \frac{R_{0}}{1+\alpha I_{n+1}}-1\right) \\&\le -h\mu _{1}S_{n+1}\left( 1-\frac{S_{0}}{S_{n+1}}\right) ^{2}+h(\mu _{2}+\gamma )I_{n+1}(R_{0}-1). \end{aligned}$$

Since \(R_{0}\le 1\), we have \(V(n+1)-V(n)\le 0\) for any \(n\ge 0\). Then, \(V(n)\) is monotone decreasing sequence. Since \(V(n)\ge 0\), there is a limit \(\lim _{n\rightarrow +\infty }V(n)\ge 0\). Hence \(\lim _{n\rightarrow +\infty }\big (V(n+1)-V(n)\big )=0\), from which we get \(\lim _{n\rightarrow +\infty }S_{n+1}=S_{0}\) and \(\lim _{n\rightarrow +\infty }\big (I_{n+1}(R_{0}-1)\big )=0\). We will discuss the following two cases:

  • If \(R_{0}<1\), then \(\lim _{n\rightarrow +\infty }I_{n+1}=0\).

  • If \(R_{0}=1\). From \(\lim _{n\rightarrow +\infty }S_{n}=S_{0}\) and the first equation of (15), we have

    $$\begin{aligned} \lim _{n\rightarrow +\infty }I_{n}=0. \end{aligned}$$

By the above discussion, we conclude that \(E_{f}\) is globally asymptotically stable.\(\square \)

Stability of Endemic Equilibrium

Note that the disease-free equilibrium \(E_{f}\) is unstable when \(R_{0}>1\). Now, we establish the global stability of the endemic equilibrium \(E^{*}\).

Theorem 3.3

Assume \(R_{0}>1\). Then the endemic equilibrium \(E^{*}\) is globally asymptotically stable.

Proof

By using a Lyapunov functional for the continuous-time model (1), McCluskey [13] proved that the endemic equilibrium of (1) is globally asymptotically stable if \(R_{0}>1\). In order to prove the global stability of the endemic equilibrium for the discrete-time model (15), we consider the following sequence \(\{W(n)\}_{n=0}^{+\infty }\) defined by

$$\begin{aligned} W(n)&= \frac{1}{h\beta f(I^{*})}g\bigg (\frac{S_{n}}{S^{*}}\bigg )+\frac{I^{*}}{h\beta S^{*}f(I^{*})}g\bigg (\frac{I_{n}}{I^{*}}\bigg ) +g\bigg (\frac{f(I_{n})}{f(I^{*})}\bigg ), \end{aligned}$$

where \(f(x)={x}/({1+\alpha x})\). We have

$$\begin{aligned} W(n+1)- W(n)&= \frac{1}{h\beta f(I^{*})}\left( \frac{S_{n+1}-S_{n}}{S^{*}}+\ln \left( \frac{S_{n}}{S_{n+1}}\right) \right) \\&+\,\frac{I^{*}}{h\beta S^{*}f(I^{*})}\left( \frac{I_{n+1}-I_{n}}{I^{*}}+\ln \left( \frac{I_{n}}{I_{n+1}}\right) \right) \\&+\,g\left( \frac{f(I_{n+1})}{f(I^{*})}\right) -g\left( \frac{f(I_{n})}{f(I^{*})}\right) \\&\le \frac{1}{h\beta S^{*}f(I^{*})}\left( 1-\frac{S^{*}}{S_{n+1}}\right) (S_{n+1}-S_{n})\\&\!+\,\frac{1}{h\beta S^{*}f(I^{*})}\left( 1\!-\!\frac{I^{*}}{I_{n+1}}\right) (I_{n+1}\!-\!I_{n}) \!+\!g\left( \frac{f(I_{n+1})}{f(I^{*})}\right) \!-\!g\left( \frac{f(I_{n})}{f(I^{*})}\right) \\&= \frac{1}{\beta S^{*}f(I^{*})}\left( 1-\frac{S^{*}}{S_{n+1}}\right) \bigg (\Lambda -\mu _{1}S_{n+1}-\dfrac{\beta S_{n+1}I_{n}}{1+\alpha I_{n}}\bigg )\\&+\,\frac{1}{\beta S^{*}f(I^{*})}\left( 1-\frac{I^{*}}{I_{n+1}}\right) \left( \dfrac{\beta S_{n+1}I_{n}}{1+\alpha I_{n}}-(\mu _{2}+\gamma )I_{n+1}\right) \\&+\,g\left( \frac{f(I_{n+1})}{f(I^{*})}\right) -g\left( \frac{f(I_{n})}{f(I^{*})}\right) \end{aligned}$$

Note that \(\Lambda =\mu _{1}S^{*}+\beta S^{*}f(I^{*})\) and \((\mu _{2}+\gamma )I^{*}=\beta S^{*}f(I^{*})\).

Hence,

$$\begin{aligned} W(n+1)-W(n)&\le -\frac{\mu _{1}(S_{n+1}-S^{*})^{2}}{\beta S^{*}f(I^{*})S_{n+1}}+\bigg (1-\frac{S^{*}}{S_{n+1}}\bigg ) \bigg (1-\frac{S_{n+1}}{S^{*}}\frac{f(I_{n})}{f(I^{*})}\bigg )\\&\!+\,\bigg (1-\frac{I^{*}}{I_{n+1}}\bigg )\bigg (\frac{S_{n+1}}{S^{*}}\frac{f(I_{n})}{f(I^{*})}\!-\!\frac{I_{n+1}}{I^{*}}\bigg ) +g\bigg (\frac{f(I_{n+1})}{f(I^{*})}\bigg )-g\bigg (\frac{f(I_{n})}{f(I^{*})}\bigg )\\&= -\frac{\mu _{1}(S_{n+1}-S^{*})^{2}}{\beta S^{*}f(I^{*})S_{n+1}}+3-\frac{S^{*}}{S_{n+1}} -\frac{I_{n+1}}{I^{*}}-\frac{I^{*}}{I_{n+1}}\frac{S_{n+1}}{S^{*}}\frac{f(I_{n})}{f(I^{*})}\\&+\,\ln \bigg (\frac{f(I_{n})}{f(I^{*})}\bigg )+g\bigg (\frac{f(I_{n+1})}{f(I^{*})}\bigg )\\&= -\frac{\mu _{1}(S_{n+1}-S^{*})^{2}}{\beta S^{*}f(I^{*})S_{n+1}} -g\bigg (\frac{S^{*}}{S_{n+1}}\bigg )-g\bigg (\frac{I^{*}}{I_{n+1}}\frac{S_{n+1}}{S^{*}}\frac{f(I_{n})}{f(I^{*})}\bigg )\\&+\,\frac{f(I_{n+1})}{f(I^{*})}-\frac{I_{n+1}}{I^{*}}+\ln \bigg (\frac{I_{n+1}}{I^{*}}\frac{f(I^{*})}{f(I_{n+1})}\bigg ) \end{aligned}$$

We have

$$\begin{aligned} \frac{f(I_{n+1})}{f(I^{*})}-\frac{I_{n+1}}{I^{*}}+\ln \bigg (\frac{I_{n+1}}{I^{*}}\frac{f(I^{*})}{f(I_{n+1})}\bigg )&\le \frac{f(I_{n+1})}{f(I^{*})}-\frac{I_{n+1}}{I^{*}}+\frac{I_{n+1}}{I^{*}}\frac{f(I^{*})}{f(I_{n+1})}-1 \\&= \bigg (1-\frac{f(I_{n+1})}{f(I^{*})}\bigg )\bigg (\frac{I_{n+1}}{I^{*}}\frac{f(I^{*})}{f(I_{n+1})}-1\bigg )\\&= -\frac{\alpha (I_{n+1}-I^{*})^{2}}{I^{*}(1+\alpha I^{*})(1+\alpha I_{n+1})}. \end{aligned}$$

Hence

$$\begin{aligned} W(n+1)- W(n)&\le -\frac{\mu _{1}(S_{n+1}-S^{*})^{2}}{\beta S^{*}f(I^{*})S_{n+1}}-\frac{\alpha (I_{n+1}-I^{*})^{2}}{I^{*}(1+\alpha I^{*})(1+\alpha I_{n+1})} -g\bigg (\frac{S^{*}}{S_{n+1}}\bigg )\\&-g\bigg (\frac{I^{*}}{I_{n+1}}\frac{S_{n+1}}{S^{*}}\frac{f(I_{n})}{f(I^{*})}\bigg ). \end{aligned}$$

Consequently, \(W(n+1)-W(n)\le 0\) for any \(n\ge 0\). Then, \(W(n)\) is monotone decreasing sequence. Since \(W(n)\ge 0\), there is a limit \(\lim _{n\rightarrow +\infty }W(n)\ge 0\). Hence \(\lim _{n\rightarrow +\infty }\big (W(n+1)-W(n)\big )=0\), from which we get \(\lim _{n\rightarrow +\infty }S_{n+1}=S^{*}\) and \(\lim _{n\rightarrow +\infty }I_{n+1}=I^{*}\). This completes the proof of the theorem. \(\square \)

Numerical Simulation

In this section, we present the numerical simulations to illustrate our theoretical results. We use the following data set: \(\Lambda =4.45,\,\mu _{1}=0.5,\,\mu _{2}=0.2,\,\beta =0.5,\,\gamma =0.5\) and \(\alpha =0.01\). The equilibria of two discrete models (2) and (15) are: \(E_{f}( 8.9,0)\) and \(E^{*}(1.4075,5.3518)\). By calculation, we have \(R_{0}=6.3571\). Hence the disease-free equilibrium \(E_{f}\) is unstable. Now we choose \(h= 0.9091\) which represent the step size of discretization. It is easy to verify that the first condition of Theorem 2.2 is not satisfied. In this case, periodic solutions of model (2) arise due to Hopf bifurcation which is shown in Fig. 1. However, all solutions of model (15) converge to \(E^{*}\) which is globally asymptotically stable (see Fig. 2).

Fig. 1
figure 1

This figure illustrates trajectories of system (2) for \(\Lambda =4.45,\;\mu _{1}=0.5,\; \mu _{2}=0.2,\;\beta =0.5,\;\gamma =0.5,\; \alpha =0.01\)

Fig. 2
figure 2

This figure illustrates trajectories of system (15) for \(\Lambda =4.45,\;\mu _{1}=0.5,\; \mu _{2}=0.2,\;\beta =0.5,\;\gamma =0.5,\; \alpha =0.01\)

In Fig. 3, we show that there exists a \(h^{*}>0\) such as if \(h\in (0,h^{*})\), then endemic equilibrium \(E^{*}\) of model (2) is locally asymptotically stable, and when \(h>h^{*}\), we obtain that \(E^{*}\) loses stability and there appears Hopf bifurcation and chaos phenomenon in model (2). Whereas, the endemic equilibrium \(E^{*}\) of model (15) is globally asymptotically stable independent of the time step size \(h\) (see Fig. 4).

Fig. 3
figure 3

The dynamical behaviors of \(S-h\) and \(I-h\) for model (2) with \(\Lambda =4.45,\;\mu _{1}=0.5,\; \mu _{2}=0.2,\;\beta =0.5,\;\gamma =0.5,\; \alpha =0.01\)

Fig. 4
figure 4

The dynamical behaviors of \(S-h\) and \(I-h\) for model (15) with \(\Lambda =4.45,\;\mu _{1}=0.5,\; \mu _{2}=0.2,\;\beta =0.5,\;\gamma =0.5,\; \alpha =0.01\)

Conclusion and Discussion

In this work, we have proposed and analyzed two discrete epidemic models with nonlinear incidence rate which are derived from the continuous case by applying forward and backward Euler methods. We have proved that the equilibria of the continuous-time and discrete-time models are the same. Moreover, we have established the local stability of these equilibria if we choose forward Euler discretization. This local stability of the equilibria is only obtained for a small time step size and under certain restrictions on the parameter values. The numerical simulations given in “Numerical simulation” section show that along with time step size \(h\) increase the stability properties of the endemic equilibrium will lose and Hopf-bifurcation occurs in our discrete model which is not present in the continuous case.

For the discrete epidemic model obtained by backward Euler discretization, we have established the global asymptotic stability of the disease-free equilibrium and the endemic equilibrium by using suitable Lyapunov functionals. We have shown that the disease-free equilibrium, \(E_{f}\), is globally asymptotically stable if the basic reproduction number satisfies \(R_0\le 1\). In this case, all positive solutions converge to \(E_{f}\) and the disease is unable to maintain the infection and will go extinct. When \(R_0>1,\,E_{f}\) becomes unstable and there appears an endemic equilibrium \(E^{*}\) which is globally asymptotically stable independent of the time step size \(h\). In this case, all positive solutions converge to \(E^{*}\) and the disease persist in the population. Then, the solutions are not periodic.

From our theoretical and numerical results, we conclude that the discretization can cause periodic oscillations if we consider the forward Euler method. Whereas, the backward Euler method preserves the global asymptotic stability of equilibria.