With some equations, we can determine the general solution which describes where the system will be at any time in the future.
General solutions are extremely useful because
Unfortunately, not all non-linear equations can be solved directly.
For instance, the diploid selection model in discrete time and the logistic model in discrete time do not have an explicit general solution.
If R is the number of offspring per parent and if there are n[t] individuals in the population at time t, then in the next generation there will be:
Starting at generation 0, there will be R n[0] individuals in the first generation, R2 n[0] individuals in the second generation, R3 n[0] individuals in the third generation, and so on.
This is the general solution giving the population size over time.
To solve this equation, perform a "separation of variables" and integrate both sides:
At time t=0, n[0] = Exp[r*0+c], which tells us that Exp[c] must equal n[0].
Exp[r] plays the same role in the continuous time model as does R in the discrete time model.
At time t=0, this equation reduces to n[0]/(K-n[0]) = Exp[c], which we can then use to replace Exp[c].
We then solve for n[t]:
Does this make sense?
For discrete time models, one method that sometimes works is:
We could repeat these steps to write p[t] as a function of p[t-3]. The fitnesses would then be cubed rather than squared.
Repeating the method t times would give:
In this model, the first transformation makes the equations much simpler:
This tells us a bit more about how selection acts in the haploid model: the ratio of A to a alleles changes by a constant amount each generation!
To transform back into the original variable, note that p[t] = x[t]/(x[t]+1):
which is the same solution as we had above.
This general solution can be used, for example, to determine how much time it would take for a given change in the frequency of an allele.
We then solve for p:
Finally, we plug in an initial condition. Say that at time t=0 the allele frequency is p0. Then at time t the allele frequency, pt will solve:
Again this tells us that the ratio of A to a alleles changes at a constant rate over time.
Exp[rA] and Exp[ra] in the continuous time model play the same role as WA and Wa in the discrete time model.
The continuous time model exhibits the same behavior over time as the discrete time model.