Tutorials › AP Calculus › Using an Initial Value in the Logistic Formula

Euler and Logistic Methods · Tutorial 591 of 999

Using an Initial Value in the Logistic Formula

Learn to use an initial population and time to determine the logistic formula’s constant and make checked predictions.

Advanced 9 min read

What You'll Learn

  • Identify the parameters and conditions in the explicit logistic formula
  • Solve for its constant using an initial population at a specified time
  • Write a prediction formula relative to the initial time
  • Check a formula against both the initial value and differential equation
  • Handle zero and carrying-capacity equilibrium initial values
  • Avoid confusing the formula’s constant with the initial population-to-capacity ratio

From an Initial Population to a Prediction Formula

A logistic differential equation describes a population whose rate of change depends on both its current size and a carrying capacity. The explicit logistic solution contains a constant that must be determined from an initial value. Once that constant is known, the formula gives a population prediction at any chosen time in its domain.

For this tutorial, use the logistic model

$$ \frac{dP}{dt}=rP\left(1-\frac{P}{K}\right), $$

where \(P(t)\) is the population at time \(t\), \(r>0\) is the growth-rate parameter, and \(K>0\) is the carrying capacity. If time is measured in days, for example, \(r\) has units of inverse days. The product \(r(t-t_0)\) is dimensionless, as required in the exponential.

The explicit solution, with its constant not yet determined, can be written as

$$ P(t)=\frac{K}{1+C e^{-r(t-t_0)}}. $$

Here \(C\) is a dimensionless constant, and \(t_0\) is a reference time. An initial condition specifies the population at that time: \(P(t_0)=P_0\). The main task is to use this information to find \(C\).

Key formula: If \(P(t_0)=P_0\) and \(P_0>0\), then the logistic solution’s constant is $$ C=\frac{K-P_0}{P_0}, $$ so the solution can be written directly as $$ P(t)=\frac{K}{1+\left(\frac{K-P_0}{P_0}\right)e^{-r(t-t_0)}}. $$

Finding the Constant from the Initial Condition

At the initial time, the exponential factor is \(e^0=1\). Substituting \(t=t_0\) and \(P(t_0)=P_0\) into the solution gives \(P_0=K/(1+C)\). Solving this equation for \(C\) produces the formula above.

1
Record the initial information.
Identify \(t_0\), \(P_0\), \(K\), and \(r\), keeping the population and time units clear.
2
Calculate the constant.
For \(P_0>0\), compute \(C=(K-P_0)/P_0\).
3
Write the solution relative to \(t_0\).
Use \(P(t)=K/[1+C e^{-r(t-t_0)}]\), not \(e^{-rt}\) unless the initial time is zero.
4
Check before predicting.
Substitute \(t=t_0\) to confirm the formula returns \(P_0\). Then evaluate it at the requested time.

Why This Substitution Works

The initial condition determines the constant because it fixes the value of the solution at one specific time. Substituting that time into the explicit formula gives an equation containing only the known initial population, the carrying capacity, and \(C\).

$$ P_0 = \frac{K}{1+C e^{-r(t_0-t_0)}} = \frac{K}{1+C}. $$

Multiply both sides by \(1+C\), then divide by \(P_0\), which is allowed when \(P_0>0\):

$$ P_0(1+C)=K, \qquad 1+C=\frac{K}{P_0}, \qquad C=\frac{K}{P_0}-1=\frac{K-P_0}{P_0}. $$

This derivation also shows why the initial time belongs in the exponent as \(t-t_0\): at the specified initial time, that difference is zero, so the exponential contributes exactly \(1\).

Checking the Formula Against the Differential Equation

After finding a constant, it is useful to check that the resulting expression both matches the initial condition and satisfies the logistic differential equation. The following calculation verifies the general explicit form wherever its denominator is nonzero.

Write \(D=1+C e^{-r(t-t_0)}\), so \(P=K/D\). By the chain rule,

$$ \frac{dP}{dt} = -\frac{K}{D^2}\frac{dD}{dt} = -\frac{K}{D^2}\left(-rC e^{-r(t-t_0)}\right) = \frac{rKC e^{-r(t-t_0)}}{D^2}. $$

On the other hand, substituting \(P=K/D\) into the right-hand side of the differential equation gives

$$ rP\left(1-\frac{P}{K}\right) = r\frac{K}{D}\left(1-\frac{1}{D}\right) = \frac{rK(D-1)}{D^2} = \frac{rKC e^{-r(t-t_0)}}{D^2}. $$

The two expressions agree. Also, when \(t=t_0\), the formula gives \(P(t_0)=K/(1+C)\); with \(C=(K-P_0)/P_0\), this equals \(P_0\). Thus the formula satisfies both the differential equation and the initial condition, provided its denominator is nonzero.

Worked Example: A Prediction Three Days After the Initial Measurement

Worked Example: A Prediction Three Days After the Initial Measurement

A population follows the logistic equation with carrying capacity \(K=1000\) individuals and growth-rate parameter \(r=0.4\) per day. At time \(t_0=0\) days, the population is \(P_0=200\) individuals. Find the formula and predict the population at \(t=3\) days.

First find the constant:

$$ C=\frac{K-P_0}{P_0} =\frac{1000-200}{200} =\frac{800}{200} =4. $$

Substitute the known values into the formula:

$$ P(t)=\frac{1000}{1+4e^{-0.4(t-0)}}. $$

At \(t=3\) days, the exponent is \(-0.4(3-0)=-1.2\), so

$$ P(3)=\frac{1000}{1+4e^{-1.2}} \approx \frac{1000}{1+4(0.301194)} = \frac{1000}{2.204777} \approx 453.56. $$

Rounded to the nearest whole individual, the prediction is \(454\) individuals. Check the initial value using the formula: \(P(0)=1000/(1+4e^0)=1000/5=200\) individuals. The initial condition is satisfied.

Worked Example: An Initial Value at a Nonzero Time

Worked Example: An Initial Value at a Nonzero Time

A population has carrying capacity \(K=1200\) individuals and \(r=0.5\) per year. A measurement gives \(P(2)=300\) individuals, where time is in years. Find the prediction formula and estimate the population at \(t=4\) years.

The initial time is \(t_0=2\), not zero. Calculate \(C\):

$$ C=\frac{1200-300}{300} =\frac{900}{300} =3. $$

Keep the difference \(t-2\) in the exponent:

$$ P(t)=\frac{1200}{1+3e^{-0.5(t-2)}}. $$

At \(t=4\), the elapsed time from the measurement is \(4-2=2\) years. Therefore,

$$ P(4) = \frac{1200}{1+3e^{-0.5(4-2)}} = \frac{1200}{1+3e^{-1}} \approx \frac{1200}{1+3(0.367879)} = \frac{1200}{2.103638} \approx 570.44. $$

To the nearest whole individual, the prediction is \(570\) individuals. Check the initial value directly: \(P(2)=1200/[1+3e^0]=1200/4=300\) individuals. Using \(e^{-0.5t}\) instead of \(e^{-0.5(t-2)}\) would not produce this initial value, because it would incorrectly treat time zero as the measurement time.

Special Initial Values and the Formula’s Domain

The formula \(C=(K-P_0)/P_0\) requires division by \(P_0\). If \(P_0=0\), use the equilibrium solution \(P(t)=0\) instead. If \(P_0=K\), then \(C=0\), and the explicit formula gives the constant solution \(P(t)=K\). These are equilibrium cases, so they do not require a nonzero denominator in the expression for \(C\).

For a population model with \(P_0>0\), \(K>0\), and \(r>0\), the formula is defined for every future time \(t\ge t_0\). Indeed, \(C=(K-P_0)/P_0>-1\). If \(C\ge 0\), then \(1+C e^{-r(t-t_0)}\ge 1\). If \(-1<C<0\), then for \(t\ge t_0\), \(0<e^{-r(t-t_0)}\le1\), so \(1+C e^{-r(t-t_0)}\ge1+C>0\). In either case the denominator is positive for future predictions.

Worked Example: The Initial Population Equals the Carrying Capacity

Suppose \(K=800\) individuals, \(r=0.3\) per day, and \(P(5)=800\) individuals. Since \(P_0=K\), the constant is

$$ C=\frac{800-800}{800}=0. $$

The formula is therefore

$$ P(t)=\frac{800}{1+0e^{-0.3(t-5)}}=800. $$

For example, at \(t=8\) days, \(P(8)=800\) individuals. Check the differential equation: the derivative of the constant function is \(0\), and its right-hand side is \(0.3(800)(1-800/800)=0\). It also gives the specified initial value \(P(5)=800\).

A Common Mistake: Reversing the Ratio

The constant is the difference between carrying capacity and initial population, divided by the initial population. It is not generally the initial population divided by carrying capacity.

Worked Example: Correcting a Reversed Ratio

Let \(K=800\) individuals and \(P(0)=200\) individuals. A mistaken calculation might set \(C=P_0/K=200/800=1/4\). That gives

$$ P(0)=\frac{800}{1+\frac14} =\frac{800}{\frac54} =640, $$

which does not match the stated initial population of \(200\). The calculation fails its initial-value check.

Use the correct formula instead:

$$ C=\frac{K-P_0}{P_0} =\frac{800-200}{200} =\frac{600}{200} =3. $$

Now the solution is \(P(t)=800/(1+3e^{-rt})\). Substituting \(t=0\) gives \(P(0)=800/(1+3)=200\) individuals, as required.

Using the Result Carefully

Before using a logistic formula to answer a contextual question, check that the initial condition and parameters are attached to the right quantities. In particular, distinguish the initial time \(t_0\) from elapsed time and distinguish the carrying capacity \(K\) from the initial population \(P_0\).

  • Use \(P(t_0)=P_0\) to calculate \(C\), rather than guessing the constant.
  • Use \(t-t_0\) in the exponent when the initial measurement is at a nonzero time.
  • Keep \(r\) and time units consistent, so \(r(t-t_0)\) is dimensionless.
  • Check the initial value by substituting \(t=t_0\) into the completed formula.
  • For a population initially equal to zero, use the zero equilibrium solution rather than dividing by \(P_0\).
  • Include population units in the prediction and round only at the final step.

These checks turn the explicit solution into a usable prediction rule: the model parameters and the initial measurement determine the constant, and the resulting formula can then be evaluated at the time of interest.

Check Your Understanding

For each question, identify the initial time and value before calculating.

  1. If \(K=900\) and \(P(0)=300\), what is \(C\)?
  2. If \(K=1500\), \(r=0.2\) per day, and \(P(4)=500\), write the explicit solution using \(t\) in days.
  3. For the initial condition \(P(4)=500\) in the previous question, show by substitution that the formula returns \(500\) at \(t=4\).
  4. What solution applies when the initial population is \(P(t_0)=0\), and why can the formula for \(C\) not be used?
  5. For \(K=700\) and \(P(t_0)=700\), find \(C\) and describe the resulting solution.

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon