Dependence of intensity of gravitational field (E) of earth with distance (r) from centre of earth is correctly represented by
For a point inside the earth i.e. r < R
where M and R be mass and radius of the earth respectively. At the centre, r = 0
For a point outside the earth i.e. r > R,
On the surface of the earth i.e. r = R
The variation of E with distance r from the centre is as shown in the figure.