Gravitation between particle and rod. Simple integration. Problem with answer.

I have attempted a basic gravitation question from “Classical Mechanics” R. Douglas Gregory (1st ed). I get the answer provided at the back of the book, but it doesn't make sense to me. Can someone help me interpret the answer?

Question: Pg 71, Q3.3

A uniform rod of mass M and length 2a lies along the interval [-a, +a] of the x-axis and a particle of mass m is situated at the point x = x' (*). Find the gravitational force exerted by the rod on the particle.
<< end of first part of question >>

(*) Although not explicitly stated this means the particle is lying on the rod on the x-axis.

Approach:

Using the method from a previous example, split the rod into short segments of length [itex]\delta x[/itex] then applying the inverse square law for universal gravitation the force of attraction between the particle and that small section of the rod is:

To get around this problem assume that the forces equal distant from x' cancel. If x' = 0, then the force is zero. If x' < 0, then the net force is the force from (2 x' + a) to (+a). If x' > 0, then the net force is the force from (-a) to (2 x' - a). If x = -a or +a, then there there are no forces to cancel and the force is ∞. If x < -a or x > +a, then the net force is the force from -a to +a.

If the rod had finite diameter, then the rod could be considered as a series of thin disks, and the math for intensity is covered here:

For gravitational intensity, replace k with G, and σ becomes mass per unit area of the disk. Force equals intensity times mass of particle. In this case, as the distance from a disk of finite radius approaches zero, the intensity approaches a constant (2 π G σ ) instead of ∞, so the problem is solvable.

I'm going to approach this problem by cancelling ``balanced'' forces then integrating what is left.

If the particle is at position [itex]x^\prime[/itex] then its distance from the right-hand end (+a) is [itex]a - x^\prime[/itex]. I'm assuming that [itex]x^\prime[/itex] is in the positive part of the x-axis but I'm pretty confident the argument works wherever it is located along the rod.

So the forces from that part of the rod to the right of the particle at position [itex]x^\prime[/itex] are equal and opposite to the forces from same length of rod to the left of the particle. The left-hand point on the rod giving equal length to the portion of the rod to the right of the particle ends at position [itex]x^\prime - (a - x^\prime) = 2x^\prime - a[/itex]. Therefore we can ``cancel" the right-directed and left-directed forces acting on particle between [itex]2x^\prime - a[/itex] and [itex]+a[/itex] on the rod. So the integral for the ``remaining force'' at the far left of the rod is

This is subtly different from the expression in my first post because of this [itex]\frac{x^\prime}{a}[/itex] term multiplying the whole expression for the force.

Now I will substitute some particular values.

If [itex]{x^\prime} = 0[/itex], this is equivalent to the particle being positioned at the middle of the rod. The [itex] \frac{x^\prime}{a}\left(\frac{GMm}{a^2 - (x^\prime)^2} \right)[/itex] equals zero. This makes sense because the forces pulling the particle to the left and right are equal and opposite.

If [itex]{x^\prime} = +a[/itex], this is equivalent to the particle being positioned at the right-hand end of the rod. The [itex] \frac{x^\prime}{a}\left(\frac{GMm}{a^2 - (x^\prime)^2} \right)[/itex] now has a zero denominator and we are back into the ``infinity'' situation.

Can this question be solved by this method or is there no solution in this ``zero thickness rod'' situation?

The infinity solution is bound to come, due to the test particle being infinitesimally close (infact sitting on) to the rod. For example, assume that in place of rod, there are two particles, one at x = -a, one at x = +a. You can find finite expression for force at all places except x = -a or +a, because force is infinite there.

Suppose the test particle is at (a - [tex]\delta[/tex](a very small value)). You agree the force won't be infinite as long as [tex]\delta[/tex] is finitely small?

For any other point inside the rod, you assumed that the -x' to +x' part cancels out, right? In doing this, you really jumped over the point where your test particle was sitting. (sorry if the language is not perfect, i'm bad at this :uhh:) For the end point, you can't do this because there nothing on the other side.