The direction of vector A is radially outward from the origin, with \(|A|=kr^{n}\) where \(r^{2}=x^{2}+y^{2}+z^{2}\) and \(k\) is a constant. The value of \(n\) for which \(\bigtriangledown \cdot A=0\) is
Show the worked solution\(|A|=k r^{n}\)
\(\vec{A}=k r^{n} \hat{a}_{r}\) (since it is radially outward)
\(\nabla \cdot \vec{A}\) in spherical coordinate is\[\begin{aligned} \nabla \cdot \vec{A} &=\frac{1}{r^{2}} 2 \frac{\partial}{\partial A}\left(r^{2} A_{r}\right)+\frac{1}{r \sin \theta} \frac{\partial}{\partial r}\left(A_{0} \sin \theta\right)+\frac{1}{r \sin \theta} \frac{\partial}{\partial \phi} A_{0} \\ & \nabla \cdot \vec{A}=\frac{1}{r^{2}} \frac{\partial}{\partial r}\left(r^{2} k r^{n}\right)+0+0 \\ & \nabla \cdot \vec{A}=\frac{k}{r^{2}} \frac{\partial}{\partial r_{2}}\left(r^{n+2}\right) \end{aligned}\]So, \(\nabla \cdot \vec{A}\) will be zero if \(\frac{\partial}{\partial r}\left(r^{n+2}\right)\) will be zero.
and \(\frac{\partial}{\partial r}\left(r^{n+2}\right)\) will be zero if \(r^{n+2}\) will be constant
and this is possible if \(n+2=0 \Rightarrow n=-2\)
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com