The magnitude of the gravitational field at distance 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=r12r22 if r1<R and r2<R
The uniform solid sphere
F=GM/R3×rF1=GMR3.r1 & F2=GMR3.r2F1F2=r1r2
(or) Outside the solid sphere, magnitude of gravitational fieldF=GMr2F1=GMr12;F2=GMr22F1F2=r22r12