Step 1: An element of the rod at position \(x\) of width \(dx\) has mass \(dm = \mu(x)\,dx = (A+Bx^2)\,dx\), so it attracts the point mass \(m\) at the origin with force \(dF = \dfrac{Gm\,dm}{x^2} = \dfrac{Gm(A+Bx^2)}{x^2}dx\).
Step 2: Split the integrand: \( dF = Gm\left(\dfrac{A}{x^2}+B\right)dx \), then integrate each piece separately from \(x=a\) to \(x=a+L\).
Step 3: The first piece gives \( GmA\displaystyle\int_a^{a+L}\dfrac{dx}{x^2} = GmA\left(\dfrac{1}{a}-\dfrac{1}{a+L}\right)\); the second gives \( GmB\displaystyle\int_a^{a+L}dx = GmBL \).
Step 4: Add the two pieces together, keeping the common factor \(Gm\) outside:\[ \boxed{F = Gm\left[A\left(\frac{1}{a}-\frac{1}{a+L}\right)+BL\right]} \]