Plotting Direction Fields with Mathamatica7

AI Thread Summary
To plot direction fields of differential equations in Mathematica 7, the function StreamPlot is used. For a system defined by y' = f(x,y), the syntax is StreamPlot[{1, f[x,y]}, {x, -a, a}, {y, -b, b}]. For specific examples like y' = 3 - 2y and y' = -1 - 2y, the direction fields can be visualized using these commands. This approach effectively illustrates the behavior of solutions to the differential equations. Properly applying these commands will yield the desired direction fields in Mathematica 7.
khary23
Messages
92
Reaction score
6
Can someone please explain to me how one plots direction fields of differential equations in mathamatica 7? Two examples are
y'=3-2y
y'= -1-2y

Thank you
 
Last edited:
Physics news on Phys.org
Use StreamPlot[{x'[t],y'[t]},{x,-a,a},{y,-b,b}]

and in the case of just y'=f(x,y), use:

StreamPlot[{1,f[x,y]},{x,-a,a},{y,-b,b}]
 
Thank you!
 

Similar threads

Replies
8
Views
2K
Replies
2
Views
2K
Replies
5
Views
2K
Replies
1
Views
2K
Replies
1
Views
3K
Back
Top