The kinetic energy needed to escape from the surface is given as,
Since, the potential energy at the maximum height will be equal to the sum of half kinetic energy and the potential energy at the surface of the earth.
It can be written as,
The maximum height is .