L l----D------l L
--------------------- ---------------------
l---x---ldxl l---t----ldtl
Let us assume the two rods placed as above,
Consider the small element dx of first rod at a distance x from the point extreme left to it.
Also consider the line element dt on second rod at a distance t from the point extreme left to it.
Force on line element dt due to element dx is given by
dF = k dq1 dq2 / (L - x + D + t)2
here dq1 = Qdx/L and dq2 = Qdt/L
Thus dF = k Q2 dx dt / L2 (L - x + D + t)2
Now force due to element dx of rod 1 on the entire rod 2 is
dF12 = 0∫L k Q2 dx dt / L2 (L - x + D + t)2
or dF12 = (k Q2 / L2 )dx 0∫L dt / (L - x + D + t)2
Similarly force on rod 2 due to 1 is
F12 = 0∫L [ (k Q2 / L2 ]dx 0∫L dt / (L - x + D + t)2
Evaluate this integral to find the force on one rod due to another.