The gravtational potential energy at a point due to an object ( if it is not in bulk of object ) is given by =
P E.= -(GMm)/r.
on raising to a height H
PE= - (GMm)/(r+H)
Change in PE = - (GMm)/(r+H) - [-(GMm)/r.)] = GMm [(1/r)-(1/r+H)] = mgh/ 1+h/R
hope you understand this