How to find fixed points in nonlinear differential equations?

17 次查看(过去 30 天)
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.

采纳的回答

Mischa Kim
Mischa Kim 2014-1-24
编辑:Mischa Kim 2014-1-24
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 个评论
Mischa Kim
Mischa Kim 2014-1-24
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,:);

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Systems of Nonlinear Equations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by