Linked Questions

38 votes
7 answers
65k views

How can I plot the direction field for a differential equation?

I'd like to plot the graph of the direction field for a differential equation, to get a feel for it. I'm a novice, right now, when it comes to plotting in Mathematica, so I'm hoping that someone can ...
Matt Groff's user avatar
  • 1,111
46 votes
3 answers
71k views

Plotting a Phase Portrait

I'm trying to plot a phase portrait for the differential equation $$x'' - (1 - x^2) x' + x = 0.5 \cos(1.1 t)\,.$$ The primes are derivatives with respect to $t$. I've reduced this second order ODE to ...
covertbob's user avatar
  • 617
27 votes
2 answers
3k views

Phase portrait on a cylinder

It is very nice and very easy to make a sketch of a phase portrait with StreamPlot. For example, for the classical pendulum, defined by \begin{eqnarray*} \dot x&...
Artem's user avatar
  • 1,037
3 votes
3 answers
3k views

Phase portraits and StreamPlot

I typed StreamPlot[{y, x-x^3-0.3y+0.5Cos[1.25t]}, {x, -2.5, 2.5}, {y, -2.5, 2.5}] but all I got was a blank plot. What did I do wrong and can I fix it?
superAnnoyingUser's user avatar
13 votes
1 answer
1k views

Why isn't my Stream code plotting multiple solution curves?

My code is: ...
user12289's user avatar
  • 301
5 votes
3 answers
1k views

Plotting the direction field of a differential equation

I have to sketch the direction field for the following differential equation: $$\frac{dy}{dx}=\frac{-0.02 y +0.00002 xy}{0.08 x-0.001xy}$$ This is the code I used, which gives an incorrect plot: <...
Maggie's user avatar
  • 93
4 votes
2 answers
666 views

Cleaner Approach to Plotting Multiple Solution Curves on Phase Portrait

I am trying to plot multiple solution curves onto a phase portrait. I used the approach shown here, but is there a cleaner approach? For example, can we just add a parameter $n$, that randomly ...
Moo's user avatar
  • 3,044
9 votes
1 answer
425 views

How to plot a vector field on a geographic map?

Suppose I want to VectorPlot on a geographic map a vector field defined on a Reference Ellipsoid. The field is given to the following function as a ...
unlikely's user avatar
  • 7,063
1 vote
1 answer
985 views

Phase Portrait Trajectories

How do I make a phase portrait which looks like the ones demonnstrated here? Not the fancy version where I can use the controls to change it, just a screen-shotted version of say a spiral point? Any ...
user26928's user avatar
2 votes
1 answer
473 views

How to make program for phase portrait?

I need to add a phase portrait to my program. The program is below, and I need to create a graph like the one in the picture. My step size needs to be 5, from x0,y0 = 10 to x0,y0 = 50. ...
ivona0909's user avatar
2 votes
1 answer
282 views

Graphics Grid Direction Field Animations as GIF

I want to create a graphics grid as in this example below, but for the manipulate example below and store that as a playable gif file. Is this possible (I would like to see each grid location running ...
Moo's user avatar
  • 3,044