Question
Two charges –q and +q are located at points (0, 0, -a) and (0, 0, a), respectively.
What is the electrostatic potential at the points (0, 0, z) and (x, y, 0)?
Solution
Given,
two charges -q and +q are located at (0,0,-a) and (0,0,a) respectively.
We have to find electrostatic potential at (0,0,z) and (x,y,0) [see fig. given below].

Electrostatic potential at point P(0,0,z) when closer to charge +q is given by:

two charges -q and +q are located at (0,0,-a) and (0,0,a) respectively.
We have to find electrostatic potential at (0,0,z) and (x,y,0) [see fig. given below].

Electrostatic potential at point P(0,0,z) when closer to charge +q is given by:

where p = q.(2a) is the dipole moment.
Electrostatic potential at P(0,0,z) when closer to charge -q is given by [see fig. below] :
So potential at point P (0, 0, ± z) is
Now, Electrostatic potential at point (x, y, 0 ) is
Therefore, Electrostatic potential at point (x,y,0) is equal to 0.