1 Introduction

In this work. we consider models of ordinary differential equations (ODE) that simulate the dynamics of infectious diseases. The interactions between populations of viruses and the immune system cells are highly non-linear and the details are often unknown. Due introduce to this fact, several ODE models have been proposed, focusing on different aspects of such interactions, aiming the description of the essential features of the problem. Usually, the focus is on the time evolution of the populations of infected and non-infected cells, viruses (sometimes bacteria or other foreign pathogens), and cells of the immune system such as cytotoxic T lymphocytes cells (CTLs), killer cells, antibodies, etc. [1]. If the objective is to replicate empirical data, the use of complex and high-dimensional nonlinear models is mandatory [3]. Unfortunately, there are strong difficulties concerning the estimation of the (several) parameters introduced and the meaning of all the nonlinear interactions proposed. A good alternative is to analyze low-dimensional models and search for those capable of describe the main properties of the immunological system with as few parameters as possible.

Regular one- and two-dimensional systems of ODEs cannot display complex behavior such as chaotic orbits, which are often observed in empirical data [5]. This is the reason why most authors consider models with at least three dimensions. However, even one- and two-dimensional systems may present chaotic behavior through the introduction of time delays. Delayed equations appears in several kinds of problems. To cite a few, in [6], the authors describe continuous deformations in periodic solutions of the one-dimensional Mackey–Glass equation, a standard model for delayed feedback systems [7]. In [8], it is analyzed self-pulsations in laser beams with feedback. Reference [9] considers sigmoid maps, which display a locking behavior observed in several systems, and its relation with the Stern-Brocot tree, a binary tree whose vertices correspond to the positive rational numbers [10, 11]. In [12], some of the authors analyzed the emergence of modulation instability in a lossless fiber with a finite (non-instantaneous) nonlinear response time. In [13], some of the authors analyzed a two-dimensional delayed model for the dynamics of immune cells and a foreign pathogen. The model is based on a previous one proposed in [14, 15] and is given by:

$$\begin{array}{@{}rcl@{}} \dot{T}&=& rT-bT^{2}-kTE,\\ \dot{E}&=&\frac{pT(t-\tau_{1})}{1+T(t-\tau_{1})^{a}}+\frac{sE(t-\tau_{2})}{1+E(t-\tau_{2})}-E,\; a=1,2, \end{array} $$
(1)

where E denotes the concentration of immune cells and T is the population of virus or bacteria. In the first equation, the term r>0 is the reproduction rate and k>0 the efficiency of the immune system in eliminating the virus. The last term is a death rate term b. For the dynamics of E, the first term represents the speed of the processes triggered by T leading to their elimination. The second term represents the auto catalytic effect of immune responses and −E represents a death rate term. In [13], we presented analytical results for b=0, a=1, and several numeric simulations for the case for a=2,b≠0, which presents a series of bifurcations evolving to a chaotic regime.

In [16], we analyze a four-dimensional model based in a previous one introduced by Nowak et al. [1], aiming to simulate HIV and SIV (the simian counterpart of HIV) epidemics, and which also apply to hepatitis B (HBV). The Nowak et al. model considers the dynamics of non-infected cells x, infected cells y, and virus load v as follows:

$$\begin{array}{@{}rcl@{}} \dot{x}&=& \lambda^{\ast} -dx-\beta xy,\\ \dot{y}&=& \beta xy -ay,\\ \dot{v}&=& ky -uv. \end{array} $$
(2)

Several three-dimensional models related to (2) are found in literature. We cite as example [2] in which the authors analyze the global stability of three-dimensional models of within-host viral infections of target cells, focusing in the models provided by Nowak and May [1] and Perelson and Nelson [4]. In [17], they analyzed an HIV infection model with time delay due to the CTL immune response. In [18], they also analyzed an HIV-1 infection model and the CTL immune response is investigated. They considered an eclipse stage for the infected cells such that a portion of these cells is reverted to uninfected cells. Ref. [19] studied a viral infection model with delayed immune response. He determined the global stability of the infection-free equilibrium and the local stability of the chronic infection equilibrium. Ref. [20] analyzed oscillations and chaotic behavior triggered by delayed immune response and [21] the dynamics of a model with delayed CTL response and immune circadian rhythm was considered.

Delayed responses are essential for a good description of the immune system as the stimulation generating CTLs need a delay τ, such that the response in time t is a function of the concentration of antigens in time tτ. We used this fact in [16] to generalize (2), where some of the authors analyzed the following four-dimensional model:

$$\begin{array}{@{}rcl@{}} {\dot x} &=& \lambda^{\ast} - dx -\beta xy,\\ {\dot y} &=& = \beta xv -ay -pyz,\\ {\dot v} &=& ky -\beta xv - \mu v,\\ {\dot z(t)}&=&cy(t-\tau_{1} )z(t-\tau_{2} ) -bz(t).\\ \end{array} $$
(3)

with z the population of the immune competence. In [16], we analyzed (3) numerically, observing a series of bifurcations leading to chaotic behavior that depends upon the value of τ 1=τ 2τ, evolving towards a chaotic behavior.

In this paper, we propose an analytical analysis of some ODE models. We consider a two-dimensional model and revisit (3), focusing in analytical properties concerning the stability of its fixed points. Analytical properties of delayed ODEs are hard to determine, and most of the literature focus on numeric solutions, obtained with the help of well-known procedures such as the Runge–Kutta method. The numeric approach is also useful when considering models with partial derivatives, see for example [22] where the authors considered a spatial epidemic model with noise and pattern formation. When we consider time delays, even a linear stability analysis may be cumbersome to implement, as we show in next section. However, many useful informations are obtained from analytical methods; we cite for example the extensive analysis of Nowak [1] and Perelson and May [3].

The objective of this paper is twofold: present novel analytical results in previously studied models and introduce the reader to the difficulties arising in the analysis of ODEs when we consider delayed responses.

The rest of this paper is organized as follows: Section (2) presents a delayed nonlinear two dimensional model and a brief overview of stability analysis in the presence of delays. Section (3) presents novel analytical results for (3). Section (4) concludes.

2 Two-Dimensional Model

Let us propose simple model where the virus population is controlled by the immune system:

$$\begin{array}{@{}rcl@{}} {\dot x} &=& rx -\rho xz,\\ {\dot z(t)}&=&cx(t-\tau)z-bz, \end{array} $$
(4)

with x the concentration of virus and z the concentration of the cells of the immune response. The immune system is stimulated by a delayed term proportional to the abundance of virus c x(tτ)z. In the absence of the immune competence (ρ=0), the virus populations grows exponentially with rate r. The immune system removes the virus with rate ρ x z and they die with rate bz. The system (4) with τ=0 was originally proposed by [1]. Typical parameter values are r≈50,ρ≈0.005,b≈0.01,c≈0.005 [1, 16]. With these values the time unit becomes roughly one day.

Before analyzing this system, let us first consider a general linear system with delays. Denote y a n dimensional vector and consider the dynamics of the following linear system:

$$ \dot{y}(t)= \sum\limits_{j=1}^{m}A_{j}y(t-\tau_{j}), $$
(5)

where each A j is a n×n matrix and there are m matrices. Let us suppose a solution of the form y(t)=e λt χ, with constant χ:

$$ \left( \lambda I -\sum\limits_{j=1}^{m}A_{j}e^{-\lambda \tau_{j}}\right)\chi=0. $$
(6)

Non trivial solutions χ≠0 exist if

$$ det\left( \lambda I -\sum\limits_{j=1}^{m}A_{j}e^{-\lambda \tau_{j}}\right)=0. $$
(7)

The value of λ thus determine the stability of the solutions. If all solutions have negative real part, the solution is asymptotically stable, being unstable if there is at least one solution with positive real part. It is not an easy task to determine such conditions when τ≠0. This happens because (4) has infinity complex solutions when τ≠0, a consequence of the Picard theorem, which states that, in the neighborhood of an essential singularity z=a, the complex function f(z) assumes infinite times any given complex value, except, maybe, some particular value [23]. In spite of the infinity number of solutions, the stability is always determined by a finite number of them. This follows from the following theorem:

Theorem

Given a real number ρ, ( 7 ) has a finite number of solutions λ such that Reλ≥ρ.

Bifurcations take place whenever the solution λ crosses the imaginary axis or one or more parameters are altered. Often a turning point, bifurcation occur if λ is real and a Hopf bifurcation if we have a pair of complex conjugated solutions. The Hopf bifurcation theorem was not demonstrated for retarded systems but it is considered as a valid conjecture [24].

Given a non-linear n dimensional system with m delays its stability can be analyzed through the usual linearization procedure around the equilibrium point. Let:

$$\begin{array}{@{}rcl@{}} {\dot x_{1}} &=& \sum\limits_{j=1}^{m}{f_{j}^{1}}\left( x_{1}(t-\tau_{j}),x_{2}(t-\tau_{j}),\cdots\right) ,\\ \vdots\\ {\dot x_{n}} &=& \sum\limits_{j=1}^{m}{f_{j}^{n}}\left( x_{1}(t-\tau_{j}),x_{2}(t-\tau_{j}),\cdots\right). \end{array} $$
(8)

We linearize the system around its fixed point \(x^{\ast }=(x_{1}^{\ast },x_{2}^{\ast },\cdots )\) and obtain the Jacobian:

$$\begin{array}{@{}rcl@{}} {\dot x_{1}} &\approx & \sum\limits_{j=1}^{m}\left( {f_{j}^{1}}(x_{1},\cdots)|_{x^{\ast}}+ \frac{\partial {f_{j}^{1}}}{\partial x_{1}}|_{x^{\ast}}(x_{1}(t-\tau_{j})-x_{1}^{\ast})\right.\\ &&\left.+\frac{\partial {f_{j}^{1}}}{\partial x_{2}}|_{x^{\ast}}(x_{2}(t-\tau_{j})-x_{2}^{\ast})+{\cdots} \right),\\ \vdots\\ {\dot x_{n}} &\approx & \sum\limits_{j=1}^{m}\left( {f_{j}^{n}}(x_{1},\cdots)|_{x^{\ast}}+ \frac{\partial {f_{j}^{n}}}{\partial x_{1}}|_{x^{\ast}}(x_{1}(t-\tau_{j})-x_{1}^{\ast})\right.\\ &&\left.+\frac{\partial {f_{j}^{n}}}{\partial x_{2}}|_{x^{\ast}}(x_{2}(t-\tau_{j})-x_{2}^{\ast})+{\cdots} \right). \end{array} $$
(9)

This is a linear system in the variables \(y_{i}\equiv x_{i}-x_{i}^{\ast }\) with m Jacobian matrices evaluated at the fixed point:

$$ A_{j}=\left[ \begin{array}{ccc} \frac{\partial {f_{j}^{1}}}{\partial x_{1}} & \frac{\partial {f_{j}^{1}}}{\partial x_{2}} & {\cdots} \\ {\vdots} & {\vdots} & {\vdots} \\ \frac{\partial {f_{j}^{n}}}{\partial x_{1}} & \frac{\partial {f_{j}^{n}}}{\partial x_{2}} & {\cdots} \\ \end{array} \right]. $$
(10)

Let us return to our proposed model (4). The fixed points are

$$\begin{array}{@{}rcl@{}} (1) x^{\ast}&=&=\frac{br}{c\rho},z^{\ast}=\frac{r}{\rho},\\ (2) x^{\ast}&=&z^{\ast}=0. \end{array} $$
(11)

Let us consider fixed point (1). We have terms with a delay τ 1=0 and others with delay τ 2=τ:

$$ J\equiv \sum\limits_{j=1}^{2}A_{j}e^{-\lambda\tau_{j}}=\left[ \begin{array}{cc} 0&\frac{-br}{c} \\ ce^{-\lambda\tau}&-b \end{array} \right], $$
(12)

which leads to the following characteristic equation \(det(J-\lambda I)=0\Rightarrow \lambda (\lambda +b)+bre^{-\lambda \tau }=0\). If τ=0 it is straightforward to obtain \(\lambda =\left (-b\pm \sqrt {b^{2}-4br}\right )/2\). It is easy to show that if b>4r, we have two real negative solutions and the equilibrium is a stable node, being unstable if b<4r. For b=4r, we have an improper node (non hyperbolic fixed point). When τ≠0, we must analyze the behavior of

$$ \lambda^{2}+\lambda b+bre^{-\lambda\tau}. $$
(13)

Writing λ=p+I q, with \(I=\sqrt {-1}\), we first observe that: if q≠0 then (13) has no roots for p>0. Non-oscillatory solutions, if present, are thus always stable. If q≠0, substituting λ=p+I q in (13) leads to:

$$\begin{array}{@{}rcl@{}} &&Im\left( \lambda^{2}+\lambda b+bre^{-\lambda\tau}\right)/q=0,\\ &&{\kern14pt}\Rightarrow\left( 2pq+qb-bre^{-\lambda\tau}\sin{q\tau}\right)/q=0, \end{array} $$
(14)

which implies

$$\begin{array}{@{}rcl@{}} \frac{2p+b}{\tau br}=\frac{e^{-\lambda\tau}\sin{q\tau}}{q\tau}&\Rightarrow&\frac{2p+b}{\tau br}\leq e^{-\lambda\tau}\leq 1,\\ &\Rightarrow& p\leq b\frac{\tau r-1}{2}.\end{array} $$

From the above equation, we see that if \(\tau <1/r\Rightarrow p<0\) and the equilibrium will be stable. Note that, if τ>1/r, we may or may not observe solutions with p>0.

It is worth to note that the trivial equilibrium (2) is always unstable, for any τ. In fact, its Jacobian matrix is given by:

$$ J=\left[ \begin{array}{cc} r&0 \\ ce^{-\lambda\tau}&-b \end{array} \right], $$
(15)

whose eigenvalues are r>0,−b. Thus, with null delay, the system converges with damped oscillations for the interior equilibrium, that is, the immune system will not be able to deplete the infection, with a steady solution with a finite population of viruses. When a delayed response is considered, the same behavior takes place if τ<1/r. For larger delays, we may (or may not) observe the outbreak of sustainable oscillations and chaos.

System (4) has the drawback to present a null equilibrium, meaning no immune cell in the absence of virus. We can fix this by introduction of a term d as follows:

$$\begin{array}{@{}rcl@{}} {\dot x} &=& rx -\rho xz ,\\ {\dot z(t)}&=&d+cx(t-\tau)-bz, \end{array} $$
(16)

which leads to two equilibrium points:

$$\begin{array}{@{}rcl@{}} (1) x^{\ast}&=&=0,z^{\ast}=\frac{d}{b},\\ (2) x^{\ast}&=&\frac{br/\rho-d}{c},z^{\ast}=\frac{r}{\rho}. \end{array} $$
(17)

The fixed point (1) has a finite concentration of immune cells even in the the absence of virus. The Jacobian matrix is:

$$ J=\left[ \begin{array}{cc} r-\rho s/b&0 \\ ce^{-\lambda\tau}&-b \end{array} \right], $$
(18)

with eigenvalues λ=−b,rρ d/b,∀τ. Thus, the equilibrium is stable provided r/ρ<d/b. Note that d/b is the equilibrium concentration of immune cells in the absence of virus, and r/ρ is the equilibrium in the presence of virus. In real cases, the condition r/ρ<d/b is thus very reasonable. For the second fixed point, the Jacobian is:

$$ J=\left[ \begin{array}{cc} 0&-\rho (\frac{br/\rho-d}{c}) \\ ce^{-\lambda\tau}&-b \end{array} \right], $$
(19)

whose characteristic equation is λ 2+λ b+c ρ e λτ \((\frac {br/\rho -d}{c})\).For null delay, the solution is \(\lambda =\left (-b\pm \sqrt {b^{2}-4\rho c(\frac {br/\rho -d}{c})}\right )/2\) which always have negative real parts, guaranteeing the stability of the fixed point. Note that for null delays, the system presents two stable equilibria if r/ρ<d/b. Depending on the initial virus load, the system oscillates for the null virus equilibrium, otherwise there will be a persistent infection. For τ≠0, a similar procedure as in the previous case led to the conclusion that, if τ<b/(b rρ d), λ will have negative real parts. In (4), the critical delay was τ<1/r, therefore the introduction of d leads to an increase in the delay value that guarantees stability.

3 Four-Dimensional Model

Here, we consider the model (3) which was numerically analyzed in [16] for the case τ 1=τ 2. In this model, free virus v attack uninfected cells x at a rate β. λ is the production rate of cells and d its death rate. Once infected, the cell becomes an infected cell y, which dies at rate a and are eliminated by the immune response at rate p. Immune cells are produced at rate c, proportional to the abundance of infected cells, and dies at rate b. Typical numeric values are λ =105, d=0.1, a=0.5, β=2×10−7, k=100, u=5, c=0.2, b=0.05, and ρ=1 (considering one day as the time unit). As observed in [16], the delayed response induced sustainable oscillations, in which the virus load reaches a minimum value orders of magnitude smaller than those obtained from an instantaneous response. A sequence of bifurcations occurs with increasing response times which can evolve towards a chaotic behavior. To visualize typical chaotic orbits obtained from numeric solutions of this system, we refer the reader to [16]. Here, we focus on some analytical properties not presented in this reference. We analyze the local stability of system (3), whose fixed points are:

$$\begin{array}{@{}rcl@{}} (1) x^{\ast}&=&\lambda^{\ast}/d,y^{\ast}=0,v^{\ast}=0,z^{\ast}=0,\\ (2) x^{\ast}&=&=\frac{-\mu a}{\beta(a-k)},y^{\ast}=\frac{\lambda^{\ast} \beta (a-k)+da\mu}{\beta (a-k)a},v^{\ast}=-\frac{\lambda^{\ast} \beta (a-k)+da\mu}{a\mu \lambda^{\ast}},z^{\ast}=0,\\ (3)x^{\ast}&=&R,y^{\ast}=b/c,v^{\ast}=-\frac{-\lambda^{\ast}+dR}{\beta R},z^{\ast}=-\frac{-c\lambda^{\ast}+cdR+ab}{\rho b},\\ R&=&\frac{1}{2}\left( \frac{-kd\beta-dc\mu+\beta c\lambda^{\ast}\pm \sqrt((-kd\beta-dc\mu+\beta c\lambda^{\ast})^{2}+4\beta dc^{2}\mu\lambda^{\ast})}{\beta dc}\right). \end{array} $$
(20)

Fixed point (1) corresponds to a system with no virus, no infected cells, and no lymphocytes. There are terms with no delay and terms with delay τ in the Jacobian matrices. The terms \({f_{j}^{i}}\) are:

$$\begin{array}{@{}rcl@{}} {f_{1}^{1}}&=&\lambda^{\ast}-dx-\beta xv;{f_{1}^{2}}=\beta xv-ay-\rho yz,\\ {f_{1}^{3}}&=&ky-uv-\beta x v;{f_{1}^{4}}=-bz,\\ {f_{2}^{1}}&=&{f_{2}^{2}}={f_{2}^{3}}=0;{f_{2}^{4}}=cy(t-\tau)z(t-\tau), \end{array} $$
(21)

and the Jacobian is:

$$ \sum\limits_{j=1}^{2}A_{j}e^{-\lambda\tau_{j}}=\left[ \begin{array}{cccc} -d&0&-\beta\lambda^{\ast}/d&0 \\ 0&-a& \beta\lambda^{\ast}/d&0\\ 0&k&-u-\beta\lambda^{\ast}/d&0\\ 0&0&0&-b\\ \end{array} \right]. $$
(22)

From the characteristic equation d e t(Jλ I)=0, we obtain:

$$(\lambda^{2}d+(du+\lambda^{\ast}\beta+ad)\lambda-\lambda^{\ast}\beta(k-a)+dau)(b+\lambda)(1+\lambda/d)=0, $$

which leads to λ=−d,−b. Since d,b>0 the stability is determined by the roots of:

$$\begin{array}{@{}rcl@{}} &&-\frac{du+\lambda^{\ast}\beta+ad}{2d}\\ &&{\kern15pt}\pm\frac{\sqrt{(du+\lambda^{\ast}\beta+ad)^{2}-4d(-\lambda^{\ast}\beta (k-a)+dau).}}{2d} \end{array} $$

Let λ 1=p+i q,λ 2=pi q solutions of this equation. λ 1 λ 2 leads to \(p^{2}+q^{2}=\frac {-\lambda ^{\ast }\beta (k-a)+dau}{d}\). Therefore, λ β(ak)+d a u>0 is a necessary condition for complex roots. In this case, the real part of both λ 1,λ 2 are negative since λ 1+λ 2=−(d u+λ β+a d)<0.

Let us now consider real solutions. It is easy to see that it is not possible to obtain both solutions as positive numbers. Then we have two situations: if λ 1 λ 2>0 both solutions are negative, and the fixed point is stable, which happens when λ β(ak)+d a u>0. Note that λ β(ak)+d a u<0 is sufficient for real solutions, the fixed point being unstable in this case. Stability can be obtained, for example, diminishing k, the growth rate of virus, increasing a or v, the mortality rate of infected cells and virus, respectively, etc.

For the fixed point (2), the following Jacobian matrix is obtained:

$$ \sum\limits_{j=1}^{2}A_{j}e^{-\lambda\tau_{j}}=\left[ \begin{array}{cccc} \frac{\beta\lambda^{\ast}}{ua}&0&\frac{ua}{a-k}&0 \\ -\frac{\lambda^{\ast}\beta (a-k)+dau}{ua} &-a&-\frac{ua}{a-k}&-\rho\frac{\lambda^{\ast}\beta (a-k)+dau}{\beta a(a-k)} \\ \frac{\lambda^{\ast}\beta (a-k)+dau}{ua}&k&\frac{uk}{a-k}&0\\ 0&0&0&-b+ce^{-\lambda\tau}\frac{\lambda^{\ast}\beta (a-k)+dau}{\beta a(a-k)}\\ \end{array} \right], $$
(23)

whose characteristic equation is:

$$ \frac{(\lambda^{3}A+B\lambda^{2}+C\lambda+D)(Ece^{-\lambda\tau}-F(\lambda+b)}{ua^{2}(a-k)^{2}\beta}=0, $$
(24)

where:

$$\begin{array}{@{}rcl@{}} &&A=au(k-a);B=\left( \beta\lambda^{\ast}(a-k)^{2}+uak(a+u)-ua^{3}\right);\\ &&C=u^{2}a^{2}d+\lambda^{\ast}\beta(u+a)(a-k)^{2};D=u^{2}a^{2}d(a-k)+ua\lambda^{\ast}\beta(a-k)^{2};\\ &&E=\left( \lambda^{\ast}\beta(k-a)-dau\right);F=\beta a(k-a) \end{array} $$

We consider ak to avoid singularities. Before we proceed with the analysis of (24), let us consider the equation λ 3 A+B λ 2+C λ+D with solutions λ i ;i=1,2,3. The well-known Girard formulas states that:

$$\begin{array}{@{}rcl@{}} \lambda_{1}\lambda_{2}\lambda_{3}=\lambda^{\ast}\beta(a-k)+aud,\\ \lambda_{1}\lambda_{2}+ \lambda_{2}\lambda_{3}+\lambda_{1}\lambda_{3}=\frac{(k-a)^{2}(a+u)\beta\lambda^{\ast}+u^{2}a^{2}d}{ua(k-a)},\\ \lambda_{1}+\lambda_{2}+\lambda_{3}=\frac{\beta\lambda^{\ast}(k-a)^{2}+ua(a^{2}-k(a+u))}{ua(k-a)}. \end{array} $$
(25)

Note that we consider λ β(ak)+a u d<0 to avoid negative fixed points (the variables denote concentrations, and a negative concentration is meaningless). So λ 1 λ 2 λ 3<0 and a<k leads to λ 1+λ 2+λ 3<0 and λ 1 λ 2+λ 2 λ 3+λ 1 λ 3>0. Then, either the three roots are negative or there are two positive roots and one negative. This last case leads to a contradiction: let λ 2,λ 3>0 and λ 1<0. Then since λ 1 λ 2+λ 2 λ 3+λ 1 λ 3>0 we have λ 2 λ 3>−λ 1(λ 2+λ 3)>0. On the other side, from λ 1+λ 2+λ 3<0 we obtain \(-\lambda _{2}\lambda _{3}>{\lambda _{2}^{2}}+{\lambda _{3}^{2}}\) which is a contradiction.

Let us now analyze the term

$$ Ece^{-\lambda\tau}-F(\lambda+b). $$
(26)

If τ=0 the solution is:

$$\lambda=\frac{c(\lambda^{\ast}\beta(a-k+adu))+\beta ab(k-a)}{\beta a(a-k)}, $$

which is negative if \(c<\frac {\beta ab(a-k)}{\lambda ^{\ast }\beta (a-k)+adu}\). It is possible to show that this condition is sufficient to guarantee stability even with a non null retard. To see this, write this solutions as

$$c<bF/E;F,E>0, $$

Let λ=p+i q a solution of (26). Therefore:

$$\begin{array}{@{}rcl@{}} Ece^{-p\tau}cos(q\tau)-Fp-bF=0,\\ -qF-e^{-p\tau}cEsin(q\tau)=0. \end{array} $$
(27)

Consider c<b F/E and a slightly minor value c=b F/E𝜖, 𝜖>0. Substituting in (27):

$$ p=e^{-p\tau}cos(q\tau)\left( b-\frac{\epsilon E}{F}\right)-b. $$
(28)

It is easy to see that, if q=0 then p<0. Two cases must be considered: \((i)\;(b-\frac {\epsilon E}{F})<0\) and \((ii)\;(b-\frac {\epsilon E}{F})>0\). In case (i) p<0 follows from (28). In case (i i), let (28) be rewritten as:

$$ p=(e^{-p\tau}-1)b-\frac{\epsilon E}{F}e^{-p\tau}. $$
(29)

Consider p>0. The right side of (29) is positive iff e pτ>1, which implies p<0, a contradiction. Therefore p<0,∀τ.

Now let q≠0. Isolating \(\sin \) and \(\cos \) in (27) and using \(\cos ^{2}q\tau +\sin ^{2}q\tau =1\):

$$\begin{array}{@{}rcl@{}} \left( \frac{pF+bF}{e^{-p\tau}E}\right)^{2} +\left( \frac{-qF}{e^{-p\tau}cE}\right)^{2}=1\Rightarrow,\\ p^{2}+2pb+q^{2}+b^{2}=\frac{e^{-2p\tau}c^{2}E^{2}}{F^{2}}, \end{array} $$
(30)

which is of the type f(p)=g(p). Consider the cases

$$(i)q^{2}+b^{2}>\frac{c^{2}E^{2}}{F^{2}},$$
$$(ii)q^{2}+b^{2}<\frac{c^{2}E^{2}}{F^{2}}.$$

Note that, f(p=0)=q 2+b 2 and \(g(p=0)=\frac {c^{2}E^{2}}{F^{2}}\) with f(p) a second order equation and g(p) an exponential. In the first case, we have f(p)=g(p) in a value p<0. This is the same restriction c<b F/E. In fact this implies

$$b^{2}>\frac{c^{2}F^{2}}{E^{2}}\Rightarrow q^{2}+b^{2}-c^{2}E^{2}/F^{2}>0.$$

In case (i i), it is easy to see that it is possible f(p)=g(p) for some p>0.

In short: λ β(ak)+a u d<0 and ak<0 guarantees a positive fixed point and these conditions plus \(c<\frac {\beta ab(a-k)}{\lambda ^{\ast }\beta (a-k)+aud}\) implies in the stability of fixed points (1) and (2) ∀τ. If \(c>\frac {\beta ab(a-k)}{\lambda ^{\ast }\beta (a-k)+aud}\) depending on the value of q, we may have p>0 and the fixed point loses its stability for some τ. These results are consistent with [16], where we observed, for instantaneous immune response, damped oscillations towards the stationary solution. Retarded response makes stationary solution unstable and sustained outbreaks of the virus load were observed. In fact, with the chosen parameter values of [16] the condition \(c<\frac {\beta ab(a-k)}{\lambda ^{\ast }\beta (a-k)+aud}\) implies c<2.6610−7, which is not satisfied with the choice c=0.2.

Let us consider the fixed point (3):

$$\begin{array}{@{}rcl@{}} x^{\ast}&=&R,y^{\ast}=b/c,v^{\ast}=-\frac{-\lambda^{\ast}+dR}{\beta R},z^{\ast}=-\frac{-c\lambda^{\ast}+cdR+ab}{\rho b},\\ R&=&\frac{1}{2}\left( \frac{-kd\beta-dc\mu+\beta c\lambda^{\ast}\pm \sqrt((-kd\beta-dc\mu+\beta c\lambda^{\ast})^{2}+4\beta dc^{2}\mu\lambda^{\ast})}{\beta dc}\right). \end{array} $$
(31)

We consider R>0. We also consider:

$$v^{\ast}=-\frac{-\lambda^{\ast}+dR}{\beta R}>0\Rightarrow \lambda^{\ast}>dR,$$
$$z^{\ast}=-\frac{-c\lambda^{\ast}+cdR+ab}{\rho b}>0\Rightarrow c\lambda^{\ast}-cdR-ab>0.$$

After some algebra, it is possible to show that the above condition is equivalent to \(c>\frac {\beta ab(a-k)}{\lambda ^{\ast }\beta (a-k)+aud}\), which are the conditions upon which the fixed point 2) loses its stability. It is also possible to show that the restriction v >0 leads to:

$$\begin{array}{@{}rcl@{}} &&\frac{du-\beta\lambda^{\ast}-\sqrt{(du+\beta\lambda^{\ast})^{2}+4dukb\beta}}{du}<c<\\ &&\frac{du-\beta\lambda^{\ast}+\sqrt{(du+\beta\lambda^{\ast})^{2}+4dukb\beta}}{du}. \end{array} $$

An analytical analysis of this equation falls beyond the scope of this paper, as the resulting characteristic equation is a transcendental equation involving a fourth order polynomial. This shows the limitations of a purely analytical approach to analyze delayed ODEs with three or more dimensions. The results presented here are in accord with the numeric analysis performed in [16].

4 Concluding remarks

In this paper, we considered analytical tools to analyze delayed ODEs of biological interest. We studied a two-dimensional system that simulates the dynamics of the immune system cells and a target population of viruses. New analytical results in a four-dimensional system considered in [16] were presented.

Low dimensional ODE models are often used to model biological systems, the focus being on the search for those that describe the main features of the proposed system with as few parameters as possible. As chaotic orbits are often observed in empirical data, most authors consider models with at least three dimensions. However, even one- and two-dimensional models may present chaotic behavior through the introduction of time delays. In this work, we presented some of the difficulties arising in the analytical analysis of delayed equations, focusing in the stability conditions of the equilibrium points. We showed how the conditions for the real part of the eigenvalues be negative, necessary to stability, may be cumbersome to determine when τ≠0, even in relatively low-dimensional models. This happens because the corresponding characteristic equation has infinity complex solutions. However, even with an infinity number of solutions, the stability is determined by a finite number of them. Analytical tools are useful to complement numeric solutions such as the ones obtained via Runge-Kutta methods, and may reveal features such as which parameters are fundamental for bifurcations that lead to complex behavior.