Solving the Logistic Differential Equation

Learning Outcomes

  • Draw a direction field for a logistic equation and interpret the solution curves
  • Solve a logistic equation and interpret the results

The logistic differential equation is an autonomous differential equation, so we can use separation of variables to find the general solution.

Step 1: Setting the right-hand side equal to zero leads to P=0 and P=K as constant solutions. The first solution indicates that when there are no organisms present, the population will never grow. The second solution indicates that when the population starts at the carrying capacity, it will never change.

Step 2: Rewrite the differential equation in the form

dPdt=rP(KP)K.

 

Then multiply both sides by dt and divide both sides by P(KP). This leads to

dPP(KP)=rKdt.

 

Multiply both sides of the equation by K and integrate:

KP(KP)dP=rdt.

 

The left-hand side of this equation can be integrated using partial fraction decomposition. We leave it to you to verify that

KP(KP)=1P+1KP.

 

Then the equation becomes

1P+1KPdP=rdtln|P|ln|KP|=rt+Cln|PKP|=rt+C.

 

Now exponentiate both sides of the equation to eliminate the natural logarithm:

eln|PKP|=ert+C|PKP|=eCert.

 

We define C1=ec so that the equation becomes

PKP=C1ert.

 

To solve this equation for P(t), first multiply both sides by KP and collect the terms containing P on the left-hand side of the equation:

P=C1ert(KP)P=C1KertC1PertP+C1Pert=C1Kert.

 

Next, factor P from the left-hand side and divide both sides by the other factor:

P(1+C1ert)=C1KertP(t)=C1Kert1+C1ert.

 

The last step is to determine the value of C1. The easiest way to do this is to substitute t=0 and P0 in place of P in the equation PKP=C1ert and solve for C1:

PKP=C1ertP0KP0=C1er(0)C1=P0KP0.

 

Finally, substitute the expression for C1 into the equation before the last:

P(t)=C1Kert1+C1ert=P0KP0Kert1+P0KP0ert

 

Now multiply the numerator and denominator of the right-hand side by (KP0) and simplify:

P(t)=P0KP0Kert1+P0KP0ert=P0KP0Kert1+P0KP0ertKP0KP0=P0Kert(KP0)+P0ert.

 

We state this result as a theorem.

Solution of the Logistic Differential Equation


Consider the logistic differential equation subject to an initial population of P0 with carrying capacity K and growth rate r. The solution to the corresponding initial-value problem is given by

P(t)=P0Kert(KP0)+P0ert.

 

 

The solution to the logistic differential equation has a point of inflection. To find this point, set the second derivative equal to zero:

P(t)=P0Kert(KP0)+P0ertP(t)=rP0K(KP0)ert((KP0)+P0ert)2P(t)=r2P0K(KP0)2ertr2P02K(KP0)e2rt((KP0)+P0ert)3=r2P0K(KP0)ert((KP0)P0ert)((KP0)+P0ert)3.

 

Setting the numerator equal to zero,

r2P0K(KP0)ert((KP0)P0ert)=0.

 

As long as P0K, the entire quantity before and including ert is nonzero, so we can divide it out:

(KP0)P0ert=0.

 

Solving for t,

P0ert=KP0ert=KP0P0lnert=lnKP0P0rt=lnKP0P0t=1rlnKP0P0.

 

Notice that if P0>K, then this quantity is undefined, and the graph does not have a point of inflection. In the logistic graph, the point of inflection can be seen as the point where the graph changes from concave up to concave down. This is where the “leveling off” starts to occur, because the net growth rate becomes slower as the population starts to approach the carrying capacity.

Try It

try it

A population of rabbits in a meadow is observed to be 200 rabbits at time t=0. After a month, the rabbit population is observed to have increased by 4%. Using an initial population of 200 and a growth rate of 0.04, with a carrying capacity of 750 rabbits,

  1. Write the logistic differential equation and initial condition for this model.
  2. Draw a slope field for this logistic differential equation, and sketch the solution corresponding to an initial population of 200 rabbits.
  3. Solve the initial-value problem for P(t).
  4. Use the solution to predict the population after 1 year.

Activity: Logistic Equation with a Threshold Population


An improvement to the logistic model includes a threshold population. The threshold population is defined to be the minimum population that is necessary for the species to survive. We use the variable T to represent the threshold population. A differential equation that incorporates both the threshold population T and carrying capacity K is

dPdt=-rP(1PK)(1PT)

 

where r represents the growth rate, as before.

  1. The threshold population is useful to biologists and can be utilized to determine whether a given species should be placed on the endangered list. A group of Australian researchers say they have determined the threshold population for any species to survive: 5000 adults. (Catherine Clabby, “A Magic Number,” American Scientist 98(1): 24, doi:10.1511/2010.82.24. accessed April 9, 2015, http://www.americanscientist.org/issues/pub/a-magic-number). Therefore we use T=5000 as the threshold population in this project. Suppose that the environmental carrying capacity in Montana for elk is 25,000. Set up the above equation using the carrying capacity of 25,000 and threshold population of 5000. Assume an annual net growth rate of 18%.
  2. Draw the direction field for the differential equation from step 1, along with several solutions for different initial populations. What are the constant solutions of the differential equation? What do these solutions correspond to in the original population model (i.e., in a biological context)?
  3. What is the limiting population for each initial population you chose in step 2? (Hint: use the slope field to see what happens for various initial populations, i.e., look for the horizontal asymptotes of your solutions.)
  4. This equation can be solved using the method of separation of variables. However, it is very difficult to get the solution as an explicit function of t. Using an initial population of 18,000 elk, solve the initial-value problem and express the solution as an implicit function of t, or solve the general initial-value problem, finding a solution in terms of r,K,T,andP0.