Trouble solving an ODE and plotting its phase portrait

Click For Summary
SUMMARY

The discussion focuses on solving an ordinary differential equation (ODE) and plotting its phase portrait using Mathematica. The user successfully solved part 1.A by hand, identifying the phase portrait as a sideways parabola. However, they encountered issues with their Mathematica code, specifically in formulating the differential equation correctly. Key corrections include ensuring the equation is set to zero and using DSolve for the analytical solution without specifying a domain.

PREREQUISITES
  • Understanding of ordinary differential equations (ODEs)
  • Familiarity with Mathematica software
  • Knowledge of phase portraits in dynamical systems
  • Experience with the DSolve function in Mathematica
NEXT STEPS
  • Review the syntax for defining differential equations in Mathematica
  • Explore the DSolve function in Mathematica for solving ODEs
  • Learn how to plot phase portraits using Mathematica
  • Study examples of free-fall equations and their phase portraits
USEFUL FOR

This discussion is beneficial for students and professionals in mathematics, physics, and engineering who are working with ordinary differential equations and using Mathematica for analysis and visualization.

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: 693
  • Capture d’écran 2019-01-31 à 14.56.39.png
    Capture d’écran 2019-01-31 à 14.56.39.png
    9.1 KB · Views: 410
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   Reactions: scottdave

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
3
Views
3K
Replies
14
Views
6K
  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 49 ·
2
Replies
49
Views
6K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
2
Views
2K