## Compound infections

Submitted by Marianne on January 15, 2021This graphic beautifully illustrates exponential growth: the stem splits into two branches, which each split into two branches and so on. Soon there are so many branches, they form a dense canopy.

The answer to this question is purely mathematical — and one way of explaining it involves the same calculations you'd use if you wanted to work out how the money (or debt) in your bank account grows through compound interest. To separate out the maths from epidemiological, virological, medical, etc, questions we will phrase our mathematical explanation in general terms.

Imagine that you have things (e.g. infectious people), each of which produces a fixed number of new things (e.g. new infections) a week. The question is, how many things will there be after some number of weeks?

To find an answer, let’s start counting. There are things to start with. Since each of them produces new things during the first week, there will be new things after the first week. Adding this to the things that already exist, we see there will be

things after the first week.

During the second week, the number of things grows by a factor of again, meaning there are

new things in addition to the things that already exist. Thus, at the end of the second week there are

things.

Similarly, after the third week the number of things will be the that already exist plus , so that’s

If you think you can spot a pattern here, then you are right. Continuing this calculation, you can show that after weeks there will be

things.

The graph below shows how the number of things grows, according to this calculation, for over a period of ten weeks. Move the slider on the left to change the value or .

One thing that immediately meets the eye is that this graph is like a staircase rather than a smooth curve. That’s because in the graph we implicitly assumed that the new things appear at the very end of each week, at the stroke of midnight on Sunday.

See here for all our coverage of the COVID-19 pandemic.

But this can lead to an underestimate of the number of things! We ignored the possibility that an existing thing A could spawn one of its offspring, thing B, earlier during the week, rather than at the end of Sunday. This new thing B would then not only exist earlier than we thought, it could also produce its own offspring before the end of the week. Our calculation above didn’t account of this potential early offspring of B, and may therefore give too low an estimate.

### Counting things better

But, never fear, we can improve on this. Let’s allow the possibility that each thing spawns some offspring every day, at the rate of things per day (so it’s still things overall within a week).

How many things would you have at the end of the first week? Well, the same calculation as above, applied to days rather than weeks and with replaced by , shows that at the end of the first week there will be

things.

At the end of weeks (which are days) there will be

things.

If new things are being spawned all the time, then this gives a better estimate than our first calculation. However, just as the first calculation assumed things spawn new things only at the point of midnight on Sunday, this calculation assumes that things spawn new things only on the point of midnight at the end of each day. This could again lead to an underestimate (things could spawn offspring at midday who then go on to spawn their own offspring the same day).

The next thing to do, then, is to switch our basic time period from days to hours or, even better, to minutes or seconds.

Actually, we can go even further and be more general. Let’s divide our week into time periods of equal length, where is some very large number, so the individual time periods are very short. By making larger, you can make the time periods as short as you like. We assume that each thing produces new things in each of these short time intervals at the rate of things per interval. The same reasoning we used above then shows that at the end of weeks the number of things is

(1) |

### To the limit

The question is, what happens to this expression as the number of time periods gets larger and larger (so we are allowing for the possibility that things are spawned at shorter and shorter time intervals)?

Let’s focus on just a part of our expression, namely

As grows larger and larger, this expression *converges* to

where is Euler’s number from above. This means that, as grows,

gets increasingly closer, indeed arbitrarily close, to

(See here for a formal definition of a convergent sequence.) It's because of this convergence that the number turns up in models of exponential growth, where we assume that the growth can happen continuously as time passes.

Now, returning to our formula (1) for the number of things after weeks, we have

So as grows larger and larger the total number of things converges to

You can see a graph of this expression below for (together with the step function we considered earlier). Use the slider on the left to vary the value of .

A final issue to note concerns the variable , which we have taken to measure weeks, and the parameter , which in our example gives the growth rate of new things per week. There was no need for to represent weeks here. We could equally well have taken to measure days and started our calculation from there, adjusting to represent the growth per day. In the end, our calculations would still have yielded an expression involving as above. Similarly, we could have taken to measure hours, minutes, or seconds. What time frame you use depends on what you are dealing with: money (for which interest rates often refer to the period of a year), populations of bacteria (which can grow very quickly), or epidemics (whose speed of growth depends on how quickly an infected person infects others).

### What if things disappear?

In our argument so far, we have assumed that new things appear each week. But what if things can also disappear (e.g. in an epidemic where people recover from a disease or, sadly, die)? Luckily, this doesn’t change the calculations, as long as we assume that the net effect is the same every week: that the creating and disappearing together amount to there either being new things per thing each week (which is what we already considered above), or fewer things per thing each week. The possibility of there being fewer things can be captured by taking to be a negative number. As it turns out, the calculations still work for negative, again leading to the formula

As you can see from the graph below, for a negative number, the number of things now decreases exponentially. We have what mathematician call *exponential decay*. (Use the slider to vary the value of .)

### Caveats

Like all mathematical models, the exponential model we have just developed has its limits and comes with caveats.

As far as epidemics are concerned, one issue is that as people recover from the disease and (hopefully) become immune for a time, or die, the pool of people available to become infected shrinks, so the disease can't go rampaging about at the same rate. This is why the exponential model gives good predictions only over a suitable period of time (a few weeks for COVID-19) while there are still lots of people around to infect. It doesn't give good predictions indefinitely.

There are many other things our exponential model also doesn't take into account, for example, that people don't necessarily become infectious as soon as they have caught the disease, that not everyone in the population is the same, and that the growth rate could vary over time for all sorts of reasons. To take account of such issues, and to get longer-term predictions, you need to build more sophisticated models (find out more here).

That said, the exponential model is powerful tool to get handle on how much of a threat an epidemic poses over a suitable period of time. And it demonstrates the beauty and power of the number .

### About the author

Marianne Freiberger is Editor of *Plus*.