I am trying to understand how $\sigma_b=\vec P \cdot \hat n$.
In wikipedia I found the correct derivation but I don't understand some things. There it is said:
The bound surface charge is the charge piled up at the surface of the time dielectric, given by the dipole moment perpendicular to the surface: $q_b=\frac {\vec d \cdot \hat n}{|\vec s|}$ where $\vec s$ is the separation between the point charges constituting the dipole, $\vec d$ is the electric dipole moment, $\hat n$ is the unit normal vector to the surface.
Where does this come from? That bound charge is related somehow to the electric dipole. Plus the electric dipole has zero net charge, if you would pile them up in the surface wouldn't you get zero charge and zero surface charge density as a result?
Then we have:
Taking infinitesimals: $dq_b=\frac{d \vec d}{|\vec s|}\cdot \hat n$
and dividing by the differential surface element dS gives the bound surface charge density:
$$\sigma_b=\frac{dq_b}{dS}=\frac{d \vec d}{|\vec s|dS} \cdot \hat n=\frac{d \vec d}{dV} \cdot \hat n$$
Why is : $|\vec s|dS=dV$ ?