A body is released from a point distance r from the center of earth. If R is the earth r > R, then the velocity of the body at the time of striking the earth will be:
(PE)height=(PE)surface+(KE)surface−GMmr=−GMmR+12mv2∴12v2=GM(1R−1r)⇒v=√2GMR(r−Rr)RR⇒√2GMRR(r−Rr)⇒√2gR(r−R)r