Mathematica Constructing Phase Portrait of System with Mathematica

Click For Summary
To construct the phase portrait for the system defined by the equations \(\dot{x}(t)=y(t)\) and \(\dot{y}(t)=-x^3(t)+4x(t)y(t)\) using Mathematica, a StreamDensityPlot can be utilized. The correct command is StreamDensityPlot[{y, -x^3 + 4 x y}, {x, -1, 1}, {y, -1, 1}]. This approach effectively visualizes the dynamics of the system in a two-dimensional phase space, despite the initial confusion regarding the dimensionality of the equations.
ManuelF
Messages
7
Reaction score
0
How can I construct the phase portrait(with Mathematica) of the following system?
\dot{x}(t)=y(t)
\dot{y}(t)=-x^3(t)+4x(t)y(t)
 
Physics news on Phys.org
The phase portrait would be four dimensional, so it would be pretty hard to plot.
 
Oops, my previous response was incorrect. I didn't notice that this is two first order equations instead of two second order equations. The phase portrait can be easily obtained as:

StreamDensityPlot[{y, -x^3 + 4 x y}, {x, -1, 1}, {y, -1, 1}]
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
8
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K