so let it be at a distance x from the half of line ab
the force will be
and this will be along the hpothenese the horizontal components of te forces will cancel each other out
and the total force will be the sum of the vertical component of the forces =
and here r2=x2+d2/4 and costhetha=
solving we get Qx/(x2+d2/4)3/2
for MAXIMUM value d/dx x/(x2+d2/4)3/2=0
solve and get the answer