- From the two equations compute dx/dy. Choose initial conditions [x0; y0] and with dx/dy compute the trajectory.
- Alternatively you could use the differential equations to calculate the trajectory. Pick initial conditions [x0; y0] and use, e.g. ode45 to do the integration.
How to find fixed points in nonlinear differential equations?
17 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I'm struggling with such problem that I need to find fixed points, and then sketch the nullclines,the vector field and a phase portrait. I cannot handle finding fixed points of those two differential equations in one point: dx/dt=2xy dy/dt=y^2-x^2 How to get those fixed points and then sketch this phase portrait? I know how should it look but have no idea of how to put my hands on it.
0 Commenti
Risposta accettata
Mischa Kim
il 24 Gen 2014
Modificato: Mischa Kim
il 24 Gen 2014
Hello Michael, by definition the state derivate at a fixed point is equal to the zero vector. In your case that means x'= 0 and y'= 0. One obvious fixed point is at x = y = 0. There are various ways of getting the phase diagram:
Once you have a trajectory you can get the phase portrait by picking different initial conditions and repeat 1. or 2.
3 Commenti
Mischa Kim
il 24 Gen 2014
Almost. What I mean is that
- at a fixed point the derivatives are zero. That is xy = 0 and y^2 - x^2 = 0. The only solution is x = 0 and y = 0. That is your fixed point. No need to use MATLAB for that part of the problem.
- Use
tspan = 0:0.1:10; %you might want to adapt the range for t
[T,Z] = ode45(@myfunc, tspan, [x0 y0]); %myfun is your DE function
x = Z(1,:);
y = Z(2,:);
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Systems of Nonlinear Equations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!