Usually when on Earth we can use as an approximation:
g = a = 9.18 $\frac{m}{s^2}$
s = vi + 1/2 a$t^{2}$
However, how would I determine the distance traveled in situations where the the acceleration due to gravity is changing non-negligibly because the distances are so large?
I know that the following equation has to be used somehow:
a = $Gmr^{-2}$
I am not sure exactly how though.
For example, if given the information that an object is at a certain distance and is being attracted by a larger object of a given mass, the method should calculate where the object will be at a given time.