A straight rod of length L extends form x=a to x=L+a. The gravitational force on a point mass m at x=0 if the mass per unit length of the rod is (A+Bx2), is