Trouble solving an ODE and plotting its phase portrait

AI Thread Summary
The discussion focuses on solving an ordinary differential equation (ODE) and plotting its phase portrait using Mathematica. The user successfully solved part of the problem by hand but encountered issues when trying to implement it in Mathematica. Key points include correcting the equation format to "differential equation == 0" and ensuring the use of DSolve for obtaining the analytical solution without specifying a domain. The phase portrait is described as a sideways parabola, indicating the nature of the solution. Proper formatting and command usage in Mathematica are essential for accurate plotting.
zeesyk
Messages
5
Reaction score
1
Mentor note: Moved from non-homework forum to here hence no template.

Capture d’écran 2019-01-31 à 01.20.32.png


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?
Capture d’écran 2019-01-31 à 14.56.39.png
 

Attachments

  • Capture d’écran 2019-01-31 à 01.20.32.png
    Capture d’écran 2019-01-31 à 01.20.32.png
    79.9 KB · Views: 644
  • Capture d’écran 2019-01-31 à 14.56.39.png
    Capture d’écran 2019-01-31 à 14.56.39.png
    9.1 KB · Views: 376
Last edited by a moderator:
Physics news on Phys.org
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 scottdave
Back
Top