How to find fixed points in nonlinear differential equations?

3 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

Mischa Kim
Mischa Kim am 24 Jan. 2014
Bearbeitet: Mischa Kim am 24 Jan. 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:
  1. From the two equations compute dx/dy. Choose initial conditions [x0; y0] and with dx/dy compute the trajectory.
  2. 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.
Once you have a trajectory you can get the phase portrait by picking different initial conditions and repeat 1. or 2.
  3 Kommentare
Mischa Kim
Mischa Kim am 24 Jan. 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,:);
Myriam Ghali
Myriam Ghali am 19 Nov. 2018
Could you please explain how you code for myfunc ?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by