Skip to main content

Section 12.4 The Divergence in Curvilinear Coordinates

Figure 12.4. Computing the radial contribution to the flux through a small box in spherical coordinates.

The divergence is defined in terms of flux per unit volume. In Section 12.1, we used this geometric definition to derive an expression for \(\grad\cdot\FF\) in rectangular coordinates, namely

\begin{gather*} \grad\cdot\FF = \frac{\textrm{flux}}{\textrm{unit volume}} = \Partial{F_x}{x} + \Partial{F_y}{y} + \Partial{F_z}{z} . \end{gather*}

Similar computations to those in rectangular coordinates can be done using boxes adapted to other coordinate systems. Not surprisingly, this introduces some additional scale factors such as \(r\) and \(\sin\theta\text{.}\) For instance, consider a radial vector field of the form

\begin{gather*} \EE = E_r\,\rhat \end{gather*}

where \(\rhat\) is the unit vector in the radial direction. The electric field of a point charge would have this form. What is the flux of \(\EE\) through a small box around an arbitrary point \(P\text{,}\) whose sides are surfaces with one of the spherical coordinates held constant, as shown in Figure 12.4? Only the two sides which are parts of spheres contribute, and each such contribution takes the form

\begin{gather*} \EE\cdot d\AA = \pm E_r \,r^2\sin\theta\,d\theta\,d\phi . \end{gather*}

An argument similar to the one used in rectangular coordinates leads to

\begin{gather*} \EE\cdot d\AA = \Partial{}{r}\Bigl(r^2 E_r\Bigr) \sin\theta\,dr\,d\theta\,d\phi = \frac{1}{r^2} \Partial{}{r}\Bigl(r^2 E_r\Bigr) \,\dV \end{gather*}

where it is important to note that the factor of \(r^2\) must also be differentiated. It now finally follows that

\begin{gather*} \grad\cdot\EE = \frac{1}{r^2} \Partial{}{r}\Bigl(r^2 E_r\Bigr) . \end{gather*}

This expression only gives the divergence of the very special vector field \(\EE\) given above. The full expression for the divergence in spherical coordinates is obtained by performing a similar analysis of the flux of an arbitrary vector field \(\FF\) through our small box; the result can be found in Appendix B.1. This formula, as well as similar formulas for other vector derivatives in rectangular, cylindrical, and spherical coordinates, are sufficiently important to the study of electromagnetism that they can, for instance, be found on the inside front cover of Griffiths' textbook, Introduction to Electrodynamics.