1
$\begingroup$

I'm trying to plot a phase portrait for the equation:

(d^2/dt^2)y + b * (dy/dt)^2 = A, A > 0, b < 0

The first thing I did was changing dy/dt to p[y], so the equation is:

p'[y] + b * (p[y])^2 = A, A > 0, b < 0

However, when I make a stream plot and substitute for A and b, I see a blank plot. How can I fix this?

$\endgroup$
3
  • $\begingroup$ Can you post the exact command that gives you a blank graph? $\endgroup$
    – anderstood
    Commented Dec 24, 2017 at 20:45
  • $\begingroup$ Manipulate[StreamPlot[{1, - b * (p[y])^2 + A}/. A->k /. b->m,{y,-3,3},{p,-3,3}],{k,0.1,5},{m,-5,-0.1}] $\endgroup$
    – FrostahG
    Commented Dec 24, 2017 at 20:51
  • $\begingroup$ Possible duplicate: mathematica.stackexchange.com/questions/14160/… $\endgroup$
    – Michael E2
    Commented Dec 25, 2017 at 0:05

1 Answer 1

2
$\begingroup$

You should change p[y] to p in your Manipulate-command

Manipulate[StreamPlot[{1, - b * (p(*[y] *))^2 + A}/. A->k /. b->m,{y,-3,3},{p,-3,3}],{k,0.1,5},{m,-5,-0.1}] 
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.