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.
I'll start things off by mentioning this is, in fact, a quite interesting potential, as it is the potential of a dipole (If you are interested take a look at chapter 3.4 Multipole expansion in Introduction to electrodynamics by David J. Griffiths). Now, to answer your question, it seems your dot product evaluation is wrong. Note that in spherical coordinates, the dot product of two vectors is different. If you would like to derive it consider your vectors in cartesian form, compute the dot product and plug in the spherical coordinate transforms. However, it does hold in general that: $$\mathbf{v_1} \cdot \mathbf{v_2} = || \mathbf{v_1} || \, || \mathbf{v_2} || \cos(\theta),$$ as you may know. So, for this question you should exploit this fact and choose a spherical coordinate system such that $\mathbf{p}$ is in the z-direction. Then, in this coordinate system, we have that: $$\psi(r) = \frac{\mathbf{p} \cdot \mathbf{r}}{4 \pi \epsilon_0 r^3} = \frac{\mathbf{p} \cdot \hat{\mathbf{r}}}{4 \pi \epsilon_0 r^2} = \frac{p \cos(\theta)}{4 \pi \epsilon_0 r^2},$$ where $p = ||\mathbf{p}||$. Now, you can apply the gradient in spherical coordinates to find that: $$\mathbf{E}(r,\theta,\phi) = \frac{p}{4 \pi \epsilon_0 r^3} (2 \cos (\theta) \hat{\mathbf{r}} + \sin (\theta) \hat{\boldsymbol{\theta}}).$$ Now, noting that $\mathbf{p} = (\mathbf{p} \cdot \hat{\mathbf{r}}) \hat{\mathbf{r}} + (\mathbf{p} \cdot \hat{\boldsymbol{\theta}}) \hat{\boldsymbol{\theta}} = p \cos (\theta) \hat{\mathbf{r}} - p \sin (\theta) \hat{\boldsymbol{\theta}}$, the electric field can be rewritten to a coordinate free form: $$\mathbf{E}(r,\theta,\phi) = \frac{p}{4 \pi \epsilon_0 r^3} (2 \cos (\theta) \hat{\mathbf{r}} + \sin (\theta) \hat{\boldsymbol{\theta}}) = \frac{1}{4 \pi \epsilon_0 r^3} (3 p \cos (\theta) \hat{\mathbf{r}} - (p \cos(\theta) \hat{\mathbf{r}} - p \sin (\theta) \hat{\boldsymbol{\theta}})),$$ which simplifies to: $$\mathbf{E}(\mathbf{r}) = \frac{3 \hat{\mathbf{r}} (\mathbf{p} \cdot \hat{\mathbf{r}}) - \mathbf{p}}{4 \pi \epsilon_0 r^3}.$$ (There seems to be a small mistake in the solution manual answer you provide). Anyways, to answer your second question, you are referring to the electric fields produced by electric monopoles. As you noticed the potential of a dipole falls off with $\frac{1}{r^2}$ and as such the electric field falls off with $\frac{1}{r^3}$. This is to say general electric field do not behave this way (An extremely simple example is a constant electric field). If you are interested in learning more, check out the reference I mentioned at the beginning.