Plotting Direction Fields with Mathamatica7

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 4K views
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}]