The work done by the electric field is given by: where q is the charge, and is the potential difference between point A and B. But the potential difference is equal to where E is the intensity of the electric field, while d is the distance between the two points A and B. Therefore, the work done by the field is