In classical mechanics, to raise from some height h_{0} to infinity over a gravitational body, takes a certain amount of energy, the energy associated with escape velocity, let's just call it ε.
ε = \lim_{t\rightarrow +\infty} \int_{h_{0}}^t ƒ(h)dh
Likewise, it's time-reversible, so dropping...