I'm wondering if anyone can help me finding the distance traveled by a planet due to gravity. I can find the force but I can't figure out how to convert from a force in direction a(a^2 = x^2 + y^2 + z^2) where x y and z are forces to x y and z as distances...Can anyone help me?
If you have all forces acting on the planet (gravitiy from all other celestial bodies close enough to make a difference), then dividing the sum of the forces by the planets mass will give you the acceleration of the planet. Integrate that over time and you get the planets velocity, integrate that over time and you get its position. (But make sure your planet has an initial velocity with a component perpendicular to the line from the planet to the sun, or else your planet will fall directly into the sun).