I've two questions, the second one depends on the first.
$\mathbf{1}$
How exactly is polarisation defined? Griffiths says
$\mathbf{P} \equiv$ dipole moment per unit volume
How exactly do we go about calculating it?
For example if I need to find the value of $\mathbf{P}$ at some point do we take a small volume around that point enclosing few hundred/thousand atoms, add up the dipole moments and divide by the volume? And similarly repeat the process to find the value of Polarisation everywhere?
$\mathbf{2}$
Suppose I have to find the potential due to a polarised body far away from it. I can find it by adding up the individual contribution of each dipole. Since the field point is far away I can safely assume that the potential of each dipole can be written as $$V_{\mathrm{dip}}(\mathbf{r})=\frac{1}{4 \pi \epsilon_{0}} \frac{\mathbf{p} \cdot \hat{\mathbf{r}}}{r^{2}}$$
All I've to do is to add up the contributions of each individual dipole.
However an alternate equation is presented which too gives us the potential and is as $$V(\mathbf{r})=\frac{1}{4 \pi \epsilon_{0}} \int_{\mathcal{V}} \frac{\mathbf{P}\left(\mathbf{r}^{\prime}\right) \cdot \hat{r}}{r^{2}} d \tau^{\prime}$$
How can one justify that the second equation is correct and gives us the value of potential?
MORE DETAIL: Dear Urb said that :
"Instead of doing a sum $$\sum_{i=1}^N\frac{1}{4 \pi \varepsilon_{0}} \frac{\mathbf{p}_i \cdot \hat{\mathbf{r}}}{r^{2}}$$ over all $N$ dipoles inside the body, we just chop the body into little pieces of volume $d\tau'$, assign to each piece a dipole moment $\mathbf P(\mathbf r')d\tau'$ and integrate over the entire body".
But we can't chop the body into $d\tau'$ elements and use the integral of $\mathbf P(\mathbf r')d\tau'$ . Because $d\tau'$ is infinitesimal.
We know that $P$ was an average over a small but not infinitesimal volume element and if we use $$V(\mathbf{r})=\frac{1}{4 \pi \epsilon_{0}} \int_{\mathcal{V}} \frac{\mathbf{P}\left(\mathbf{r}^{\prime}\right) \cdot \hat{r}}{r^{2}} d \tau^{\prime}$$
we have implicitly assumed $P$ to be an average over an infinitesimal volume element which isn't how we initially defined it.