This is a problem that has bothered me for a couple of weeks now, and I can't seem to wrap my head around it and understand it.
Let's say we have a planet with a mass of m. We also have an object of relatively small mass (so small that its gravitational field would not affect the planet), and we know that at time 0 it is at position h.
If we know the acceleration due to gravity (g), we can calculate the position y at time t:
$y = h - { g \; t^2 \over 2 } $
And we know that the acceleration due to gravity could be calculated:
$g = G { m \over y^2 }$
But since the acceleration depends on the position of the object relative to the planet, and the position of the object is dependent on the acceleration, this would obviously mean that the first formula won't work when we are working with displacement so large that it would change the acceleration significantly.
So, in essence, my question is, what formula can we use to calculate the position of an object, taking into consideration the change in acceleration due to gravity?