Implicit numerical differentiation

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
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.

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

R is the carrying capacity

Here I have to solve a quadratic equation to find [tex]u_{n+1}[/tex]