Obtain the expression for the potential due to an electric dipole of dipole moment p at a point V on the axial line

(a) Obtain the expression for the potential due to an electric dipole of dipole moment p at a point V on the axial line.
(b) Two identical capacitors of plate dimension xb and plate separation d have dielectric slabs filled in between the space of the plates as shown in the figures.