A mass m is at a distance a from one end of a uniform rod of length l and M. The gravitational force on the mass due to the rod is
Considering mass per unit length mass of a small portion at distance x. Force due to small portion
Total fore