Let mass of body dropped = m
mass of earth = M
radius of earth = R
where ρ is mean density of earth
Let R be the depth of the body fallen from centre then g at the point is
where m’ is mass of sphere of radius (R – d)
Hence acceleration is proportional to displacement and in opposite direction go on SHM.