The acceleration due to gravity on the surface of the earth is
g=GMR2 −−−−−−−−−−−−−−−−(1)
Consider p be the density of the material of the earth
mass=volume×density
M=43πR3×p
Now substituting in equation (1)
g=GR2×43πR3×p=43πGRp −−−−−−−−−−−(2)
Now, Consider the body be taken to the depth d below the surface of the earth.
Then, the acceleration due to gravity at the depth below the surface of the earth is
gd=43πG(R−d)p −−−−−−−−−(3)
Now, divide equation (3) by (2)
gdg=R−dR=(1−dR)gd=g(1−dR)
This is an expression for the acceleration due to gravity at the depth below the surface of the earth and this expression shows the acceleration due to gravity decrease as we move down into the earth. and At the center of the earth d=R.
Hence, Acceleration due to gravity at the center of the earth is 0