BASE
This tutorial is an informal walk through the main steps for deducing the exponential growth model. With it, we arrive at one of the first principles for ecology: in the absence of external forces, a population will grow or decrease exponentially.
It may be more comfortable to think in changes in the population size in discrete intervals: we count the number of individuals at a given time, and repeat the count in the following time steps. This dynamic is described in the geometrical model, in which the population grows without bounds.
But how long do we wait between one census and another? If the births and deaths can occur at any time is a good idea to census the population on very short intervals. This script will show that the continuous time is just another way of thinking in discrete time: we make the intervals as small as we want. This will be our starting point to derive the exponential growth model, with the help of some computer tools.
Let's see the initial growth phase of a bacteria population in this video1):
Now let's try to describe the number of observed bacteria at every time interval:
Time | N. of bacteria |
---|---|
0 | 2 |
1 | 4 |
2 | 8 |
3 | 16 |
4 | 32 |
5 | 64 |
… | … |
14 | 16384 |
… | … |
30 | 1073741824 |
… | … |
60 | 1152921504606846976 |
It may be hard to understand what's happening with just this table. A graph may help:
Notice that we have counts of the population size in discrete time intervals. Another way of describing this data is by asking
To express how much the population varies in a given time period, we can calculate the population variation rate from time tt to that time plus an interval ΔtΔt:
Variation rate =N(t+Δt)−N(t)Δt=N(t+Δt)−N(t)Δt
Or: take the number of bacteria in two times and divide the difference by the time elapsed.
But this ΔtΔt is arbitrary. If the population has well-defined reproductive periods (i.e., annual), this observation interval may be a good choice. But what if births and deaths can occur at any point in time? The smaller our observation interval, the more precise will be our description of the population dynamics. In these cases, we should make the ΔtΔt be as close to zero as we can.
But if we approach zero time interval, then N(t+Δt)−N(t)N(t+Δt)−N(t) should also go to zero, as the population sizes in both instants will be very close to each other. So the final result should be something like 0/00/0?
Let's see if this logic is correct. First, suppose we have a population whose size is equal to the square of the elapsed time ( N(t)=t2 ), then let's reduce the value of Δt to see what happens with the variation rate on time t=1:
Strangely, the values seem to converge to 2, and not to 0! Try it a few more times to other values of time.
Notice that the values converge in the following fashion when Δt→0:
t | N(t+Δt)−N(t)/Δt |
---|---|
1 | 2 |
2 | 4 |
3 | 6 |
4 | 8 |
5 | 10 |
That means the instantaneous growth rate for t2 is approximated by 2t when Δt is near zero. We just found out the derivative of the function N(t)=t2!
The derivative of a function X(t) is defined as its instantaneous growth rate, obtained by the limit of the variation rate:
X(t+Δt)−X(t)Δt
when Δt→0 2). One way to represent a derivative is in the notation of a rate over time:
dXdt=limΔt→0X(t+Δt)−X(t)Δt
A simple way of thinking about derivatives is that they represent instantaneous velocities. The speedometer of a car shows the derivative of its position! Thinking about this analogy, let's study the speed of growth of our bacteria:
Time | N. of Bacteria | Speed |
---|---|---|
0 | 2 | |
1 | 4 | 2 |
2 | 8 | 4 |
3 | 16 | 8 |
4 | 32 | 16 |
5 | 64 | 32 |
The bacteria double at each time interval. So, if the population doubles, the growth speed also doubles. If it is multiplied by 4, the speed will be multiplied by 4, and so on. That means that the growth speed is proportional to the population size.
As we're talking about instantaneous speeds, let's represent this proportionality with a derivative:
(1) dN/dt=rN
Here, the constant of proportionality r is called the population intrinsic growth rate, that is, how much each individual contributes to the instantaneous variation in the population size. This is the simplest population growth model.
This model is a differential equation, as it sets an equality relation between the derivative of a function (left size) and an algebraic expression on the right hand side of the equation. In other words, this model says some function for the population size N has a derivative proportional to itself. A function that has this property is a solution for this equation. One such function is:
(2) Nt=N0ert
This is the exponential growth function! Let's see how did we arrive here.
A first order differential equation is a relation between the derivative of a function and some mathematical expression. Solving one equation like this means finding some function whose derivative satisfies the proposed relation.
The problem is: there is no easy algorithm to find these functions. There are several rules and tables that relate the most common derivatives with the corresponding functions (the “antiderivatives”). Other than those, a lot of mathematical manipulation it is generally needed to express a differential equation in terms of those simple functions. Even then, it is not always possible to express the solution using a known function - what we call an analytic solution. We are lucky that the equation:
dNdt=rN
is so simple that the analytical solution exists. Even better, some computer programs are able to solve this type of equation. They are called CAS: Computer Algebra System, and Maxima is one of these programs, that can help us finding the solution for differential equations. You can find more help about this on the [en:ecovirt:roteiro:soft:tutmaxima|Introdução ao Maxima]].
Below, we are defining an object eq1
in Maxima to indicate that we want to solve the differential equation found above (the command for this is ode2
):
xxxxxxxxxx
eq1: diff(N(t),t)=r*N(t);
The first argument is the differencial equaition, the second one the dependent variable (N(t)) and the third one the independet variable (t):
xxxxxxxxxx
ode2(eq1, N(t), t)
The result should be:
N(t)=cert
Here, c is an unknown constant. The expression above satisfies the differential equation, for any given value of c, and this is all the antiderivative rules are able to give.
If we want to single out one function, we need something more: the initial conditions for the system. Let's define the initial population size, N0. This is the population size on time zero, and it may be substituted on the equation for exponential growth:
N0=c∗e0=c∗1=c
So, c=N0, and finally we have a single function to represent our exponential growth:
Nt=N0ert
Are you satisfied? I hope not, because we still have a lot of work to do. We need to understand why the equation we proposed has this solution!
One way of seeing things here is by returning to the line of reasoning of reducing time intervals. Let's start with a population having an annual growth rate of λ=1,5:
Now, if we suppose that this population has two reproductive seasons per year, we need to calculate the population at the end of the first semester, and multiply it again by the growth rate, to find the population size at the end of the year. Let's first suppose that the biannual growth rate is half the annual growth rate (seems reasonable, right?)
N1 = N0(1+0,52)(1+0,52)
Expanding:
N1 = N0(1+0,52)2 = N0(1+0,25)2 →N1N0 = (1+0,25)2 ≃ 1,56
Wow! A biannual growth rate of 1.25 results in a larger growth than an annual rate of 1.5! That's not hard to understand: in the second semester, the population raises by 25% over a population that already rose by 25% in the first semester - in other words, the individuals that were born on the first semester already reproduce at the second. If we kept the line of reasoning, a quarterly growth rate should be of (1+0.5/4), applied 4 times. Figure out that this would mean an annual growth rate of 1.60. Does this ever end?
Jacob Bernoulli was the first to see the solution of this problem, working on compound interest rates, in the Seventeenth Century. He started with the expression used to calculate this interests, which is nothing more than our expression of annual growth divided in n intervals:
N1N0=(1+rdn)n
He then showed that calculating the debt (or in our case the population size) that raises at every instant, we need to let n be infinitely large:
limn→∞(1+rdn)n
This is the same as having the time intervals infinitely small. What happens then? Let's try to solve this numerically, by raising the number of divisions in a year using our discrete growth rate. Let's keep λ=2, that is, rd=1 and N0=2; so NtN0=Nt.
Isto é o mesmo que fazer os intervalos de tempo serem infinitamente pequenos. O que acontece então? Vamos tentar resolver o limite acima numericamente.Vamos aumentar o número de divisões dentro de um ano da nossa taxa de crescimento discreta. Usaremos λ=2, (portanto o rd=1) e N0=2.
Compare the growth rate Nt/N0 with er, as you increase the number of time intervals você. Repeat it for λ=3 and λ=1,5 (r=2 e r=0,5).
Now you probably agree when we say that the growth over a year (t=1) divided in n intervals is given by:
lim→∞(1+rdn)n=er
That is:
NtN0=ert Nt=N0ert
We arrived at the continuous growth rate!! Even better, we found a relation between the instantaneous intrinsic growth rate and the discrete time population growth rate:
λ=er ou r=logn(λ)
Duplication time 3) is defined as the time neceessary to duplicate some quantity, given a constant growth rate. We can apply this concept to the time needed to a population with constant growth rate to double in size, or to calculate the time until a debt under fixed interests will double.
The solution is simple. Given the inicial value (N0), the growth rate r and the population size projected (2N0), we solve the equation for time:
2N0=N0ert
We just need some algebra, dividing both sides by N0:
ert=2
and then taking the natural logarithm for both sides:
log(ert)=log(2) rt=log(2) t=log(2)r
As log(2) is approximately 0.7, we have:
tdupl≈0,7r
If growth rate is expressed in percentage, we have:
tdupl≈70r%
A way to calculate compound interests from a loan 4) is through the exponential equation, were:
Uma dívida
A new car
Imagine you receive a undergrad fellowship and decided to by a car. There are two options for you, both with fixed portions:
According to the physicist Al Bartlett, one of the biggest tragedies of humanity is the incapacity to understand the consequences of constant growth rates. His speech about it is a classic, repeated more than 1600 times! Here, Prof Bartlett proposes the following problem: