I am trying to find the divergence of this field: $E = \frac{q(1-\sqrt{\alpha r})}{4 \pi \epsilon r^2} \hat r$
I already found the surface integral, that is, $\int EdS = \frac{q(1-\sqrt{\alpha r_{1}})}{\epsilon}$
I am having trouble to evaluate how to calculate the divergence by the definition now. (It has to be by definition
If $\vec{E}=f(r)\hat{r}$ then integration over the radius-$r_1$ circle centred on the origin gives$$\int\vec{E}\cdot d\vec{S}=\int f(r)\hat{r}\cdot(dS)\hat{r}=\int f(r)dS=\int f(r_1)dS=f(r_1)\int dS=4\pi r_1^2f(r_1).$$