Average density of the earth-
Acceleration due to gravity is,
g=GMR2.........(1)
densityρ=MV
M=ρV
M=43πR3ρ
Put this value of M in equation (1)
g=43πR3ρR2
g∝ρ
Density is directly proportional to acceleration due to gravity.