When we find the gravitational field on an object that lies inside Earth we simplify the problem by considering the sphere whose radius is the distance of the object from the center of Earth. We use mass of this sphere to find gravitational pull. How do we come to know this?
The way I visualise this is, divide the sphere by a plane* passing through the point object dividing the sphere into two portions. The portion above the object will try to pull it upwards while the portion below it will try to pull downwards. What is wrong with this approach?
*(plane passes such that volume of one portion is minimum whereas volume of the other portion is maximum, unless object is at center then both have equal volumes)