If v and v' are the initial and final speeds of the body, its kinetic energies are 1/2 mv2 and 1/2mv'2 respectively. The initial potential energy of the body (on the earth's surface) = -GMm/R, and the final potential energy (at ∞) = 0
By using the principle of conservation of energy, we get, lnitial K.E. + Initial P.E. = Final K.E. + Final P.E