Hmm, I can't follow. Above, the energy U is not a function of distance x.
The force on a probe charge in electrostatics is usually
F = q*E = -q*dU/dx
with E(x) for the electric field, q for the charge of the test object and U(x) for the ELECTRIC POTENTIAL (same units as VOLTAGE, not energy). I...