Question
Calculate the potential at P due to the charge configuration as shown in the following figure.
If r >> a, then how will you modify the result?
Solution

The charge configuration is as shown in the above fig.
Potential at P is the sum of the potentials due to charges –q, +q and +q which, are at a distance r+a, r and r-a respectively from point P.
if, then
Note: When r >> a, the potential at P is simply the potential of a dipole and an isolated charge at distance r.