(a) Find the divergence of the function
v=\frac{\hat{r} }{r}
First compute it directly, as in Eq. 1.84. Test your result using the divergence theorem, as in Eq. 1.85. Is there a delta function at the origin, as there was for \hat{r}/r^2 ?What is the general formula for the divergence of r^n \hat{r} [Answer: ∇.\left(r^n \hat{r} \right) =(n + 2)r^{n -1} , unless n = −2, in which case it is 4\pi \delta ^3(r) ; for n < −2, the divergence is ill-defined at the origin.]
(b) Find the curl of r^n \hat{r} . Test your conclusion using Prob. 1.61b. [Answer: ∇\times \left(r^n \hat{r} \right)=0 ]
∇\cdot v=\frac{1}{r^2} \frac{\partial}{\partial r}\left(r^2\frac{1}{r^2} \right) =\frac{1}{r^2} \frac{\partial}{\partial r} (1)=0 (1.84)
\oint{}v · da =\int{} \left(\frac{1}{R^2}\hat{r} \right)\cdot \left(R^2\sin \theta d\theta d\phi\hat{r} \right)=\left(\int_{0}^{\pi }{}\sin \theta d\theta \right) \left(\int_{0}^{2\pi }{}d\phi \right) =4\pi (1.85)