If r≤R, then E=R3GM(r)⟹E∝r
⟹E2E1=r2r1 if r1<R and r2<R
If r≥R, then E=r2GM⟹E∝r21
⟹E2E1=r12r22 if r1>R and r2>R