I'd like to compute a formula that describes a population growth. The population starts with $N(t=0)$ individuals. At each time step there are births and deaths. The number of births at time $t$ is given by $N(t-1)f$, where $f$ being the fecundity. The number of deaths is given by $N(t-ls)$, where $ls$ being the lifespan. Therefore the recursive equation is: $$ N(t)=N(t-1)+N(t-1) f-N(t-ls) $$ which also equals: $$ N(t)=N(t-1) (f+1)-N(t-ls) $$ What is the general solution? I mean an equation that gives the value $N(t)$ in function of $ls$, $f$ and $N(0)$ only.
Step-by-step solution is more than welcome.
UPDATE:
$ls$ and $t$ are integers.
Generating functions are your friend. I will show how to get your generating function from the recurrence.
I changed your notation a little.
You have $n(t) = a n(t-1)-n(t-m)$, or $n(t+m) = a n(t+m-1)-n(t)$ .
Let $f(x) =\sum_{t=0}^\infty n(t) x^t $.
$x^m f(x) =\sum_{t=0}^\infty n(t) x^{t+m} =\sum_{t=m}^\infty n(t-m) x^{t} $ and $x f(x) =\sum_{t=0}^\infty n(t) x^{t+1} =\sum_{t=1}^\infty n(t-1) x^{t} $, so
$\begin{align} f(x)-ax f(x)+x^m f(x) &=\sum_{t=0}^\infty n(t) x^t -a\sum_{t=1}^\infty n(t-1) x^{t} +\sum_{t=m}^\infty n(t-m) x^{t}\\ &=\sum_{t=0}^{m-1} n(t) x^t -a\sum_{t=1}^{m-1} n(t-1) x^{t} +\sum_{t=m}^\infty (n(t)-an(t-1)+n(t-m)) x^{t}\\ &=\sum_{t=0}^{m-1} n(t) x^t -a\sum_{t=1}^{m-1} n(t-1) x^{t}\\ &= g(t)\\ \end{align} $
where $g(t) =\sum_{nt0}^{m-1} n(t) x^t-a\sum_{t=1}^{m-1} n(t-1) x^{t} =n(0)+\sum_{t=1}^{m-1} (n(t)-an(t-1)) x^t $ is a polynomial of degree $m-1$ that incorporates the initial conditions of the $n(i)$.
Therefore $f(x) =\dfrac{g(x)}{h(x)} $ where $h(x) = 1-ax+x^m$.
The properties of the $n(i)$ thus depend on the initial conditions (incorporated in $g(x)$) and the roots of $h(x)$. In particular, if $h(x)$ has no real roots, the $n(i)$ will oscillate. If $h(x)$ has positive real roots, the $n(i)$ will grow (unless there are special initial conditions) like $c/r^i$, where $r$ is the root of $h$ of smallest value.
I will now try to determine what I can about the roots of $h$.
I will assume that $a > 0$.
$h(0) = 1$.
Since $h'(x) =-a+mx^{m-1} $, $h'(x)=0$ for $x=x_0 =(a/m)^{1/(m-1)} $, so $h'(x) < 0$ for $0 \le x < x_0$ and $h'(x) > 0$ for $x > x_0$. Therefore $h$ has a minimum at $x_0$.
To see if $h$ has any real root, we need to see if $h(x_0) < 0$. If not, $h$ has no real roots.
$\begin{align} h(x_0) &=1-ax_0+x_0^m\\ &=1-x_0(a-x_0^{m-1})\\ &=1-x_0(a-a/m)\\ &=1-(a/m)^{1/(m-1)}a(1-1/m)\\ &=1-(a/m)^{1+1/(m-1)}(m-1)\\ &=1-(a/m)^{m/(m-1)}(m-1)\\ \end{align} $.
Therefore $h(x_0) < 0$ if $(a/m)^{m/(m-1)}(m-1) > 1$ or $a > m/(m-1)^{(m-1)/m}$.
Therefore, for any $m$, if $a$ is large enough, the $n(i)$ will grow exponentially.
Note that if $a = m/(m-1)^{(m-1)/m}$, $h$ has a double root at $x_0$, and the $n(i)$ will grow differently.
I'll take this a little further and leave it at that.
Let's see what happens for moderately large $m$.
$m/(m-1)^{(m-1)/m} =\dfrac{m}{m-1}(m-1)^{1/m} $.
$(m-1)^{1/m} =e^{\ln(m-1)/m} \approx 1+\ln(m-1)/m $ and $\dfrac{m}{m-1} =\dfrac{1}{1-1/m} \approx 1+1/m $, so $m/(m-1)^{(m-1)/m} \approx (1+\ln(m-1)/m)(1+1/m) \approx 1+(1+\ln(m-1))/m $.
Therefore $a$ does not have to be too large for $h$ to have real roots.
That's enough for now.