Implicit numerical differentiation

MaxManus
Messages
268
Reaction score
1

Homework Statement



I am using Crank–Nicolson to solve a logistic function, modeling population growth.
To get the next time step, I have to solve a quadratic equation.
The problem is that i get two solutions for y(i+1). Does it mean that I am doing it wrong?
If not, can I just pick the solution that is closest to y(i)?
 
Physics news on Phys.org
Example:
Logistic growth, implicit scheme, not Crank-Nicolson.

\frac{u_{n+1}-u_n}{\Delta t} = n_{n+1}(1 - \frac{u_{n+1}}{R})

R is the carrying capacity

Here I have to solve a quadratic equation to find u_{n+1}
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top