Mahima Kanawat
For such type of questions you have to first understand the meaning of differentiation and integration.Differentiation means slope and integration means area or sum up.Here , the gravitational force changes with distance and changes at every point.so you have to find it all points and sum it .So you will have to use integaration here to sum up or interate force at all points.