Trouble solving an ODE and plotting its phase portrait

1 reply · 2K views · last reply
zeesyk
Messages
5
Reaction score
1
Mentor note: Moved from non-homework forum to here hence no template.

Typed problem statement from a physics homework sheet asking for phase portraits of a particle's motion under free fall, linear drag and quadratic drag, and phase curves of a bouncing tennis ball.


So I was able to solve part 1.A of the first problem by hand, the phase portrait is a sideways parabola. However, I want to also show on this on mathematica. I want to solve the equation first and then plot the phase portrait it but this is what shows on my screen. What am I doing wrong?
Mathematica session: DSolve input for x''[t] = -g + x'[t] with x[0] = 0 and x'[0] = v0 returns an error that supplied equations are not differential or integral equations; below it, the output reprints the equation as (-g + b (-9.8 t + v1))[t] = -g + (-9.8 t + v1)[t], with initial conditions.
 
Attachments
  • Typed problem statement from a physics homework sheet asking for phase portraits of a particle's motion under free fall, linear drag and quadratic drag, and phase curves of a bouncing tennis ball.
    Capture d’écran 2019-01-31 à 01.20.32.png
    79.9 KB · Views: 715
  • Mathematica session: DSolve input for x''[t] = -g + x'[t] with x[0] = 0 and x'[0] = v0 returns an error that supplied equations are not differential or integral equations; below it, the output reprints the equation as (-g + b (-9.8 t + v1))[t] = -g + (-9.8 t + v1)[t], with initial conditions.
    Capture d’écran 2019-01-31 à 14.56.39.png
    9.1 KB · Views: 438
Last edited by a moderator:
1) That is not the correct equation for free-fall

2) You have to write it like this: differential equation == 0. For example, if you had ##y'(t) = t## you should have written ##y'(t) - t = 0##.

3) DSolve should give the analytical solution so there is no need to specify the domain ({t, 0, 10}) you can just write t.
 
  • Like
Likes   Reactions: scottdave