- #1
slavito
- 3
- 0
Homework Statement
This is for my computer simulations in physics class. The problem, as stated, is to numerically integrate a particular equation for a period of one year, given that the Earth starts at the point (1,0) with a velocity of (0,2pi). Then, I must plot the orbit.
I am using Maple for this exercise. I know how to program in it just fine. I really just need help with understanding this problem.
Homework Equations
I must integrate this equation:
[tex]\frac{-GM}{r^2}\hat{r}=\frac{-GM}{(x^2+y^2)^\frac{3}{2}}(x\hat{i}+y\hat{j})[/tex]
[tex]G= 2\pi[/tex]
[tex]M= Solar Mass[/tex]
The Attempt at a Solution
I knew that I would have to tackle this integration one part at a time, so I started by distributing the GM term. This part was simple. It is understanding the integration from this point on that I do not understand. I tried integrating in terms of x and then of y, but did not get the results I was expecting. For this plot to be a nice, circular orbit, the x and y components must be sin/cos graphs. I have gotten a few "answers" integrating it my way, but all of these answers were undefined for when x or y are 0. This should not be the case. I also know I am going wrong because I have 2 variables at the end, making the plot of the rotation impossible, even in Maple.
I think I have started to approach the problem wrong as I have not found a way to incorporate the initial position or velocity. I doubt these are superficial pieces of information. My gut is telling me that the limits of integration are x and y, but I don't know how to make this work.
I have tried looking up similar problems on other sites for several hours and I think I have a good handle on what the correct answer will look like when I get it, but at the moment, I'm a little stuck. I would appreciate any sort of help you could give me!
[Note: I wasn't sure if I should post this in adv. physics or calculus help. I'm sorry if I didn't choose correctly!]