Kernel: SageMath (stable)
Finding and classifying equilibrium points
Steps:
Find equilibrium point
Get the Jacobian
Test the eigenvalues
Solve Equilibrium Points for Continuous Time System
Example: Shark Tuna model:
In [3]:
Out[3]:
How to retrieve the result?
In [4]:
Out[4]:
[[S == 0, T == 0], [S == 5, T == 20]]
In [5]:
Out[5]:
[S == 0, T == 0]
In [7]:
Out[7]:
T == 0
In [9]:
Out[9]:
0
In [16]:
Out[16]:
In [17]:
Out[17]:
In [98]:
Out[98]:
Solve Does not Always Work
Model we are going to use today:
In [11]:
Out[11]:
None of them are real number!!! But there is at least one root!!!
What should we do when solve does not work?
Use: find_root!!!
find_root Can find "One" equilibrium point
For a "one" variable equation
Example:
In [90]:
In [91]:
Out[91]:
There is definitely a root between 2 and 3
In [100]:
Out[100]:
2.2545915040920135
But there are 3 variables, not one!
However, if we only need to find equilibrium point, we only need to solve one variable!!!
Finding equilibrium point is just solving a function of H!!!!
In [0]: