A particle escapes from earth only it overcomes the gravitational
binding energy due to earth, and has zero energy in infinity
an Gravitational Binding energy = −GMmR
It is projected with initial velocity vesc so it escapes.
⇒ Initial KE=12mv2esc (m: mass of body)
From conservation of energy :-
−GMmR+12mv2esc=0 [E=0 at ∞]
⇒GMmR=12mv2esc⇒vesc=√2GMR
also, as g=GMR2 we get ⇒vesc=√(2GMR2.R)=√2gR (Reqd)