1 Introduction

Researching the viral infectious has been an increasingly complex issue in recent years. For better understanding of the virus dynamics, mathematical models have been witnessed to be used rapidly. Many mathematical models have been used to describe the infection process with humoral immune response such as human immunodeficiency virus (HIV), hepatitis B virus (HBV) and human T-cell leukemia virus type 1 (HTLV-1) in [3, 4, 7, 13]. In fact, cytotoxic T lymphocytes (CTL) immune response is universal and necessary to eliminate or control the disease after viral infection. Therefore, Nowak and Bangham [5] constructed a mathematical model to investigate dynamics of the interaction between susceptible cells, infected cells, viruses and immune cells with CTL immune response.

We introduce the standard viral infection model in Nowak [5].

$$\begin{aligned}&\begin{aligned}&x'(t)=\lambda -d x(t)-\beta x(t)v(t),\\&y'(t)=\beta x(t)v(t)-a y(t)-p y(t)z(t),\\&v'(t)=k y(t)-u v(t),\\&z'(t)=c y(t)z(t)-b z(t). \end{aligned} \end{aligned}$$
(1)

where x(t) denotes the number of healthy target cells, y(t) denotes the number of actively infected target cells, v(t) denotes the number of mature viruses and z(t) denotes the number of CTL cells. Uninfected target cells are assumed to be generated at a constant rate \(\lambda \) and die at rate d. Infection of target cells by free virus is assumed to occur at rate \(\beta \). Infected cells die at rate a and are removed at rate p by the CTL immune response. New virus is produced from infected cells at rate k and dies at rate u. The average lifetime of uninfected cells, infected cells and free virus is thus given by 1 / d, 1 / a and 1 / u, respectively. c denotes rate at which the CTL response is produced, and b denotes death rate of the CTL response, respectively, with given constants \(\lambda , \beta , a, p, d, k, u, c, b>0\).

Then, we assume our viral dynamics model with general incidence rate x f(v). Here, the function f(v) is assumed to be continuous on \(v\in [0,+\infty )\) and continuously differentiable on \(v\in (0,+\infty )\) and satisfies

$$\begin{aligned} {\left\{ \begin{array}{ll} f(0)=0,\\ f'(v)>0,\quad \text{ for } \text{ all }~ v\ge 0,\\ f''(v)<0,\quad \text{ for } \text{ all }~ v\ge 0. \end{array}\right. } \end{aligned}$$
(2)

With these assumptions, we have the following viral model

$$\begin{aligned}&\begin{aligned}&x'(t)=\lambda -d x(t)-x(t)f(v(t)),\\&y'(t)=x(t)f(v(t))-a y(t)-p y(t)z(t),\\&v'(t)=k y(t)-u v(t),\\&z'(t)=c y(t)z(t)-b z(t). \end{aligned} \end{aligned}$$
(3)

with the initial conditions of model (3) which is \(x(0)>0, y(0)>0, v(0)>0 \text { and}~z(0)>0.\)

It is easy to check that class of functions f(v) satisfies (2). For instance, if \(f(v)=v\), then the incidence rate with time delay is used in Li and Shu [2] who have studied global dynamics of an in-host viral model with intracellular delay. And if \(f(v)=\frac{v}{1+a v}\), then the incidence rate is used in Zhou [13] who mainly has obtained sufficient conditions for the asymptotical stability of a disease-free equilibrium, an immune-free equilibrium and an endemic equilibrium.

The paper is organized as follows. In Sect. 2, we deal with some basic properties, e.g., positivity and boundedness of solutions, basic reproduction number and existence of equilibria. In Sect. 3, we prove the global dynamics of the disease-free equilibrium when \(R_{0}<1 \). In Sect. 4, we establish the global stability of the CTL-inactivated infection equilibrium \(E_{1}\) when \(R_\mathrm{CTL}<1<R_{0}\). In Sect. 5, we establish the global attractivity of the CTL-inactivated infection equilibrium \(E^{*}\) when \(R_\mathrm{CTL}>1\).

2 Basic properties

2.1 Positivity and boundedness

The dynamics of system (3) will be investigated in a suitable phase space and a bounded feasible region. Initial conditions for system (3) are chosen as

$$\begin{aligned} \varphi \in \mathbb {R}_{+}\times \mathbb {R}_{+}\times \mathbb {R}_{+}\times \mathbb {R}_{+}, \quad \varphi (0)>0. \end{aligned}$$
(4)

Proposition 1

Under initial conditions in (4), all solutions of system (3) are nonnegative and ultimately bounded in \(\mathbb {R}\times \mathbb {R}\times \mathbb {R}\times \mathbb {R}\). Furthermore, all feasible solutions of the system (3) enter the region

$$\begin{aligned}&\varOmega = \bigg \{(x,y,v,z)\in \mathbb {R}_{+}\times \mathbb {R}_{+}\times \mathbb {R}_{+}\times \mathbb {R}_{+} :\Vert x\Vert \\&\qquad \quad \le \frac{\lambda }{d}, \Vert x+y+\frac{p}{c}z\Vert \le \frac{\lambda }{\tilde{\mu }},\Vert v\Vert \le \frac{\lambda k}{u\tilde{\mu }}\bigg \}, \end{aligned}$$

where \(\tilde{\mu }=\min \{d,a,b\}\).

Proof

We now show that \(x(t)>0\) for all \(t\ge 0\). In fact, assuming the contrary, and letting \(t_{1}>0\) be the first time such that \(x(t_{1})=0\), then by the first equation of system (3) we obtain \(x'(t_{1})=\lambda >0\), and hence \(x(t) < 0\) for \(t\in (t_{1}-\varepsilon ,t_{1})\), where \(\varepsilon > 0\) is enough small. This contradicts \(x(t) > 0\) for \(t\in (0,t_{1})\). Then, we obtain \(x(t) > 0\) for \(t > 0\). The right-hand side of the fourth equation of system (3) for z effectively contains a factor of z(t). Positivity for z(t) therefore follows by standard arguments. As same as x(t), we can verify the positivity of solution v(t) under initial conditions in (4). For v(t) of system (3), we let \(t_{2}>0\) be the first time such that \(v(t_{2})=0\). By the second equation of system (3), we get

$$\begin{aligned} y'(t_{2})=y(t_{2})(-a-p z(t_{2})). \end{aligned}$$

Then, we obtain \(y(t_{2})>0\). It follows that \(v'(t_{2})>0\), and hence \(v(t) < 0\) for \(t\in (t_{2}-\varepsilon ,t_{2})\), where \(\varepsilon > 0\) is enough small. This contradicts \(v(t) > 0\) for \(t\in (0,t_{2})\), and hence, v(t) is positive for \(t > 0\) and

$$\begin{aligned} y(t)= & {} \left( y(0)+\int _{0}^{t}x(\theta ) f(v(\theta ))\text {e}^{(a+p z(t))\theta } d\theta \right) \\&\times \,\text {e}^{-(a+p z(t)) t}>0. \end{aligned}$$

Next, we show that positive solutions of (3) are ultimately bounded for \(t\ge 0\). For the first equation of system (3), we obtain \(x'(t)\le \lambda -d x(t)\), and thus \(\lim \sup _{t\rightarrow \infty }x(t)\le \frac{\lambda }{d}\). By system (3), we get

$$\begin{aligned} \dot{x}(t)+\dot{y}(t)+\frac{p}{c}\dot{z}(t)\le \lambda -\tilde{\mu }\left( x(t)+y(t)+\frac{p}{c}z(t)\right) . \end{aligned}$$

where \(\tilde{\mu }=\min \{d,a,b\}\). Consequently, \(\limsup _{t\rightarrow \infty }(x(t)+y(t)+\frac{p}{c}z(t))\le \frac{\lambda }{\tilde{\mu }}\). For v(t),

$$\begin{aligned} \dot{v}(t)\le k\frac{\lambda }{\tilde{\mu }}-u v(t), \end{aligned}$$

then \(\limsup _{t\rightarrow \infty }v(t)\le \frac{k\lambda }{\tilde{\mu }u}\). Therefore, every solution of system (3) is ultimately bounded.

2.2 Basic reproduction number and existence of equilibria

For studying existence of equilibria, the equilibria equations for model (3) are given by

$$\begin{aligned}&\begin{aligned}&\lambda -d \bar{x}-\bar{x} f(\bar{v})=0,\\&\bar{x} f(\bar{v})-a \bar{y}-p \bar{y} \bar{z}=0,\\&k \bar{y}-u \bar{v}=0,\\&c \bar{y} \bar{z}-b \bar{z}=0. \end{aligned} \end{aligned}$$
(5)

Obviously, for system (3), there always exists an infection-free equilibrium \(E_{0}=(x_{0},y_{0},v_{0},z_{0})=(\frac{\lambda }{d},0,0,0)\). In addition to \(E_{0}\), the system may have two types of chronic-infection equilibria \(E_{1}=(x_{1},y_{1},v_{1},0)\) and \(E^{*}=(x^{*},y^{*},v^{*},z^{*})\) in \(\varOmega \), where \(x_{1},y_{1}, v_{1},x^{*},y^{*},v^{*},z^{*}\) are all strictly positive. \(E_{1}\) is known as a CTL-inactivated equilibrium (CTL-IE) if it exists and \(E^{*}\) is known as a CTL-activated equilibrium (CTL-AE) if it exists. At a CTL-inactivated equilibrium, the disease is persistent with a constant \(v_{1} > 0\), whereas the CTL response is absent. This corresponds to an asymptomatic carrier. At a CTL-activated equilibrium, the viral load and the CTL response persist at the level of \(v^{*}\) and \(z^{*}\), respectively.

The global dynamics of model (3) is determined by the basic reproduction number \(R_{0}\) for viral infection:

$$\begin{aligned} R_{0}=\frac{k \lambda f'(0)}{a u d}. \end{aligned}$$

and \(R_\mathrm{CTL}\) for the CTL response:

$$\begin{aligned} R_\mathrm{CTL}=\frac{k x^{*} f(v^{*})}{a u v^{*}}. \end{aligned}$$

Here, we can see that \(R_\mathrm{CTL} <R_{0}\) always holds.

Proposition 2

System (3) always has a disease-free equilibrium \(E_{0}\). Moreover, if \(R_\mathrm{CTL}< 1<R_{0}\), then system (3) has a unique chronic-infection equilibrium \(E_{1}=(x_{1},y_{1},v_{1},0)\) satisfying (5). If \(R_\mathrm{CTL}>1\), then system (3) has a unique CTL-activated equilibrium \(E^{*}\) satisfying (5).

Proof

By (5), chronic-infection equilibrium \(E_{1}\) should satisfy the following equations

$$\begin{aligned}&\begin{aligned}&\lambda -d x_{1}-x_{1} f(v_{1})=0,\\&x_{1} f(v_{1})-a y_{1}=0,\\&k y_{1}-u v_{1}=0. \end{aligned} \end{aligned}$$
(6)

We consider the following function H(v) defined by

$$\begin{aligned} H(v)=\lambda -\frac{d a u}{k}\frac{v}{f(v)}-\frac{a u}{k} v, \end{aligned}$$
(7)

and we know

$$\begin{aligned} H'(v)=-\frac{a u}{k}-\frac{d a u}{k}\frac{f(v)-vf'(v)}{f^{2}(v)}. \end{aligned}$$

From the properties of the function f(v) by (2), in particular, from \(f(0)=0\) and \(f''(v)<0\), it illustrates that \(f(v)-v f'(v)>0\) for all \(v >0\), and we have \(H'(v)<0\). Therefore, there exists a positive root of \(H(v) = 0\) when \(R_{0}>1\), H(v) has to satisfy \(H(0)>0\), i.e.,

$$\begin{aligned} H(0)=\lambda -\frac{d a u}{k f'(0)}=\lambda \left( 1-\frac{1}{R_{0}}\right) . \end{aligned}$$

Secondly, the CTL-AE equilibrium \(E^{*}=(x^{*},y^{*},v^{*},z^{*})\) satisfies (5), and then, the CTL-AE equilibrium \(E^{*}\) exists as the following form

$$\begin{aligned}&x^{*}=\frac{\lambda }{d+f(v^{*})}>0,\,\,\, y^{*}=\frac{b}{c}>0,\,\,\, v^{*}=\frac{k}{u}y^{*}>0,\\&z^{*}=\frac{x^{*}f(v^{*})-a y^{*}}{p y^{*}}=\frac{a}{p}\left( R_\mathrm{CTL}-1\right) . \end{aligned}$$

if and only if \(R_\mathrm{CTL}>1\).

3 Global stability when \(R_{0}<1\)

Furthermore, it is important to analyze the stability of trivial equilibrium (see [6, 8, 11, 12]), as it will indicate whether the virus will die out eventually, or it will persist for all time. The characteristic equation associated with the linearization of the system (3) near the steady state \(E_{0}\) gives

$$\begin{aligned} (\xi +d)(\xi +b)\left[ (\xi +a)(\xi +u)-k x_{0} f'(0)\right] =0. \end{aligned}$$
(8)

the eigenvalues are \(\xi _{1}=-d<0\) and \(\xi _{2}=-b<0\), and the steady state \(E_{0}\) is locally asymptotically stable if all eigenvalues of

$$\begin{aligned} (\xi +a)(\xi +u)-k x_{0} f'(0)=0. \end{aligned}$$
(9)

All eigenvalues of Eq. (9) have negative real parts. That is, we need that

$$\begin{aligned} \xi ^{2}+(a+u)\xi +au-k x_{0} f'(0)=0 \end{aligned}$$

has negative real parts.

Obviously, when \(R_{0}<1\), \(au-k x_{0} f'(0)<0\). All eigenvalues of Eq. (9) have negative real parts.

We arrive at the following result.

Theorem 1

If \(R_{0}<1\), then the disease-free equilibrium \(E_{0}\) of system (3) is locally asymptotically stable. Moreover, if \(R_{0}>1\), then the disease-free equilibrium \(E_{0}\) of system (3) is unstable.

Next, we analyze the global stability of disease-free equilibrium by constructing Lyapunov function.

Theorem 2

If \(R_{0}<1\), then the disease-free equilibrium \(E_{0}\) of system (3) is globally asymptotically stable in \(\varOmega \).

Proof

We construct the following Lyapunov function \(V:\mathbb {R}\times \mathbb {R}\times \mathbb {R}\times \mathbb {R}\rightarrow \mathbb {R}\):

$$\begin{aligned} V(t)=x_{0} g\left( \frac{x(t)}{x_{0}}\right) +y(t)+\frac{a}{k}v(t)+\frac{p}{c}z(t). \end{aligned}$$
(10)

where \(g(x)=x-1-\ln x,~x\in \mathbb {R}_{+}\), has the global minimum at \(x =1\) and \(g(1)=0\).

We easily obtain the Lyapunov function V is nonnegative and defined in \(\varOmega \) with respect to the trivial equilibrium \(E_{0}\).

We calculate the time derivative of V(t) along the solutions of system (3) and obtain

$$\begin{aligned} \frac{\mathrm{d} V}{\mathrm{d}t}|_{(3)}= & {} \left( 1-\frac{x_{0}}{x}\right) \dot{x}(t)+\dot{y}(t)+\frac{a}{k}\dot{v}(t)+\frac{p}{c}\dot{z}(t)\nonumber \\= & {} \lambda -d x(t)-\frac{x_{0}}{x}(\lambda -d x(t))\nonumber \\&+ \, x_{0}f(v(t))-\frac{a u}{k}v(t)-\frac{p b}{c}z(t)\nonumber \\= & {} d x_{0}\left( 2-\frac{x(t)}{x_{0}}-\frac{x_{0}}{x(t)}\right) \nonumber \\&+ \, \frac{a u}{k}v(t)\left( \frac{k x_{0}f(v(t))}{a u v(t)}-1\right) -\frac{p b}{c}z(t)\nonumber \\\le & {} d x_{0}\left( 2-\frac{x(t)}{x_{0}}-\frac{x_{0}}{x(t)}\right) \nonumber \\&+ \, \frac{a u}{k}v(t)\left( R_{0}-1\right) -\frac{p b}{c}z(t). \end{aligned}$$
(11)

From \(x(t)>0\), we obtain

$$\begin{aligned} 2-\frac{x(t)}{x_{0}}-\frac{x_{0}}{x(t)}\le 0. \end{aligned}$$

Hence, \(\dot{V}|_{(3)}\le 0\). From (11), we know that \(\dot{V}|_{(3)}=0\) if and only if \(x(t) =\lambda / d,~v(t)=0\) and \(z(t)=0\). Let

$$\begin{aligned} S=\{(\lambda / d, \varphi _{1},0,0)\in \bar{\varOmega }|\dot{V}|_{(3)}=0\}, \end{aligned}$$

and M is the largest positive invariant set in S, where \(\bar{\varOmega }\) is the closure of \(\varOmega \).

From system (3), we get \(y(t)=0\). Thus, it follows that \(M = \{(\lambda / d,0,0,\) \(0)\}=\{E_{0}\}\). By the LaSalle invariance principle [1], \(E_{0}\) is globally attractive. This confirms the globally asymptotical stability of \(E_{0}\) in \(\varOmega \).

4 Global attractivity when \(R_\mathrm{CTL}<1<R_{0}\)

In this section, we show that the CTL-inactivated equilibrium \(E_{1}\) of system (3) is globally attractivity if \(R_\mathrm{CTL}<1<R_{0}\) by using a Lyapunov function.

For confirming result on dynamics of CTL-IE \(E_{1}\), we require a additional assumptions.

$$\begin{aligned} (H)~~b-c y_{1}>0. \end{aligned}$$

Theorem 3

Assume that (H) is satisfied. If \(R_\mathrm{CTL}<1<R_{0}\), then the CTL-inactivated equilibrium \(E_{1}\) of system (3) is globally attractive.

Proof

We construct the following Lyapunov function \(V:\mathbb {R}\times \mathbb {R}\times \mathbb {R}\times \mathbb {R}\rightarrow \mathbb {R}\):

$$\begin{aligned} V(t)= & {} x(t)-x_{1}-\int _{x_{1}}^{x(t)}\frac{x_{1}}{\xi }\mathrm{d} \xi +y_{1}g\left( \frac{y(t)}{y_{1}}\right) \\&+\, \frac{a}{k}v_{1}g\left( \frac{v(t)}{v_{1}}\right) +\frac{p}{c}z(t). \end{aligned}$$

where \(g(x)=x-1-\ln x,~x\in \mathbb {R}_{+}\), has the global minimum at \(x =1\) and \(g(1)=0\).

We calculate the time derivative of V along the positive solutions of system (3). Firstly, we have

$$\begin{aligned}&\dot{V}(t)|_{(3)}\nonumber \\&\quad =\dot{x}(t)-\frac{x_{1}}{x(t)}\dot{x}(t)+\dot{y}(t)-\frac{y_{1}}{y(t)}\dot{y}(t)\nonumber \\&\qquad +\,\frac{a}{k}\left( \dot{v}(t)-\frac{v_{1}}{v(t)}\dot{v}(t)\right) +\frac{p}{c}\dot{z}(t)\nonumber \\&\quad =\lambda -d x(t)-\frac{x_{1}}{x(t)}(\lambda -d x(t)-x(t) f(v(t)))\nonumber \\&\qquad -\,\frac{y_{1}}{y(t)}\left( x(t)f(v(t))-a y(t)\right) \nonumber \\&\qquad +\,p y_{1}z(t)-\frac{a u}{k}v(t)-\frac{a}{k}\frac{v_{1}}{v(t)}(k y(t)\nonumber \\&\qquad -\,u v(t))-\frac{p b}{c}z(t) \end{aligned}$$
(12)

Using \(\lambda =d x_{1}+x_{1}f(v_{1})\), \(x_{1}f(v_{1})=a y_{1}\) and \(k y_{1}=u v_{1}\), we obtain

$$\begin{aligned}&\dot{V}(t)|_{(3)}\nonumber \\&\quad =d x_{1}\left( 2-\frac{x(t)}{x_{1}}-\frac{x_{1}}{x(t)}\right) +a y_{1}-a y_{1}\frac{v(t)}{v_{1}}\nonumber \\&\qquad -\,a y_{1}\frac{x_{1}}{x(t)}+a y_{1}\frac{f(v(t))}{f(v_{1})}\nonumber \\&\qquad -\,a y_{1}\frac{y_{1}}{y(t)}\frac{x(t)}{x_{1}}\frac{f(v(t))}{f(v_{1})}+a y_{1}\nonumber \\&\qquad -\,a y_{1}\frac{v_{1}}{v(t)}\frac{y(t)}{y_{1}}+a y_{1}+p z(t)\left( y_{1}-\frac{b}{c}\right) \nonumber \\&\quad =d x_{1}\left( 2-\frac{x(t)}{x_{1}}-\frac{x_{1}}{x(t)}\right) \nonumber \\&\qquad +\,a y_{1}\left( 1-\frac{x_{1}}{x(t)}+\frac{f(v(t))}{f(v_{1})}\right) \nonumber \\&\qquad +\,a y_{1}\left( 1-\frac{y_{1}}{y(t)}\frac{x(t)}{x_{1}}\frac{f(v(t))}{f(v_{1})}\right) \nonumber \\&\qquad +\,a y_{1}\left( 1-\frac{v(t)}{v_{1}}-\frac{v_{1}}{v(t)}\frac{y(t)}{y_{1}}\right) +p z(t)\left( y_{1}-\frac{b}{c}\right) \nonumber \\&\quad = d x_{1}\left( 2-\frac{x(t)}{x_{1}}-\frac{x_{1}}{x(t)}\right) \nonumber \\&\qquad + \,a y_{1}\left( -1-\frac{v(t)}{v_{1}}+\frac{f(v(t))}{f(v_{1})}+\frac{v(t)}{v_{1}}\frac{f(v_{1})}{f(v(t))}\right) \nonumber \\&\qquad + \, a y_{1}\left( 4-\frac{x_{1}}{x(t)}-\frac{y_{1}}{y(t)}\frac{x(t)}{x_{1}}\frac{f(v(t))}{f(v_{1})} -\frac{v_{1}}{v(t)}\frac{y(t)}{y_{1}}\right. \nonumber \\&\qquad \left. -\frac{v(t)}{v_{1}}\frac{f(v_{1})}{f(v(t))}\right) +p z(t)\left( y_{1}-\frac{b}{c}\right) \end{aligned}$$
(13)

Because of satisfying the conditions (H) and

$$\begin{aligned}&2-\frac{x(t)}{x_{1}}-\frac{x_{1}}{x(t)}\le 0,\\&\quad -1-\frac{v(t)}{v_{1}}+\frac{f(v(t))}{f(v_{1})}+\frac{v(t)}{v_{1}}\frac{f(v_{1})}{f(v(t))}\le 0,\\&4-\frac{x_{1}}{x(t)}-\frac{y_{1}}{y(t)}\frac{x(t)}{x_{1}}\frac{f(v(t))}{f(v_{1})} -\frac{v_{1}}{v(t)}\frac{y(t)}{y_{1}}\\&\quad -\frac{v(t)}{v_{1}}\frac{f(v_{1})}{f(v(t))}\le 0. \end{aligned}$$

thus \(\dot{V}(t)\le 0\) holds. Hence, the solutions of system (3) must converge to M, the largest positive invariant set of \(M=\{\dot{V}(t)= 0\}\).

Next, we analyze that M consists of only the interior equilibrium \(E_{1}\). We see that \(\dot{V}(t)= 0\) if and only if \(x(t)=x_{1},~y(t)=y_{1},~v(t)=v_{1}\). From system (3), we get \(z_{1}=0\). Thus, it follows that \(M =\{E_{1}\}\). By the LaSalle invariance principle [1], \(E_{1}\) is globally attractive.

5 Global attractivity when \(R_\mathrm{CTL}>1\)

We have proved in above sections that, if \(R_\mathrm{CTL}> 1\), the CTL-AE \(E^{*}\) exists in the interior of \(\varOmega \). We will investigate the attractivity of \(E^{*}\) in following section.

Theorem 4

If \(R_\mathrm{CTL}>1\), then the CTL-activated equilibrium \(E^{*}\) is globally attractive.

Proof

We construct the following Lyapunov function \(V:\mathbb {R}\times \mathbb {R}\times \mathbb {R}\times \mathbb {R}\rightarrow \mathbb {R}\):

$$\begin{aligned} V(t)= & {} x(t)-x^{*}-\int _{x^{*}}^{x(t)}\frac{x^{*}}{\xi }\mathrm{d} \xi \\&+ \, y^{*}g\left( \frac{y(t)}{y^{*}}\right) +\frac{a+p z^{*}}{k}v^{*}g\left( \frac{v(t)}{v^{*}}\right) \\&+\, \frac{p}{c}z^{*}g\left( \frac{z(t)}{z^{*}}\right) , \end{aligned}$$

where \(g(x)=x-1-\ln x,~x\in \mathbb {R}_{+}\), has the global minimum at \(x =1\) and \(g(1)=0\).

We calculate the time derivative of V along the positive solutions of system (3). Firstly, we have

$$\begin{aligned}&\dot{V}(t)|_{(3)}\nonumber \\&\quad =\dot{x}(t)-\frac{x^{*}}{x(t)}\dot{x}(t)+\dot{y}(t)-\frac{y^{*}}{y(t)}\dot{y}(t)\nonumber \\&\quad \quad +\,\frac{a+p z^{*}}{k}\left( \dot{v}(t)-\frac{v^{*}}{v(t)}\dot{v}(t)\right) \nonumber \\&\quad \quad +\,\frac{p}{c}\left( \dot{z}(t)-\frac{z^{*}}{z(t)}\dot{z}(t)\right) \nonumber \\&\quad =\lambda -d x(t)-\frac{x^{*}}{x(t)}(\lambda -d x(t)-x(t) f(v(t)))\nonumber \\&\quad \quad -\,\frac{y^{*}}{y(t)}\left( x(t)f(v(t))-a y(t)\right) \nonumber \\&\quad \quad +\,p y^{*}z(t)-\frac{a u}{k}v(t)-\frac{p z^{*} u}{k}v(t)\nonumber \\&\quad \quad -\,\frac{a}{k}\frac{v^{*}}{v(t)}(k y(t)-u v(t))\nonumber \\&\quad \quad -\,\frac{p z^{*}}{k}\frac{v^{*}}{v(t)}(k y(t)-u v(t)) -\frac{p b}{c}z(t)+\frac{p b}{c} z^{*}\nonumber \\&\quad =\lambda -d x(t)-\frac{x^{*}}{x(t)}(\lambda -d x(t)-x(t) f(v(t)))\nonumber \\&\quad \quad -\,\frac{y^{*}}{y(t)}x(t)f(v(t))+a y^{*}\nonumber \\&\quad \quad -\,\frac{a u}{k}v(t)-\frac{p z^{*} u}{k}v(t)-a \frac{v^{*}}{v(t)}y(t)+a \frac{u}{k}v^{*}\nonumber \\&\quad \quad -\,p z^{*}\frac{v^{*}}{v(t)}y(t)+p z^{*}\frac{u}{k}v^{*}+p z^{*} \frac{b}{c} \end{aligned}$$
(14)

Using \(\lambda =d x^{*}+x^{*}f(v^{*})\), \(x^{*}f(v^{*})=a y^{*}+p z^{*}y^{*}\) and \(k y^{*}=u v^{*}\), we obtain

$$\begin{aligned}&\dot{V}(t)|_{(3)}= d x^{*}+x^{*}f(v^{*})-d x(t)-\frac{x^{*}}{x(t)}(d x^{*}+x^{*}f(v^{*})\nonumber \\&\quad \quad -\, d x(t))-x^{*} f(v(t))\nonumber \\&\qquad -\, \frac{y^{*}}{y(t)}x(t)f(v(t))+a y^{*}-\frac{a u}{k}v(t)\nonumber \\&\quad \quad -\, \frac{p z^{*} u}{k}v(t) -a \frac{v^{*}}{v(t)}y(t)\nonumber \\&\quad \quad +\, a y^{*}-p z^{*}\frac{v^{*}}{v(t)}y(t)+2p z^{*}y^{*}\nonumber \\&\quad =d x^{*}\left( 2-\frac{x(t)}{x^{*}}-\frac{x^{*}}{x(t)}\right) +x^{*}f(v^{*})\nonumber \\&\quad \quad -\, \frac{x^{*}}{x(t)}x^{*}f(v^{*})+x^{*}f(v^{*})\frac{v(t)}{v^{*}}\nonumber \\&\quad \quad -\, x^{*}f(v^{*})\frac{y^{*}}{y(t)}\frac{x(t)f(v(t))}{x^{*}f(v^{*})}+2x^{*}f(v^{*})\nonumber \\&\quad \quad -\, \frac{a u}{k}v(t)-\frac{p z^{*} u}{k}v(t)\nonumber \\&\quad \quad -\, a \frac{v^{*}}{v(t)}y(t)-p z^{*}\frac{v^{*}}{v(t)}y(t)\nonumber \\&\quad =d x^{*}\left( 2-\frac{x(t)}{x^{*}}-\frac{x^{*}}{x(t)}\right) \nonumber \\&\quad \quad +\, x^{*}f(v^{*})\left( 1-\frac{x^{*}}{x(t)}+\frac{f(v(t))}{f(v^{*})}\right) \nonumber \\&\quad \quad +\, x^{*}f(v^{*})\left( 1-\frac{y^{*}}{y(t)}\frac{x(t)}{x^{*}}\frac{f(v(t))}{f(v^{*})}\right) \nonumber \\&\quad \quad +\, x^{*}f(v^{*})\left( 1-\frac{v(t)}{v^{*}}-\frac{v^{*}}{v(t)}\frac{y(t)}{y^{*}}\right) \nonumber \\&\quad =x^{*}f(v^{*})\left( 2-\frac{x(t)}{x^{*}}-\frac{x^{*}}{x(t)}\right) \nonumber \\&\quad \quad +\, x^{*}f(v^{*})\left( -1-\frac{v(t)}{v^{*}}+\frac{f(v(t))}{f(v^{*})}\right. \nonumber \\&\quad \quad \left. +\frac{v(t)}{v^{*}}\frac{f(v^{*})}{f(v(t))}\right) \nonumber \\&\quad \quad +\, x^{*}f(v^{*})\left( 4-\frac{x^{*}}{x(t)}-\frac{y^{*}}{y(t)}\frac{x(t)}{x^{*}}\frac{f(v(t))}{f(v^{*})} \right. \nonumber \\&\quad \quad \left. -\, \frac{v^{*}}{v(t)}\frac{y(t)}{y^{*}}-\frac{v(t)}{v^{*}}\frac{f(v^{*})}{f(v(t))}\right) . \end{aligned}$$
(15)

Because of satisfying the following conditions

$$\begin{aligned}&2-\frac{x(t)}{x^{*}}-\frac{x^{*}}{x(t)}\le 0,\nonumber \\&-1-\frac{v(t)}{v^{*}}+\frac{f(v(t))}{f(v^{*})} +\frac{v(t)}{v^{*}}\frac{f(v^{*})}{f(v(t))}\le 0,\nonumber \\&4-\frac{x^{*}}{x(t)}-\frac{y^{*}}{y(t)}\frac{x(t)}{x^{*}}\frac{f(v(t))}{f(v^{*})} -\frac{v^{*}}{v(t)}\frac{y(t)}{y^{*}}\nonumber \\&\quad -\frac{v(t)}{v^{*}}\frac{f(v^{*})}{f(v(t))}\le 0. \end{aligned}$$

thus \(\dot{V}(t)\le 0\) holds. Hence, the solutions of system (3) must converge to M, the largest positive invariant set of \(M=\{\dot{V}(t)= 0\}\).

Next, we analyze that M consists of only the interior equilibrium \(E^{*}\). We see that \(\dot{V}(t)= 0\) if and only if \(x(t)=x^{*},~y(t)=y^{*},~v(t)=v^{*}\). Thus, it follows that \(M =\{E^{*}\}\). From system (3), we get \(z(t)=z^{*}\). By the LaSalle invariance principle [1], \(E^{*}\) is globally attractive.

6 Simulations

In this section, we carry out some numerical simulations to support our theoretical analysis. Reasonable choices for f(v) include the case \(f(v)=\beta v(\beta >0)\). The following viral model is

$$\begin{aligned}&\begin{aligned}&x'(t)=\lambda -d x(t)-\beta x(t)v(t),\\&y'(t)=\beta x(t)v(t)-a y(t)-p y(t)z(t),\\&v'(t)=k y(t)-u v(t),\\&z'(t)=c y(t)z(t)-b z(t). \end{aligned} \end{aligned}$$
(16)

Then, \(R_{0}=\frac{k \lambda \beta }{a u d}\) and \(R_\mathrm{CTL}=\frac{k x^{*}\beta }{a u}\).

Corollary 1

  1. (i)

    If \(R_{0}<1\), then the disease-free equilibrium \(E_{0}\) of system (16) is globally asymptotically stable in \(\varOmega \);

  2. (ii)

    Assume that (H) is satisfied. If \(R_\mathrm{CTL}<1<R_{0}\), then the CTL-inactivated equilibrium \(E_{1}\) of system (16) is globally attractive;

  3. (iii)

    If \(R_\mathrm{CTL}>1\), then the CTL-activated equilibrium \(E^{*}\) of system (16) is globally attractive.

Next, we consider three sets of parameters values:

  1. (1)

    \(\lambda =165\), \(\beta =0.001\), \(d=0.015\), \(a=1.64\), \(u=0.18\), \(p=0.2\), \(c=0.2\), \(k=0.25\), \(b=0.05\) and \(R_{0}=0.4695<1\).

  2. (2)

    \(\lambda =165\), \(\beta =0.001075\), \(d=0.15\), \(a=1.64\), \(u=0.18\), \(p=0.2\), \(c=0.2\), \(k=0.25\), \(b=0.05\) and \(R_\mathrm{CTL}<1<R_{0}\).

  3. (3)

    \(\lambda =165\), \(\beta =0.002\), \(d=0.15\), \(a=1.64\), \(u=0.18\), \(p=0.2\), \(c=0.2\), \(k=0.25\), \(b=0.05\) and \(R_\mathrm{CTL}>1\).

From numerical simulations, it is deduced that the infection rate constant \(\beta \) will increase the density of infected cells and of free virus particles at equilibrium condition; meanwhile, it increases the effect of CTL immune response (Figs. 1, 2, 3).

Fig. 1
figure 1

Numerical simulations for system (16) with \(\lambda =165\) cells/mm\(^{3}\)/day, \(\beta =0.001\) mm\(^{3}\)/cells/day, \(d=0.015\) day\(^{-1}\), \(a=1.64\) day\(^{-1}\), \(u=0.18\) day\(^{-1}\), \(p=0.2\) mm\(^{3}\)/cells/day, \(c=0.2\) mm\(^{3}\)/cells/day, \(k=0.25\) day\(^{-1}\), \(b=0.05\) day\(^{-1}\) and \(R_{0}=0.932<1\), then the corresponding solution converges to the viral-free equilibrium \(E_{0}\), and it indicates that the virus will die out eventually

Fig. 2
figure 2

Numerical simulations for system (16) with \(\lambda =165\) cells/mm\(^{3}\)/day, \(\beta =0.001075\) mm\(^{3}\)/cells/day, \(d=0.15\) day\(^{-1}\), \(a=1.64\) day\(^{-1}\), \(u=0.18\) day\(^{-1}\), \(p=0.2\) mm\(^{3}\)/cells/day, \(c=0.2\) mm\(^{3}\)/cells/day, \(k=0.25\) day\(^{-1}\), \(b=0.05\) day\(^{-1}\) and \(R_\mathrm{CTL}=0.997< 1<R_{0}=1.0014\), then the corresponding solution converges to the immune-free equilibrium \(E_{1}\), as it implies that the infection becomes endemic with no sustained immune responses

Fig. 3
figure 3

Numerical simulations for system (16) with \(\lambda =165\) cells/mm\(^{3}\)/day, \(\beta =0.002\) mm\(^{3}\)/cells/day, \(d=0.15\) day\(^{-1}\), \(a=1.64\) day\(^{-1}\), \(u=0.18\) day\(^{-1}\), \(p=0.2\) mm\(^{3}\)/cells/day, \(c=0.2\) mm\(^{3}\)/cells/day, \(k=0.25\) day\(^{-1}\), \(b=0.05\) day\(^{-1}\) and \(R_\mathrm{CTL}=1.855>1\), then the corresponding solution converges to the CTL-activated infection equilibrium \(E^{*}\), as it implies that the infection becomes endemic with sustained immune responses

7 Summary and discussion

As we know, Nowak and Bangham [5] added the effect of CTL immune response to the classical virus model, which exists in lots of biological organisms, to obtain model (1). Meanwhile, it is difficult to obtain the global properties of a model with nonlinear function responses. Zhou [13] studied the dynamical behavior of a virus dynamics model with CTL immune response, as the nonlinear incidence rate is \(\frac{b T V}{1+aV}\), and for the model with Logistic growth, they discussed the orbital stability of bifurcating limit cycle using Poores condition. Wang [9] studied the global stability of viral dynamics model with Beddington–DeAngelis infection rate \(\frac{\beta x v}{1+m x+n v}\) and CTL immune response by constructing Lyapunov functions. Wang and Elaiw [10] studied a six-dimensional human immunodeficiency virus (HIV) model with time delay and CTLs immune response, and their model described the interaction of HIV with two target cells: CD4\(^{+}\) T cells and macrophages, and they derived that the global asymptotic attractivity of the model was completely determined by the basic reproduction number \(R_{0}\) and the immune reproduction number \(R_{0}^{*}\) for the viral infection.

In this paper, a generalized viral dynamics model with CTL immune response is studied. Based on the in-host viral model with different incidence rate, we extend the known results and describe nonlinear incidence rate to be x(t)f(v(t)). By constructing Lyapunov functions and using Lyapunov–LaSalle invariance principle, we obtain the following results on the global behaviors of the endemic equilibria and the disease-free equilibrium:

  1. (1)

    If \(R_{0}<1\), then the viral-free equilibrium \(E_{0}\) is globally asymptotically stable, as it indicates that the virus will die out eventually;

  2. (2)

    If \(R_\mathrm{CTL}< 1<R_{0}\), then the immune-free equilibrium \(E_{1}\) is globally attractive;

  3. (3)

    If \(R_\mathrm{CTL}>1\), then all positive solutions converge to the chronic-infection equilibrium \(E^{*}\), as it implies that the infection becomes endemic with sustained immune responses.