[Math] Gradient in cylindrical coordinates

coordinate systemsderivativesdifferential-geometry

This is more of a maths question, but several sources point at different expressions for the gradient in cylindrical coordiantes.

Sometimes I see the radial component for the gradient of a scalar function $\nabla f$ written as $\frac{1}{r} \frac{ \partial}{\partial r}(rf)$ while sometimes I see just $\frac{ \partial}{\partial r}$. Which version is correct?

I'm applying it to a scalar potential $\phi$ that involves Bessel functions. Fore reference, $\phi = Ae^{-kz} ( B_1 \cos{n \theta} + B_2 \sin{n \theta}) J_n(kr) $ where $J_n(kr)$ is the Bessel function of the first kind.

Best Answer

Given a function in cylindrical coordinates $f(r, \phi, z)$, the gradient of $f$ is

$$\nabla f = \frac{\partial f}{\partial r} \textbf{e}_r + \frac{1}{r}\frac{\partial f}{\partial \phi} \textbf{e}_\phi + \frac{\partial f}{\partial z} \textbf{e}_z,$$

where $\{\textbf{e}_i\}_\text{cyl}$ is the standard orthonormal basis in cylindrical coordinates. One can obtain this formula simply by finding the directional derivatives of $f$ in Cartesian coordinates with respect to the elements of $\{\textbf{e}_i\}_\text{cyl}$.

Related Question