To understand this section, you should be up to speed on
If you're interested in how the logistic function is derived from its differential equation (you'll need to know some calculus), check out the logistic differential equation.
You have likely studied exponential growth and even modeled populations using exponential functions. In this section we'll look at a special kind of exponential function called the logistic function.
The logistic function models the exponential growth of a population, but also considers factors like the carrying capacity of land: A certain region simply won't support unlimited growth because as one population grows, its resources diminish. So a logistic function puts a limit on growth.
This graph shows a comparison of exponential and logistic growth curves with some features highlighted.
Exponential growth is unchecked growth — growth without limits. Exponential functions aren’t realistic models of population growth and other phenomena, except for the early stages of growth where space, nutrients and other necessities are effectivly unlimited.
The logistic function is exponential for early times, but the growth slows as it reaches some limit. In this hypothetical case, the limit seems to be about 85 individuals; the function approaches a horizontal asymptote at P(t) = 85.
The logistic function can be written in a number of ways that are all only subtly different. In this version, n(t) is the population ("number") as a function of time, t. to is the initial time, and the term (t - to) is just a flexible horizontal translation of the logistic function. k is a parameter that affects the rate of exponential growth. L is the horizontal asymptote or the limit on the size of a population.
One clever example of logistic growth is the spreading of a rumor in a population. Suppose that one person knows a secret, and once a day, anyone who knows the secret can share it with one other person, but without knowing whether that person already knows it. Well, early on, it's unlikely that a teller will run across someone who already knows the secret, but later, when more people know, it's less likely to find a person who doesn't know.
In this example, I assumed we have a group of 20 people, and that person #1 knows the secret to begin with. Then, on each "round," I generated a random number (using a spreadsheet) between 1 and 20, to choose whom to tell the secret next. the results are in the table below.
In round one, 1 told 4. In round two, 1 and 4 told 20 and 6, for a total of four secret-knowers. In round three, those four told four new people to increase the total to 8.
But notice that in round four, we begin to tell people who already know the secret, so the accumulation of secret knowers begins to slow down.
That continues until poor #14 finally learns the secret after eight rounds. The results are plotted here and you can see that it's just like our logistic growth curves.
One important feature of the logistic function is it's behavior at large values of the independent variable. Here we'll define a population function n(t) as a logistic function.
$$n(t) = \frac{L}{1 + e^{-k(t - t_o)}}$$
There are two adjustable parameters in this function, L and k. These are a vertical scaling parameter ( L ) and a horizontal scaling parameter ( k ) that allow us to stretch or compress such a function to fit our data.
We're interested in the limiting behavior as our variable t (for time) increases to infinity:
$$\lim_{t\to\infty} \, n(t) = \frac{L}{1 + e^{-\frac{1}{k(t - t_o)}}}$$
Now if we look at the part of the function that contains t, and replace the negative exponential with a fraction, we see that the fraction tends toward zero as t gets large because 1 over a very large number tends toward zero as the denominator grows:
$$\lim_{t\to\infty} \, \frac{1}{e^{k(t - t_o)}} = 0$$
So the overall limit of the function as t gets very large (after a sufficient time has passed) is
$$\lim_{t\to\infty} \, \frac{L}{1 + e^{-\frac{1}{k(t - t_o)}}}$$
So the limit of the function is the numerator, L. This makes the limiting value of a logistic function easy to find, and it makes a logistic function relatively easy to write given enough data.
Here is a simple logistic function for a population as a function of time:
$$P(t) = \frac{A}{1 + e^{-Bt}}$$
By moving the sliders, you can see how the curve changes when you change the A parameter and the B parameter.
A changes the maximum population, the limit of the function as time gets large, and B changes the curvature of the function; small values ease the curves and large values sharpen them.
By including a simple vertical translation (which would be the baseline population), this logistic curve can be fit to real data by adjusting the parameters.
This simple function is good up to a maximum limiting population of 100, just for illustration purposes.
Let's consider the logistic function
$$N(t) = \frac{L}{1 + e^{-kt}},$$
where $(t - t_o)$ has been replaced with t. It's the same thing; $t - t_o$ just measures the change in time from some initial time, $t_o.$ Here, just so simplify a bit, we'll assume that $t_o = 0.$
Now lets look at how this function behaves in the limit as t → ∞:
$$\lim_{t \rightarrow \infty} \, \frac{L}{1 + e^{-kt}} = \lim_{t \rightarrow \infty} \, \frac{L}{1 + \frac{1}{e^{kt}}}$$
Now the limit of the fraction in the denominator is
$$\lim_{t \rightarrow \infty} \frac{1}{e^{kt}} = 0,$$
so our limit just becomes
$$\lim_{t \rightarrow \infty} \, \frac{L}{1 + \frac{1}{e^{kt}}} = \frac{L}{1 + 0} = L$$
In these logistic functions, the numerator gives us the limiting behavior of the function as time gets very large. It's upper flat spot on the logistic curve, the upper horizontal asymptote.
How long will it take a population to reach 18,000 if its growth is modeled by $P(t) = \frac{20,000}{1 + e^{-0.12(t - 50)}}$
$$18,000 = \frac{20,000}{1 + e^{-0.12(t - 50)}}$$
Multiplying both sides by the denominator of the fraction gives us
$$18,000(1 + e^{-0.12(t - 50)} = 20,000$$
And dividing by 18,000 on both sides gives
$$1 + e^{-0.12(t - 50)} = 1.111$$
Next we subtract 1 to get
$$e^{-0.12(t - 50)} = 0.111$$
Now if we take the natural log (ln) of both sides, remembering that ln(x) and ex are inverse functions, we "release" the exponent to get
$$-0.12(t - 50) = ln(0.11)$$
Now dividing by -0.12 and adding 50 to each side gives us the time
$$t = \frac{-ln(0.111)}{0.12} + 50$$
The arithmetic give us
$$t = \bf 68.31 \; years$$
here is a graph of this logistic function along with our solution (dashed line).
A population of 5,000 is exposed to a virus that spreads according to the logistic function $n(t) = \frac{5000}{1 + 4999e^{-0.8t}}$ (t in days). How many people will be infected after 5 days, and how long will it take for 45% of the population to be infected?
$$ \begin{align} n(5) &= \frac{5000}{1 + 4999e^{-0.8(5)}} \\[5pt] &= \frac{5000}{1 + 4999e^{-4}} \\[5pt] &= \frac{5000}{1 + 91.56} \\[5pt] &= 54 \; people \end{align}$$
That's pretty straightforward. Just make sure you organize your calculation and do it in simple steps. Now for the second part. First, 45% of our population is
$$5000 (0.45) = 2250 \; people$$
Now if we plug that in for n(t), we have to solve this equation for the time:
$$2250 = \frac{5000}{1 + 4999 e^{-0.8t}}$$
Multiplying both sides by the denominator, followed by division of both sides by 2250 gives us
$$1 + 4999 e^{-0.8 t} = 2.222$$
Subtract the 1 from both sides:
$$4999 e^{-0.8 t} = 1.222$$
... and divide by 4999 to get:
$$e^{-0.8t} = 2.445 \times 10^{-4}$$
Taking the natural log of both sides releases the -0.8t from the exponent:
$$-0.8 t = -8.316$$
Finally, dividing by -0.8 gives us the number of days until 45% of the population is infected.
$$t = 10.4 \; days$$
Such models and calculations are often employed to track and predict the spread of epidemic diseases.
One important point on the logistic curve is the inflection point, the point where the curvature of the graph changes from concave-upward to concave-downward. It marks the point where the growth rate stops accelerating and begins decelerating (slowing down).
The inflection point has to be determined using calculus, and you can see that at the end of this section, but here is the result:
Inflection point coordinates
$$\left( \frac{ln(b)}{k}, \; \frac{L}{2} \right)$$
where the parameters L, b and k in the logistic equation are:
$$f(t) = \frac{L}{1 + b e^{-kt}}$$
1. Evaluate each logistic function at the indicated point.
a. |
$$f(t) = \frac{18}{1 + 5e^{-3t}}, \phantom{0000} f(0)$$ Solution$$ \begin{align} f(0) &= \frac{18}{1 + 5e^0} \\[5pt] &= \frac{18}{6} = 3 \end{align}$$ |
b. |
$$f(t) = \frac{200}{1 + e^{-1.8 t}}, \phantom{0000} f(4)$$ Solution$$ \begin{align} f(2) &= \frac{200}{1 + e^{-1.8(2)}} \\[4pt] &= \frac{200}{1 + e^{-3.6}} \\[4pt] &= \frac{200}{1.027} = 194.7 \end{align}$$ |
c. |
$$f(t) = \frac{2000}{1 + 1000e^{-t}}, \phantom{0000} f(5)$$ Solution$$ \begin{align} f(5) &= \frac{2000}{1 + 1000 e^{-5}} \\[5pt] &= \frac{2000}{1 + 6.738} = 297 \end{align}$$ |
d. |
$$f(t) = \frac{800}{1 + 2e^{-0.5t}}, \phantom{0000} f(20)$$ Solution$$ \begin{align} f(20) &= \frac{800}{1 + 2e^{-0.5(20)}} \\[5pt] &= \frac{800}{1 + 2e^{-10}} \\[5pt] &= \frac{800}{1.000041} = 799.9 \end{align}$$ |
2. Sketch a graph of each logistic function. Make sure to label the asymptotes, the y-intercept and the point at which the rate of growth is the highest.
a. |
$$f(t) = \frac{18}{1 + 5e^{-3t}}$$ SolutionInflection point: t = 0.54 |
b. |
$$f(t) = \frac{1000}{1 + 500e^{-2 t}}$$ SolutionInflection point: t = 3.1 |
c. |
$$f(t) = \frac{9000}{1 + 1000e^{-t}}$$ SolutionInflection point: t = 6.9 |
d. |
$$f(t) = \frac{32}{1 + e^{-4t}}$$ SolutionInflection point: $t \approx 0.54$ |
3. Solve these logistic equations for the time, t. You'll need to use logarithms, of course, because you're solving for a variable in an exponent.
a. |
$$\frac{18}{1 + 5e^{-3t}} = 16$$ Solution$$ \begin{align} 16 &= \frac{18}{1 + 5e^{-3t}} \\[5pt] 18 &= 16 + 80 e^{-3t} \\[5pt] 2 &= 80 e^{-3t} \\[5pt] 0.025 &= e^{-3t} \\[5pt] \frac{ln(0.025)}{-3} &= t \\[5pt] t &= 1.23 \end{align}$$ |
b. |
$$\frac{1000}{1 + 500e^{-2t}} = 1.09$$ Solution$$ \begin{align} 1.09 &= \frac{1000}{1 + 500e^{-2t}} \\[5pt] 1000 &= 1.09 + 545 e^{-2t} \\[5pt] \frac{998.91}{545} &= e^{-2t}\\[5pt] t &= -\frac{1}{2} ln \left( \frac{1}{2000} \right) \\[5pt] t &= 7.6 \end{align}$$ |
c. |
$$\frac{9000}{1 + 1000e^{-t}} = 6000$$ Solution$$ \begin{align} 6000 &= \frac{9000}{1 + 1000e^{-t}} \\[5pt] 9000 &= 6000000 e^{-t} \\[5pt] e^{-t} &= \frac{3000}{6000000}\\[5pt] e^{-t} &= \frac{1}{2000}\\[5pt] t &= -ln \left( \frac{1}{2000} \right) \\[5pt] t &= 7.6 \end{align}$$ |
d. |
$$\frac{32}{1 + e^{-4t}} = 30$$ Solution$$ \begin{align} 32 &= 30 + 30 e^{-4t} \\[5pt] 2 &= 30 e^{-4t} \\[5pt] \frac{1}{15} &= 30 e^{-4t} \\[5pt] -4t &= ln \left( \frac{1}{15} \right)\\[5pt] t &= -\frac{1}{4} ln \left( \frac{1}{15} \right) = 0.68 \end{align}$$ |
xaktly.com by Dr. Jeff Cruzan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. © 2012, Jeff Cruzan. All text and images on this website not specifically attributed to another source were created by me and I reserve all rights as to their use. Any opinions expressed on this website are entirely mine, and do not necessarily reflect the views of any of my employers. Please feel free to send any questions or comments to jeff.cruzan@verizon.net.