Fire a rocket straight upward from the surface of the Earth with a variable initial speed and determine the maximum distance it attains from the center of the Earth.