- Research
- Open Access
- Published:

# Andronov–Hopf and Neimark–Sacker bifurcations in time-delay differential equations and difference equations with applications to models for diseases and animal populations

*Advances in Difference Equations*
**volume 2020**, Article number: 190 (2020)

## Abstract

In many areas, researchers might think that a differential equation model is required, but one might be forced to use an approximate difference equation model if data is only available at discrete points in time. In this paper, a detailed comparison is given of the behavior of continuous and discrete models for two representative time-delay models, namely a model for HIV and an extended logistic growth model. For each model, there are seven different time-delay versions because there are seven different positions to include time delays. For the seven different time-delay versions of each model, proofs are given of necessary and sufficient conditions for the existence and stability of equilibrium points and for the existence of Andronov–Hopf bifurcations in the differential equations and Neimark–Sacker bifurcations in the difference equations. We show that only five of the seven time-delay versions have bifurcations and that all bifurcation versions have supercritical limit cycles with one having a repelling cycle and four having attracting cycles. Numerical simulations are used to illustrate the analytical results and to show that critical times for Neimark–Sacker bifurcations are less than critical times for Andronov–Hopf bifurcations but converge to them as the time step of the discretization tends to zero.

## 1 Introduction

In recent years, time-delay differential equation and difference equation models have been studied by many authors (see, e.g., [1–16]) as they are useful tools for modeling a wide variety of systems in areas including traditional areas such as physics and engineering and newer areas such as disease transmission, medical research, optimal drug treatment, bioeconomics, agriculture, finance, insurance, and environmental protection. In many of these time-delay models, bifurcations occur as values of parameters are changed. For example, Andronov–Hopf bifurcations can occur in differential equation systems and Neimark–Sacker bifurcations can occur in difference equation systems at critical values of time delays. In some cases, the changes in system parameters can also lead to chaotic-type solutions (see, e.g. [17, 18]).

In many applications, the preferred model is a differential equation model. However, as the growth rate of diseases (such as HIV) or other kinds of populations (such as fish or animal populations) can be a slow process or the collection of data may often only be carried out at regular intervals such as a month or a year, it is often only possible to construct difference equation models. One method that is often used to construct a difference equation model is to use a first-order Euler method to approximate the differential equation model [1, 2, 19–22]. This method is also often used to solve Itó stochastic differential equations as, for example, in the Euler–Mayurama method [1, 23].

As stated above, an important property of many time-delay differential equation models is that they have Andronov–Hopf bifurcations and an important property of many time-delay difference equation models is that they have Neimark–Sacker bifurcations [24]. Because difference equation models are often used to approximate differential equation models, we believe that it is important to study the relationship between the bifurcations in the differential equations and the approximating difference equations.

In this paper, we analyze the bifurcation properties of one-dimensional time-delay differential equation models and the corresponding discrete models obtained by the forward Euler approximation. As examples, we consider time-delay versions of two systems. The first system is a model discussed by Roberts and Saha [25] and Ding et al. [26] for transmission of HIV in a human population. This model includes the effects of vertical HIV transmission from mother to baby, the effects of births and deaths and of treatment by antivirals. The second system is an extended logistic growth model (ELM) that has been applied to forecasting short lifecycle products and services by Trappey and Wu [27], and to growth of single-species populations by He et al. [1] and Sakanoue [28].

For both the HIV and the ELM models, there are seven different versions of time-delay models that can be created from the original models. For each model, we first investigate the properties of the seven different versions of differential equation models and prove conditions for the existence and stability of equilibrium points and for the existence of Andronov–Hopf bifurcations at critical values of the time delays. We then investigate the properties of discretized versions of the models and prove conditions for the existence and stability of equilibrium points and for the existence of Neimark–Sacker bifurcations at critical values of the time delays. We show that both differential equation and difference equation models may have bifurcations from both disease-free and endemic equilibrium points. For the disease-free equilibrium, four of the seven different versions satisfy the bifurcation conditions, and for the endemic equilibrium five of the seven versions have bifurcations. For the bifurcations from the endemic equilibrium points, we show that for each version with bifurcations the critical delay times for Neimark–Sacker bifurcations are less than the critical times for Andronov–Hopf bifurcations but converge to them as the time step of the discretization in the discretized model tends to zero. Numerical simulations are presented for a range of parameter values to illustrate the analytical results. Applications of the results are given to the modeling of HIV transmission and to the modeling of populations.

## 2 Differential equation models

In this section, we describe the differential equation models for HIV and extended logistic growth (ELM) that we study in this paper.

### 2.1 HIV models

Many researchers have developed mathematical models to study the transmission of HIV at either the CD4+ T-cell level (see, e.g., [3, 4, 7, 29–33]) or at the population level (see, e.g., [25, 26, 34, 35]). In the present research, we study a model for transmission of HIV at the population level originally proposed by Roberts and Saha [25] as a general epidemic model, and later developed by Ding et al. [26] as a stochastic differential equation model for the progression to AIDS in a population infected with HIV. The nonlinear, logistic-type, differential equation model discussed by Ding et al. is as follows (see also [35]):

where \(x(t)\) is the proportion of the total population that is infected by HIV at time *t*, *p* (\(0< p<1\)) is the vertical transmission probability (the fraction of babies born with HIV infection), *B* is the birth rate for the population, *β* is the transmission rate on contact between an infected and an uninfected individual, *C* is the contact rate between infected and uninfected individuals, and *α* is the increase of the death rate due to the HIV infection.

The development of antiretroviral therapy using reverse transcriptase inhibitors (RTI) and protease inhibitors (PI) has been shown to be an effective method of controlling the spread of HIV by depressing the level of virus in an HIV+ person below a detectable level [29–33, 36] and to effectively stop transmission of HIV from an HIV+ person to an uninfected person [37–42]. In the present model, we assume that the effects of both the RTI and the PI can be included in the model in (1) as factors reducing the value of *β* (the rate of infection on contact) and *p* (the vertical transmission probability). Following Darlai et al. [35], we assume that

where \(n_{\mathrm{av}}\) is an antiretroviral therapy factor (\(0 \leq n_{\mathrm{av}} < 1\)) and \(\beta _{0}\) and \(p_{0}\) are, respectively, the infection rate of a susceptible person and the vertical transmission probability in the absence of antiretroviral therapy.

For simplicity, we rewrite (1) as

where \(\delta = (1-p)B > 0\) and \(\varepsilon = \beta C -\alpha > 0\). Equation (3) is the well-known logistic equation model with an added death rate term \(-\delta x(t)\).

### 2.2 Extended logistic growth models

As stated previously, extended logistic growth models have been applied to forecasting short lifecycle products and services by Trappey and Wu [27], and to growth of single-species populations by Sakanoue [28].

In this paper, we study the extended logistic growth model discussed by He et al. [1]:

where \(x(t)\) is the population at time *t*, and *r* is the natural death rate of the population at low population levels. The parameters *β*, *γ*, *K* are positive parameters, where *β* is a natural birth rate at low population levels, *K* is the “carrying capacity” of the system, and the factor \((x(t)/K)^{\gamma }\) is the rate at which the birth rate decreases as \(x(t) \rightarrow K\). This reduction in the birth rate could be due, for example, to factors such as overcrowding or limits in the available food supply.

## 3 Time-delay differential equation models

In this paper, we extend the models in Eqs. (3) and (4) by introducing time delays into the models. As shown in Table 1, there are seven time-delay versions of the two differential equation models. We use code “n” for no time delay and “d” for time delay. Then, for example, “dnd” means time delays in positions 1 and 3 and no time delay in position 2.

Darlai et al. [35] have studied the Andronov–Hopf and Neimark–Sacker bifurcations in HIV3:nnd and HIV7:ddd, and He et al. [1] have studied the Neimark–Sacker bifurcations in ELM6:ndd.

## 4 Time-delay difference equation models

Using the first-order Euler method, we discretize the independent variable *t* with a step size *h*, and replace a first-order system of differential equations of the form

where \(t_{n} = t_{0} +nh\), \(n=0,1,2,\ldots \) , and \(w_{n} = x(t_{n})\). The HIV and ELM difference equation models for zero time delays can then be written in the form

### Note

As in all difference equation approximations to differential equations, it is necessary to check that the approximation is a numerically stable approximation to the original differential equation. It is well known (see, e.g., [43]) that the forward Euler approximation can be numerically unstable unless an upper limit is placed on the step size *h*. It is therefore necessary to check that a Neimark–Sacker bifurcation corresponds to an Andronov–Hopf bifurcation of the original differential equation model and that it is not a bifurcation arising from the instability of the forward-Euler method.

To obtain the first-order Euler approximations to the seven HIV and ELM time-delay differential equations in Table 1, we assume that the time delay *τ* is divided into *m* equal intervals. Then the step size is \(h=h_{m}\tau \), where \(h_{m}=1/m\), and we obtain the seven difference equations in Table 2. It can be seen that each of these Euler approximation equations are difference equations of order \(m+1\).

## 5 Equilibrium points, stability and Andronov–Hopf bifurcations of differential equation models

### 5.1 Equilibrium points

For each model, the equilibrium points \(x^{*}\) for the differential equations (3) and (4), and the seven time-delay differential equation versions in Table 1 are the same and are obtained by setting \(\frac{dx}{dt} = 0\). For each model, there is a trivial equilibrium point \(x^{*} = 0\) and an endemic equilibrium point which exists only if \(x^{*} > 0\). The equilibrium points for the models are

For both models, the endemic equilbrium exists only if \(R_{0} > 1\).

### 5.2 Local asymptotic stability

The conditions for local asymptotic stability of the equilibrium points can be obtained by using a standard approach, such as the next-generation method [44], or by checking the eigenvalues of the linearized system at the equilibrium points [45]. In this case, it is easy to check the eigenvalues of the linearized equations about the equilibrium points.

We can obtain the linearized versions of the delay equations in Table 1 by defining perturbations \(y(t) = x(t) - x^{*}\) and \(y(t-\tau ) = x(t-\tau )-x^{*}\). The linearized versions can then be written in the standard form

where the *ρ* and *η* values for the linearized equations at the disease-free and endemic equilibrium points are shown in Table 3.

As usual, we assume a trial solution \(y(t)=e^{\lambda t}\). The characteristic equation from the trial solution is then

Then, if the real parts of all eigenvalues *λ* of (9) are negative, the general solution \(y(t) \rightarrow 0\) as \(t \rightarrow \infty \) and the equilibrium point \(x^{*}\) is locally asymptotically stable.

*Zero time delay*. For both disease-free and endemic equilibrium points, the condition for local asymptotic stability is \(\lambda = \rho - \eta < 0\). For the HIV model, the stability condition for the disease-free equilibrium becomes \(\rho - \eta = \varepsilon -\delta < 0\) and for the endemic equilibrium it becomes \(\rho - \eta = \delta - \varepsilon < 0\). Therefore, the HIV disease-free equilibrium is locally asymptotically stable if \(\varepsilon - \delta < 0\), and the basic reproductive number is then \(R_{0} = \frac{\varepsilon }{\delta } < 1\). Similarly, the ELM disease-free equilibrium is locally asymptotically stable if \(\beta -r < 0\), and the basic reproductive number is \(R_{0} = \frac{\beta }{r} < 1\).

Note that, for zero time delay, the disease-free equilibrium is locally asymptotically stable if \(R_{0} < 1\) and unstable if \(R_{0} > 1\), and that the endemic equilibrium exists only if \(R_{0} > 1\).

### 5.3 Andronov–Hopf bifurcations of time-delay models

From bifurcation theory [24], Andronov–Hopf (or Hopf) bifurcations exist in an equilibrium solution if the eigenvalues *λ* of the linearized equation about the equilibrium solution satisfy the Andronov–Hopf bifurcation theorem.

### Theorem 1

(Andronov–Hopf bifurcation theorem)

*A system of time*-*delay ordinary differential equations has an Andronov–Hopf bifucation point if the following conditions are satisfied*:

- (C1)
*There exists a critical value of the time delay*\(\tau =\tau _{c} > 0\)*for which an eigenvalue*\(\lambda _{c} = i\phi _{c}\)*of the Jacobian of the linearized equations is purely imaginary*,*i*.*e*. \(\phi _{c}\)*is real and nonzero*. - (C2)
*For*\(\tau =\tau _{c}\),*all other eigenvalues have negative real parts*,*and for*\(0 < \tau < \tau _{c}\),*all eigenvalues have negative real parts*. - (C3)
*The derivative*\(\frac{d (\Re (\lambda ))}{d\tau } \vert _{\tau =\tau _{c}} \neq 0\),*where*ℜ*denotes real part*.

We first look for possible solutions of the characteristic equation (9) for the endemic equilibrium that satisfy condition (C1) by looking for a purely imaginary solution \(\lambda _{c} = i\phi _{c}\) with \(\phi _{c} > 0\) for \(\tau =\tau _{c} >0\).

### Lemma 1

*Necessary and sufficient conditions for existence of purely imaginary solutions*\(\lambda = i\phi \)*of the characteristic equation*\(\lambda = \rho - \eta e^{-\lambda \tau }\)*satisfying condition* (*C*1) *for*\(\tau =\tau _{c} > 0\)*and*\(\phi =\phi _{c} \neq 0\)*are* 1) \(\eta > 0\)*and* 2) \(|\rho | < \eta \). *If these conditions are satisfied*, *then the corresponding*\(\phi _{c}\)*and*\(\tau _{c}\)*values are given by*

*Note*: *Since complex solutions must exist in complex conjugate pairs*, *we will assume that*\(\phi _{c} = \sqrt{\eta ^{2}-\rho ^{2}} > 0\).

### Proof

Substituting \(\lambda = i\phi \) into (9), separating real and imaginary parts, and solving for *ϕ*, we obtain

where \(\phi =\sqrt{\eta ^{2} -\rho ^{2}}\) is real and nonzero if and only if \(|\rho | < |\eta |\). Then, solving for *τ* in (11), we obtain the expressions for \(\tau _{c}\) in (10), and from the second expression for \(\tau _{c}\) in (10), we see that a real positive solution for \(\tau _{c}\) exists if and only if \(\eta > 0\).

The minimum value of \(\tau _{c}\) satisfying Eq. (10) also satisfies condition (C1) and therefore it is a possible Andronov–Hopf bifurcation point. □

Then, using the values of *ρ* and *η* for the HIV and ELM delay equations given in Table 3, we find that, as shown in Table 4, possible Andronov–Hopf bifurcations can occur from disease-free equilibrium states for four of the time-delay versions and from endemic equilibrium states for five of the versions. However, we have found that bifurcations from the disease-free states give limit cycles that contain negative population values. For these “limit cycle” regions, the extra condition that the state variable cannot be negative must be added to the mathematical model.

In the remainder of this paper, we will only consider bifurcations from endemic equilibrium states.

### Lemma 2

*If the necessary and sufficient conditions stated in Lemma *1*are satisfied for an endemic equilibrium state*, *then the critical*\(\tau _{c} > 0\)*defined in Lemma *1*also satisfies conditions* (C2) *and* (C3) *of the Andronov–Hopf bifurcation theorem*.

### Proof

Let \(\lambda = \mu + i\phi \), where *μ* and *ϕ* are real, and we can assume that \(\phi \geq 0\).

Note: An example of the variation of *μ* and *ϕ* as *τ* is increased that is used in this lemma to prove condition (C2) is shown in Fig. 1. The real and imaginary parts of (9) are \(\mu = \rho -\eta e^{-\mu \tau }\cos (\phi \tau )\), \(\phi = \eta e^{-\mu \tau }\sin (\phi \tau )\), and the real and imaginary parts of the derivative of the characteristic equation (9) with respect to *τ* can be written as:

where

Clearly, *μ* and *ϕ* are continuous functions of *τ*, but the derivatives can be discontinuous if \(\Delta = 0\).

We consider three cases:

- 1.
\(1-\tau \eta e^{-\mu \tau } >0\). At \(\tau =0\), we have \(\mu = \rho - \eta < 0\) and \(\phi = 0\). Further, since \(\mu < 0\) and \(\Delta =1 > 0\), we have \(\frac{d\mu }{d\tau } < 0\) and \(\frac{d\phi }{d\tau } = 0\) at \(\tau = 0\). As

*τ*increases,*μ*will decrease and remain negative and*ϕ*will remain zero. Therefore, the eigenvalue will be real and negative. - 2.
\(1-\tau \eta e^{-\mu \tau } =0\). Since \(\mu < 0\), this condition must occur at some point \(\tau =\tau _{d} > 0\). Also, since \(\phi = 0\) for \(\tau < \tau _{d}\), \(\Delta = 0\) at \(\tau = \tau _{d}\). The derivatives \(\frac{d\mu }{d\tau }\) and \(\frac{d\phi }{d\tau }\) will therefore be discontinuous at \(\tau _{d}\). Then, since \(\phi = 0\) is actually an unstable solution of (13), the discontinuity at \(\tau _{d}\) will make

*ϕ*become nonzero. - 3.
\(1-\tau \eta e^{-\mu \tau } < 0\). As

*τ*increases,*ϕ*becomes non-negative. If \(\phi > 0\), then, for*τ*in the positive neighborhood of \(\tau _{d}\), we have \(\mu < \rho - \eta < 0\), and therefore for small*ϕ*, \(\frac{d\phi }{d\tau } > 0\) if \(\phi > 0\) and \(\frac{d\phi }{d\tau } < 0\) if \(\phi < 0\). Figure 1 shows the case of \(\phi > 0\).In both cases, \(\mu < 0\) and therefore \(\frac{d\mu }{d\tau } > 0\) and

*μ*increases monotonically until \(\mu = 0\). At this point, we see that the Andronov–Hopf bifurcation condition (C1) will be satisfied and we can identify the*τ*value as the critical value \(\tau _{c}\) and the*ϕ*value as the critical value \(\phi _{c}\) defined in Lemma 1. Since \(\mu < 0\) for \(\tau < \tau _{c}\), we have proved condition (C2) for \(\tau _{c}\).

Finally, substituting \(\mu = 0\), \(\phi =\phi _{c}\) and \(\tau =\tau _{c}\) into (12) and (14), we have

Since \(\eta - \rho > 0\), the denominator is always positive and therefore condition (C3) is satisfied. Also, since \(\frac{d\mu }{d\tau } \vert _{\tau =\tau _{c}}>0\), the bifurcation will occur as *τ* increases to \(\tau _{c}\). The proof is complete. □

Combining the results of Lemmas 1 and 2, we obtain the following theorem.

### Theorem 2

*Necessary and sufficient conditions for the existence of an Andronov–Hopf bifurcation in the endemic equilibrium points in equation* (8) *are*\(\eta > 0\)*and*\(|\rho | < \eta \). *Then the Andronov–Hopf bifurcation exists at a critical time delay*:

*where*\(\phi _{c} = \sqrt{\eta ^{2} - \rho ^{2}}\). *Further*, *the bifurcation occurs as**τ**increases through*\(\tau _{c}\).

## 6 Equilibrium points, stability and Neimark–Sacker bifurcations of difference equation models

### 6.1 Equilibrium points and basic reproduction numbers

The equilibrium points \(w^{*}\) for the difference equation models are obtained by setting \(w_{n+1} = w_{n} = w_{n-m}=w^{*}\) in equation (6). For each model, we obtain a trivial equilibrium point \(w^{*} = 0\) and an endemic equilibrium point given by

For the HIV model, the endemic equilibrium exists only if \(\varepsilon > \delta \), and for the extended logistic model, the endemic equilibrium exists only if \(\beta > r\). The equilibrium points in (17) are also equilibrium points for the differential equation models.

To obtain the basic reproductive numbers \(R_{0}\) for local stability of the disease-free equilibrium points, we check the eigenvalues of the linearized system at the disease-free equilibrium. We let \(y_{n} = w_{n}-w^{*}\) and assume that \(y_{n}\) is small. Then the linearized equations are:

Therefore, the HIV disease-free equilibrium is locally asymptotically stable if \(|1-h_{m}(\delta - \varepsilon )| < 1\), i.e., if \(R_{0} = \frac{\varepsilon }{\delta } < 1\). Similarly, the ELM disease-free equilibrium is locally asymptotically stable if \(R_{0} = |1-h_{m}(r-\beta )| < 1\), i.e., if \(R_{0} = \frac{\beta }{r} < 1\).

Note that in both cases, the disease-free equilibrium is locally asymptotically stable if \(R_{0} < 1\), whereas the endemic equilibrium exists only if \(R_{0} > 1\). Also, as noted in section (4), the stability conditions for the numerical stability of the forward Euler approximation put an upper limit on the step size \(h=h_{m}\tau \) in the difference equations (18).

### 6.2 Conditions for Neimark–Sacker bifurcations

We obtain the conditions for Neimark–Sacker bifurcations of the endemic equilibrium solutions of the nonlinear HIV and ELM equations (18) from the linearized equations about the endemic equilibrium points.

To obtain the linearized, time-delayed versions of the nonlinear difference equations, we define \(y_{n+1} = w_{n+1} - w^{*}\), \(y_{n} = w_{n} - w^{*}\) and \(y_{n-m} = w_{n-m} - w^{*}\). Then we obtain

where *ρ* and *η* are constants and \(h_{m}=1/m\). The values of these constants for the seven linearized versions of the discrete HIV and ELM equations are the same as the values given in Table 3 for the seven linearized versions of the HIV and ELM differential equations in Table 1.

Then, assuming a trial solution of the form \(y_{n} = \lambda ^{n}\) for (19), we obtain the characteristic equation, which it is convenient to write in the alternative forms

From the real and imaginary parts of the characteristic equations in (20)–(22), we obtain the conditions

From bifurcation theory [24], the conditions for the existence of a Neimark–Sacker bifurcation are as follows.

### Theorem 3

(Neimark–Sacker bifurcation theorem)

*A Neimark–Sacker bifurcation point occurs if there exists a time delay*\(\tau =\tau _{c}\)*such that the eigenvalues*\(\lambda (\tau ) = r(\tau )e^{i\omega (\tau )}\)*of a linearized system of nonlinear difference equations satisfy the following conditions*:

- (C1)
*For*\(\tau = \tau _{c}\),*there exists a complex conjugate pair of eigenvalues on the unit circle*,*i*.*e*., \(r(\tau _{c}) = 1\), \(\lambda (\tau _{c}) = e^{\pm i\omega _{c}}\)*and*\(0 < \omega (\tau _{c}) = \omega _{c} < \pi \). - (C2)
*At*\(\tau = \tau _{c}\),*all other eigenvalues are inside the unit circle and*,*for*\(0< \tau < \tau _{c}\),*all eigenvalues are inside the unit circle*. - (C3)
\(r'(\tau _{c}) = \frac{d r(\tau )}{d\tau } \vert _{ \tau =\tau _{c}}\neq 0\).

- (C4)
\(e^{ik\omega _{c}}\neq 1\),

*for*\(k=1,2,3,4\). - (C5)
\(\Re [e^{-i\omega _{c}}c_{1} (\tau _{c} ) ]\neq 0\),

*where*\(c_{1}(\tau _{c})\)*is a critical function that determines the direction and stability of Neimark–Sacker bifurcations*(*see*,*e*.*g*., [19, 24]*and the section on direction and stability of the Neimark–Sacker bifurcations*,*Sect*. 7).

*If the condition* (C5) *of the Neimark–Sacker theorem is satisfied*, *then an invariant closed curve*, *topologically equivalent to a circle*, *will occur for**τ**in a one sided neighborhood of*\(\tau _{c}\). *The radius of the invariant curve will grow like*\(O (\sqrt{ |\tau -\tau _{c} |} )\). *One of the four cases below applies*:

- 1.
\(r' (\tau _{c} )>0\).

*The endemic equilibrium point is locally asymptotically stable for*\(\tau <\tau _{c}\)*and unstable for*\(\tau >\tau _{c}\).- (a)
\(\Re [e^{-i\omega _{c}}c_{1} (\tau _{c} ) ]<0\).

*An attracting invariant closed curve exists for*\(\tau >\tau _{c}\). - (b)
\(\Re [e^{-i\omega _{c}}c_{1} (\tau _{c} ) ] >0\).

*A repelling invariant closed curve exists for*\(\tau >\tau _{c}\).

- (a)
- 2.
\(r' (\tau _{c} )<0\).

*The endemic equilibrium point is unstable for*\(\tau < \tau _{c}\)*and locally asymptotically stable for*\(\tau >\tau _{c}\).- (a)
\(\Re [e^{-i\omega _{c}}c_{1} (\tau _{c} ) ]<0\).

*An attracting invariant closed curve exists for*\(\tau <\tau _{c}\). - (b)
\(\Re [e^{-i\omega _{c}}c_{1} (\tau _{c} ) ]>0\).

*A repelling invariant closed curve exists for*\(\tau <\tau _{c}\).

- (a)

We first look for solutions of the characteristic equations (20)–(22) that satisfy condition (C1) of Theorem 3.

### Lemma 3

*A complex conjugate pair of eigenvalues of the characteristic equations* (20)*–*(22) *lie on the unit circle with*\(\lambda = e^{i\omega _{c}}\)*for a positive value of the delay**τ**if the following conditions are satisfied*:

- 1.
*A positive real solution*\(\omega =\omega _{c}\), \(0< \omega _{c} < \pi \),*exists for the equation*$$ R(\omega )=\rho \cos \biggl(\frac{1}{2}\omega \biggr) - \eta \cos \biggl(\biggl(m+\frac{1}{2}\biggr) \omega \biggr) = 0. $$(29) - 2.
*A positive value of*\(\tau = \tau _{c}\)*exists such that*\(\tau _{c}= \tau _{1}(\omega _{c})= \tau _{2}(\omega _{c})=\tau _{3}( \omega _{c})\),*where*$$ \begin{aligned} &\tau _{1}(\omega )=\frac{m}{\rho } \biggl( \frac{\sin ((m+1)\omega )}{\sin (m\omega )} -1 \biggr)= \frac{2m\cos ((m+\frac{1}{2})\omega )\sin (\frac{1}{2}\omega )}{\rho \sin (m\omega )} , \\ &\tau _{2}(\omega )= \frac{2m\sin ^{2}(\frac{1}{2}\omega )}{\eta \cos (m\omega )-\rho },\qquad \tau _{3}(\omega )= \frac{m\sin (\omega )}{\eta \sin (m\omega )}. \end{aligned} $$(30)

*Note*: *Since any complex eigenvalues must occur in complex conjugate pairs*, *existence of an eigenvalue with*\(\omega =\omega _{c} > 0\)*implies existence of an eigenvalue with*\(\omega =-\omega _{c} < 0\).

### Proof

Taking the real part of the characteristic equation \(P_{3}(\lambda )=0\) in (22) for \(\lambda = e^{\pm i\omega }\), we obtain the condition in (29). Then, taking the imaginary part of \(P_{1}(\lambda ) = 0\), and the real and imaginary parts of \(P_{2}(\lambda ) =0\), for \(\lambda = e^{\pm i\omega }\), we obtain the formulas for \(\tau _{1}(\omega )\), \(\tau _{2}(\omega )\), \(\tau _{3}(\omega )\) in (30). Therefore, if conditions 1 and 2 of the lemma are satisfied, then \(\lambda _{c} = e^{i\omega _{c}}\) is a solution of the characteristic equations in (20)–(22) for a real positive value of the time delay. □

We now prove the following lemma.

### Lemma 4

*Necessary and sufficient conditions for the critical value*\(\tau _{c} > 0\)*defined in Lemma *3*to exist are*: \(|\rho | < \eta \)*and*\(\eta > 0\).

### Proof

If \(\lambda = r\) for real *r*, then the characteristic equation \(P_{2}(\lambda )=0\) in (21) is \(m(r-1) = \tau (\rho - \eta r^{-m})\). Then, differentiating this equation with respect to *τ*, we have

For \(\tau = 0\), a real solution of the characteristic equation \(m(r-1) = \tau (\rho - \eta r^{-m})\) is \(r=1\) and, at \(r=1\), the derivative \(\frac{dr}{d \tau } = \frac{\rho -\eta }{m}\). Therefore, if \(\rho -\eta \geq 0\), then a real eigenvalue will remain on or move outside the unit circle for \(\tau > 0\), and hence \(\tau _{c}\) cannot be a Neimark–Sacker bifurcation point. Therefore, \(\rho -\eta < 0\) is a necessary condition for real eigenvalues to lie inside the unit circle in the positive neighborhood of \(\tau =0\).

We next prove that necessary and sufficient conditions for \(\tau _{c} > 0\) to exist are that \(\eta ^{2} - \rho ^{2} > 0\). From the formulas for \(\tau _{2}(\omega _{c})\) and \(\tau _{3}(\omega _{c})\) in (30) and the condition that \(0 < \omega _{c} < \pi \), it can be seen that necessary conditions for \(\tau _{2}(\omega _{c})\) and \(\tau _{3}(\omega _{c})\) to be positive are that \(\sin (\omega _{c}) > 0\) and \(\sin (\frac{1}{2}\omega _{c}) > 0\). Therefore, necessary conditions for \(\tau _{c} = \tau _{2}(\omega _{c}) = \tau _{3}(\omega _{c})> 0\) to exist are

Next, if \(\rho -\eta < 0\) and \(\eta ^{2} - \rho ^{2} > 0\), then \(\rho + \eta > 0\). Then, since \(\rho - \eta <0\) and \(\rho +\eta > 0\), it is necessary that \(\eta > 0\) and \(|\rho | < \eta \).

We now prove that the conditions are sufficient. In Eq. (29), the function \(R(\omega )\) is a continuous function of *ω* for \(0 \leq \omega \leq \pi \). We have \(R(0) = \rho - \eta < 0\) and \(R(\frac{2\pi }{2m+1}) = \rho \cos (\frac{\pi }{2m+1}) + \eta > 0\). Therefore, from the intermediate value theorem of elementary calculus, \(R(\omega ) = 0\) for at least one \(\omega \in (0,\frac{2\pi }{2m+1})\).

Therefore, from Lemma 3, \(\tau = \tau _{c}\) exists and satisfies condition (C1) of the Neimark–Sacker theorem. The proof is complete □

We now prove condition (C2).

### Lemma 5

*If the necessary and sufficient conditions stated in Lemma *4*are satisfied*, *then the critical*\(\tau _{c} > 0\)*defined in Lemma *3*also satisfies condition* (C2) *of the Neimark–Sacker bifurcation theorem*.

Note: An example of the variation of *r* and *ω* as *τ* is increased that is used in this lemma to prove condition (C2) is shown in Fig. 2.

### Proof

Let \(\lambda = r e^{i \omega }\), where \(r \geq 0\) and \(\omega \neq 0\) are real. Also, since any complex eigenvalues must occur in complex conjugate pairs, we can assume that \(0 < \omega < \pi \).

Then, differentiating Eqs. (23) and (24) with respect to *τ* and simplifying using (23)–(26), we can write the derivatives for *r* and *ω* in the forms

where

As for the Andronov–Hopf bifurcation, we consider three cases.

- 1.
\(r^{m+1} - \eta \tau > 0\). Then, at \(\tau = 0\), we have from (20) \(\lambda = r= 1\), and \(\omega = 0\), and from (34) that \(\frac{d\omega }{d\tau } = 0\). Hence, in the positive neighborhood of \(\tau = 0\), we have \(\omega = 0\) and then

$$ \Delta = m\bigl(r^{m+1} - \eta \tau \bigr)^{2} \quad \mbox{and}\quad \frac{dr}{d\tau } = \frac{\rho r^{m} - \eta }{m(r^{m+1}-\eta \tau )} < 0. $$(36)Therefore, as shown in Fig. 2, for \(r^{m+1} - \eta \tau > 0\), the modulus

*r*decreases and the angle*ω*remains zero. - 2.
\(r^{m+1} - \eta \tau = 0\). At \(\tau = \tau _{d} = \frac{r^{m+1}}{\eta }\), the denominator \(\Delta =0\) and, as shown in Fig. 2, the derivatives \(\frac{dr}{d\tau }\) and \(\frac{d\omega }{d\tau }\) are discontinuous. Then, since \(\omega =0\) is an unstable solution of (34),

*ω*becomes nonzero (positive in Fig. 2) in the positive neighborhood of \(\tau _{d}\). - 3.
\(r^{m+1} - \eta \tau < 0\). In this case, it can be seen from Eq. (33) that \(\frac{dr}{d\tau } > 0\), and therefore

*r*increases.We now show that \(r^{m+1}-\eta \tau < 0\) for all \(\tau \leq \tau _{c}\). From (26), we have

$$ \frac{r^{m+1}}{\eta \tau } = \frac{\sin (m\omega )}{m\sin (\omega )}. $$(37)Also, from Lemma 4, we have the condition that, for \(\omega \neq 0\), the critical value of \(\omega _{c} \in (0,\frac{2\pi }{2m+1})\). It is straightforward to prove that

$$ \frac{\sin (m\omega )}{m\sin (\omega )} < 1\quad \mbox{for } \omega \in \biggl(0,\frac{2\pi }{2m+1} \biggr]. $$(38)Therefore \(r^{m+1}-\eta \tau < 0\) for \(\tau _{d} < \tau \leq \tau _{c}\), and hence

*r*is a continuous, monotonically increasing function of*τ*for \(\tau _{d} \leq \tau \leq \tau _{c}\). Therefore \(\tau = \tau _{c}\) is the minimum value of*τ*for which \(r=1\). The proof is complete.

□

We now prove condition (C3).

### Lemma 6

*If the necessary and sufficient conditions stated in Lemma *4*are satisfied*, *then the critical*\(\tau _{c} > 0\)*defined in Lemma *3*also satisfies condition* (C3) *of the Neimark–Sacker bifurcation theorem*.

### Proof

As shown in Lemma 5, \(\frac{dr}{d\tau } > 0\) for \(\tau _{d} < \tau \leq \tau _{c}\), and therefore condition (C3) is satisfied. □

We now prove condition (C4).

### Lemma 7

*If the necessary and sufficient conditions given in Lemma *4*for*\(\tau _{c} > 0\)*to exist are satisfied and if*\(m > 1\), *then the corresponding critical argument*\(\omega = \omega _{c}\)*satisfies the conditions*\(e^{ik\omega _{c}}\neq 1\)*for*\(k=1,2,3,4\).

### Proof

Since \(0 < \omega _{c} < \frac{2\pi }{2m+1}\) and \(m >1\), we have \(0 < k\omega _{c} < 2\pi \) for \(k=1,2,3,4\) and therefore \(e^{ik\omega _{c}}\neq 1\). □

Then, combining Lemmas 3–7, we have the following theorem.

### Theorem 4

*If the necessary and sufficient conditions stated in Lemma *4*are satisfied and if*\(m>1\), *then a critical time delay*\(\tau _{c} > 0\)*exists for Eq*. (19) *that satisfies conditions* (C1), (C2), (C3) *and* (C4) *of the Neimark–Sacker bifurcation theorem*.

Then, from Theorem 4, we have shown that the conditions for possible Neimark–Sacker bifurcations for the seven versions of the discrete HIV and extended logistic model equations are the same as the values given in Table 4 for the seven versions of the HIV and ELM differential equations in Table 1.

## 7 Direction and stability of the Neimark–Sacker bifurcations

In this section, we find the direction and stability of Neimark–Sacker bifurcations by studying condition (C5) of the Neimark–Sacker theorem for the five versions \((\mathrm{dnn},\mathrm{nnd}, \mathrm{dnd}, \mathrm{ndd},\mathrm{ddd})\) of the time-delay difference equations that show bifurcations. To prove condition (C5), we follow the method given in Li [19] and Kuznetsov [24] to compute the function called \(c_{1}(\tau )\) for the critical value \(\tau = \tau _{c}\). The main ideas in the derivation are to replace the single nonlinear difference equations of order \(m+1\) in the perturbations \(y_{n} = w_{n} -w^{*}\) by a system of \(m+1\) first-order difference equations and then to examine the terms up to third order in \(y_{n}\) in the Taylor series expansions of the right-hand sides of these systems of first-order nonlinear difference equations. The critical function \(c_{1}(\tau _{c})\) can then be computed from these terms.

The terms up to third order of the nonlinear difference equations for the five versions of the HIV and ELM models are shown in Table 5.

We now introduce a vector \(Y_{n} = (y_{n},y_{n-1},y_{n-2},\ldots ,y_{n-m})^{T}\), \(n \geq m\) and write the system of first-order difference equations up to third order in the Taylor series expansion in the form

In (39), \(\mathcal{A}\) is the Jacobian of the system of \(m+1\) first-order difference equations and \(\mathcal{B}\) and \(\mathcal{C}\) are the second- and third-order terms in the system. We will first discuss the Jacobian and eigenvectors and then give the formulas for the second- and third-order terms. Finally, we will derive the formula for the critical coefficient \(c_{1}(\tau _{c})\) for the five HIV and ELM versions that have Neimark–Sacker bifurcations.

### 7.1 The Jacobian matrix and eigenvectors

The Jacobian matrix \(\mathcal{A}= J(\tau )\) for the linearized system of \(m+1\) first-order equations corresponding to the nonlinear difference equations in (19) is given by

Since the Jacobian matrix is the companion matrix [43] of the characteristic equation (20), the eigenvalues of the Jacobian matrix and the characteristic equation are the same. For a critical value \(\tau _{c}\), a solution of the characteristic equation (20) is \(\lambda _{c} = e^{i\omega _{c}}\). Then the eigenvector of \(J(\tau )\) for the eigenvalue \(\lambda _{c} = e^{i\omega _{c}}\) can be written in the form

where we have chosen \(q_{m} =1\) as a normalization constant.

Following Li [19], we also introduce the adjoint eigenvector

of the transposed Jacobian matrix \(J(\tau _{c})^{T}\). In (42), \(\sigma =-\eta h_{m}\tau _{c}\), and \(D= (e^{-im\omega _{c}}+m\sigma e^{i\omega _{c}} )^{-1}\) is a normalization constant chosen so that the inner product of the eigenvector (41) and adjoint eigenvector (42) satisfy \(\langle q^{*},q \rangle =1\).

### 7.2 The second- and third-order terms

The formulas for the second- and third-order terms in Eq. (39) are given by

where the \(b_{0}\) and \(c_{0}\) terms are second- and third-order partial derivatives, respectively, of the right-hand sides of the system of \(m+1\) first-order nonlinear difference equations corresponding to the nonlinear difference equations in Table 5. The values of the \(b_{0}\) and \(c_{0}\) terms for the five versions of the HIV and ELM models are shown in Table 6.

Following the algorithms in Li [19] and Kuznetsov [24], we concentrate on the expression for the critical coefficient \(c_{1} (\tau _{c} )\),

where

and

The formulas for the \(b_{0}\), \(c_{0}\) and inner products required to compute the terms in (46) are shown in Table 7. The values of the characteristic polynomial \(P_{1}(\lambda )\) (Eq. (20)) required in (46) are \(P_{1} (1 )=h_{m}\tau (\eta - \rho )\) and \(P_{1} (e^{2i\omega _{c}} ) =e^{2i(m+1)\omega _{c}}-e^{2im \omega _{c}}+h_{m}\tau ( \eta - \rho e^{2im\omega _{c}})\). The values of \(p(1)\) and \(p(\lambda _{c}^{2})\) can be obtained from (48).

## 8 Numerical simulations

In this section, we present results of numerical simulations to illustrate the analytical results obtained in previous sections. We show the following.

- 1.
The different behaviors of the five versions of the differential and difference equations which show bifurcations as the reproductive numbers and time delays are varied. In particular, we show the qualitatively different behavior of the supercritical limit cycles of the five versions.

- 2.
The convergence of the Neimark–Sacker critical values to the Andronov–Hopf critical values as the value of

*m*is increased. - 3.
The applications of the HIV models to HIV control and of the ELM models to the study of animal populations.

The parameter values used in the HIV simulations are given in Table 8 and were selected from [46]. The parameter values used in the ELM simulations are shown in Table 9 and were selected from [1].

### 8.1 Comparison of qualitative behavior of versions

As shown previously, the equilibrium populations and values of \(R_{0}\) for the differential equation and difference equation models are the same. The equilibrium population and \(R_{0}\) values for the data sets in Tables 8 and 9 are shown in Table 10.

Therefore, for zero time delay for both the differential equation and the difference equation models, the disease-free equilibrium is locally asymptotically stable for HIV set 3 of Table 8 and the endemic equilibria exist and are locally asymptotically stable for HIV sets 1 and 2 of Table 8 and ELM set 1 of Table 9.

### 8.2 Andronov–Hopf and Neimark–Sacker bifurcations

For the parameter values in Tables 8 and 9, critical delay conditions for Andronov–Hopf bifurcation (Theorem 1) and Neimark–Sacker bifurcation (Theorem 3) of the endemic equilibria for the five HIV and ELM versions are shown in Tables 11 and 12. It can be seen that the results for the HIV and ELM models are similar. For the HIV model, the Andronov–Hopf and Neimark–Sacker bifurcations occur for the bounded region \(1 < R_{0} < 3\) for version 1, and for unbounded regions \(R_{0} > 1\) for versions 3, 5, 7, and for \(R_{0} >3\) for version 6. Similarly, for the ELM model, the Andronov–Hopf and Neimark–Sacker bifurcations occur for the bounded region \(1 < R_{0} < 2\) for version 1, and for unbounded regions \(R_{0} > 1\) for versions 3, 5, 7, and for \(R_{0} >2\) for version 6. It can also be seen from these tables, that, for version 1 of both models, the C5 conditions of Theorem 3 correspond to a repelling invariant closed curve for \(\tau > \tau _{c}\), whereas for versions 3, 5, 6, 7 the C5 conditions correspond to an attracting invariant closed curve for \(\tau > \tau _{c}\).

Examples of plots of the time dependence of the solutions for time delays \(\tau < \tau _{c}\) are shown in Fig. 3 for the differential equations in Table 1 and in Fig. 4 for the difference equations in Table 2. Examples of plots of the time dependence of the solutions for time delays \(\tau > \tau _{c}\) are shown in Fig. 5 for the differential equations in Table 1 and in Fig. 6 for the difference equations in Table 2. The figures show plots for HIV and ELM versions 1 and 6. The plots for HIV and ELM models are qualitatively similar, but slightly different in detail. As noted in Sect. 8.2, the bifurcation occurs as *τ* increases through \(\tau _{c}\) and the invariant closed curve is a repelling curve for version 1 and an attracting curve for version 6.

As shown in Tables 4, 11 and 12, Andronov-Hopf and Neimark-Sacker bifurcations can only occur for a range of \(R_{0}\) values for the five versions with bifurcations. The plots in Fig. 7 give examples of the change in critical *τ* value with \(R_{0}\) for version 1 (finite range) and version 6 (lower bound).

### 8.3 Comparison of critical values for Andronov–Hopf and Neimark–Sacker bifurcations

From Tables 11 and 12, we have for condition (C3) of the Andronov–Hopf theorem that the values for the derivatives of the real part of the eigenvalues at the critical point \(\frac{d\mu }{d\tau } \vert _{\tau _{c}}\) are greater than zero for all versions. Therefore, the Andronov–Hopf bifurcations will occur as *τ* increases through \(\tau _{c}\) for all versions. It can also be seen from Tables 11 and 12 that case (1) of the condition (C5) of the Neimark–Sacker theorem occurs for version 1 (dnn) of the HIV and ELM discrete models and that case (2) occurs for versions 3 (nnd), 5 (dnd), 6 (ndd) and 7 (ddd). Therefore the Neimark–Sacker bifurcations will occur as *τ* increases through \(\tau _{c}\) for all versions, but version 1 will have a repelling limit cycle and versions 3, 5, 6, 7 will have attracting limit cycles.

A comparison of the critical delay values \(\tau _{c}\) for the Andronov–Hopf and Neimark–Sacker bifurcations are shown in Fig. 8. It can be seen that the Neimark–Sacker values tend to the Andronov–Hopf values as the value of *m* increases, i.e., as the step size \(h=1/m\) in the Euler difference equation approximation for the differential equation is reduced. These results suggest that difference equation models based on the Euler approximation can be used to obtain good estimates for critical delay values for models of the type studied in this paper.

### 8.4 Effects of antiretroviral therapy

The effects of increasing the antiretroviral therapy factor \(n_{\mathrm{av}}\) in (2) are shown in Fig. 9. Figure 9(a) shows the reduction in the basic reproduction number, Fig. 9(b) shows the effect on the equilibrium infected population and Fig. 9(c) shows the effect on the critical Andronov–Hopf bifurcation point. In practise, as stated in the introduction, it is well known (see, e.g., [29, 30]) that antiretroviral therapy cannot completely eliminate the virus. However, recent studies (see, e.g., [39, 41, 42]) have suggested that the therapy can reduce the virus sufficiently that HIV transmission from an HIV+ to an uninfected person will not occur.

An important idea in controlling diseases through vaccination and antiretroviral treatment is that of “herd immunity”, i.e., the level of immunity required to make the disease-free equilibrium stable and the endemic equilibrium negative. From Eqs. (2) and (7), we obtain

For sets 1 and 2 of Table 8, we have

## 9 Conclusions

In this paper, the effects of time delays and the associated Andronov–Hopf and Neimark–Sacker bifurcation properties have been studied for two one-dimensional models. The first model has been studied by previous authors as a model for HIV. This model includes the effects of vertical HIV transmission from mother to baby, the effects of births and deaths and treatment by antivirals. The second extended logistic growth model has been studied by previous authors as a model for population growth and for the life cycle of products and services. For each model, we have studied the dynamical behavior of a differential equation model and an equivalent difference equation model obtained from a forward Euler approximation.

For both HIV and ELM, we have shown that there are seven different time-delay versions of the differential equation and equivalent difference equation models and that the seven different versions have very different dynamical behavior. Five of these versions undergo bifurcations from the endemic equilibrium point and two of them have stable endemic equilibrium points for all values of time delay. We have given rigorous proofs of necessary and sufficient conditions for the existence and stability of the equilibrium points and for the existence of Andronov–Hopf and Neimark–Sacker bifurcations at critical values of the time delays for the five versions. For the Neimark–Sacker bifurcations, we have proved analytically and confirmed numerically that one version for each model has a supercritical repelling limit cycle and the remaining four versions have supercritical attracting limit cycles. We have also shown numerically that the same qualitative behavior occurs for the Andronov–Hopf bifurcations.

We have carried out numerical simulations for a range of biologically reasonable parameter values and obtained results that agree with the analytical results. The numerical results have shown that the equilibrium points and bifurcation behavior of an Euler approximation to a differential equation system have the same qualitative behavior as the differential equation system and that the critical bifurcation points of the difference equation converge to the critical times of the differential equation as the number of discretization points is increased.

The results of this paper show that a difference equation approximation can be used to study the dynamical behavior of time-delayed differential equation systems and to give reliable information about the existence and properties of bifurcations.

## References

He, Z., Lai, X., Hou, A.: Stability and Neimark–Sacker bifurcation of numerical discretization of delay differential equations. Chaos Solitons Fractals

**41**(4), 2010–2017 (2009)Xin, B., Chen, T., Ma, J.: Neimark–Sacker bifurcation in a discrete-time financial system. Discrete Dyn. Nat. Soc.

**2010**, Article ID 405639 (2010)Zhu, H., Luo, Y., Chen, M.: Stability and Hopf bifurcation of a HIV infection model with CTL-response delay. Comput. Math. Appl.

**62**(8), 3091–3102 (2011)Hao, L., Yang, Z., Lei, J.: Bifurcation analysis of a delay differential equation model associated with the induction of long-term memory. Chaos Solitons Fractals

**81**, 162–171 (2015)Khan, A.: Neimark–Sacker bifurcation of a two-dimensional discrete-time predator–prey model. SpringerPlus

**5**(1), 126 (2016)Song, Y., Xiao, W., Qi, X.: Stability and Hopf bifurcation of a predator–prey model with stage structure and time delay for the prey. Nonlinear Dyn.

**83**(3), 1409–1418 (2016)Darlai, R., Moore, E.J.: Andronov–Hopf bifurcation and sensitivity analysis of a time-delay HIV model with logistic growth and antiretroviral treatment. Adv. Differ. Equ.

**2017**(1), 138 (2017)Wang, Y., Liu, X.: Stability and Hopf bifurcation of a within-host Chikungunya virus infection model with two delays. Math. Comput. Simul.

**138**, 31–48 (2017)Abdelrahman, M.A., Chatzarakis, G.E., Li, T., Moaaz, O.: On the difference equation \(x_{n+ 1}= a x_{n-l}+ b x_{n-k}+ f (x_{n-l}, x_{n-k}) \). Adv. Differ. Equ.

**2018**(1), 431 (2018)Din, Q., Donchev, T., Kolev, D.: Stability, bifurcation analysis and chaos control in chlorine dioxide–iodine–malonic acid reaction. MATCH Commun. Math. Comput. Chem.

**79**(3), 577–606 (2018)Kaper, T.J., Vo, T.: Delayed loss of stability due to the slow passage through Hopf bifurcations in reaction–diffusion equations. Chaos, Interdiscip. J. Nonlinear Sci.

**28**(9), 091103 (2018)Wang, J., Li, Y., Zhong, S., Hou, X.: Analysis of bifurcation, chaos and pattern formation in a discrete time and space Gierer Meinhardt system. Chaos Solitons Fractals

**118**, 1–17 (2019)Kangalgil, F.: Neimark–Sacker bifurcation and stability analysis of a discrete-time prey–predator model with Allee effect in prey. Adv. Differ. Equ.

**2019**, 92 (2019)Din, Q.: Stability, bifurcation analysis and chaos control for a predator–prey system. J. Vib. Control

**25**(3), 612–626 (2019)Kumar, S., Kharbanda, H.: Chaotic behavior of predator–prey model with group defense and non-linear harvesting in prey. Chaos Solitons Fractals

**119**, 19–28 (2019)Wu, F., Jiao, Y.: Stability and Hopf bifurcation of a predator–prey model. Bound. Value Probl.

**2019**(1), 129 (2019)Moore, E.J., Sarathi, Y., Koonprasert, S.: Bifurcations and chaotic-type solutions in a time-delay model of hematopoietic stem cell growth. Far East J. Math. Sci.

**97**(6), 729 (2015)Boonrangsiman, S., Bunwong, K., Moore, E.J.: A bifurcation path to chaos in a time-delay fisheries predator–prey model with prey consumption by immature and mature predators. Math. Comput. Simul.

**124**, 16–29 (2016)Li, Y.: Dynamics of a discrete food-limited population model with time delay. Appl. Math. Comput.

**218**(12), 6954–6962 (2012)Koto, T.: Neimark–Sacker bifurcations in the Euler method for a delay differential equation. BIT Numer. Math.

**39**(1), 110–115 (1999). https://doi.org/10.1023/A:1022373309178Jiang, X.-W., Zhan, X.-S., Guan, Z.-H., Zhang, X.-H., Yu, L.: Neimark–Sacker bifurcation analysis on a numerical discretization of Gause-type predator–prey model with delay. J. Franklin Inst.

**352**(1), 1–15 (2015)Khan, A.Q., Ma, J., Xiao, D.: Bifurcations of a two-dimensional discrete time plant-herbivore system. Commun. Nonlinear Sci. Numer. Simul.

**39**, 185–198 (2016)Kloeden, P.E., Platen, E., Schurz, H.: Numerical Solution of SDE Through Computer Experiments. Springer, Berlin (2012)

Kuznetsov, Y.A.: Elements of Applied Bifurcation Theory, 3rd edn. Springer, New York (2004)

Roberts, M.G., Saha, A.K.: The asymptotic behaviour of a logistic epidemic model with stochastic disease transmission. Appl. Math. Lett.

**12**(1), 37–41 (1999)Ding, Y., Xu, M., Hu, L.: Asymptotic behavior and stability of a stochastic model for AIDS transmission. Appl. Math. Comput.

**204**(1), 99–108 (2008)Trappey, C.V., Wu, H.: An evaluation of the extended logistic, simple logistic, and Gompertz models for forecasting short lifecycle products and services. In: Loureiro, G., Curran, R. (eds.) Complex Systems Concurrent Engineering, pp. 793–800. Springer, London (2007)

Sakanoue, S.: Extended logistic model for growth of single-species populations. Ecol. Model.

**205**, 159–168 (2007)Rong, L., Perelson, A.S.: Modeling latently infected cell activation: viral and latent reservoir persistence, and viral blips in HIV-infected patients on potent therapy. PLoS Comput. Biol.

**5**(10), 1–18 (2009)Rong, L., Perelson, A.S.: Modeling HIV persistence, the latent reservoir, and viral blips. J. Theor. Biol.

**260**(2), 308–331 (2009)Wang, Y., Liu, J. Liu, L.: Viral dynamics of an HIV model with latent infection incorporating antiretroviral therapy. Adv. Differ. Equ.

**2016**, 225 (2016)Callaway, D.S., Perelson, A.S.: HIV-1 infection and low steady state viral loads. Bull. Math. Biol.

**64**(1), 29–64 (2002)Rong, L., Perelson, A.S.: Asymmetric division of activated latently infected cells may explain the decay kinetics of the HIV-1 latent reservoir and intermittent viral blips. Math. Biosci.

**217**(1), 77–87 (2009)May, M.T., Ingle, S.M.: Life expectancy of HIV-positive adults: a review. Sex. Health

**8**(4), 526–533 (2011)Darlai, R., Moore, E.J., Koonprasert, S.: Andronov–Hopf and Neimark–Sacker bifurcations in time-delay models. Thai J. Math. Special issue: The 22nd Annual Meeting in Mathematics (AMM2017), 241–261 (2018)

Barton, K.M., Burch, B.D., Soriano-Sarabia, N., Margolis, D.M.: Prospects for treatment of latent HIV. Clin. Pharmacol. Ther.

**93**(1), 46–56 (2013)Wikipedia: protease inhibitor (pharmacology). Wikipedia (2016). https://en.wikipedia.org/wiki/Protease_inhibitor_(pharmacology)

Emedicine: antiretroviral therapy for HIV infection. Emedicine (2016). http://emedicine.medscape.com/article/1533218-overview

Unaid: global-AIDS-update2016. Unaid (2016). http://www.unaids.org/sites/default/files/media/asset/global-AIDS-update2016/en.pdf

Wikipedia: reverse-transcriptase inhibitor. Wikipedia (2017). https://en.wikipedia.org/wiki/Reverse-transcriptase_inhibitor

Wilson, C.: A farewell to condoms. New Sci.

**233**(3112), 22–23 (2017)World Health Organization: AIDS. World Health Organization (2017). http://www.who.int/campaigns/tb-day/2017/en/

Burden, R.L., Faires, J.D., Burden, A.M.: Numerical Analysis. Cengage Learning, Boston (2016)

Van den Driessche, P., Watmough, J.: Reproduction numbers and sub-threshold endemic equilibria for compartmental models of disease transmission. Math. Biosci.

**180**(1), 29–48 (2002)David, G.L.: Introduction to Dynamic Systems: Theory, Models and Applications. Wiley, Chichester (1979)

Cai, L., Li, X., Ghosh, M., Guo, B.: Stability analysis of an HIV/AIDS epidemic with treatment. Comput. Appl. Math.

**229**, 313–323 (2009)

### Acknowledgements

R.D. would like to thank the Faculty of Science, Energy and Environment, King Mongkut’s University of Technology North Bangkok (Rayong Campus) for supporting her and encouraging her research activities.

### Availability of data and materials

A published data set from Cao et al. [46] was used in the simulation of the HIV model and a published data set from He et al. [1] was used in the numerical simulation of the extended logistic model.

## Funding

This research was supported by the Centre of Excellence in Mathematics, the Commission of Higher Education, Thailand, and by the Science and Technology Research Institute, King Mongkut’s University of Technology North Bangkok under contract number KMUTNB-61-NEW-018. Financial support for this research was also provided by the Department of Mathematics, King Mongkut’s University of Technology North Bangkok, Thailand. The funding bodies listed above made no contribution to the design of the study and collection, analysis and interpretation of any data or in the writing or editing of the manuscript.

## Author information

### Authors and Affiliations

### Contributions

The authors made equal contributions to the research. All authors read and approved the final manuscript.

### Corresponding author

## Ethics declarations

### Competing interests

The authors declare that they have no competing interests.

## 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

Darlai, R., Moore, E.J. & Koonprasert, S. Andronov–Hopf and Neimark–Sacker bifurcations in time-delay differential equations and difference equations with applications to models for diseases and animal populations.
*Adv Differ Equ* **2020**, 190 (2020). https://doi.org/10.1186/s13662-020-02646-5

Received:

Accepted:

Published:

DOI: https://doi.org/10.1186/s13662-020-02646-5

### MSC

- 05C69
- 05C70
- 05C76

### Keywords

- Andronov–Hopf bifurcation
- Neimark–Sacker bifurcation
- Time delay
- Asymptotic stability
- Limit cycles
- HIV model
- Extended logistic growth model