Acceleration due to gravity 'g' in terms of mean density of the Earth 'd' and radius 'R' is:
(G is universal gravitational constant)
RdG
The expression of 'g' on the Earth is, g = GMR2
M is mass of the Earth
We know density is, d = MV
So, M = density × volume
volume = 43πR3
M = d × 43πR3
By substituting these into the expression we obtain ‘g’ in terms of ‘d’ and G
g=GMR2
=G×d×43πR3R2
=43πRdG