       directionfields from StreamPlot looks different from solution

• To: mathgroup at smc.vnet.net
• Subject: [mg100444] directionfields from StreamPlot looks different from solution
• From: sean_incali at yahoo.com
• Date: Thu, 4 Jun 2009 03:32:35 -0400 (EDT)

```I don't think I'm using StreamPlot properly.

Consider the following non-autonomous ODE

y'[t] == (t^2) - y[t]

Solutions for various ICs can be viewed by the following.

sol= Table[NDSolve[{y'[t] == (t^2) - y[t], y == y0}, y[t], {t, -4,
4}], {y0, 0, 6, 0.5}];

Plot[Evaluate[y[t] /. sol], {t, -4, 4}, PlotRange -> {{-4, 4}, {-2,
10}}]

Shouldn't Vector fields be similar to the solutions above? If I plot t
on x-axis vs. t^2-y on y axis...

VectorPlot[{t, (t^2) - y}, {t, -4, 4}, {y, -2, 10}]

StreamPlot[{t, (t^2) - y}, {t, -4, 4}, {y, -2, 10}]

I don't get similar results...

What is the reason for this?

Thanks much in advance

Sean

```

• Prev by Date: Re: Psychrometric chart
• Next by Date: creating an array in a loop
• Previous by thread: Re: Problem with a plot in Mathematica
• Next by thread: Re: directionfields from StreamPlot looks different from