The diagram showing the variation of gravitational potential of earth with distance from the centre of earth is
Vin=−Gm2R3−rR2, Vsurface =−GMR, Vout=−GMr