There's an exercise in Arfken's Mathematical Methods for Physicists that asks the reader to evaluate $\mathbf{E}=-\nabla\psi(r)$ at the point $\mathbf{r}$ of the following scalar field: \begin{equation}\psi(r)=\frac{\mathbf{p}\cdot\mathbf{r}}{4\pi\epsilon_0r^3}\end{equation} Where $\mathbf{p}$ is a constant vector. For such, I used spherical coordinates $(r,\theta,\phi)$. The gradient in spherical coordinates is as follows: \begin{equation}\nabla\psi=\hat{e}_r\dfrac{\partial\psi}{\partial r}+\hat{e}_{\theta}\frac{1}{r}\dfrac{\partial\psi}{\partial\theta}+\hat{e}_\phi\frac{1}{r\sin\theta}\dfrac{\partial\psi}{\partial\phi}\end{equation} Where we suppose an ortogonal basis $\{\hat{e}_r,\hat{e}_\theta,\hat{e_\phi}\}$. Writing $\mathbf{p}$ in spherical coords yields an nice result for the dot product: \begin{equation}\mathbf p=p_r\hat{e}_r+p_\theta\hat e_\theta+p_\phi\hat e_\phi\implies\mathbf{p}\cdot\mathbf r=rp_r\end{equation} Therefore, the potential in spherical coords is: \begin{equation}\frac{p_r}{4\pi\epsilon_0 r^2}\end{equation} It's therefore clear that the only derivative in the gradient that won't vanish is that wrt $r$, which is: \begin{equation}\dfrac{\partial\psi}{\partial r}=\frac{-2p_r}{4\pi\epsilon_0 r^3}\implies E=\frac{2p_r}{4\pi\epsilon_0r^3}\hat{e}_r=\frac{p_r}{2\pi\epsilon_0r^3}\hat e_r\end{equation}
This seemed simple, but there's two problems here:
(i) The books's solution manual states the answer as: \begin{equation}\mathbf{E}(\mathbf r)=\frac{3\hat{r}(\mathbf p\cdot\mathbf r)-\mathbf p}{4\pi\epsilon_0 r^3}\end{equation}
It's not clear to me how $p_r$ is equiv to what's written on this numerator, or if they're the same at all.
(ii) This dependance with $r^{-3}$ just seems wrong. That's not how Electric Fields behave. Ofc, in the coordinates I used the potential turned out fine a priori, but it's not clear for me in both the results (mine and the solutions one) that the numerator has the same unities as $r$, which would reduce the thing as a whole to the usual inverse square law.
Any help will be appreciated.