(a) Equipotential surfaces due to two identical charges is shown in fig.

(b) Potential energy of a system of two charges in an external electric field. Suppose q1 and q2 are two charges brought from infinity at locations vector r1 and vector r2 respectively in an external electric field.
Let V(vector r1) and V(vector r2) be the potentials at positions vector r1 and vector r2 due to external electric field vector E. In this case work is done in bringing charges q1 and q2 against their own electric fields and external electric fields.
Work done in bringing charge q1 from ∝ at location vector r1 is W1 = q1V (vector r1)
Work done in bringing q2 against the electric field at location vector r2 is W2 = q2V(vector r2)
Work done on q2 against the electric field due to q1 is


∴ Potential energy of system = Work done in assembling the configuration
