1 Introduction

As is well known, in the study of epidemic theory, mathematical models have been widely used to detect the stability, periodicity, extinction, permanence, bifurcations, and more complex dynamical behaviors of the diseases (see, for example, [120] and the references cited therein). There are two kinds of mathematical models to detect the dynamical behaviors of the diseases: the continuous-time models described by differential equations and the discrete-time models described by difference equations. Recently, discrete-time epidemic models have received more and more attention (see, for example, [1133] and the references cited therein). The detailed reasons can be found in [33].

Usually, in the study of disease spreading, the population is classified into three types of individuals: susceptible individuals (S), infective individuals (I), and recovered individuals (R). The basic epidemic models are as follows: SI models (the disease is difficult to cure); \({SIS}\) models (the disease can be cured); \({SIR}\) models (the disease is cured with lifelong immunity), and \({SIRS}\) models (the disease is cured with temporary immunity). However, lots of diseases have temporary immunity, such as influenza, pertussis, gonorrhoea, and so on. Therefore, the \({SIRS}\) epidemic models are important and significant for detecting the pathogenesis, spreading, and controlling of the epidemics.

The following continuous-time \({SIRS}\) epidemic model with standard incidence rate is considered:

$$\begin{aligned}& \dot{S}(t)= A-d_{1}S-\lambda\frac{SI}{S+I+R} +\sigma R, \\& \dot{I}(t)= \lambda\frac{SI}{S+I+R}-(d_{2}+\gamma)I, \\& \dot{R}(t)= \gamma I-(d_{3}+\sigma) R, \end{aligned}$$
(1)

which has been studied in [34], where \(S(t)\), \(I(t)\), and \(R(t)\) denote the numbers of susceptible, infective, and recovered individuals at time t, respectively. A is the recruitment rate of the population, \(d_{i}\) (\(i=1,2,3\)) is the death rate of \(S(t)\), \(I(t)\), and \(R(t)\), respectively. λ is the adequate contact rate, γ is the recovery rate of the infective individuals, σ is the rate by which the recovered individuals become susceptible again. For the model (1), the authors showed that when the basic reproduction number \(\Re_{0}=\frac{\lambda}{d_{2}+\gamma}<1\), then the disease-free equilibrium \(E_{0}\) is a globally asymptotically stable, endemic equilibrium and \(E^{*}\) does not exist; and when the basic reproduction number \(\Re_{0}>1\), then the disease-free equilibrium \(E_{0}\) is unstable, and the endemic equilibrium \(E^{*}\) is locally asymptotically stable [34].

In [33], by using the forward Euler scheme we discretized model (1) into the following \(SIRS\) epidemic model with standard incidence rate:

$$ \left \{ \textstyle\begin{array}{l} S_{n+1}= S_{n}+h[A-d_{1}S_{n}-\lambda\frac{S_{n}I_{n}}{S_{n}+I_{n}+R_{n}}+\sigma R_{n}], \\ I_{n+1}= I_{n}+h[\lambda\frac{S_{n}I_{n}}{S_{n}+I_{n}+R_{n}}-(d_{2}+\gamma)I_{n}], \\ R_{n+1}= R_{n}+h[\gamma I_{n}-(d_{3}+\sigma)R_{n}], \end{array}\displaystyle \right . $$
(2)

where parameters A, \(d_{i}\) (\(i=1,2,3\)), λ, σ, and γ are given as in model (1), and h is the time step size.

From the above process of discretization, we can imagine that, when the time step size h is small enough, the properties of the stability of model (2) should be the same as that of model (1). There will appear an important and interesting problem for model (2): whether there exists a critical value \(h^{*}\), such that when \(0< h< h^{*}\), if the basic reproduction number \(\Re_{0}=\frac{\lambda}{d_{2}+\gamma}<1\), then the disease-free equilibrium \(E_{0}\) is globally asymptotically stable. And if \(\Re_{0}>1\), then \(E_{0}\) is unstable, while the endemic equilibrium \(E^{*}\) exists and is locally asymptotically stable.

The local stability of the disease-free equilibrium and endemic equilibrium for discrete-time \({SIRS}\) epidemic models with general nonlinear incidence rates was first studied in [33]. As an application of the main results, in [33] for model (2) the authors showed that there is a constant \(h^{*}>0\) such that when \(h\in(0,h^{*})\) if the basic reproduction number \(\Re _{0}=\frac{\lambda}{d_{2}+\gamma}<1\), then the disease-free equilibrium \(E_{0}\) is locally asymptotically stable, and if \(\Re_{0}>1\), then the disease-free equilibrium \(E_{0}\) is unstable, the endemic equilibrium \(E^{*}\) is locally asymptotically stable (see Corollary 2 in [33]). Further, the numerical simulations in [33] show that when \(\Re _{0}>1\) and \(h>h^{*}\), the dynamical behavior of discrete-time model (2) is more complex than the corresponding continuous-time model (1). Moreover, the permanence and extinction of the disease for model (2) are obtained in [35].

However, the study of the complex dynamical behaviors of model (2), especially the Hopf bifurcation, also is very important for the transmission and controlling of the disease. We note that the investigations on the complex dynamical behaviors of model (2) are still unclear. In particular, the studies on the existence, stability, and direction of the Hopf bifurcation are only based on numerical simulations.

Therefore, in this study, the time step size h is chosen as a bifurcation parameter to study the existence of Hopf bifurcation for model (2) by using the normal form method and the bifurcation theory. Finally, we present numerical simulations to illustrate our results, and actualize the Hopf bifurcation and complex dynamical behaviors of model (2). Most importantly, the adequate contact rate λ and the death rate \(d_{2}\) of the infective individuals are chosen as the bifurcation parameters and the numerical simulations give the Hopf bifurcation, flip bifurcation, chaos, and strange attractors for model (2).

The organization of this paper is as follows. In Section 2, as preliminaries, we introduce the results obtained in [33] on the existence and local stability of equilibria of model (2). In Section 3, the existence and direction of a Hopf bifurcation of model (2) are discussed. Section 4 presents the numerical simulations, which not only illustrate the theoretical results but also exhibit the complex dynamical behaviors such as the invariant cycle, more than one strange attractors, and chaotic sets. Finally, in Section 5 we give a discussion.

2 Local stability of equilibria

The basic reproductive rate for model (2) is \(\Re_{0}=\frac{\lambda }{d_{2}+\gamma}\), which denotes the average number of secondary infections generated by an initial population of infected individuals over their lifetimes. Now, on the existence of the nonnegative equilibria of model (2), in [33] we have established the following result.

Theorem 1

  1. (1)

    Model (2) always has a disease-free equilibrium \(E_{0}(\frac{A}{d_{1}},0,0)\).

  2. (2)

    If the basic reproductive rate \(\Re_{0}>1\), then model (2) also has an endemic equilibrium \(E^{*}(S^{*},I^{*},R^{*})\), where

    $$\left \{ \textstyle\begin{array}{l} S^{*}= \frac{(d_{2}+r)(\gamma+d_{3}+\sigma)}{(d_{3}+\sigma)(\lambda-d_{2}-\gamma )}I^{*}, \\ R^{*}= \frac{\gamma}{d_{3}+\sigma}I^{*}, \\ I^{*}= \frac{(d_{3}+\sigma)(\lambda-d_{2}-\gamma)}{d_{1}(d_{2}+\gamma)(\gamma +d_{3}+\sigma) +(\lambda-d_{2}-\gamma)(d_{2}d_{3}+d_{2}\sigma+d_{3}\gamma)}. \end{array}\displaystyle \right . $$

Obviously, model (2) is a special model in [33] when the disease incidence rate \(g(S,I,R)=\lambda\frac{SI}{S+I+R}\). Then the results about the local stability of disease-free equilibrium \(E_{0}(\frac {A}{d_{1}},0,0)\) and the endemic equilibrium \(E^{*}(S^{*}, I^{*}, R^{*})\) are the same as in Theorems 2 and 3 in [33], respectively. We omit them in this study, avoiding a repetition.

For detecting the bifurcation of model (2), we know that when the disease-free equilibrium \(E_{0}(\frac{A}{d_{1}},0,0)\) and the endemic equilibrium \(E^{*}(S^{*},I^{*},R^{*})\) are non-hyperbolic, there will exist bifurcation and complex dynamical behaviors for the two equilibria, respectively. In Section 3, we choose the time step size h as a bifurcation parameter to detect the existence, stability, and bifurcation direction for the Hopf bifurcation by the normal form theorem and bifurcation theory. In Section 4, the numerical simulations are discussed to illustrate our results about the bifurcation and complex dynamical behaviors.

3 Analysis of Hopf bifurcation

In this section, for a function \(f(x_{1},x_{2},\ldots, x_{n})\), we denote by \(f_{x_{i}}\), \(f_{x_{i}x_{j}}\) and \(f_{x_{i}x_{j}x_{k}}\) the first order partial derivative, the second order partial derivative, and the third order partial derivative of \(f(x_{1},x_{2}, \ldots, x_{n})\) with respect to \(x_{i}\), \(x_{j}\), and \(x_{k}\), respectively.

For the endemic equilibrium \(E^{*}(S^{*},I^{*}, R^{*})\), the corresponding characteristic equation of the Jacobian matrix \(J(E^{*})\) can be written as

$$ F(w)=w^{3}+b_{1}(h)w^{2}+b_{2}(h)w+b_{3}(h)=0, $$
(3)

where

$$\begin{aligned}& b_{1}(h)=-3-h(a_{2}-a_{1}-\gamma- \sigma-d_{1}-d_{2}-d_{3}), \\& b_{2}(h)= 3+2h(a_{2}-\gamma-\sigma-d_{2}-d_{3}-a_{1}-d_{1})+h^{2} \bigl[(a_{1}a_{2}+a_{3}\gamma) \\& \hphantom{b_{2}(h)={}}{}- (\sigma+d_{3}) (a_{2}- \gamma-d_{2})-(a_{1}+d_{1}) (a_{2}- \gamma-\sigma-d_{2}-d_{3})\bigr], \\& b_{3}(h) = -1+h(a_{1}+\gamma+d_{1}+d_{2}+d_{3}+ \sigma-a_{2}) \\& \hphantom{b_{3}(h) ={}}{}+ h^{2}\bigl[-a_{3}\gamma-a_{1}a_{2}+(d_{3}+ \sigma) (a_{2}-\gamma-d_{2}) \\& \hphantom{b_{3}(h) ={}}{}+(a_{1}+d_{1}) (a_{2}-\gamma- \sigma-d_{2}-d_{3})\bigr] \\& \hphantom{b_{3}(h) ={}}{}+ h^{3}\bigl[a_{3}\gamma (a_{1}+d_{1})-(a_{1}+d_{1}) (d_{3}+\sigma) (a_{2}-\gamma-d_{2}) \\& \hphantom{b_{3}(h) ={}}{}+a_{1}a_{2}(d_{3}+ \sigma)-a_{1}\gamma(a_{3}+\sigma)\bigr], \end{aligned}$$

and

$$a_{1}=\frac{\lambda I^{*}( I^{*}+R^{*})}{( S^{*}+ I^{*}+R^{*})^{2}},\qquad a_{2}=\frac{\lambda S^{*}( S^{*}+R^{*})}{( S^{*}+ I^{*}+R^{*})^{2}}, \qquad a_{3}=\frac{\lambda S^{*}I^{*}}{( S^{*}+ I^{*}+R^{*})^{2}}. $$

Let

$$\overline{A}=b_{1}^{2}-3b_{2},\qquad \overline{B}=b_{1}b_{2}-9b_{3},\qquad \overline{C}=b_{2}^{2}-3b_{1}b_{3}, $$

and

$$\Delta=\overline{B}^{2}-4\overline{AC}. $$

We choose the parameters A, \(d_{1}\), λ, σ, \(d_{2}\), γ, \(d_{3}\), h satisfying \(\Delta>0\) and the conjugate complex roots \(w_{2,3}\) with the modules equal to one, that is, the case (I) in condition (4) of Theorem 3 in [33]. Then there appears a Hopf bifurcation from the endemic equilibrium \(E^{*}(S^{*},I^{*}, R^{*})\) of model (2).

Now, the existence, stability, and bifurcation direction of the Hopf bifurcation are detected by the normal form theorem and bifurcation theory. First of all, the existence of a Hopf bifurcation is computed by bifurcation theory. The step size h is chosen as the bifurcation value, which is denoted by \(h^{*}\). Giving \(h^{*}\) a perturbation \(h^{**}\), model (2) is described by

$$ \left \{ \textstyle\begin{array}{l} S_{n+1}= S_{n}+(h^{*}+h^{**})[A-d_{1}S_{n}-\lambda\frac {S_{n}I_{n}}{S_{n}+I_{n}+R_{n}}+\sigma R_{n}], \\ I_{n+1}= I_{n}+(h^{*}+h^{**})[\lambda\frac{S_{n}I_{n}}{S_{n}+I_{n}+R_{n}}-(d_{2}+\gamma)I_{n}], \\ R_{n+1}= R_{n}+(h^{*}+h^{**})[\gamma I_{n}-(d_{3}+\sigma)R_{n}]. \end{array}\displaystyle \right . $$
(4)

Let \(U(n)=S_{n}-S^{*}\), \(V(n)=I_{n}-I^{*}\), and \(P(n)=R_{n}-R^{*}\) in model (4); then we transform the endemic equilibrium \(E^{*}(S^{*},I^{*}, R^{*})\) into the origin, and we have

$$ \left \{ \textstyle\begin{array}{l} U(n+1)= U(n)+(h^{*}+h^{**})[A-d_{1}(U(n)+S^{*}) \\ \hphantom{U(n+1)={}}{} - \lambda\frac{(U(n)+S^{*})(V(n)+I^{*})}{U(n)+V(n)+P(n)+N^{*}}+\sigma (P(n)+R^{*})], \\ V(n+1)= V(n)+(h^{*}+h^{**})[\lambda\frac {(U(n)+S^{*})(V(n)+I^{*})}{U(n)+V(n)+P(n)+N^{*}} \\ \hphantom{V(n+1)={}}{} -(d_{2}+\gamma)(V(n)+I^{*})], \\ P(n+1)= P(n)+(h^{*}+h^{**})[\gamma V(n)-(d_{3}+\sigma)P(n)], \end{array}\displaystyle \right . $$
(5)

where \(N^{*}=S^{*}+I^{*}+R^{*}\). The characteristic equation associated with the linearization system of model (4) at \((0,0,0)\) is given by

$$ w^{3}+b_{1}\bigl(h^{*},h^{**}\bigr)w^{2}+b_{2} \bigl(h^{*},h^{**}\bigr)w+b_{3}\bigl(h^{*},h^{**} \bigr)=0, $$
(6)

where \(b_{i}(h^{*},h^{**})\), \(i=1, 2, 3\), with the same form as in equation (3).

According to the well-known Cardano formula, equation (5) has one real root,

$$w_{1}=-\frac{b_{1}(h^{*},h^{**})}{3}+\biggl(-\frac{q}{2}+\sqrt{D} \biggr)^{\frac {1}{3}}-\biggl(\frac{q}{2}+\sqrt{D}\biggr)^{\frac{1}{3}}, $$

and a pair of conjugate complex roots \(w_{2,3}=\alpha\pm\beta i\), where

$$\begin{aligned}& \alpha= -\frac{b_{1}(h^{*},h^{**})}{3}-\frac{1}{2}\biggl[\biggl(-\frac{q}{2}+ \sqrt {D}\biggr)^{\frac{1}{3}}-\biggl(\frac{q}{2}+\sqrt{D} \biggr)^{\frac{1}{3}}\biggr], \\& \beta= \frac{\sqrt{3}}{2}\biggl[\biggl(-\frac{q}{2}+\sqrt{D} \biggr)^{\frac{1}{3}}-\biggl(\frac {q}{2}+\sqrt{D}\biggr)^{\frac{1}{3}} \biggr], \\& D= \biggl(\frac{q}{2}\biggr)^{2}+\biggl(\frac{p}{3} \biggr)^{3}, \\& p= \frac{3b_{2}(h^{*},h^{**})-{b_{1}(h^{*},h^{**})}^{2}}{3}, \\& q= \frac {27b_{3}(h^{*},h^{**})-9b_{1}(h^{*},h^{**})b_{2}(h^{*},h^{**})+3{b_{1}(h^{*},h^{**})}^{3}}{27}. \end{aligned}$$

Further, we need

$$ k=\frac{d|w_{2,3}|}{dh^{**}} \bigg|_{h^{**}=0}\neq0. $$
(7)

Moreover, it is required that, when \(h^{**}=0\), \(w_{2,3}^{m} \neq 1\), \(m=1,2,3,4\), which is equivalent to

$$ \alpha\neq-\frac{1}{2},\qquad \beta\neq\pm\frac{\sqrt{3}}{2},\qquad \bigl(\alpha^{2}- \beta^{2}\bigr)^{2}-2\alpha\beta \neq1. $$
(8)

Hence, the eigenvalues \(w_{2,3}\) do not lie in the intersection of the unit circle with the coordinate axes when \(h^{**}=0\), and conditions (7) and (8) hold.

In the following, we study the normal form of model (5). Expanding model (5) as a Taylor series at \((U(n),V(n),P(n))=(0,0,0)\) to the third order, it becomes

$$ \left \{ \textstyle\begin{array}{l} U(n+1)= a_{11}U(n)+a_{12}V(n)+a_{13}P(n) +F^{*}(U(n),V(n),P(n)), \\ V(n+1)= a_{21}U(n)+a_{22}V(n)+a_{23}P(n) +G^{*}(U(n),V(n),P(n)), \\ P(n+1)= a_{31}U(n)+a_{32}V(n)+a_{33}P(n), \end{array}\displaystyle \right . $$
(9)

where

$$\begin{aligned}& \begin{aligned} &F^{*}\bigl(U(n),V(n),P(n)\bigr) \\ &\quad = a_{14}U^{2}(n)+a_{15}U(n)V(n) +a_{16}U(n)P(n)+a_{17}V(n)P(n) \\ &\qquad {} +a_{18}V^{2}(n)+a_{19}P^{2}(n) +b_{11}U^{3}(n) +b_{12}U^{2}(n)V(n)+b_{13}U^{2}(n)P(n) \\ &\qquad {} +b_{14}U(n)V^{2}(n)+b_{15}U(n)P^{2}(n) +c_{11}V^{2}(n)P(n)+c_{12}V(n)P^{2}(n) \\ &\qquad {} +c_{13}U(n)V(n)P(n) +c_{14}V^{3}(n) +c_{15}P^{3}(n) \\ &\qquad {} +o\bigl(\bigl(\bigl\vert U(n)\bigr\vert +\bigl\vert V(n)\bigr\vert +\bigl\vert P(n)\bigr\vert \bigr)^{3}\bigr), \end{aligned} \end{aligned}$$
(10)
$$\begin{aligned}& \begin{aligned} &G^{*}\bigl(U(n),V(n),P(n)\bigr) \\ &\quad = a_{24}U^{2}(n)+a_{25}U(n)V(n) +a_{26}U(n)P(n)+a_{27}V(n)P(n) \\ &\qquad{} +a_{28}V^{2}(n)+a_{29}P^{2}(n) +b_{21}U^{3}(n) +b_{22}U^{2}(n)V(n)+b_{23}U^{2}(n)P(n) \\ &\qquad{} +b_{24}U(n)V^{2}(n)+b_{25}U(n)P^{2}(n) +c_{21}V^{2}(n)P(n)+c_{22}V(n)P^{2}(n) \\ &\qquad{} +c_{23}U(n)V(n)P(n)+c_{24}V^{3}(n)+c_{25}P^{3}(n) \\ &\qquad{} +o\bigl(\bigl(\bigl\vert U(n)\bigr\vert +\bigl\vert V(n)\bigr\vert +\bigl\vert P(n)\bigr\vert \bigr)^{3}\bigr), \end{aligned} \end{aligned}$$
(11)

and

$$\begin{aligned}& a_{11}= 1-h^{*}(d_{1}+a_{1}),\qquad a_{12}= -h^{*}a_{2}, \\& a_{13}= h^{*}\sigma+ha_{3},\qquad a_{14}= h^{*}\lambda \frac{I^{*}(I^{*}+R^{*})}{{N^{*}}^{3}}, \\& a_{15}= -h^{*}\lambda\frac{N^{*}(2I^{*}+R^{*})-2I^{*}(I^{*}+R^{*})}{{N^{*}}^{3}},\qquad a_{16}= -h^{*} \lambda\frac{I^{*}(S^{*}-I^{*}-R^{*})}{{N^{*}}^{3}}, \\& a_{17}= -h^{*}\lambda\frac{S^{*}(I^{*}-S^{*}-R^{*})}{{N^{*}}^{3}},\qquad a_{18}= h^{*} \lambda\frac{S^{*}(S^{*}+R^{*})}{{N^{*}}^{3}}, \\& a_{19}= -h^{*}\lambda\frac{S^{*}I^{*}}{{N^{*}}^{3}},\qquad b_{11}= -h^{*} \lambda\frac{I^{*}(I^{*}+R^{*})}{{N^{*}}^{4}}, \\& b_{12}= h^{*}\lambda\frac{N^{*}(2I^{*}+R^{*})-3I^{*}(I^{*}+R^{*})}{{N^{*}}^{4}},\qquad b_{13}= h^{*} \lambda\frac{I^{*}N^{*}-3I^{*}(I^{*}+R^{*})}{{N^{*}}^{4}}, \\& b_{14}= h^{*}\lambda\frac{N^{*}(2S^{*}+R^{*})-3S^{*}(S^{*}+R^{*})}{{N^{*}}^{4}},\qquad b_{15}= -h^{*} \lambda\frac{I^{*}N^{*}-3S^{*}I^{*}}{{N^{*}}^{4}}, \\& c_{11}= h^{*}\lambda\frac{S^{*}N^{*}-3S^{*}(S^{*}+R^{*})}{{N^{*}}^{4}},\qquad c_{12}= -h^{*} \lambda\frac{S^{*}N^{*}-3S^{*}I^{*}}{{N^{*}}^{4}}, \\& c_{13}= -h^{*}\lambda\frac {N^{*}(R^{*}+N^{*})-3(S^{*}R^{*}+I^{*}R^{*}+{R^{*}}^{2}+2S^{*}I^{*})}{{N^{*}}^{4}}, \\& c_{14}= -h^{*}\lambda\frac{S^{*}(S^{*}+R^{*})}{{N^{*}}^{4}},\qquad c_{15}= h^{*} \lambda\frac{S^{*}I^{*}}{{N^{*}}^{4}}, \\& a_{21}= h^{*}a_{1},\qquad a_{22}=1-h^{*}(d_{2}+ \gamma)+h^{*}a_{2}, \\& a_{23}=-h_{0}a_{3},\qquad a_{2i}= -a_{1i}, \\& b_{2j}=-b_{1j}, \qquad c_{2j}=-c_{1j} \quad (i=4,\ldots, 9, j=1, \ldots, 5), \\& a_{31}= 0,\qquad a_{32}=h^{*}\gamma,\qquad a_{33}=1-h^{*}(d_{3}+\sigma). \end{aligned}$$

Let

$$T= \left ( \textstyle\begin{array}{@{}c@{\quad}c@{\quad}c@{}} t_{11} & t_{12} & t_{13} \\ 1& 0& 1 \\ t_{31}&t_{32}&t_{33} \end{array}\displaystyle \right ), $$

where

$$\begin{aligned}& t_{11}= A_{1}C_{1}-B_{1}D_{1}, \qquad t_{12}=A_{1}D_{1}+B_{1}C_{1}, \\& A_{1}= a_{12}+\frac{a_{13}a_{32}(\alpha-a_{33})}{\beta^{2}+(\alpha^{2}-a_{33})^{2}},\qquad B_{1}= \frac{a_{13}a_{32}\beta}{\beta^{2}+(\alpha^{2}-a_{33})^{2}}, \\& C_{1}= \frac{\alpha-a_{11}}{\beta^{2}+(\alpha^{2}-a_{11})^{2}},\qquad D_{1}= \frac{\beta}{\beta^{2}+(\alpha^{2}-a_{11})^{2}}, \\& t_{13}= \frac{a_{13}a_{32}-a_{12}(b_{3}+a_{33})}{(b_{3}+a_{11})(b_{3}+a_{33})},\qquad t_{31}= \frac{a_{32}(\alpha-a_{33})}{\beta^{2}+(\alpha^{2}-a_{33})^{2}}, \\& t_{32}= \frac{a_{32}\beta}{\beta^{2}+(\alpha^{2}-a_{33})^{2}},\qquad t_{33}= - \frac{a_{32}}{b_{3}+a_{33}}. \end{aligned}$$

It is obvious that T is invertible and

$$\det T=t_{12}t_{31}+t_{13}t_{32}-t_{11}t_{32}-t_{12}t_{33}. $$

Using a translation,

$$\left ( \textstyle\begin{array}{@{}c@{}} U(n) \\ V(n) \\ P(n) \end{array}\displaystyle \right )=T\left ( \textstyle\begin{array}{@{}c@{}} X_{n} \\ Y_{n}\\ Z_{n} \end{array}\displaystyle \right ), $$

then model (9) becomes

$$ \left \{ \textstyle\begin{array}{l} X_{n+1}= \alpha X_{n}-\beta Y_{n} + F(X_{n},Y_{n},Z_{n}), \\ Y_{n+1}= \beta X_{n}+\alpha Y_{n}+G(X_{n},Y_{n},Z_{n}), \\ Z_{n+1}= -b_{3}Z_{n}+H(X_{n},Y_{n},Z_{n}), \end{array}\displaystyle \right . $$
(12)

where

$$\begin{aligned}& F(X_{n},Y_{n},Z_{n})= \bigl[-t_{32}F^{*} \bigl(U(n),V(n),P(n)\bigr) \\& \hphantom{F(X_{n},Y_{n},Z_{n})= {}}{} +(t_{13}t_{32}-t_{12}t_{33})G^{*} \bigl(U(n),V(n),P(n)\bigr)\bigr](\det T)^{-1}, \\& G(X_{n},Y_{n},Z_{n})= \bigl[(t_{31}-t_{33})F^{*} \bigl(U(n),V(n),P(n)\bigr) \\& \hphantom{G(X_{n},Y_{n},Z_{n})={}} +(t_{11}t_{33}-t_{13}t_{31})G^{*} \bigl(U(n),V(n),P(n)\bigr)\bigr](\det T)^{-1}, \\& H(X_{n},Y_{n},Z_{n})= \bigl[t_{32}F^{*} \bigl(U(n),V(n),P(n)\bigr) \\& \hphantom{H(X_{n},Y_{n},Z_{n})={}}{} +(t_{12}t_{31}-t_{11}t_{32})G^{*} \bigl(U(n),V(n),P(n)\bigr)\bigr](\det T)^{-1}, \end{aligned}$$

and \(F^{*}(U(n),V(n),P(n))\), \(G^{*}(U(n),V(n),P(n))\) are given in (10) and (11).

From the above translation we further obtain

$$\begin{aligned}& F_{X_{n}X_{n}}= F_{X_{n}X_{n}}(0,0,0) \\& \hphantom{F_{X_{n}X_{n}}}= \bigl[-(t_{32}+t_{13}t_{32}-t_{12}t_{33}) \bigl(a_{14}t^{2}_{11}+a_{15}t_{11} \\& \hphantom{F_{X_{n}X_{n}}={}}{} +a_{16}t_{11}t_{31}+a_{17}t_{31}+a_{18}+a_{19}t^{2}_{31} \bigr)\bigr](\det T)^{-1}, \\& F_{Y_{n}Y_{n}}= F_{Y_{n}Y_{n}}(0,0,0) \\& \hphantom{F_{Y_{n}Y_{n}}}= \bigl[-(t_{32}+t_{13}t_{32}-t_{12}t_{33}) \bigl(a_{14}t^{2}_{12}+a_{16}t_{12}t_{32}+a_{19}t^{2}_{32} \bigr)\bigr](\det T)^{-1}, \\& G_{X_{n}X_{n}}= G_{X_{n}X_{n}}(0,0,0) \\& \hphantom{G_{X_{n}X_{n}}}= \bigl[(t_{31}+t_{13}t_{31}-t_{33}-t_{11}t_{33}) \bigl(a_{14}t^{2}_{11}+a_{15}t_{11} \\& \hphantom{G_{X_{n}X_{n}}={}}{}+a_{16}t_{11}t_{31}+a_{17}t_{31}+a_{18}+a_{19}t^{2}_{31} \bigr)\bigr](\det T)^{-1}, \\& G_{Y_{n}Y_{n}}= G_{Y_{n}Y_{n}}(0,0,0) \\& \hphantom{G_{Y_{n}Y_{n}}}= \bigl[(t_{31}+t_{13}t_{31}-t_{33}-t_{11}t_{33}) \bigl(a_{14}t^{2}_{12}+a_{16}t_{12}t_{32}+a_{19}t^{2}_{32} \bigr)\bigr](\det T)^{-1}, \\& H_{X_{n}X_{n}}= H_{X_{n}X_{n}}(0,0,0) \\& \hphantom{H_{X_{n}X_{n}}}= \bigl[(t_{32}+t_{11}t_{32}-t_{12}t_{31}) \bigl(a_{14}t^{2}_{11}+a_{15}t_{11} \\& \hphantom{H_{X_{n}X_{n}}={}}{}+a_{16}t_{11}t_{31}+a_{17}t_{31}+a_{18}+a_{19}t^{2}_{31} \bigr)\bigr](\det T)^{-1}, \\& H_{Y_{n}Y_{n}}= H_{Y_{n}Y_{n}}(0,0,0) \\& \hphantom{H_{Y_{n}Y_{n}}}= \bigl[(t_{32}+t_{11}t_{32}-t_{12}t_{31}) \bigl(a_{14}t^{2}_{12}+a_{16}t_{12}t_{32}+a_{19}t^{2}_{32} \bigr)\bigr](\det T)^{-1}, \\& F_{X_{n}Y_{n}}= F_{X_{n}Y_{n}}(0,0,0) \\& \hphantom{F_{X_{n}Y_{n}}}= \bigl[-(t_{32}+t_{13}t_{32}-t_{12}t_{33}) \bigl(2a_{14}t_{11}t_{12}+a_{15}t_{12} \\& \hphantom{F_{X_{n}Y_{n}}={}}{} +a_{16}(t_{11}t_{32}+t_{12}t_{31})+a_{17}t_{32}+2a_{19}t_{31}t_{32} \bigr)\bigr](\det T)^{-1}, \\& G_{X_{n}Y_{n}}= G_{X_{n}Y_{n}}(0,0,0) \\& \hphantom{G_{X_{n}Y_{n}}}= \bigl[(t_{31}+t_{13}t_{31}-t_{33}-t_{11}t_{33}) \bigl(2a_{14}t_{11}t_{12}+a_{15}t_{12}, \\& \hphantom{G_{X_{n}Y_{n}}={}}{}+a_{16}(t_{11}t_{32}+t_{12}t_{31})+a_{17}t_{32}+2a_{19}t_{31}t_{32} \bigr)\bigr](\det T)^{-1}, \\& H_{X_{n}Y_{n}}= H_{X_{n}Y_{n}}(0,0,0) \\& \hphantom{H_{X_{n}Y_{n}}}= \bigl[(t_{32}+t_{11}t_{32}-t_{12}t_{31}) \bigl(2a_{14}t_{11}t_{12}+a_{15}t_{12} \\& \hphantom{H_{X_{n}Y_{n}}={}}{}+a_{16}(t_{11}t_{32}+t_{12}t_{31})+a_{17}t_{32}+2a_{19}t_{31}t_{32} \bigr)\bigr](\det T)^{-1}, \\& F_{X_{n}Z_{n}}= F_{X_{n}Z_{n}}(0,0,0) \\& \hphantom{F_{X_{n}Z_{n}}}= \bigl[-(t_{32}+t_{13}t_{32}-t_{12}t_{33}) \bigl(2a_{14}t_{11}t_{13}+a_{15}(t_{11}+t_{13}) \\& \hphantom{F_{X_{n}Z_{n}}={}}{}+a_{16}(t_{11}t_{33}+t_{13}t_{31})+a_{17}(t_{31}+t_{33}) +2a_{18}+2a_{19}t_{31}t_{33}\bigr)\bigr]( \det T)^{-1}, \\& G_{X_{n}Z_{n}}= G_{X_{n}Z_{n}}(0,0,0) \\& \hphantom{G_{X_{n}Z_{n}}}= \bigl[(t_{31}+t_{13}t_{31}-t_{33}-t_{11}t_{33}) \bigl(2a_{14}t_{11}t_{13}+a_{15}(t_{11}+t_{13}) \\& \hphantom{G_{X_{n}Z_{n}}={}}{}+a_{16}(t_{11}t_{33}+t_{13}t_{31})+a_{17}(t_{31}+t_{33})+2a_{18} +2a_{19}t_{31}t_{33}\bigr)\bigr](\det T)^{-1}, \\& F_{Y_{n}Z_{n}}= F_{Y_{n}Z_{n}}(0,0,0) \\& \hphantom{F_{Y_{n}Z_{n}}}= \bigl[-(t_{32}+t_{13}t_{32}-t_{12}t_{33}) \bigl(2a_{14}t_{12}t_{13}+a_{15}t_{12} \\& \hphantom{F_{Y_{n}Z_{n}}={}}{}+a_{16}(t_{12}t_{33}+t_{13}t_{32})+a_{17}t_{32}+2a_{19}t_{32}t_{33} \bigr)\bigr](\det T)^{-1}, \\& G_{Y_{n}Z_{n}}= G_{Y_{n}Z_{n}}(0,0,0) \\& \hphantom{G_{Y_{n}Z_{n}}}= \bigl[(t_{31}+t_{13}t_{31}-t_{33}-t_{11}t_{33}) \bigl(2a_{14}t_{12}t_{13}+a_{15}t_{12} \\& \hphantom{G_{Y_{n}Z_{n}}={}}{}+a_{16}(t_{12}t_{33}+t_{13}t_{32})+a_{17}t_{32}+2a_{19}t_{32}t_{33} \bigr)\bigr](\det T)^{-1}, \\& F_{X_{n}X_{n}X_{n}}= F_{X_{n}X_{n}X_{n}}(0,0,0) \\& \hphantom{F_{X_{n}X_{n}X_{n}}}= \bigl[-(t_{32}+t_{13}t_{32}-t_{12}t_{33}) \bigl(b_{11}t^{3}_{11}+b_{12}t^{2}_{11}+b_{13}t^{2}_{11}t_{31}+b_{14}t_{11} \\& \hphantom{F_{X_{n}X_{n}X_{n}}={}}{}+b_{15}t_{11}t^{2}_{31}+c_{11}t_{31}+c_{12}t^{2}_{31}+c_{13}t_{11}t_{13} +c_{14}+c_{15}t^{3}_{31}\bigr)\bigr](\det T)^{-1}, \\& G_{X_{n}X_{n}X_{n}}= G_{X_{n}X_{n}X_{n}}(0,0,0) \\& \hphantom{G_{X_{n}X_{n}X_{n}}}= \bigl[(t_{31}+t_{13}t_{31}-t_{33}-t_{11}t_{33}) \bigl(b_{11}t^{3}_{11}+b_{12}t^{2}_{11}+b_{13}t^{2}_{11}t_{31}+b_{14}t_{11} \\& \hphantom{G_{X_{n}X_{n}X_{n}}={}}{}+b_{15}t_{11}t^{2}_{31}+c_{11}t_{31}+c_{12}t^{2}_{31}+c_{13}t_{11}t_{13} +c_{14}+c_{15}t^{3}_{31}\bigr)\bigr](\det T)^{-1}, \\& F_{Y_{n}Y_{n}Y_{n}}= F_{Y_{n}Y_{n}Y_{n}}(0,0,0) \\& \hphantom{F_{Y_{n}Y_{n}Y_{n}}}= \bigl[-(t_{32}+t_{13}t_{32}-t_{12}t_{33}) \bigl(b_{11}t^{3}_{12}+b_{13}t^{2}_{12}t_{32} \\& \hphantom{F_{Y_{n}Y_{n}Y_{n}}={}}{}+b_{15}t_{12}t^{2}_{32}+c_{15}t^{3}_{32} \bigr)\bigr](\det T)^{-1}, \\& G_{Y_{n}Y_{n}Y_{n}}= G_{Y_{n}Y_{n}Y_{n}}(0,0,0) \\& \hphantom{G_{Y_{n}Y_{n}Y_{n}}}= \bigl[(t_{31}+t_{13}t_{31}-t_{33}-t_{11}t_{33}) \bigl(b_{11}t^{3}_{12} \\& \hphantom{G_{Y_{n}Y_{n}Y_{n}}={}}{}+b_{13}t^{2}_{12}t_{32}+b_{15}t_{12}t^{2}_{32}+c_{15}t^{3}_{32} \bigr)\bigr](\det T)^{-1}, \\& F_{X_{n}X_{n}Y_{n}}= F_{X_{n}X_{n}Y_{n}}(0,0,0) \\& \hphantom{F_{X_{n}X_{n}Y_{n}}}= \bigl\{ -(t_{32}+t_{13}t_{32}-t_{12}t_{33}) \bigl[3b_{11}t^{2}_{11}t_{12}+2b_{12}t_{11}t_{12} \\& \hphantom{F_{X_{n}X_{n}Y_{n}}={}}{}+b_{13}\bigl(t^{2}_{11}t_{32}+2t_{11}t_{13}t_{31} \bigr)+b_{14}t_{12}+b_{15}\bigl(t_{12}t^{2}_{31} +2t_{11}t_{31}t_{32}\bigr) \\& \hphantom{F_{X_{n}X_{n}Y_{n}}={}}{}+c_{11}t^{2}_{32}+2c_{12}t_{31}t_{32}+c_{13}(t_{11}t_{32}+t_{12}t_{31}) +3c_{15}t^{2}_{31}t_{32}\bigr] \bigr\} ( \det T)^{-1}, \\& G_{X_{n}X_{n}Y_{n}}= G_{X_{n}X_{n}Y_{n}}(0,0,0) \\& \hphantom{G_{X_{n}X_{n}Y_{n}}}= \bigl\{ (t_{31}+t_{13}t_{31}-t_{33}-t_{11}t_{33}) \bigl[3b_{11}t^{2}_{11}t_{12}+2b_{12}t_{11}t_{12} \\& \hphantom{G_{X_{n}X_{n}Y_{n}}={}}{}+b_{13}\bigl(t^{2}_{11}t_{32}+2t_{11}t_{13}t_{31} \bigr)+b_{14}t_{12} +b_{15}\bigl(t_{12}t^{2}_{31}+2t_{11}t_{31}t_{32} \bigr) \\& \hphantom{G_{X_{n}X_{n}Y_{n}}={}}{}+c_{11}t^{2}_{32}+2c_{12}t_{31}t_{32}+c_{13}(t_{11}t_{32}+t_{12}t_{31}) +3c_{15}t^{2}_{31}t_{32}\bigr] \bigr\} ( \det T)^{-1}, \\& F_{X_{n}Y_{n}Y_{n}}= F_{X_{n}Y_{n}Y_{n}}(0,0,0) \\& \hphantom{F_{X_{n}Y_{n}Y_{n}}}= \bigl\{ -(t_{32}+t_{13}t_{32}-t_{12}t_{33}) \bigl[3b_{11}t_{11}t^{2}_{12}+b_{12}t^{2}_{12} \\& \hphantom{F_{X_{n}Y_{n}Y_{n}}={}}{}+b_{13}\bigl(t^{2}_{12}t_{31}+2t_{11}t_{12}t_{32} \bigr)+b_{15}\bigl(t_{11}t^{2}_{32}+2t_{12}t_{31}t_{32} \bigr) \\& \hphantom{F_{X_{n}Y_{n}Y_{n}}={}}{}+c_{12}t^{2}_{32}+c_{13}t_{12}t_{32}+3c_{15}t_{31}t^{2}_{32} \bigr] \bigr\} (\det T)^{-1}, \\& G_{X_{n}Y_{n}Y_{n}}= G_{X_{n}Y_{n}Y_{n}}(0,0,0) \\& \hphantom{G_{X_{n}Y_{n}Y_{n}}}= \bigl\{ (t_{31}+t_{13}t_{31}-t_{33}-t_{11}t_{33}) \bigl[3b_{11}t_{11}t^{2}_{12}+b_{12}t^{2}_{12} \\& \hphantom{G_{X_{n}Y_{n}Y_{n}}={}}{}+b_{13}\bigl(t^{2}_{12}t_{31}+2t_{11}t_{12}t_{32} \bigr)+b_{15}\bigl(t_{11}t^{2}_{32}+2t_{12}t_{31}t_{32} \bigr) \\& \hphantom{G_{X_{n}Y_{n}Y_{n}}={}}{}+c_{12}t^{2}_{32}+c_{13}t_{12}t_{32}+3c_{15}t_{31}t^{2}_{32} \bigr] \bigr\} (\det T)^{-1}. \end{aligned}$$

In order for the system to undergo the Hopf bifurcation of model (12), we let

$$\begin{aligned}& g_{11}= \frac{1}{4}\bigl[ F_{X_{n}X_{n}}+ F_{Y_{n}Y_{n}} +i( G_{X_{n}X_{n}}+G_{Y_{n}Y_{n}})\bigr], \\& g_{02}= \frac{1}{4}\bigl[ F_{X_{n}X_{n}}-F_{Y_{n}Y_{n}}-2G_{X_{n}Y_{n}} +i(G_{X_{n}X_{n}}-G_{Y_{n}Y_{n}}+2F_{X_{n}Y_{n}})\bigr], \\& g_{20}= \frac{1}{4}\bigl[F_{X_{n}X_{n}}-F_{Y_{n}Y_{n}}+2G_{X_{n}Y_{n}} +i(G_{X_{n}X_{n}}-G_{Y_{n}Y_{n}}-2F_{X_{n}Y_{n}})\bigr], \\& G_{21}= \frac{1}{8}\bigl[F_{X_{n}X_{n}X_{n}}+ F_{X_{n}Y_{n}Y_{n}}+G_{X_{n}X_{n}Y_{n}}+G_{Y_{n}Y_{n}Y_{n}} \\& \hphantom{G_{21}={}}{}+i(G_{X_{n}X_{n}X_{n}}+G_{X_{n}Y_{n}Y_{n}} -F_{X_{n}X_{n}Y_{n}}-F_{Y_{n}Y_{n}Y_{n}}) \bigr], \\& h_{11}= \frac{1}{4}(H_{X_{n}X_{n}}+H_{Y_{n}Y_{n}}), \\& h_{20}= \frac{1}{4}(H_{X_{n}X_{n}}-H_{Y_{n}Y_{n}}-2iH_{X_{n}Y_{n}}), \\& G_{110}= \frac{1}{2} \bigl[F_{X_{n}Z_{n}}+G_{Y_{n}Z_{n}}+i(G_{X_{n}Z_{n}}-F_{Y_{n}Z_{n}}) \bigr], \\& G_{101}= \frac{1}{2} \bigl[F_{X_{n}Z_{n}}-G_{Y_{n}Z_{n}}+i(F_{Y_{n}Z_{n}}+G_{X_{n}Z_{n}}) \bigr], \\& w_{11}= \frac{h_{11}}{b_{3}},\qquad w_{20}=\frac{h_{20}}{b_{3}+2i\beta}, \\& g_{21}= G_{21}+(2w_{11}G_{110}+w_{20}G_{101}). \end{aligned}$$

Further, we let

$$c_{1}(0)=\frac{i}{2\beta}\biggl(g_{20}g_{11}-2|g_{11}|^{2}- \frac {1}{3}|g_{02}|^{2}\biggr)+\frac{1}{2}g_{21} $$

and

$$\mu_{2}=-\frac{\operatorname{Re}(c_{1}(0))}{\operatorname{Re}(w_{h^{*}})},\qquad \beta_{2}=2 \operatorname{Re}\bigl(c_{1}(0)\bigr). $$

Now by the Hopf theorem of [36] we can obtain the main result of this section.

Theorem 2

If conditions (7), (8) hold and \(\mu_{2}\neq0\), then model (4) undergoes a Hopf bifurcation at equilibrium \(E^{*}(S^{*}, I^{*}, R^{*})\) when the parameter \(h^{**}\) changes in a small neighborhood of the origin. The direction of the Hopf bifurcation of model (4) is determined by the sign of \(\mu_{2}\): if \(\mu_{2}>0\) (\(\mu_{2}<0\)), then the Hopf bifurcation is supercritical (subcritical) and the bifurcating periodic solutions exist for \(h>h^{*}\) (\(h< h^{*}\)). \(\beta_{2}\) determines the stability of the bifurcating periodic solutions: the bifurcating periodic solutions are stable (unstable) if \(\beta_{2}<0\) (\(\beta_{2}>0\)).

Remark 1

In [14], the authors carried out numerical simulations to obtain a Hopf bifurcation. On the contrary, in this paper, we use the bifurcation theorem to prove the existence, stability, and direction of the Hopf bifurcation of a three-dimensional discrete-time \({SIRS}\) epidemic model. The main results in this paper also solve the open problem in [37].

Remark 2

In [1517, 2326], the authors only considered a two-dimensional discrete-time epidemic model. As is well known, the diseases are spreading in different populations, such as susceptible individuals S, infective individuals I, and recovered individuals R. For better understanding the pathogenesis and the spread of the disease process, a higher-dimensional epidemic model should be studied. Therefore, in this paper, we study the Hopf bifurcation and flip bifurcation of a three-dimensional discrete-time \(SIRS\) epidemic model, which is more realistic for the spread of the disease process.

4 Numerical simulation

In this section, six examples are provided to illustrate our theoretical results in Theorem 2. In Examples 1 and 2, the time step size h is selected as the bifurcation parameter. The first one shows the Hopf bifurcation diagrams and the corresponding phase portraits of model (2) to confirm the above theoretical analysis, and it indicates new interesting complex dynamical behaviors. In the third section we have not proven the existence of the flip bifurcation of model (2). Therefore, the second example is about the flip bifurcation of model (2), which is only obtained by using numerical simulations. The adequate contact rate λ and the death rate \(d_{2}\) have a significant role to play in the disease spreading in model (2). Hence, λ and \(d_{2}\) also are chosen as the bifurcation parameter in Examples 3-6 to detect the bifurcation and chaos behaviors.

Example 1

We choose \(A=2.4\), \(d_{1}=0.1\), \(d_{2}=0.12\), \(d_{3}=0.02\), \(\lambda=0.8 \), \(\gamma=0.15\), \(\sigma=0.8\), \(h\in[2.6,3.2]\), and the initial values \((S_{0},I_{0},R_{0})=(4,3.2,0.5)\). By computing we obtain the basic reproductive rate \(\Re_{0}=\frac{80}{27}>1\), \(E^{*}(S^{*},I^{*},R^{*})=(7.8637,13.0491, 2.370)\). When \(h^{*}=2.8903\), we obtain \(\Delta=22.4462>0\), which implies that the Jacobian matrix \(J(E^{*})\) has three eigenvalues, \(w_{1}=0.6923\), \(w_{2,3}= \alpha\pm\beta i=-0.8388\pm0.5444i\) with \(|w_{2,3}|=1\). Further, by simple computing, we obtain \(k=0.5289\) and

$$\alpha=-0.8388 \neq-\frac{1}{2},\qquad \beta=0.5444 \neq\pm \frac{\sqrt{3}}{2},\qquad \bigl(\alpha^{2}- \beta^{2} \bigr)^{2}-2\alpha\beta=1.0791\neq1. $$

Then conditions (6), (7) hold and \(\mu_{2}=9.2025\times10^{-4}\neq0\), which indicates that there exists a Hopf bifurcation of model (2). Since \(\beta_{2}=-0.002\) and \(\mu_{2}=9.2025\times10^{-4}\), the Hopf bifurcation is stable and supercritical (see Figures 1-3).

Figure 1
figure 1

Hopf bifurcation of S - h model ( 2 ) with \(\pmb{h\in [2.8,3.2]}\) .

Figure 2
figure 2

Hopf bifurcation of I - h model ( 2 ) with \(\pmb{h\in [2.8,3.2]}\) .

Figure 3
figure 3

Hopf bifurcation of R - h model ( 2 ) with \(\pmb{h\in [2.8,3.2]}\) .

Figures 1-3 show that the endemic equilibrium \(E^{*}(7.8637,13.0491,2.370)\) of model (2) is stable for \(h<2.8903\), and it loses its stability when \(h=2.8903\); moreover, when \(h>2.8903\) there appear complex dynamical behaviors. For example, when the time step size h changes from 3.155 to 3.179 there appear period-12 orbits, and when the step size h increases continuously there appear chaos and period-7 orbits, which can be found in the phase portraits.

The phase portraits (Figures 4-11) of the bifurcation diagrams (Figures 1-3) provide detailed information about the dynamical behaviors changing from a stable equilibrium to Hopf bifurcation, chaos, and then more complex dynamical behaviors. Figure 4 shows when \(h=2.86<2.8903\), then the endemic equilibrium \(E^{*}(7.8637,13.0491,2.370)\) has local stability. Following the increase of h there exists a stable periodical solution, that is, the Hopf bifurcation which can be seen in Figure 5. When h continues becoming bigger the stable invariant circle is broken slowly and there appear more than one periodical attractors from Figures 6-11. The period-12 orbits and period-7 orbits can be found in Figures 8 and 10, respectively. Furthermore, there exist more complex dynamical behaviors when h is much bigger as in Figure 11.

Figure 4
figure 4

\(\pmb{h=2.86}\) .

Figure 5
figure 5

\(\pmb{h=2.9}\) .

Figure 6
figure 6

\(\pmb{h=3.138}\) .

Figure 7
figure 7

\(\pmb{h=3.15}\) .

Figure 8
figure 8

\(\pmb{h=3.155}\) .

Figure 9
figure 9

\(\pmb{h=3.179}\) .

Figure 10
figure 10

\(\pmb{h=3.183}\) .

Figure 11
figure 11

\(\pmb{h=3.2}\) .

In the following examples, we only provide the bifurcations diagrams.

Example 2

We choose \(A=30\), \(d_{1}=0.05\), \(d_{2}=0.12\), \(d_{3}=0.02\), \(\lambda=0.9\), \(\gamma=0.01\), \(\sigma=0.01\), \(h\in[4,5.2]\), and the initial values \((S_{0},I_{0},R_{0})=(60,30,20)\). By computing we obtain the basic reproductive rate \(\Re_{0}=\frac{90}{13}>1\), \(E^{*}(S^{*},I^{*},R^{*})=(48.9642,217.5141, 72.5047)\). From the flip bifurcation diagrams (see Figures 12-14), there exists a critical value of h, and here we denote it by \(h_{*}\). When \(h_{*}=4.1321\), we compute that \(\Delta=-4.6930<0\) and the three real eigenvalues of the Jacobian matrix \(J(E^{*})\) are \(w_{1}=-1\), \(w_{2}=0.4062\), and \(w_{3}=0.8787\).

Figure 12
figure 12

Flip bifurcation of S - h model ( 2 ) with \(\pmb{h\in [4,5.2]}\) .

Figure 13
figure 13

Flip bifurcation of I - h model ( 2 ) with \(\pmb{h\in [4,5.2]}\) .

Figure 14
figure 14

Flip bifurcation of R - h model ( 2 ) with \(\pmb{h\in [4,5.2]}\) .

Figures 12-14 show that the endemic equilibrium \(E^{*}(48.9642,217.5141,72.5047)\) of model (2) is stable for \(h< h_{*}=4.1321 \) and loses its stability when \(h=h_{*}=4.1321\). The flip bifurcation and chaotic behaviors appear when \(h>h_{*}\). In detail, the period-2 orbits appear when h is approximatively changing in \((4.1321, 4.8]\); the period-4 orbits appear when h goes from 4.8 to 5.01, and following the increase of h, model (2) undergoes period-8, -16, and quasi-periodic orbits, and chaos sets in ultimately.

Example 3

We choose \(h=2.5\), \(A=2.4\), \(d_{1}=0.1\), \(d_{2}=0.12\), \(d_{3}=0.02\), \(\gamma=0.15\), \(\sigma=0.8\), \(\lambda\in[0.5,1)\), and the initial values \((S_{0},I_{0},R_{0})=(4,3.2,0.5)\). By computing we obtain the basic reproductive rate \(\Re_{0}=\frac{100\lambda}{27}\). From \(\lambda\in[0.5,1)\), then we have \(\Re_{0}=\frac{100\lambda}{27}>1\). Therefore, there exists an endemic equilibrium \(E^{*}(S^{*},I^{*},R^{*})\), which is a function of λ. Figure 15 illustrates that when the disease contact rate λ is smaller than the critical value \(\lambda^{*} \approx0.945\) the equilibrium values of S are locally stable. It is increasing for \(I_{n}\) and \(R_{n}\) when \(\lambda\in[0.5,\lambda^{*}]\) (see Figures 16 and 17). Finally, there appears a Hopf bifurcation for \(S_{n}\), \(I_{n}\), and \(R_{n}\) when λ is bigger than \(\lambda^{*}\) (see Figures 15-17).

Figure 15
figure 15

Hopf bifurcation of S - λ model ( 2 ) with \(\pmb{\lambda\in[0.5,1)}\) .

Figure 16
figure 16

Hopf bifurcation of I - λ model ( 2 ) with \(\pmb{\lambda\in[0.5,1)}\) .

Figure 17
figure 17

Hopf bifurcation of R - λ model ( 2 ) with \(\pmb{\lambda\in[0.5,1)}\) .

Example 4

We choose \(h=4.28\), \(A=14.25\), \(d_{1}=0.05\), \(d_{2}=0.18\), \(d_{3}=0.02\), \(\gamma=0.01\), \(\sigma=0.16\), \(\lambda\in[0.2,1)\), and the initial values \((S_{0},I_{0},R_{0})=(60,30,20)\). By computing we obtain the basic reproductive rate \(\Re_{0}=\frac{100\lambda}{19}\). Since \(\lambda\in[0.2,1)\), then we have \(\Re_{0}=\frac{100\lambda}{19}>1\). As in Example 3, the endemic equilibrium \(E^{*}(S^{*},I^{*},R^{*})\) exists and is a function of λ. From Figures 18-20, we see that the equilibrium values of S, I, and R, which are locally stable when λ is smaller than the critical value \(\lambda^{*}\approx0.875\) (see Figures 18-20). When λ is bigger than \(\lambda^{*}\approx0.875\) there appears a flip bifurcation, and model (2) undergoes chaotic behaviors with the continuous increasing of λ.

Figure 18
figure 18

Flip bifurcation of S - λ model ( 2 ) with \(\pmb{\lambda\in[0.2,1)}\) .

Figure 19
figure 19

Flip bifurcation of I - λ model ( 2 ) with \(\pmb{\lambda\in[0.2,1)}\) .

Figure 20
figure 20

Flip bifurcation of R - λ model ( 2 ) with \(\pmb{\lambda\in[0.2,1)}\) .

Example 5

We choose \(h=3.2\), \(A=2.8\), \(d_{1}=0.04\), \(d_{3}=0.001\), \(\lambda=0.81\), \(\gamma=0.2\), \(\sigma=0.5\), \(d_{2} \in[0.05,0.5)\), and the initial values \((S_{0},I_{0},R_{0})=(4,3.2,0.85)\). By computing we obtain the basic reproductive rate \(\Re_{0}=\frac{81}{100d_{2}+20}\). From \(d_{2}\in [0.05,0.5)\), we have \(\Re_{0}>1\). Therefore, there exists an endemic equilibrium \(E^{*}(S^{*},I^{*},R^{*})\), which is a function of \(d_{2}\). From Figures 21-23, we see that when \(d_{2}\approx0.063\) there appears a Hopf bifurcation for \(S_{n}\), \(I_{n}\), and \(R_{n}\). When \(d_{2}\) is bigger than 0.063 the Hopf bifurcation disappears and the endemic equilibrium \(E^{*}(S^{*},I^{*},R^{*})\) is local stable. But the value change of the three species is different following the changing of \(d_{2}\). Particularly, when \(d_{2}\) is becoming bigger than 0.063 the equilibrium values of S, which are locally stable (see Figure 21). Since \(d_{2}\) is the death rate of \(I_{n}\), it is certain that \(I_{n}\) is decreasing following the increasing of \(d_{2}\) and this results in the decreasing of \(R_{n}\) (see Figures 22 and 23).

Figure 21
figure 21

Hopf bifurcation of S - \(\pmb{d_{2}}\) model ( 2 ) with \(\pmb{d_{2}\in[0.05,0.5)}\) .

Figure 22
figure 22

Hopf bifurcation of I - \(\pmb{d_{2}}\) model ( 2 ) with \(\pmb{d_{2}\in[0.05,0.5)}\) .

Figure 23
figure 23

Hopf bifurcation of R - \(\pmb{d_{2}}\) model ( 2 ) with \(\pmb{d_{2}\in[0.05,0.5)}\) .

Example 6

We choose \(h=4.2\), \(A=12\), \(d_{1}=0.15\), \(d_{3}=0.02\), \(\lambda=0.85\), \(\gamma=0.01\), \(\sigma=0.08\), \(d_{2}\in[0.15,0.5]\), and the initial values \((S_{0},I_{0},R_{0})=(60,20,30)\). By computing we obtain the basic reproductive rate \(\Re_{0}=\frac{85}{100d_{2}+1}\). One can also obtain \(\Re_{0}=\frac{85}{100d_{2}+1}>1\) from \(d_{2}\in[0.15,0.5]\). Therefore, there exists an endemic equilibrium \(E^{*}(S^{*},I^{*},R^{*})\), which is a function of \(d_{2}\). Figures 24-26 show that model (2) undergoes chaos and flip bifurcation when the death rate \(d_{2}\) of the infective individuals \(I_{n}\) varies from 0.15 to 0.5. Particularly, when \(d_{2}\) varies from 0.15 to the critical value \(d_{2}^{*}\approx0.21\) there appear chaotic behaviors and a flip bifurcation. When \(d_{2}\) is bigger than \(d_{2}^{*}\) the equilibrium values of S, I, and R, which are locally stable (see Figures 25 and 26).

Figure 24
figure 24

Flip bifurcation of S - \(\pmb{d_{2}}\) model ( 2 ) with \(\pmb{d_{2}\in [0.15,0.5]}\) .

Figure 25
figure 25

Flip bifurcation of I - \(\pmb{d_{2}}\) model ( 2 ) with \(\pmb{d_{2}\in [0.15,0.5]}\) .

Figure 26
figure 26

Flip bifurcation of R - \(\pmb{d_{2}}\) model ( 2 ) with \(\pmb{d_{2}\in [0.15,0.5]}\) .

Remark 3

Example 1 shows when the parameters satisfy the conditions in Theorem 2 for model (2) there will appear a Hopf bifurcation from the endemic equilibrium \(E^{*}(S^{*},I^{*},R^{*})\) (see Figures 1-3). In addition, the flip bifurcation also appears in Example 2 when the step parameter h is changing at the neighborhood of \(h^{*}\) (see Figures 12-14). Furthermore, these results indicate that chaos dynamical behaviors of model (2) can be obtained according to the paths of the flip bifurcation and the Hopf bifurcation when the step size h is changed, and we should control the disease transmitting between the different individuals \(S_{n}\), \(I_{n}\), and \(R_{n}\).

Remark 4

The results in Examples 3-6 make it clear that not only the step parameter h but also the adequate contact rate λ and the death rate \(d_{2}\) for the individuals \(I_{n}\) can cause bifurcation behaviors and chaos behaviors for model (2). Controlling the key parameters in the epidemic model has an important role to play in the disease controlling process, such as the adequate contact rate and the death rate. These results are similar to the results in [38].

5 Discussion and conclusion

The bifurcation analysis of a three-dimensional discrete \({SIRS}\) epidemic model with standard incidence rate is discussed in this paper. The existence, stability, and bifurcation direction of the Hopf bifurcation are obtained in Theorem 2 by the normal form theorem and bifurcation theory. Further, numerical simulations are used to illustrate our theory results, and some interesting dynamical behaviors (flip bifurcation, Hopf bifurcation, and chaos) of model (2) are also obtained when some key parameters are chosen as the bifurcation parameters (see Figures 1-26).

For analyzing the Hopf bifurcation, we choose the time step parameter h as the bifurcation parameter, and the existence and direction of the Hopf bifurcation of model (2) are proved by the normal form theorem and bifurcation theory in Theorem 2. Particularly, if the time step parameter h is sufficient big, then when the basic reproductive rate \(\Re_{0}>1\) and parameters \((A,d_{1},d_{2}, d_{3}, h, \lambda ,\gamma,\sigma)\) satisfy case (I) in condition (4) of Theorem 3 in [33] model (2) there appears a Hopf bifurcation and chaotic attractors (see Figures 1-3), which implied that the susceptible and infective individuals can coexist in a stable period cycle. Most important is that from the bifurcation figures we can control the parameters \((A,d_{1},d_{2}, d_{3}, h, \lambda,\gamma,\sigma)\) to control the disease when the step parameter h is smaller than the bifurcation values \(h^{*}\). In addition, when the step parameter h changes, flip bifurcation diagrams appear in Example 2 by the numerical simulations (see Figures 12-14). These figures show that there exists a flip bifurcation, which also can result in chaotic behaviors in model (2). This result enriches the dynamical behaviors for model (2).

It is well known that the adequate contact rate λ and the death rate \(d_{2}\) for the individuals \(I_{n}\) have a key role to play in the disease transmission. We choose λ as the bifurcation parameters and select some suitable values for the other parameters \((A,d_{1},d_{2}, d_{3}, h, \gamma,\sigma)\) and initial values for \(S_{0}\), \(I_{0}\), \(R_{0}\), then there exist a Hopf bifurcation and a flip bifurcation for model (2), which can be seen from Example 3 and Example 4 (see Figures 15-17 and Figures 18-20). Eventually, there appear chaos dynamical behaviors. And the same results also exist when the death rate \(d_{2}\) is chosen as the bifurcation parameter in Examples 5 and 6 (see Figures 21-23 and Figures 24-26). These results indicate that the key parameters in the epidemic model will affect the dynamical behaviors significantly, such as the flip bifurcation, the Hopf bifurcation, and chaos, which corresponds with the results in [38].

For comparing with previous work [1517, 2326], one only considered the dynamical behaviors for the two-dimensional discrete-time epidemic model. There are few studies of the bifurcation analysis of the three-dimensional discrete-time epidemic model. Since the diseases spread in different populations, such as susceptible individuals S, infective individuals I, and recovered individuals R, the recovered individuals R can also become susceptible individuals S, such as in the case of the flue disease. For better understanding the pathogenesis and the spread of the disease process, a higher-dimensional epidemic model should be studied, especially, for the bifurcation and chaos dynamical behaviors studies. Our main results provide important information for the disease control when the disease transmission appears to show complex dynamical behaviors.

However, the disease has a relation with the initial values because Hopf bifurcation and flip bifurcation are local bifurcations. If we obtain the global bifurcation, then the disease has no relation with the initial values. There are still some interesting open problems: whether we can prove the existence of the flip bifurcation, and whether we can find an effective way to prove the global stability of model (2), such as by constructing Lyapunov function. In addition, the Hopf bifurcation is a type codimension-one bifurcation, that is, the bifurcation results by one bifurcation parameter. In [39, 40], the authors discussed the codimension-two bifurcation, which is controlled by two bifurcation parameters. For model (2), one addressed whether there exists a codimension-two bifurcation with the eigenvalues \(w=\pm i, \frac{-1\pm\sqrt{3}i}{2}\) when two bifurcation parameters are changed. Moreover, other discretization methods (such as the backward Euler method, the nonstandard finite difference scheme) can be used on model (1) to obtain the corresponding discrete model. For the new discrete model, one may ask whether there exist bifurcation and chaos. These issues will be discussed in the future.

Some real data from a known epidemic disease to illustrate the validity of our theoretical results also should be considered in our future work, such as how to predict the occurrence and the controlling of disease, and in which way complex behaviors (including bifurcations, chaos, and strange attractors) have impact on the dynamics of disease.