I have to find gradient of: $$ f = \frac{\mathrm{ln}(kr)}{r} $$
It is well-known that:
$$\mathrm{grad} = \frac{\partial}{\partial{x}}\vec{i} + \frac{\partial}{\partial{y}}\vec{j} + \frac{\partial}{\partial{z}}\vec{k}$$
but neither $r$ nor $k$ is vector here, (it is also well known that division of vectors is normally undefined, so $r$ cannot be the vector by defenition), how should I handle this then?
grad($f$)$=(\hat i\frac{\delta}{\delta x}+\hat j\frac{\delta}{\delta y}+\hat k\frac{\delta}{\delta z})f$
Now, $\frac{\delta}{\delta x}(\frac{\mathrm{ln}(kr)}{r})=\frac{1}{r^2}\frac{\delta r}{\delta x}+\mathrm{ln}(kr) (\frac{-1}{r^2})\frac{\delta r}{\delta x}$
As $r^2=x^2+y^2+z^2$, On differentiating partially w.r.t. $x$ you will get $\frac{\delta r}{\delta x}=\frac{x}{r}$. Plug it in the above to get the value of partial derivative $\frac{\delta}{\delta x}(\frac{\mathrm {In}(kr)}{r}) $. Similarly you can obtain $\frac{\delta}{\delta y}(\frac{\mathrm{In}(kr)}{r})$ and $\frac{\delta}{\delta z}(\frac{\mathrm{In}(kr)}{r})$.