Starting from the centre of the earth having radius R, the variation of (acceleration due to gravity) is shown by [2016]
(2)

Acceleration due to gravity is given by