find the work done by the external agent (assume short dipole).