1 Introduction

The adaptive immune system, also known as the acquired immune system, is mainly composed of two parts, cellular immunity and humoral immunity. Humoral immunity is mediated by macromolecules such as antibodies, complement proteins, and certain antimicrobial peptides. These macromolecules are produced by a special kind of leukocyte, the B lymphocyte. The principal function of B cells is to make these macromolecules against soluble antigens. So humoral immunity can be more effective than cellular immunity in some infections, such as malaria [1]. To investigate the role of humoral immunity in infection, many authors have presented and developed mathematical models [27]. Murase et al. introduced a basic in-host viral model with humoral immunity response in [5]:

$$\begin{aligned} &\frac{{dx(t)}}{{dt}} = s - dx(t) - \beta x(t)v(t), \\ &\frac{{dy(t)}}{{dt}} = \beta x(t)v(t) - \delta y(t), \\ &\frac{{dv(t)}}{{dt}} = ky(t) - uv(t) - pv(t)z(t),\\ &\frac{{dz(t)}}{{dt}} = cv(t)z(t) - bz(t). \end{aligned}$$
(1.1)

In system (1.1), \(x(t)\), \(y(t)\), \(v(t)\), and \(z(t)\) are the densities of uninfected cells, infected cells, viruses, and B cells at time t, respectively. s and d are the birth rate and death rate of uninfected cells. β is the infection rate. k is the average virion production rate of infected cells. δ is the death rate of infected cells, u is the death rate of the virus. c, b, and p are the birth rate, death rate, and neutralized rate of B cells, respectively.

In [8] Nelson et al. suggested that the death rate of infected cells should vary over their life span and the virion production rate is initially low and increases with the age of infection. Further, they introduced an age-structured HIV infection model taking the following form:

$$ \begin{aligned} &\dot{x} (t) = s -dx(t) - {\beta x(t)v(t)} , \\ &\frac{{\partial y(a,t)}}{ {\partial a}} + \frac{{\partial y(a,t)}}{ {\partial t}} = - \delta(a)y(a,t) , \\ & \dot{v} (t) = \int_{0}^{\infty}{k(a)y(a,t)\,da} - uv(t) . \end{aligned} $$
(1.2)

In system (1.2), \(x(t)\) and \(v(t)\) denote the densities of uninfected target T cells and infectious free virions at time t, respectively. \(y(a,t)\) denotes the density of infected T cells of infection age a at time t. The definitions of the various parameters in system (1.2) are listed in Table 1.

Table 1 Biological definitions of parameters

In their model, the production rate of viral particles and the death rate of productively infected cells are allowed to vary and depend on two general functions of age. These assumptions are reasonable and the supporting evidence can be found in the recent research of Reilly et al. and Gilchrist et al. in [9, 10]. Nelson et al. analyzed the local stability of the equilibria of the age-structured HIV infection model when they introduced it. Later Huang et al. established the global asymptotic stability of the equilibria by using suitable Lyapunov functionals and Lasalle’s invariance principle in [11]. Recently, in [12] Wang et al. analyzed an age-structured HIV infection model with saturation infection rate, their result is an extension to the work of Nelson et al. and Huang et al.

Motivated by the basic in-host viral model with humoral immunity response introduced in [5] and work of Nelson et al. in [8], in this paper, we study an age-structured in-host viral infection model with humoral immunity, the model takes the following form:

$$ \begin{aligned} &\dot{x}(t) = s - dx(t) - \beta x(t)v(t),\\ &\frac{{\partial y(a,t)}}{ {\partial t}} + \frac{{\partial y(a,t)}}{ {\partial a}} = - \delta(a)y(a,t),\\ &\dot{v}(t) = \int_{0}^{\infty}{k(a)y(a,t)}\,da - uv(t) - pv(t)z(t),\\ &\dot{z}(t) = cv(t)z(t) - bz(t), \end{aligned} $$
(1.3)

with boundary condition

$$ y(0,t) = \beta x(t)v(t) $$
(1.4)

and initial condition

$$ x(0) = x_{s} ,\qquad y(a,0) = y_{s} (a), \qquad v(0) = v_{s}, \qquad z(0)=z_{s}. $$
(1.5)

In system (1.3), \(y(a,t)\) is the density of infected cells of infection age a at time t, \(k(a)\) is the virion production rate of infected cells with infection age a, \(\delta(a)\) is the age-dependent per capita death rate of infected cells. The definitions of \(x(t)\), \(v(t)\), \(z(t)\), and the other parameters are the same as in system (1.1). To make the model biologically meaningful, we assume:

  1. (H1)

    \(a\geq0\), \(s>0\), \(d>0\), \(\beta>0\), \(u>0\), \(p>0\), \(c>0\), \(b>0\).

  2. (H2)

    \(\delta(a)\) is bounded and \(\delta(a)>\delta_{\min}\) for some positive constant \(\delta_{\min}\) for all \(a\geq0\).

  3. (H3)

    \(k(a)\) is bounded and there exists a maximum age \(a^{+}\) for the virion production such that \(k(a)>0\) for \(0< a< a^{+}\), \(k(a)=0\) for \(a\geq a^{+}\).

  4. (H4)

    \(x_{s}>0\), \(y_{s}(a)\geq0\), \(v_{s}>0\), \(z_{s}\geq0\).

According to (H1)-(H4), it is easy to see that system (1.3) with boundary condition (1.4) and initial condition (1.5) has a unique nonnegative solution.

2 Local stability

Denote

$$ N =\int_{0}^{\infty}{k(a)\sigma(a)\,da} , $$
(2.1)

where

$$\sigma(a) = e^{ - \int_{0}^{a} {\delta(\varepsilon)\,d\varepsilon} } . $$

N stands for the total number of viral particles produced by an infected cell in its lifespan. According to (H3), N also takes the form

$$N { = \int_{0}^{a^{+} } {k(a)\sigma(a)\,da} } . $$

By calculation we know that the infection-free steady state of system (1.3) is \(E_{0} (s/d,0,0,0) \). If the basic reproduction number \(\Re_{0} =\beta sN/du>1\), there exists an immune-inactivated infected steady state \(E_{1}^{*}(x_{1}^{*},y_{1}^{*}(a),v_{1}^{*},0)\), in which

$$x_{1}^{*}=\frac{u}{\beta N},\qquad y_{1}^{*}(a)=\frac{(\beta s N - du)\sigma (a)}{\beta N},\qquad v_{1}^{*}=\frac{\beta sN - du}{\beta u}. $$

If the immune-activated reproduction number \(\Re_{1} = \beta csN/(cdu + \beta bu )>1 \), there exists an immune-activated infected steady state \(E_{2}^{*} (x_{2}^{*},y_{2}^{*}(a),v_{2}^{*},z_{2}^{*})\), in which

$$x_{2}^{*}=\frac{cs}{cd + \beta b},\qquad y_{2}^{*}(a)=\frac{\beta bs\sigma(a)}{cd + \beta b},\qquad v_{2}^{*}=\frac{b}{c},\qquad z_{2}^{*}=\frac{\beta csN - cdu - \beta bu}{p(cd + \beta b)}. $$

Theorem 2.1

The infection-free steady state \(E_{0}\) is locally asymptotically stable if \(\Re_{0}<1\).

Proof

Linearizing system (1.3) about \(E_{0}\) and defining the perturbation variables

$$x_{1} (t) = x(t) - \frac{s}{d},\qquad y_{1} (a,t) = y(a,t),\qquad v_{1} (t) = v(t),\qquad z_{1}(t)=z(t), $$

we obtain

$$ \begin{aligned} &\dot{x}_{1} (t) = - dx_{1} (t) - \frac{{\beta s}}{ d}v_{1} (t),\\ &\frac{{\partial y_{1} (a,t)}}{ {\partial a}} + \frac{{\partial y_{1} (a,t)}}{ {\partial t}} = - \delta(a)y_{1} (a,t),\\ &\dot{v}_{1} (t) = \int_{0}^{\infty}{k(a)y_{1} (a,t)\,da} - uv_{1} (t),\\ &\dot{z}_{1} (t) = - bz_{1} (t), \end{aligned} $$
(2.2)

and

$$ y_{1} (0,t) = \frac{{\beta s}}{d}v_{1} (t). $$
(2.3)

Look for non-trivial solutions of (2.2) and (2.3) of the form

$$ x_{1} (t) = c_{11} e^{\lambda t},\qquad y_{1} (a,t) = y_{1}^{0} (a)e^{\lambda t} ,\qquad v_{1} (t) = c_{21} e^{\lambda t},\qquad z_{1} (t) = c_{31} e^{\lambda t}. $$
(2.4)

Substituting (2.4) into (2.2) and (2.3), it follows that

$$ \begin{aligned} & (\lambda+d )c_{11} = - \frac{{\beta s}}{ d}c_{21} ,\\ &\frac{{dy_{1}^{0} (a)}}{ {da}} = - \bigl( {\delta(a) + \lambda} \bigr)y_{1}^{0} (a),\\ & (\lambda+u )c_{21} = \int_{0}^{\infty}{k(a)y_{1}^{0} (a)\,da} ,\\ &c_{31} \lambda = - bc_{31} ,\\ &y_{1}^{0} (0) = \frac{{\beta s}}{ d}c_{21} . \end{aligned} $$
(2.5)

Integrating the second equation of (2.5) from 0 to a yields

$$ y_{1}^{0} (a) = y_{1}^{0} (0)e^{ - \int_{0}^{a} { ( {\lambda + \delta (\varepsilon)} )\,d\varepsilon} }. $$
(2.6)

We derive from the fifth equation of (2.5) and (2.6) that

$$ y_{1}^{0} (a) = \frac{{\beta s}}{ d}c_{21}e^{ - \int_{0}^{a} { ( {\lambda + \delta(\varepsilon)} )\,d\varepsilon} }. $$
(2.7)

Then substituting (2.7) and the fourth equation of (2.5) into the third equation of (2.5), we obtain the characteristic equation

$$ (\lambda+b ) \biggl(\frac{N}{ {\int_{0}^{\infty}{k(a)e^{ - \int_{0}^{a} { ( {\lambda + \delta (\varepsilon)} )\,d\varepsilon} }\,da} }} \cdot\frac{{\lambda + u}}{ u} - \Re_{0} \biggr)=0. $$
(2.8)

Clearly, \(\lambda=-b\) is a negative real root of equation (2.8). We claim that if \(\Re_{0}<1\), all roots of equation (2.8) have negative real parts. Otherwise, equation (2.8) has at least one root satisfying Re\(\lambda\geq0\), in this case

$$\begin{aligned} {\Re_{0} } &= \biggl\vert { \frac{N}{ {\int_{0}^{\infty}{k(a)e^{ - \int_{0}^{a} { ( {\lambda + \delta (\varepsilon)} )\,d\varepsilon} }\,da} }} \cdot\frac{{\lambda + u}}{ u}} \biggr\vert \\ &= \biggl\vert {\frac{{\int_{0}^{\infty}{k(a)e^{ - \int _{0}^{a} {\delta(\varepsilon)\,d\varepsilon} }\,da} }}{ {\int_{0}^{\infty}{e^{ - a\lambda} k(a)e^{ - \int_{0}^{a} {\delta (\varepsilon)\,d\varepsilon} }\,da} }}} \biggr\vert \cdot\biggl\vert {\frac {{\lambda + u}}{ u}} \biggr\vert \geq1. \end{aligned}$$

It contradicts with \(\Re_{0}<1\). Therefore, all roots of equation (2.8) have negative real parts. Accordingly, \(E_{0}\) is locally asymptotically stable if \(\Re_{0}<1\). □

Theorem 2.2

The immune-inactivated infected steady state \(E_{1}^{*}\) is locally asymptotically stable if \(\Re_{1}<1<\Re_{0}\).

Proof

Linearizing system (1.3) about \(E_{1}^{*}\) and defining the perturbation variables

$$x_{2} (t) = x(t) - x_{1}^{*} ,\qquad y_{2} (a,t) = y(a,t) - y_{1}^{*} (a),\qquad v_{2} (t) = v(t) - v_{1}^{*}, \qquad z_{2}(t)=z(t), $$

we obtain

$$ \begin{aligned} &\dot{x}_{2} (t) = \bigl( - d - \beta v_{1}^{*} \bigr)x_{2} (t) - \beta x_{1}^{*} v_{2} (t),\\ &\frac{{\partial y_{2} (a,t)}}{ {\partial a}} + \frac{{\partial y_{2} (a,t)}}{ {\partial t}} = - \delta(a)y_{2} (a,t),\\ &\dot{v}_{2} (t) = \int_{0}^{\infty}{k(a)y_{2} (a,t)\,da} - uv_{2} (t) - pv_{1}^{*} z_{2} (t),\\ &\dot{z}_{2} (t) = \bigl( {cv_{1}^{*} - b} \bigr)z_{2} (t), \end{aligned} $$
(2.9)

and

$$ y_{2} (0,t) = \beta x_{1}^{*} v_{2} (t) + \beta v_{1}^{*} x_{2} (t). $$
(2.10)

We look for non-trivial solutions of (2.9) and (2.10) of the form

$$ x_{2} (t) = c_{12} e^{\lambda t},\qquad y_{2} (a,t) = y_{2}^{0} (a)e^{\lambda t} ,\qquad v_{2} (t) = c_{22} e^{\lambda t},\qquad z_{2} (t) = c_{32} e^{\lambda t}. $$
(2.11)

By using a similar method to the proof of Theorem 2.1, we obtain the characteristic equation

$$ \biggl( {\frac{{\lambda + u}}{ u} - \frac{{\lambda + d}}{ {\lambda + d + \beta v_{1}^{*} }} \cdot \frac{{\int_{0}^{\infty}{k(a)e^{ - \int_{0}^{a} { ( {\delta(\varepsilon) + \lambda} )\,d\varepsilon } }\,da} }}{ {\int_{0}^{\infty}{k(a)e^{ - \int_{0}^{a} {\delta(\varepsilon)\,d\varepsilon } }\,da} }}} \biggr) \bigl( {\lambda - cv_{1}^{*} + b} \bigr) = 0. $$
(2.12)

Obviously, \(\lambda = cv_{1}^{*} - b = ( {\Re_{1} - 1} ) ( {cd + \beta b} )/\beta\) is a root of equation (2.12), and it is negative when \(\Re_{1}<1\). We claim that if \(\Re_{1}<1<\Re_{0}\), all roots of equation (2.12) have negative real parts. Otherwise, equation (2.12) has at least one root satisfying Re\(\lambda\geq 0\), in this case

$$\frac{{\lambda + u}}{ u} = \frac{{\lambda + d}}{ {\lambda + d + \beta v_{1}^{*} }} \cdot\frac{{\int_{0}^{\infty}{k(a)e^{ - \int_{0}^{a} { ( {\delta(\varepsilon) + \lambda} )\,d\varepsilon } }\,da} }}{ {\int_{0}^{\infty}{k(a)e^{ - \int_{0}^{a} {\delta(\varepsilon)\,d\varepsilon } }\,da} }}. $$

However,

$$\begin{aligned}& \biggl\vert {\frac{{\lambda + u}}{ u}} \biggr\vert \geq1,\\& \begin{aligned} &\biggl\vert {\frac{{\lambda + d}}{ {\lambda + d + \beta v_{1}^{*} }} \cdot \frac{{\int_{0}^{\infty}{k(a)e^{ - \int_{0}^{a} { ( {\delta(\varepsilon) + \lambda} )\,d\varepsilon } }\,da} }}{ {\int_{0}^{\infty}{k(a)e^{ - \int_{0}^{a} {\delta(\varepsilon)\,d\varepsilon } }\,da} }}} \biggr\vert \\ &\quad= \biggl\vert {\frac{{\lambda + d}}{ {\lambda + d + \beta v_{1}^{*} }}} \biggr\vert \cdot\biggl\vert {\frac{{\int _{0}^{\infty}{k(a)e^{ - \int_{0}^{a} { ( {\delta(\varepsilon) + \lambda } )\,d\varepsilon} }\,da} }}{ {\int_{0}^{\infty}{k(a)e^{ - \int_{0}^{a} {\delta(\varepsilon)\,d\varepsilon } }\,da} }}} \biggr\vert < 1 . \end{aligned} \end{aligned}$$

A contradiction occurs. Thus, all roots of equation (2.12) have negative real parts, \(E_{1}^{*}\) is locally asymptotically stable if \(\Re _{1}<1<\Re_{0}\). □

Theorem 2.3

The immune-activated infected steady state \(E_{2}^{*}\) is locally asymptotically stable if \(\Re_{1}>1\).

Proof

Linearizing system (1.3) about \(E_{1}^{*}\) and defining the perturbation variables

$$\begin{aligned}& x_{3} (t) = x(t) - x_{2}^{*} ,\qquad y_{3} (a,t) = y(a,t) - y_{2}^{*} (a),\\& v_{3} (t) = v(t) - v_{2}^{*},\qquad z_{3}(t)=z(t)-z_{2}^{*}, \end{aligned}$$

we obtain

$$ \begin{aligned} &\dot{x}_{3} (t) = \bigl( - d - \beta v_{2}^{*} \bigr)x_{3} (t) - \beta x_{2}^{*} v_{3} (t),\\ &\frac{{\partial y_{3} (a,t)}}{ {\partial a}} + \frac{{\partial y_{3} (a,t)}}{ {\partial t}} = - \delta(a)y_{3} (a,t),\\ &\dot{v}_{3} (t) = \int_{0}^{\infty}{k(a)y_{3} (a,t)\,da} - \bigl( {u + pz_{2}^{*} } \bigr)v_{3} (t) - pv_{2}^{*} z_{3} (t),\\ &\dot{z}_{3} (t) =cz_{2}^{*} v_{3} (t), \end{aligned} $$
(2.13)

and

$$ y_{3} (0,t) = \beta x_{2}^{*} v_{3} (t) + \beta v_{2}^{*} x_{3} (t). $$
(2.14)

We look for non-trivial solutions of (2.13) and (2.14) of the form

$$ x_{3} (t) = c_{13} e^{\lambda t},\qquad y_{3} (a,t) = y_{3}^{0} (a)e^{\lambda t} ,\qquad v_{3} (t) = c_{23} e^{\lambda t},\qquad z_{3} (t) = c_{33} e^{\lambda t}. $$
(2.15)

Substituting (2.15) into (2.13) and (2.14), it follows that

$$ \begin{aligned} &c_{13} \lambda = \bigl( - d - \beta v_{2}^{*} \bigr)c_{13} - \beta x_{2}^{*} c_{23} ,\\ &\frac{{dy_{3}^{0} (a)}}{ {da}} = - \bigl( {\delta(a) + \lambda} \bigr)y_{3}^{0} (a),\\ &c_{23} \lambda = \int_{0}^{\infty}{k(a)y_{3}^{0} (a)\,da} - \bigl( {u + pz_{2}^{*} } \bigr)c_{23} - pv_{2}^{*} c_{33} ,\\ &c_{33} \lambda = cz_{2}^{*} c_{23} ,\\ &y_{3}^{0} (0) = \beta x_{2}^{*} c_{23} + \beta v_{2}^{*} c_{13} . \end{aligned} $$
(2.16)

We derive from the second and the fifth equations of (2.16) that

$$ y_{3}^{0} (a) = \bigl( {\beta x_{2}^{*} c_{23} + \beta v_{2}^{*} c_{13} } \bigr)e^{ - \int_{0}^{a} { ( {\delta(\varepsilon) + \lambda} )\,d\varepsilon} }. $$
(2.17)

Substituting the first and the fourth equations of (2.16) into the third equation of (2.16), we get the characteristic equation

$$\begin{aligned} &\lambda \bigl( {\lambda + u + pz_{2}^{*} } \bigr) \bigl( {\lambda + d + \beta v_{2}^{*} } \bigr) + cpv_{2}^{*} z_{2}^{*} \bigl( {\lambda + d + \beta v_{2}^{*} } \bigr) \\ &\quad= \lambda ( {\lambda + d} )\beta x_{2}^{*} \int_{0}^{\infty}{k(a)e^{ - \int_{0}^{a} { (\delta(\varepsilon)+\lambda )\,d\varepsilon} } }\,da. \end{aligned}$$
(2.18)

Noting that \(\lambda=0\) and \(\lambda=-d - \beta v_{2}^{*}\) are not roots of equation (2.18), (2.18) can also be written as

$$ \lambda + u + pz_{2}^{*} + \frac{{cpv_{2}^{*} z_{2}^{*} }}{ \lambda} = \frac{{ ( {\lambda + d} )\beta x_{2}^{*} }}{ {\lambda + d + \beta v_{2}^{*} }} \int_{0}^{\infty}{k(a)e^{ - \int_{0}^{a} { ( {\delta(\varepsilon) + \lambda} )\,d\varepsilon} }\,da}. $$
(2.19)

Substituting \(x_{2}^{*} = cs/(cd + \beta b)\), \(v_{2}^{*}=b/c\), \(z_{2}^{*} = (\beta csN - cdu - \beta bu)/p(cd + \beta b)\) into (2.19), we have

$$ \frac{{\beta csN}}{ {cd + \beta b}} + \frac{{\lambda^{2} + pbz_{2}^{*} }}{ \lambda} = \frac{{\lambda + d}}{ {\lambda + d + \beta v_{2}^{*} }} \frac{{\beta cs}}{ {cd + \beta b}} \int_{0}^{\infty}{k(a)e^{ - \int_{0}^{a} { ( {\delta (\varepsilon) + \lambda} )\,d\varepsilon} }\,da}. $$
(2.20)

We claim that if \(\Re_{1}>1\), all roots of equation (2.20) have negative real parts. Otherwise, equation (2.20) has at least one root satisfying \(\lambda = \alpha + \gamma i \) (\(\alpha > 0\) or \(\alpha = 0\), \(\gamma \ne0\)), in this case

$$\begin{aligned} &\biggl\vert {\frac{{\lambda + d}}{ {\lambda + d + \beta v_{2}^{*} }}\frac{{\beta cs}}{ {cd + \beta b}} \int_{0}^{\infty}{k(a)e^{ - \int_{0}^{a} { ( {\delta (\varepsilon) + \lambda} )\,d\varepsilon} }\,da} } \biggr\vert \\ &\quad= \frac{{\beta cs}}{ {cd + \beta b}}\biggl\vert {\frac{{\lambda + d}}{ {\lambda + d + \beta v_{2}^{*} }}} \biggr\vert \biggl\vert { \int_{0}^{\infty}{k(a)e^{ - \int_{0}^{a} { ( {\delta(\varepsilon) + \lambda} )\,d\varepsilon} }\,da} } \biggr\vert < \frac{{\beta csN}}{ {cd + \beta b}}, \end{aligned}$$

while

$$\begin{aligned} \biggl\vert {\frac{{\beta csN}}{ {cd + \beta b}} + \frac{{\lambda^{2} + pbz^{*} }}{ \lambda}} \biggr\vert &= \biggl\vert {\frac{{\beta csN}}{ {cd + \beta b}} + \frac{{\alpha^{2} - \gamma^{2} + 2\alpha\gamma i + pbz^{*} }}{ {\alpha + \gamma i}}} \biggr\vert \\ &= \biggl\vert {\frac{{\beta csN}}{ {cd + \beta b}} + \frac{{\alpha ( {\alpha^{2} + \gamma^{2} + pbz^{*} } ) + ( {\alpha^{2} \gamma + \gamma^{3} - pbz^{*} \gamma} )i}}{ {\alpha^{2} + \gamma^{2} }}} \biggr\vert \\ & \geq\frac{{\beta csN}}{ {cd + \beta b}}. \end{aligned}$$

The contradiction is obvious. Thus, all roots of equation (2.20) have negative real parts, \(E_{2}^{*}\) is locally asymptotically stable if \(\Re_{1}>1\). □

3 Global stability

In this section, we study the global asymptotic stability of each steady state of system (1.3). The strategy of proofs is to use Lyapunov functionals.

Theorem 3.1

The infection-free steady state \(E_{0}\) is globally asymptotically stable if \(\Re_{0}<1\).

Proof

Denote

$$ f(a): = \int_{a}^{\infty}{k(\theta)e^{ - \int_{a}^{\theta}{\delta (\varepsilon)\,d\varepsilon} }\,d\theta}\quad \biggl( { = \int_{a}^{a^{+} } {k(\theta)e^{ - \int_{a}^{\theta}{\delta(\varepsilon)\,d\varepsilon} }\,d\theta} } \biggr). $$
(3.1)

Note that \(f(a) > 0 \) for all \(0 < a < a^{+} \). It is easy to show from (3.1) that \(f(0) = N\), \(f(a^{+} ) = 0 \). Further, the derivative of \(f(a)\) satisfies

$$ f^{\prime}(a) = \delta(a)f(a) - k(a). $$
(3.2)

Let \(( {x(t),y(a,t),v(t),z(t)} ) \) be any solution of system (1.3) with boundary condition (1.4) and initial condition (1.5). Define

$$V_{1}(t) = \biggl( {x(t) - x_{0} - x_{0} \ln\frac{{x(t)}}{ {x_{0} }}} \biggr) + \frac{1}{ N} \int_{0}^{a^{+} } {f(a)y(a,t)}\,da + \frac{1}{ N}v(t) + \frac{p}{ {cN}}z(t). $$

It is easy to see that \(V_{1} (t)\) is nonnegative and \(E_{0}\) is a global minimum of \(V_{1} (t)\). Calculating the derivative of \(V_{1} (t)\) along the solutions of system (1.3), we have

$$ \frac{{dV_{1} (t)}}{ {dt}} = \biggl( {1 - \frac{{x_{0} }}{ x}} \biggr)\frac{{dx(t)}}{ {dt}} + \frac{1}{ N} \int_{0}^{a^{+} } {f(a)\frac{{\partial y(a,t)}}{ {\partial t}}\,da} + \frac{1}{ N}\frac{{dv(t)}}{ {dt}} + \frac{p}{ {cN}}\frac{{dz(t)}}{ {dt}}. $$
(3.3)

Substituting \(s=dx_{0}\) and (3.2) into (3.3), we get

$$\begin{aligned} \frac{{dV_{1} (t)}}{ {dt}} ={}& \biggl( {1 - \frac{{x_{0} }}{ {x(t)}}} \biggr) \bigl( {dx_{0} - dx(t) - \beta x(t)v(t)} \bigr) \\ &{}- \frac{1}{ N} \int_{0}^{a^{+} } {f(a) \biggl( {\frac{{\partial y(a,t)}}{ {\partial a}} + \delta(a)y(a,t)} \biggr)\,da} \\ &{}+ \frac{1}{ N} \biggl( { \int_{0}^{a^{+} } {k(a)y(a,t)}\,da - uv(t) - pv(t)z(t)} \biggr) \\ &{}+ \frac{p}{ {cN}} \bigl( {cv(t)z(t) - bz(t)} \bigr) \\ ={}& - \frac{d}{ {x(t)}}\bigl(x(t) - x_{0} \bigr)^{2} + \beta x_{0} v(t) - \beta x(t)v(t) \\ &{} - \frac{1}{ N} \int_{0}^{a^{+} } {f(a) \biggl( {\frac{{\partial y(a,t)}}{ {\partial a}} + \delta(a)y(a,t)} \biggr)\,da} \\ &{}+ \frac{1}{ N} \int_{0}^{a^{+} } {k(a)y(a,t)}\,da - \frac{u}{ N}v(t) - \frac{{bp}}{ {cN}}z(t) . \end{aligned}$$
(3.4)

Using integration by parts and \(f(0) = N\), \(f(a^{+} ) = 0\), \(y(0,t) = {{\beta x(t)v(t)}}\), we have

$$\begin{aligned} \int_{0}^{a^{+} } {f(a)\frac{{\partial y(a,t)}}{ {\partial a}}\,da} &= f\bigl(a^{+} \bigr)y\bigl(a^{+},t\bigr)-f(0)y(0,t) - \int_{0}^{a^{+} } {f^{\prime} (a)y(a,t)\,da} \\ &= -{{\beta Nx(t)v(t)}} - \int_{0}^{a^{+} } {f^{\prime} (a)y(a,t)\,da} . \end{aligned}$$
(3.5)

Substituting (3.5) into (3.4) yields

$$\begin{aligned} \frac{{dV_{1} (t)}}{ {dt}} ={}& - \frac{d}{ {x(t)}}\bigl(x(t) - x_{0} \bigr)^{2} + \beta x_{0} v(t) - \frac{1}{ N} \int_{0}^{a^{+} } {f(a)\delta(a)y(a,t)\,da} \\ &{} + \frac{1}{ N} \int_{0}^{a^{+} } { \bigl( {\delta(a)f(a) - k(a)} \bigr)y(a,t)\,da} + \frac{1}{ N} \int_{0}^{a^{+} } {k(a)y(a,t)}\,da \\ &{} - \frac{u}{ N}v(t) - \frac{{bp}}{ {cN}}z(t) \\ ={}& - \frac{d}{ {x(t)}}\bigl(x(t) - x_{0} \bigr)^{2} + \frac{u}{ N}(\Re_{0} - 1)v(t) - \frac{{bp}}{ {cN}}z(t). \end{aligned}$$

Therefore, \(\Re_{0}<1\) ensures that \(V_{1}^{\prime}(t)\leq0\) holds true. By Theorem 5.3.1 in [13], solutions limit to \(\mathcal{M}\), the largest invariant subset of \(\{V_{1}^{\prime}(t)=0\}\). Clearly, \(V_{1}^{\prime}(t)=0\) if and only if \(x(t)=x_{0}\), \(v(t)=0\), \(z(t)=0\). Noting that \(\mathcal{M}\) is invariant, for each element in \(\mathcal{M}\), we have \(v(t)=0\), \(z(t)=0\), \(v^{\prime}(t)=0\). We therefore derive from the third equation of system (1.3) that \(y(a,t)=0\). Hence, \({V_{1}^{\prime}(t)=0}\) if and only if \((x(t),y(a,t),v(t),z(t))=(x_{0},0,0,0)\). Accordingly the global asymptotic stability of \(E_{0}\) follows from LaSalle’s invariance principle. This completes the proof. □

Theorem 3.2

The immune-inactivated infected steady state \(E_{1}^{*}\) is globally asymptotically stable if \(\Re_{1}<1<\Re_{0}\).

Proof

Let \(( {x(t),y(a,t),v(t),z(t)} )\) be any solution of system (1.3) with boundary condition (1.4) and initial condition (1.5). Define

$$\begin{aligned} V_{2}(t) ={}& \biggl( {x(t) - x_{1}^{*} - x_{1}^{*} \ln\frac{{x(t)}}{ {x_{1}^{*} }}} \biggr)\\ &{} + \frac{1}{ N} \int_{0}^{a^{+} } {f(a)y_{1}^{*} (a)} \biggl( { \frac{{y(a,t)}}{ {y_{1}^{*} (a)}} - 1 - \ln\frac{{y(a,t)}}{ {y_{1}^{*} (a)}}} \biggr)\,da\\ &{}+ \frac{1}{ N} \biggl( {v(t) - v_{1}^{*} - v_{1}^{*} \ln\frac{{v(t)}}{ {v_{1} }}} \biggr) + \frac{p}{ {cN}}z(t) , \end{aligned}$$

where \(f(a)\) is defined in (3.1). It is easy to see that \(V_{2}(t)\) is nonnegative and \(E_{1}^{*}\) is a global minimum. Calculating the derivative of \(V_{2}(t)\) along the solutions of system (1.3), we have

$$\begin{aligned} \frac{{dV_{2}(t) }}{ {dt}} ={}& \biggl( {1 - \frac{{x_{1}^{*} }}{ {x(t)}}} \biggr) \bigl( {s - dx(t) - \beta x(t)v(t)} \bigr) \\ &{}+ \frac{1}{ N} \int_{0}^{a^{+} } {f(a) \biggl( {1 - \frac{{y_{1}^{*} (a)}}{ {y(a,t)}}} \biggr)} \frac{{\partial y(a,t)}}{ {\partial t}}\,da \\ &{}+ \frac{1}{ N} \biggl( {1 - \frac{{v_{1}^{*} }}{ {v(t)}}} \biggr) \biggl( { \int_{0}^{\infty}{k(a)y(a,t)}\,da - uv(t) - pv(t)z(t)} \biggr) \\ &{}+ \frac{p}{ {cN}} \bigl( {cv(t)z(t) - bz(t)} \bigr) . \end{aligned}$$

By using \(s = dx^{*} + {{\beta x^{*} v^{*} }}\), we have

$$\begin{aligned} \frac{{dV_{2}(t) }}{ {dt}} ={}& \biggl( {1 - \frac{{x_{1}^{*} }}{ {x(t)}}} \biggr) \bigl( {dx_{1}^{*} - dx(t) + \beta x_{1}^{*} v_{1}^{*} - \beta x(t)v(t)} \bigr) \\ &{} - \frac{1}{ N} \int_{0}^{a^{+} } {f(a) \biggl( {1 - \frac{{y_{1}^{*} (a)}}{ {y(a,t)}}} \biggr)} \biggl( {\frac{{\partial y(a,t)}}{ {\partial a}} + \delta(a)y(a,t)} \biggr)\,da \\ &{}+ \frac{1}{ N} \biggl( {1 - \frac{{v_{1}^{*} }}{ {v(t)}}} \biggr) \biggl( { \int_{0}^{a^{+} } {k(a)y(a,t)}\,da - uv(t) - pv(t)z(t)} \biggr) \\ &{}+ \frac{p}{ {cN}} \bigl( {cv(t)z(t) - bz(t)} \bigr) \\ ={}& - \frac{d}{ {x(t)}} \bigl( {x_{1}^{*} - x(t)} \bigr)^{2} + \biggl( {1 - \frac{{x_{1}^{*} }}{ {x(t)}}} \biggr) \bigl( {\beta x_{1}^{*} v_{1}^{*} - \beta x(t)v(t)} \bigr) \\ &{} - \frac{1}{ N} \int_{0}^{a^{+} } {f(a) \biggl( {1 - \frac{{y_{1}^{*} (a)}}{ {y(a,t)}}} \biggr)} \biggl( {\frac{{\partial y(a,t)}}{ {\partial a}} + \delta(a)y(a,t)} \biggr)\,da \\ &{}+ \frac{1}{ N} \biggl( { \int_{0}^{a^{+} } {k(a)y(a,t)}\,da - uv(t)} \biggr) \\ &{} - \frac{1}{ N}\frac{{v_{1}^{*} }}{ {v(t)}} \biggl( { \int_{0}^{a^{+} } {k(a)y(a,t)}\,da - uv(t) - pv(t)z(t)} \biggr) \\ &{}- \frac{bp}{ {cN}}z(t) . \end{aligned}$$
(3.6)

Note that

$$\begin{aligned} \frac{d}{ {da}} \biggl( { \frac{{y(a,t)}}{ {y_{1}^{*} (a)}} - 1 - \ln\frac{{y(a,t)}}{ {y_{1}^{*} (a)}}} \biggr) = \biggl( {1 - \frac{{y_{1}^{*} (a)}}{ {y(a,t)}}} \biggr) \biggl( {\frac{{y_{a} (a,t)}}{ {y_{1}^{*} (a)}} - \frac{{y(a,t)y_{1a}^{*} (a)}}{ {[y_{1}^{*} (a)]^{2} }}} \biggr), \end{aligned}$$
(3.7)

here \(y_{a} (a,t) = {{\partial y(a,t)}}/{{\partial a}}\) and \(y_{1a}^{*} (a) = {{dy_{1}^{*} (a)}}/{{da}}\). Since

$$ y_{a}^{*} (a) = - \delta(a)y^{*} (a), $$
(3.8)

substituting (3.8) into (3.7) yields

$$\begin{aligned} \biggl( {1 - \frac{{y_{1}^{*} (a)}}{ {y(a,t)}}} \biggr)\frac{{\partial y(a,t)}}{ {\partial a}} ={}& y_{1}^{*} (a)\frac{d}{ {da}} \biggl( { \frac{{y(a,t)}}{ {y_{1}^{*} (a)}} - 1 - \ln\frac{{y(a,t)}}{ {y_{1}^{*} (a)}}} \biggr) \\ &{}+ \delta(a)y_{1}^{*} (a) - \delta(a)y(a,t). \end{aligned}$$
(3.9)

Using integration by parts, it follows from (3.9) that

$$\begin{aligned} &\int_{0}^{a^{+} } {f(a)} \biggl( {1 - \frac{{y_{1}^{*} (a)}}{ {y(a,t)}}} \biggr)\frac{{\partial y(a,t)}}{ {\partial a}}\,da \\ &\quad= f\bigl(a^{+}\bigr)y_{1}^{*} \bigl(a^{+}\bigr) \biggl( { \frac{{y(a^{+},t)}}{ {y_{1}^{*} (a^{+})}} - 1 - \ln\frac{{y(a^{+},t)}}{ {y_{1}^{*} (a^{+})}}} \biggr) -f(0)y_{1}^{*} (0) \biggl( {\frac{{y(0,t)}}{ {y_{1}^{*} (0)}} - 1 - \ln \frac{{y(0,t)}}{ {y_{1}^{*} (0)}}} \biggr) \\ &\qquad{} - \int_{0}^{a^{+} } { \biggl( {\frac{{y(a,t)}}{ {y_{1}^{*} (a)}} - 1 - \ln \frac{{y(a,t)}}{ {y_{1}^{*} (a)}}} \biggr) \bigl( {f^{\prime} (a)y_{1}^{*} (a) + f(a)y_{1a}^{*} (a)} \bigr)}\,da \\ &\qquad{} + \int_{0}^{a^{+} } {f(a) \bigl( {\delta(a)y_{1}^{*} (a) - \delta (a)y(a,t)} \bigr)}\,da . \end{aligned}$$
(3.10)

Noting that

$$\begin{aligned}& f(0) = N,\qquad f\bigl(a^{+} \bigr) = 0,\\& y_{1}^{*} (0) = \beta x_{1}^{*} v_{1}^{*} ,\\& y(0,t) = \beta xv,\\& y_{1a}^{*} (a) = - \delta(a)y_{1}^{*} (a),\\& f^{\prime} (a) = \delta(a)f(a) - k(a), \end{aligned}$$

we have

$$ \begin{aligned} &f(0)y_{1}^{*} (0) \biggl( { \frac{{y(0,t)}}{ {y_{1}^{*} (0)}} - 1 - \ln\frac{{y(0,t)}}{ {y_{1}^{*} (0)}}} \biggr)= N\beta x_{1}^{*} v_{1}^{*} \biggl( {\frac{{xv}}{ {x_{1}^{*} v_{1}^{*} }} - 1 - \ln\frac{{xv}}{ {x_{1}^{*} v_{1}^{*} }}} \biggr),\\ &f\bigl(a^{+} \bigr)y^{*} \bigl(a^{+} \bigr) \biggl( {\frac{{y(a^{+} ,t)}}{ {y_{1}^{*} (a^{+} )}} - 1 - \ln \frac{{y(a^{+} ,t)}}{ {y_{1}^{*} (a^{+} )}}} \biggr) = 0,\\ &f^{\prime} (a)y_{1}^{*} (a) + f(a)y_{1a}^{*} (a) = - k(a)y_{1}^{*} (a). \end{aligned} $$
(3.11)

Further, we obtain

$$\begin{aligned} &\int_{0}^{a^{+} } {f(a)} \biggl( {1 - \frac{{y_{1}^{*} (a)}}{ {y(a,t)}}} \biggr) \biggl( {\frac{{\partial y(a,t)}}{ {\partial a}} + \delta(a)y(a,t)} \biggr)\,da \\ &\quad= - N\beta x_{1}^{*} v_{1}^{*} \biggl( {\frac{{xv}}{ {x_{1}^{*} v_{1}^{*} }} - 1 - \ln\frac{{xv}}{ {x_{1}^{*} v_{1}^{*} }}} \biggr) \\ &\qquad{}+ \int_{0}^{a^{+} } { \biggl( {\frac{{y(a,t)}}{ {y_{1}^{*} (a)}} - 1 - \ln \frac{{y(a,t)}}{ {y_{1}^{*} (a)}}} \biggr)k(a)y_{1}^{*} (a)\,da} . \end{aligned}$$
(3.12)

We derive from (3.6) and (3.12) that

$$\begin{aligned} \frac{{dV_{2}(t) }}{ {dt}} = {}& {-} \frac{d}{ {x(t)}} \bigl( {x_{1}^{*} - x(t)} \bigr)^{2} + \biggl( {1 - \frac{{x_{1}^{*} }}{ {x(t)}}} \biggr) \bigl( {\beta x_{1}^{*} v_{1}^{*} - \beta x(t)v(t)} \bigr) \\ &{} + \beta x_{1}^{*} v_{1}^{*} \biggl( {\frac{{xv}}{ {x_{1}^{*} v_{1}^{*} }} - 1 - \ln\frac{{xv}}{ {x_{1}^{*} v_{1}^{*} }}} \biggr) \\ &{}- \frac{1}{ N} \int_{0}^{a^{+} } { \biggl( {\frac{{y(a,t)}}{ {y_{1}^{*} (a)}} - 1 - \ln \frac{{y(a,t)}}{ {y_{1}^{*} (a)}}} \biggr)k(a)y_{1}^{*} (a)\,da} \\ &{}+ \frac{1}{ N} \biggl( { \int_{0}^{a^{+} } {k(a)y(a,t)}\,da - uv(t)} \biggr) \\ &{}- \frac{1}{ N}\frac{{v_{1}^{*} }}{ {v(t)}} \biggl( { \int_{0}^{a^{+} } {k(a)y(a,t)}\,da - uv(t) - pv(t)z(t)} \biggr) - \frac{bp}{ {cN}}z(t). \end{aligned}$$
(3.13)

Noting that \(uv_{1}^{*} = \int_{0}^{\infty}{k(a)y_{1}^{*} (a)}\,da = \beta x_{1}^{*} v_{1}^{*} N\), we have

$$\begin{aligned} \frac{{dV_{2}(t) }}{ {dt}} ={}& - \frac{d}{ {x(t)}} \bigl( {x_{1}^{*} - x(t)} \bigr)^{2}\\ &{} - \frac{1}{ N} \int_{0}^{a^{+} } { \biggl( {\frac{{v_{1}^{*}y(a,t) }}{ {y_{1}^{*} (a)v(t)}} - 1 - \ln \frac{{v_{1}^{*}y(a,t) }}{ {y_{1}^{*} (a)v(t)}}} \biggr)k(a)y_{1}^{*} (a)\,da}\\ &{} - \beta x_{1}^{*}v_{1}^{*} \biggl( {\frac{{x_{1}^{*} }}{ {x(t)}} - 1 - \ln\frac{{x_{1}^{*} }}{ {x(t)}}} \biggr) + \frac{{pz(t)}}{ N}\biggl(v_{1}^{*} - \frac{b}{ c}\biggr) . \end{aligned}$$

Since

$$\frac{{pz(t)}}{ N}\biggl(v_{1}^{*} - \frac{b}{ c}\biggr) = \biggl( {\frac{{(\beta sN - du)}}{ {\beta u}} - \frac{b}{ c}} \biggr)\frac{{pz(t)}}{ N} = ( { \Re_{1} - 1} ) ( {cdu + \beta bu} )\frac{{pz(t)}}{ {\beta cuN}}, $$

\(V_{2} ^{\prime}(t)\leq0\) if \(\Re_{1}<1<\Re_{0}\). By Theorem 5.3.1 in [13], solutions limit to \(\mathcal{M}\), the largest invariant subset of \(\{ V_{2}^{\prime}(t)=0\}\). It is readily seen that \(V_{2}^{\prime}=0\) if and only if \(x(t)=x_{1}^{*}\), \(y(a,t)=y_{1}^{*}(a)\), \(v(t)=v_{1}^{*}\), \(z(t)=0\). We have proved in Theorem 2.2 that \(E_{1}^{*}\) is locally asymptotically stable if \(\Re _{1}<1<\Re_{0}\), then the global asymptotic stability of \(E_{1}^{*}\) follows. □

Theorem 3.3

The immune-activated infected steady state \(E_{2}^{*}\) is globally asymptotically stable if \(\Re_{1}>1\).

Proof

Let \(( {x(t),y(a,t),v(t),z(t)} )\) be any solution of system (1.3) with boundary condition (1.4) and initial condition (1.5). Define

$$\begin{aligned} V_{3} (t) ={}& \biggl( {x(t) - x_{2}^{*} - x_{2}^{*} \ln\frac{{x(t)}}{ {x_{2}^{*} }}} \biggr)\\ &{}+ \frac{1}{ N} \int_{0}^{a^{+} } {f(a)y_{2}^{*} (a)} \biggl( { \frac{{y(a,t)}}{ {y_{2}^{*} (a)}} - 1 - \ln\frac{{y(a,t)}}{ {y_{2}^{*} (a)}}} \biggr)\,da\\ &{}+ \frac{1}{ N} \biggl( {v(t) - v_{2}^{*} - v_{2}^{*} \ln \frac{{v(t)}}{ {v_{2}^{*} }}} \biggr) + \frac{p}{ {cN}} \biggl( {z(t) - z_{2}^{*} - z_{2}^{*} \ln\frac{{z(t)}}{ {z_{2}^{*} }}} \biggr), \end{aligned}$$

where \(f(a)\) is defined in (3.1). It is easy to see that \(V_{3}(t)\) is nonnegative and \(E_{2}^{*}\) is a global minimum. Calculating the derivative of \(V_{3}(t)\) along the solutions of system (1.3), we have

$$\begin{aligned} \frac{{dV_{3} (t)}}{ {dt}} ={}& \biggl( {1 - \frac{{x_{2}^{*} }}{ {x(t)}}} \biggr) \bigl( {s - dx(t) - \beta x(t)v(t)} \bigr)\\ &{} + \frac{1}{ N} \int_{0}^{a^{+} } {f(a) \biggl( {1 - \frac{{y_{2}^{*} (a)}}{ {y(a,t)}}} \biggr)} \frac{{\partial y(a,t)}}{ {\partial t}}\,da\\ &{}+ \frac{1}{ N} \biggl( {1 - \frac{{v_{2}^{*} }}{ {v(t)}}} \biggr) \biggl( { \int_{0}^{\infty}{k(a)y(a,t)}\,da - uv(t) - pv(t)z(t)} \biggr)\\ &{} + \frac{p}{ {cN}} \biggl( {1 - \frac{{z_{2}^{*} }}{ {z(t)}}} \biggr) \bigl( {cv(t)z(t) - bz(t)} \bigr). \end{aligned}$$

By using \(s = dx_{2}^{*} + \beta x_{2}^{*} v_{2}^{*}\), we obtain

$$\begin{aligned} \frac{{dV_{3}(t) }}{ {dt}} ={}& \biggl( {1 - \frac{{x_{2}^{*} }}{ {x(t)}}} \biggr) \bigl( {dx_{2}^{*} + \beta x_{2}^{*} v_{2}^{*} - dx(t) - \beta x(t)v(t)} \bigr) \\ &- \frac{1}{ {}N} \int_{0}^{a^{+} } {f(a) \biggl( {1 - \frac{{y_{2}^{*} (a)}}{ {y(a,t)}}} \biggr)} \biggl( {\frac{{\partial y(a,t)}}{ {\partial a}} + \delta(a)y(a,t)} \biggr)\,da \\ &{}+ \frac{1}{ N} \biggl( {1 - \frac{{v_{2}^{*} }}{ {v(t)}}} \biggr) \biggl( { \int_{0}^{\infty}{k(a)y(a,t)}\,da - uv(t) - pv(t)z(t)} \biggr) \\ &{} + \frac{p}{ {cN}} \biggl( {1 - \frac{{z_{2}^{*} }}{ {z(t)}}} \biggr) \bigl( {cv(t)z(t) - bz(t)} \bigr) \\ ={} & - \frac{d}{ {x(t)}} \bigl( {x_{2}^{*} - x(t)} \bigr)^{2} + \biggl( {1 - \frac{{x_{2}^{*} }}{ {x(t)}}} \biggr) \bigl( {\beta x_{2}^{*} v_{2}^{*} - \beta x(t)v(t)} \bigr) \\ &{}- \frac{1}{ N} \int_{0}^{a^{+} } {f(a) \biggl( {1 - \frac{{y_{2}^{*} (a)}}{ {y(a,t)}}} \biggr)} \biggl( {\frac{{\partial y(a,t)}}{ {\partial a}} + \delta(a)y(a,t)} \biggr)\,da \\ &{}+ \frac{1}{ N} \biggl( { \int_{0}^{\infty}{k(a)y(a,t)}\,da - uv(t)} \biggr) \\ &{} - \frac{1}{ N}\frac{{v_{2}^{*} }}{ {v(t)}} \biggl( { \int_{0}^{\infty}{k(a)y(a,t)}\,da - uv(t) - pv(t)z(t)} \biggr) \\ &{}- \frac{p}{ {cN}} \bigl( {cv(t)z_{2}^{*} - bz_{2}^{*} } \bigr) - \frac{{bp}}{ {cN}}z(t). \end{aligned}$$
(3.14)

By using a similar method to (3.7)-(3.12), we derive from (3.14) that

$$\begin{aligned} \frac{{dV_{3} (t)}}{ {dt}} ={}& - \frac{d}{ {x(t)}} \bigl( {x_{2}^{*} - x(t)} \bigr)^{2} + \biggl( {1 - \frac{{x_{2}^{*} }}{ {x(t)}}} \biggr) \bigl( {\beta x_{2}^{*} v_{2}^{*} - \beta x(t)v(t)} \bigr) \\ &{} + \beta x_{2}^{*} v_{2}^{*} \biggl( {\frac{{xv}}{ {x_{2}^{*} v_{2}^{*} }} - 1 - \ln\frac{{xv}}{ {x_{2}^{*} v_{2}^{*} }}} \biggr) \\ &{}- \frac{1}{ N} \int_{0}^{a^{+} } { \biggl( {\frac{{y(a,t)}}{ {y_{2}^{*} (a)}} - 1 - \ln \frac{{y(a,t)}}{ {y_{2}^{*} (a)}}} \biggr)k(a)y_{2}^{*} (a)\,da} \\ &{} + \frac{1}{ N} \biggl( { \int_{0}^{a^{+} } {k(a)y(a,t)}\,da - uv(t)} \biggr) \\ &{}- \frac{1}{ N}\frac{{v_{2}^{*} }}{ {v(t)}} \biggl( { \int_{0}^{a^{+} } {k(a)y(a,t)}\,da - uv(t) - pv(t)z(t)} \biggr) \\ &{} - \frac{p}{ {cN}} \bigl( {cv(t)z_{2}^{*} - bz_{2}^{*} } \bigr) - \frac{{bp}}{ {cN}}z(t) . \end{aligned}$$
(3.15)

Substituting \(uv_{2}^{*} = \int_{0}^{a^{+} } {k(a)y_{2}^{*} (a)}\,da - pv_{2}^{*} z_{2}^{*} = \beta x_{2}^{*} v_{2}^{*} N - pv_{2}^{*} z_{2}^{*}\) and \(v_{2}^{*}=b/c\) into (3.15), we have

$$\begin{aligned} \frac{{dV_{3} (t)}}{ {dt}} ={}& {-} \frac{d}{ {x(t)}} \bigl( {x_{2}^{*} - x(t)} \bigr)^{2} - \beta x_{2}^{*} v_{2}^{*} \biggl( {\frac {{x_{2}^{*} }}{ {x(t)}} - 1 - \ln\frac{{x_{2}^{*} }}{ {x(t)}}} \biggr)\\ &{}- \int_{0}^{a^{+} } { \biggl( {\frac{{v_{2}^{*}y(a,t) }}{ {y_{2}^{*} (a)v(t)}} - 1 - \ln \frac{{v_{2}^{*}y(a,t) }}{ {y_{2}^{*} (a)v(t)}}} \biggr)k(a)y_{2}^{*} (a)\,da}. \end{aligned}$$

Therefore, \(\Re_{1}>1\) ensures that \(V_{3}^{\prime}(t)\leq0\) holds true. By Theorem 5.3.1 in [13], solutions of (1.3) are limited to \(\mathcal{M}\), the largest invariant subset of \(\{V_{3}^{\prime}(t)=0\}\). Using a similar argument to that in the proof of Theorem 3.1, we know that the equality \(V_{3}^{\prime} (t)=0\) holds true if and only if \(x(t)=x_{2}^{*}\), \(y(a,t)=y_{2}^{*}(a)\), \(v(t)=v_{2}^{*}\), \(z(t)=z_{2}^{*}\). By LaSalle’s invariance principle, the global asymptotic stability of \(E_{2}^{*}\) follows. This completes the proof. □

4 Numerical simulations

In this section, we give some numerical examples to illustrate the theoretical results obtained in Sections 2 and 3. The mean methods are discretizing the equations and using eulerian difference method. The value of integral terms is obtained by Simpson’s rule.

Usually, there is an incubation period after the cells are infected. In this period, the death rate of the cells is not changed and the infected cells do not produce virion. Later there is an outbreak period, in this period the infected cells begin to produce virion and the production rate increases, and the death rate of infected cells also rapidly increases. After the outbreak period, the death rate and the virion production rate of the infected cells tend to be stable. Considering these properties we assume that the death rate \(\delta(a)\) and the virion production rate \(k(a)\) of the infected cells take the forms

$$\delta(a) = \left \{ \textstyle\begin{array}{@{}l@{\quad}l} 0.03, & 0 \leq a \leq10;\\ 0.03+0.005(a - 10)e^{ - 0.009(a - 25)^{2} },& 10 < a \leq40;\\ 0.05, &40 < a \leq a^{+} , \end{array}\displaystyle \right . $$

and

$$k(a) = \left \{ \textstyle\begin{array}{@{}l@{\quad}l} 0, &0 \leq a \leq10;\\ 30(a - 10)e^{ - 0.05(a - 25)^{2} }, &10 < a \leq40;\\ 0.012, &40 < a \leq a^{+} , \end{array}\displaystyle \right . $$

where the maximum age of the cells \(a^{+}\) is supposed to be 300 days. The initial value is supposed to be

$$x_{s}=800,\qquad v_{s}= 100,\qquad y_{s}(a)=50(a+3)e^{-0.2(a+3)},\qquad z_{s}=300. $$

We will take a day as the unit time and plot the solutions of system (1.3) from 0 to 600 days.

Example 1

In system (1.3), we choose \(s=20\), \(d=0.03\), \(\beta =0.00024\), \(u=30\), \(p=0.5\), \(c=0.000005\), \(b=0.07\). In this case \(\Re _{0}=0.5626<1\). By Theorem 3.1, the infection-free steady state \(E_{0}(s/d,0,0,0)\) is globally asymptotically stable, where \(s/d=666.67\). (See Figure 1.)

Figure 1
figure 1

Example 1 . \(\Re_{0}=0.5626<1\). The infection-free steady state \(E_{0}\) is globally asymptotically stable.

Example 2

In system (1.3), we choose \(s=30\), \(d=0.03\), \(\beta =0.00024\), \(u=18\), \(p=0.5\), \(c=0.000005\), \(b=0.07\). In this case \(\Re _{0}=1.4064>1\), \(\Re_{1}=0.1153<1\). By Theorem 3.2, the immune-inactivated infected steady state \(E_{1}^{*}(x_{1}^{*},y_{1}^{*}(a),v_{1}^{*},0)\) is globally asymptotically stable, where \(x_{1}^{*}=711.04\), \(y_{1}^{*}(a)=8.66\sigma(a)\), \(v_{1}^{*}=507.98\). (See Figure 2.)

Figure 2
figure 2

Example 2 . \(\Re_{0}=1.4064>1\), \(\Re_{1}=0.1153<1\). The immune-inactivated infected steady state \(E_{1}^{*}\) is globally asymptotically stable.

Example 3

In system (1.3), we choose \(s=20\), \(d=0.03\), \(\beta =0.00024\), \(u=8\), \(p=0.1\), \(c=0.01\), \(b=2\). In this case \(\Re_{1}=1.8186>1\). By Theorem 3.3, the immune-activated infected steady state \(E_{2}^{*}(x_{2}^{*},y_{2}^{*}(a),v_{2}^{*},z_{2}^{*})\) is globally asymptotically stable, where \(x_{2}^{*}=574.41\), \(y_{2}^{*}(a)=2.76\sigma(a)\), \(v_{2}^{*}=200\), \(z_{2}^{*}=65.4878\). (See Figure 3.)

Figure 3
figure 3

Example 3 . \(\Re_{1}=1.8186>1\). The immune-activated infected steady state \(E_{2}^{*}\) is globally asymptotically stable.

The results of numerical simulation are accord with theorems and the eventual number of each variable in simulation is approximate to the theoretical value. Comparing the results of Example 2 and Example 3 we can find that the densities of infectious free virion and infected T cells are lower when \(\Re_{1}>1\), the humoral immunity is activated. Comparing the results of Example 3 and Example 1 we can see that although the humoral immunity is activated, the density of uninfected target T cells of \(E_{2}^{*}\) is lower than that of \(E_{0} \).

5 Conclusions

In this paper, we formulated an in-host viral infection model, in which the influence of humoral immunity and the infection age of the infected cells are considered. Using the method of Lyapunov functionals and LaSalle’s invariance principle, we got the conclusions that the global dynamics of the model is determined by the basic reproduction number and the immune-activated reproduction number; if \(\Re_{0}< 1\), the infection-free steady state is globally asymptotically stable; if \(\Re _{1}<1<\Re_{0}\), the immune-inactivated infected steady state is globally asymptotically stable; and if \(\Re_{1}> 1\), the immune-activated infected steady state is globally asymptotically stable. Comparing the expressions of immune-inactivated infected steady state with immune-activated infected steady state, we saw that \(v_{1}^{*} - v_{2}^{*} = (\Re_{1} - 1)\frac{{cdu + \beta bu}}{ {\beta cu}} \), so humoral immunity has a positive role in the reduction of the virus. Moreover, analyzing the immune-activated reproduction number \(\Re _{1}\), we found the parameter c (the birth rate of B cells) effects the value of \(\Re_{1}\) a lot. The birth rate of B cells reflects the sensibility of humoral immunity to the virus; generally speaking it can be greatly improved by vaccination.

To illustrate the theoretical results, we did some numerical simulations. Our simulation results confirmed the analytic results. Figures 1-3 showed the stability of \(E_{0}\), \(E_{1}^{*}\), \(E_{2}^{*}\), respectively, and by comparison we saw the effect of humoral immunity in the reduction of virus.