If the Earth is considered as a collection of concentric shells, and a point mass is at a point P inside the Earth (at a distance r from the center), which shells contribute to the gravitational force on P?
The NCERT states, 'For the shells of radius greater than r, the point P lies inside. Hence according to result stated in the last section, they exert no gravitational force on mass m kept at P. The shells with radius $\le r$ make up a sphere of radius r for which the point P lies on the sur face. This smaller sphere therefore exerts a force on a mass m at P as if its mass Mr is concentrated at the centre.'