Skip to main content
Mathematics LibreTexts

7.2: The Logistic Equation

  • Page ID
    91088
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    In this section we will explore a simple nonlinear population model. Typically, we want to model the growth of a given population, y(t), and the differential equation governing the growth behavior of this population is developed in a manner similar to that used previously for mixing problems. Namely, we note that the rate of change of the population is given by an equation of the form

    \[\dfrac{d y}{d t}=\text { Rate In }-\text { Rate Out. }\nonumber \]

    The Rate In could be due to the number of births per unit time and the Rate Out by the number of deaths per unit time. While there are other potential contributions to these rates we will consider the birth and death rates in the simplest examples.

    A simple population model can be obtained if one assumes that these rates are linear in the population. Thus, we assume that the

    \[\text { Rate In }=b y \text { and the Rate Out }=my.\nonumber \]

    Here we have denoted the birth rate as \(b\) and the mortality rate as \(m .\) This gives the rate of change of population as

    \[\dfrac{d y}{d t}=b y-my \nonumber \]

    (Malthusian population growth). Generally, these rates could depend on the time. In the case that they are both constant rates, we can define \(k=b-m\) and obtain the familiar exponential model of population growth:

    \[\dfrac{d y}{d t}=k y \nonumber \]

    This is easily solved and one obtains exponential growth \((k>0)\) or decay \((k<0)\). This Malthusian growth model has been named after Thomas Robert Malthus \((1766-1834)\), a clergyman who used this model to warn of the impending doom of the human race if its reproductive practices continued.

    The logistic model was first published in previous exponential model takes the form \(18_{3} 8\) by Pierre François Verhulst ( \(18 \mathrm{O} 4\) 1849) in the form

    \[\dfrac{d N}{d t}=r N\left(1-\dfrac{N}{K}\right)\nonumber \]

    where \(N\) is the population at time \(t, r\) is the growth rate, and \(K\) is what is called the carrying capacity. Note that in our model \(r=k=K c\).

    When populations get large enough, there is competition for resources, such as space and food, which can lead to a higher mortality rate. Thus, the mortality rate may be a function of the population size, \(m=m(y)\). The simplest model would be a linear dependence, \(m=\tilde{m}+c y .\) Then, the previous exponential model takes the form

    \[\dfrac{d y}{d t}=k y-c y^{2} \nonumber \]

    where \(k=b-\tilde{m} .\) This is known as the logistic model of population growth. Typically, \(c\) is small and the added nonlinear term does not really kick in until the population gets large enough.

    Example \(\PageIndex{1}\)

    Show that Equation \(\PageIndex{2}\) can be written in the form

    \[z^{\prime}=k z(1-z) \nonumber \]

    which has only one parameter.

    We carry this out be rescaling the population, \(y(t)=\alpha z(t)\), where \(\alpha\) is to be determined. Inserting this transformation, we have

    \[\begin{aligned} y^{\prime} &=k y-c y^{2} \\ \alpha z^{\prime} &=\alpha k z-c \alpha^{2} z^{2} \end{aligned} \nonumber \]

    Or

    \[z^{\prime}=k z\left(1-\alpha \dfrac{c}{k} z\right) \nonumber \]

    Thus, we obtain the result, \(z^{\prime}=k z(1-z)\), if we pick \(\alpha=\dfrac{k}{c}\).

    Before we obtain the exact solution, it is instructive to study the qualitative behavior of the solutions without actually writing down any explicit solutions. Such methods are useful for more difficult nonlinear equations as we will see later in this chapter.

    We will demonstrate this analysis with a simple logistic equation example. We will first look for constant solutions, called equilibrium solutions, satisfying \(y^{\prime}(t)=0\). Then, we will look at the behavior of solutions near the equilibrium solutions, or fixed points, and determine the stability of the equilibrium solutions. In the next section we will extend these ideas to other first order differential equations.

    Example \(\PageIndex{2}\)

    Find and classify the equilibrium solutions of the logistic equation,

    \[\dfrac{d y}{d t}=y-y^{2} \nonumber \]

    Note

    If two solutions of the differential equation intersect then they have common values \(y_{1}\) at time \(t_{1}\). Using this information, we could set up an initial value problem for which the initial condition is \(y\left(t_{1}\right)=y_{1}\). Since the two different solutions intersect at this point in the phase plane, we would have an initial value problem with two different solutions. This would violate the uniqueness theorem for initial value problems.

    First, we determine the equilibrium, or constant, solutions given by \(y^{\prime}=0 .\) For this case, we have \(y-y^{2}=0 .\) So, the equilibrium solutions are \(y=0\) and \(y=1\).

    These solutions divide the ty-plane into three regions, \(y<0,0<\) \(y<1\), and \(y>1\). Solutions that originate in one of these regions at \(t=t_{0}\) will remain in that region for all \(t>t_{0}\) since solutions of this differential equation cannot intersect.

    Next, we determine the behavior of solutions in the three regions. Noting that \(y^{\prime}(t)\) gives the slope of any solution in the plane, then we find that the solutions are monotonic in each region. Namely, in regions where \(y^{\prime}(t)>0\), we have monotonically increasing functions and in regions where \(y^{\prime}(t)<0\), we have monotonically decreasing functions. We determine the sign of \(y^{\prime}(t)\) from the right-hand side of the differential equation.

    For example, in this problem \(y-y^{2}>0\) only for the middle region and \(y-y^{2}<0\) for the other two regions. Thus, the slope is positive in the middle region, giving a rising solution as shown in Figure 7.1. Note that this solution does not cross the equilibrium solutions. Similar statements can be made about the solutions in the other regions.

    clipboard_e72e107a321e33f1054d5c0a8f634f509.png
    Figure \(\PageIndex{1}\): Representative solution behavior for \(y^{\prime}=y-y^{2}\).

    (Stable and unstable equilibria). We further note that the solutions on either side of the equilibrium solution \(y=1\) tend to approach this equilibrium solution for large values of \(t\). In fact, no matter how far these solutions are from \(y= 1\), as long as \(y(t)>0\), the solutions will eventually approach this equilibrium solution as \(t \rightarrow \infty\). We then say that the equilibrium solution, \(y=1\), is a stable equilibrium.

    Similarly, we note that the solutions on either side of the equilibrium solution \(y=0\) tend away from \(y=0\) for large values of \(t .\) No matter how close a solution is to \(y=0\) at some given time, eventually these solutions will diverge as \(t \rightarrow \infty\). We say that such equilibrium solutions are unstable equilibria.

    clipboard_e6ec275602565a608418705d97dd4f580.png
    Figure \(\PageIndex{2}\): Representative solution behavior and the phase line for \(y^{\prime}=y-y^{2}\).
    clipboard_e42d83b412fba0ef65a0a19d66178014d.png
    Figure \(\PageIndex{3}\): Phase line for \(y^{\prime}=y-y^{2}\).

    (Phase lines). If we are only interested in the behavior of the equilibrium solutions, we could just display a phase line. In Figure \(\PageIndex{2}\) we place a vertical line to the right of the ty-plane plot. On this line we first place dots at the corresponding equilibrium solutions and label the solutions. These points divide the phase line into three intervals.

    In each interval we then place arrows pointing upward or downward indicating solutions with positive or negative slopes, respectively. For example, for the interval \(y>1\) there is a downward pointing arrow indicating that the slope is negative in that region.

    Looking at the resulting phase line we can determine if a given equilibrium is stable (arrows pointing towards the point) or unstable (arrows pointing away from the point). In Figure \(\PageIndex{3}\) we draw the final phase line by itself. We see that \(y=1\) is a stable equilibrium point and \(y=0\) is an unstable equilibrium point.

    The Riccati Equation

    WE HAVE SEEN THAT ONE DOES NOT NEED an explicit solution of the logistic Equation \(\PageIndex{2}\) in order to study the behavior of its solutions. However, the logistic equation is an example of a nonlinear first order equation that is solvable. It is also an example of a general Riccati equation, a first order differential equation quadratic in the unknown function.

    The Riccati equation is named after the Italian mathematician Jacopo Francesco Riccati \((1676-1754)\). When \(a(t)=0\), the equation becomes a Bernoulli equation.

    The general form of the Riccati equation is

    \[\dfrac{d y}{d t}=a(t)+b(t) y+c(t) y^{2} \nonumber \]

    As long as \(c(t) \neq 0\), this equation can be reduced to a second order linear differential equation through the transformation

    \[y(t)=-\dfrac{1}{c(t)} \dfrac{x^{\prime}(t)}{x(t)}.\nonumber \]

    We will demonstrate the use of this transformation in obtaining the solution of the logistic equation.

    Example \(\PageIndex{3}\)

    Solve the logistic equation

    \[\dfrac{d y}{d t}=k y-c y^{2} \nonumber \]

    using the transformation

    \[y=\dfrac{1}{c} \dfrac{x^{\prime}}{x}\nonumber \]

    differentiating this transformation with respect to \(t\), we obtain

    \[ \begin{aligned} \dfrac{d y}{d t} &=\dfrac{1}{c}\left[\dfrac{x^{\prime \prime}}{x}-\left(\dfrac{x^{\prime}}{x}\right)^{2}\right] \\ &=\dfrac{1}{c}\left[\dfrac{x^{\prime \prime}}{x}-(c y)^{2}\right] \\ &=\dfrac{1}{c} \dfrac{x^{\prime \prime}}{x}-c y^{2} \end{aligned} \label{7.6} \]

    Inserting this result into the logistic equation \(\PageIndex{5}\), we have

    \[\dfrac{1}{c} \dfrac{x^{\prime \prime}}{x}-c y^{2}=k \dfrac{1}{c}\left(\dfrac{x^{\prime}}{x}\right)-c y^{2}. \nonumber \]

    Simplifying, we see that the logistic equation has been reduced to a second order linear, differential equation,

    \[x^{\prime \prime}=k x^{\prime}\nonumber \]

    This equation is readily solved. One integration gives

    \[x^{\prime}(t)=B e^{k t}.\nonumber \]

    A second integration gives

    \[x(t)=A+B e^{k t}\nonumber \]

    where \(A\) and \(B\) are two arbitrary constants.

    Inserting this result into the Riccati transformation, we obtain

    \[y(t)=\dfrac{1}{c} \dfrac{x^{\prime}}{x}=\dfrac{k B e^{k t}}{c\left(A+B e^{k t}\right)}\nonumber \]

    It appears that we have two arbitrary constants. However, we started out with a first order differential equation and so we expect only one arbitrary constant. We can resolve this dilemma by dividing \(^{1}\) the numerator and denominator by \(B e^{k t}\) and defining \(C=\dfrac{A}{B} .\) Then, we have the solution

    \[y(t)=\dfrac{k / c}{1+C e^{-k t}} \nonumber \]

    showing that there really is only one arbitrary constant in the solution. Plots of the solution \(\PageIndex{7}\) of the logistic equation for different initial conditions gives the solutions seen in the last section. In particular, setting all of the constants to unity, we have the sigmoid function,

    \[y(t)=\dfrac{1}{1+e^{-t}}.\nonumber \]

    This is the signature \(S\)-shaped curve of the logistic model as shown in Figure \(\PageIndex{4}\). We should note that this is not the only way to obtain the solution to the logistic equation, though this approach has provided us with an introduction to Riccati equations. A more direct approach would be to use separation of variables on the logistic equation, which is Problem 1.

    clipboard_e27c89d2296da4318f5565a9182d8f4f1.png
    Figure \(\PageIndex{4}\): Plot of the sigmoid function.
    1

    This general solution holds for \(B \neq 0\). If \(B=0\), then we have \(x(t)=A\) and, thus, \(y(t)\) is the constant equilibrium solution.


    This page titled 7.2: The Logistic Equation is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by Russell Herman via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.