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 is a function that 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.

Below is a comparison of exponential and logistic growth curves with some features highlighted.

Exponential growth is unchecked growth. Exponential functions arenâ€™t realistic models of population growth and other phenomena.

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**. **t _{o}** is the initial time, and the term

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:

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.

**Solution****P(t)** at some **t** (we'll assume that's in years) is 18,000:

$$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 **e ^{x}** 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?

**Solution****t** = 5 days to solve the first part of the problem:

$$ \begin{align} n(5) &= \frac{5000}{1 + 4999e^{-0.8(5)}} \\ \\ &= \frac{5000}{1 + 4999e^{-4}} \\ \\ &= \frac{5000}{1 + 91.56} \\ \\ &= 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.8**t** 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.

**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.