The magnitudes of the gravitational force at distances r1 and r2 from the centre of a uniform sphere of radius R and mass M are F1 and F2 respectively. Then
F1F2=r1r2 if r1<R and r2<R
F1F2=r12r22 if r1>R and r2>R
F1F2=r1r2 if r1>R and r2>R
F1F2=r22r12 if r1<R and r2<R
g=43πρGr ∴g∝r if r<Rg=GMr2 ∴g∝1r2 if r>R
If r1<R and r2<R then F1F2=g1g2=r1r2
If r1>R and r2>R then F1F2=g1g2=r2r12