I have a trouble understanding the electric dipole moment.
The electric dipole moment formula is $${\bf p}= \int {\bf r}' \rho({\bf r}')d\tau '$$ I'm interested in the coordinate, the origin of which is changed into $\bf a$. $${\bf r}' = {\bar {\bf r}}' + {\bf a}$$ Now calculate dipole moment in the new coordinate \begin{align} {\bar {\bf p}} &= \int {\bar {\bf r}}' \rho ({\bar {\bf r}}') d\bar\tau' \\ &= \int ({\bf r}'-{\bf a}) \rho ({\bar {\bf r}'}) d\bar\tau' \end{align} In Griffiths, it says $$\rho ({\bar {\bf r}}') = \rho ({{\bf r}}') $$ so that yields ${\bar {\bf p}}= {\bf p} - Q {\bf a}$.
I don't understand how to verify $\rho ({\bar {\bf r}}') = \rho ({{\bf r}}') $.