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

Discussion Overview

The discussion revolves around how to use WolframAlpha to plot slope fields for differential equations, specifically in the form $y'=f(x,y)$. Participants explore the capabilities of WolframAlpha and compare it with other tools like Mathematica and Maxima.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant inquires about the specific command to plot slope fields in WolframAlpha, using the example $y'=x^{2}$ with specified bounds.
  • Another participant suggests using VectorPlot but notes that WolframAlpha does not seem to interpret this correctly, leading to unexpected outputs.
  • Some participants express a preference for short, undirected line segments in slope fields over variable length arrows, citing clarity in directionality.
  • There are mentions of alternative tools, such as Maxima, which can successfully plot slope fields, with a specific command provided for its use.
  • Participants share links to external applets that successfully generate slope fields, indicating a potential workaround for the limitations of WolframAlpha.

Areas of Agreement / Disagreement

Participants generally agree that WolframAlpha does not adequately support slope field plotting, but they have differing opinions on the effectiveness of alternative methods and tools.

Contextual Notes

There is uncertainty regarding the capabilities of WolframAlpha, as well as the effectiveness of the suggested alternatives. Some participants express frustration with the limitations of the tools discussed.

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
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · 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