Get WolframAlpha to Plot Slope Fields to DE's

  • Context: MHB 
  • Thread starter Thread starter Ackbach
  • Start date Start date
  • Tags Tags
    Fields Plot Slope
Click For Summary
SUMMARY

This discussion focuses on the challenge of plotting slope fields for differential equations using WolframAlpha. Users express frustration with WolframAlpha's limitations, specifically its inability to plot slope fields directly using commands like VectorPlot. Instead, they suggest using Mathematica 9 with the command VectorPlot[{x^2, y}, {x, -3, 3}, {y, -3, 3}] or utilizing Maxima with the command load("plotdf"); plotdf([1,x^2],[x,-2,2],[y,-2,2]); for better results. Additionally, they recommend exploring alternative applets for slope field visualization.

PREREQUISITES
  • Understanding of differential equations, specifically the form $y' = f(x,y)$.
  • Familiarity with WolframAlpha and its command structure.
  • Basic knowledge of Mathematica 9 and its plotting functions.
  • Experience with Maxima and its plotting capabilities.
NEXT STEPS
  • Learn how to use Mathematica 9 for plotting vector fields and slope fields.
  • Explore Maxima's plotting functions, particularly plotdf.
  • Investigate alternative online slope field calculators and their features.
  • Research the limitations of WolframAlpha for mathematical visualizations.
USEFUL FOR

Mathematics students, educators, and anyone interested in visualizing differential equations and slope fields effectively.

Ackbach
Gold Member
MHB
Messages
4,148
Reaction score
94
Does anybody (Jester?) know how to get WolframAlpha to plot slope fields to, say, $y'=f(x,y)$? For example, $y'=x^{2}$, and I want the slope field plotted up with $x\in[-2,2]$ and $y\in[-2,2]$. What would the actual command be?

Thanks in advance!
 
Physics news on Phys.org
I think It's VectorPlot. But for some reason WolframAlpha doesn't understand this and just plots dumb topological graphs. Curiously though, if you just ask it "vector plot" it will provide you with configuration options and you can enter your equation/bounds there, but it's a bit awkward to use.​

This works fine under Mathematica 9 though (sorry I typed in the bounds wrong):

Code:
VectorPlot[{x^2, y}, {x, -3, 3}, {y, -3, 3}]

e5v6Zwn.png

Is this what you mean? Or do you want to differentiate/integrate it first etc..
 
Yeah, I tried VectorPlot on WA, but it's not giving me what I want. What I want is this sort of thing. This applet is doing what I want, but I'd kind of prefer the safety of WA, if I can get it. I'd rather have short, undirected line segments than the variable length arrows. The problem with the latter is that when the magnitude is small, it's hard to tell in what direction they're pointing.
 
Ackbach said:
Does anybody (Jester?) know how to get WolframAlpha to plot slope fields to, say, $y'=f(x,y)$? For example, $y'=x^{2}$, and I want the slope field plotted up with $x\in[-2,2]$ and $y\in[-2,2]$. What would the actual command be?

Thanks in advance!

Hi Ackbach,

I doubt whether WolframAlpha supports drawing slope fields. There is a discussion about this in their forums but there's no indication there on how to do this. I used to draw them using Maxima.

Code:
load("plotdf");

plotdf([1,x^2],[x,-2,2],[y,-2,2]);

2yvmqtu.png

Ackbach said:
Yeah, I tried VectorPlot on WA, but it's not giving me what I want. What I want is this sort of thing. This applet is doing what I want, but I'd kind of prefer the safety of WA, if I can get it. I'd rather have short, undirected line segments than the variable length arrows. The problem with the latter is that when the magnitude is small, it's hard to tell in what direction they're pointing.

You might also be interested in the applet posted in the forum thread I have liked above.

Slope Field Calculator
 
Sudharaka said:
Hi Ackbach,

I doubt whether WolframAlpha supports drawing slope fields. There is a discussion about this in their forums but there's no indication there on how to do this. I used to draw them using Maxima.

Code:
load("plotdf");

plotdf([1,x^2],[x,-2,2],[y,-2,2]);

2yvmqtu.png



You might also be interested in the applet posted in the forum thread I have liked above.

Slope Field Calculator

That last one seems pretty good. Thanks for that link!
 
Ackbach said:
That last one seems pretty good. Thanks for that link!

Glad to be of help. :)
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
6
Views
2K