A spacecraft which is moving with a speed relative to the earth in the -direction, enters the gravitational field of a much more massive planet which is moving with a speed in the negative -direction. The spacecraft exits following the trajectory as shown below.
The speed of the spacecraft with respect to the earth a long time after it has escaped the planet's gravity is given by
