Y uses the -GMm/r formula for E_p, which is a result of assuming gravity is varying (namely GM/r^2 at radial distance r).
$\noindent That is, $-\frac{GMm}{r} = -\int_{\infty}^{r} -m\frac{GM}{\rho^2}\, \mathrm{d}\rho$.$
(To recall the mathematical definition of potential energy and how it...