How to find fixed points in nonlinear differential equations?

조회 수: 4 (최근 30일)
Michael
Michael 2014년 1월 24일
댓글: Myriam Ghali 2018년 11월 19일
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,:);
Myriam Ghali
Myriam Ghali 2018년 11월 19일
Could you please explain how you code for myfunc ?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by