Curvilinear Coordinates

1.4: Curvilinear Coordinates #

1.4.1: Spherical Coordinates #

You can label a point P by its Cartesian coordinates (x, y, z), but sometimes it is more convenient to use spherical coordinates \( (r, \theta, \phi) \); \( r \) is the distance from the origin (the magnitude of the position vector r), \( \theta \) (the angle down from the z axis) is called the polar angle, and \( \phi \) (the angle around from the x axis) is the azimuthal angle. Their relation to Cartesian coordinates can be read trigonometrically from Fig 1.36:

Figure 1.36

\[x = r \sin \theta \cos \phi, \qquad y = r \sin \theta \sin \phi, \qquad z = r \cos \theta \tagl{1.62}\]

Figure 1.36 also shows three unit vectors, \( \vu{r}, \vu{\theta}, \vu{\phi} \), pointing in the direction of increase of the corresponding coordinates. They constitute an orthogonal (mutually perpendicular) basis set (just like \( \vu{x}, \vu{y}, \vu{z} \)), and any vector A can be expressed in terms of them, in the usual way:

\[\vec{A} = A_r \vu{r} + A_\theta \vu{\theta} + A_\phi \vu{\phi} \tagl{1.63}\]

\( A_r, A_{\theta}, A_{\phi} \) are the radial, polar, and azimuthal components of A. In terms of the Cartesian unit vectors,

\[\begin{aligned} \vu{r} & = \sin \theta \cos \phi \vu{x} + \sin \theta \sin \phi \vu{y} + \cos \theta \vu{z} \\ \vu{\theta} & = \cos \theta \cos \phi \vu{x} + \cos \theta \sin \phi \vu{y} - \sin \theta \vu{z} \\ \vu{\phi} & = - \sin \phi \vu{x} + \cos \phi \vu{y} \end{aligned} \tagl{1.64}\]

as you can check for yourself (Prob 1.38).

There is a poisonous snake lurking here that I’d better warn you about: \( \vu{r} \) , \( \vu{\theta} \), and \( \vu{\phi} \) are associated with a particular point P, and they change direction as P moves around. For example, \( \vu{r} \) always points radially outward, but “radially outward” can be in the x direction, the y direction, or any other direction, depending on where you are. In Fig. 1.37, \( \vec{A} = \vu{y} \) and \( \vec{B} = - \vu{y} \), and yet both of them would be written as \( \vu{r} \) in spherical coordinates. One could take account of this by explicitly indicating the point of reference: \( \vu{r}(\theta, \phi), \vu{\theta}(\theta, \phi), \vu{\phi}(\theta, \phi) \), but this would be cumbersome, and as long as you are alert to the problem, I don’t think it will cause difficulties. In particular, do not naively combine the spherical components of vectors associated with different points (in Fig. 1.37, \( \vec{A} + \vec{B} = 0 \), not \( 2 \vu{r} \), and \( \vec{A} \cdot \vec{B} = -1 \) , not \( +1 \)). Beware of differentiating a vector that is expressed in spherical coordinates, since the unit vectors themselves are functions of position (\( \partial \vu{r} / \partial \theta = \vu{\theta} \), for example). And do not take \( \vu{r}, \vu{\theta}, \vu{\phi} \) outside an integral, as I did with the Cartesian unit vectors. In general, if you’re uncertain about the validity of an operation, rewrite the problem using Cartesian coordinates, for which this difficulty does not arise.

Figure 1.37

An infinitesimal displacement in the \( \vu{r} \) direction is simply dr (Fig. 1.38a), just as an infinitesimal element of length in the x direction is dx:

\[\dd l_r = dr \tagl{1.65}\]

Figure 1.38

On the other hand, an infinitesimal element of length in the \( \vu{\theta} \) direction (Fig 1.38b) is not just \( \dd \theta \) - that doesn’t even have the right units for a length! Rather,

\[\dd l_{\theta} = r \dd \theta \tagl{1.66}\]

Similarly, an infinitesimal element of length in the \( \vu{\phi} \) direction (Fig 1.38c) is

\[\dd l_{\phi} = r \sin \theta \dd \phi \tagl{1.67}\]

so that we can write the general infinitesimal displacement as

\[\dd \vec{l} = \dd r \vu{r} + r \dd \theta \vu{\theta} + r \sin \theta \dd \phi \vu{\phi} \tagl{1.68}\]

This plays the role that \( \dd x \vu{x} + \dd y \vu{y} + \dd z \vu{z} \) played in Cartesian coordinates.

The infinitesimal volume element \( \dd \tau \) in spherical coordinates, is the product of the three infinitesimal displacements:

\[\dd \tau = \dd l_r \dd l_{\theta} \dd l_{\phi} = r^2 \sin \theta \dd r \dd \theta \dd \phi \tagl{1.69}\]

I cannot give you a general expression for surface elements \( \dd \vec{a} \) , since these depend on the orientation of the surface. You simply have to analyze the geometry for any given case (this goes for Cartesian and curvilinear coordinates alike). If you are integrating over the surface of a sphere, for instance, then \( r \) is constant, whereas \( \theta \) and \( \phi \) change (Fig. 1.39), so

\[\dd \vec{a}_1 = \dd l_\theta \dd l_\phi \vu{r} = r^2 \sin \theta \dd \theta \dd \phi \vu{r}\]

On the other hand, if the surface lies in the xy plane, say, so that \( \theta \) is constant (\( \pi / 2 \)) while \( r \) and \( \phi \) may vary, then

\[\dd \vec{a}_2 = \dd l_r \dd l_{\phi} \vu{\theta} = r \dd r \dd \phi \vu{\theta}\]

Notice, finally, that \( r \) ranges from \( 0 \) to \( \infty \), \( \phi \) from \( 0 \) to \( 2 \pi \), and \( \theta \) from \( 0 \) to \( \pi \).

Figure 1.39

Example 1.13 #

Find the volume of a sphere of radius R

Well, we know that we should get \( \frac{4}{3} \pi R^3 \). Let’s see what happens…

\[\begin{aligned} V & = \int \dd \tau = \int_{r = 0} ^R \dd r \int_{\theta = 0} ^{\pi} r \dd \theta \int_{\phi = 0} ^{2 \pi} r \sin \theta \dd \phi \\ & = \left( \int_{0} ^R r^2 \dd r \right) \left( \int_0 ^\pi \sin \theta \dd \theta \right) \left( \int_0 ^{2 \pi} \dd \phi \right) \\ & = \left( \frac{R^3}{3} \right)(2)(2 \pi) = \frac{4}{3} \pi R^3 \end{aligned}\]

Great!

So far we have talked only about the geometry of spherical coordinates. Now I would like to “translate” the vector derivatives (gradient, divergence, curl, and Laplacian) into \( r, \theta, \phi \) notation. In principle, this is entirely straightforward: in the case of the gradient,

\[\grad T = \pdv{T}{x} \vu{x} + \pdv{T}{y} \vu{y} + \pdv{T}{z} \vu{z}\]

for instance, we would first use the chain rule to expand the partials

\[\pdv{T}{x} = \pdv{T}{r} \left( \pdv{r}{x} \right) + \pdv{T}{\theta} \left( \pdv{\theta}{x} \right) + \pdv{T}{\phi} \left( \pdv{\phi}{x} \right)\]

The terms in parentheses could be worked out from \( \eqref{1.62} \) - or rather, their inverse. Then we’d do the same for y and z, and then substitute in the formulas for \( \vu{x}, \vu{y}, \vu{z} \) in terms of \( \vu{r}, \vu{\theta}, \vu{\phi} \). It would take an hour to carry out this very brute-force approach, and I suppose this is how it was originally done, but there is a much more efficient indirect approach, which has the extra advantage of treating all coordinate systems at once. I describe the “straightforward” method only to show you that there is nothing subtle or mysterious about transforming to spherical coordinates: you’re expressing the same quantity in different notation, that’s all. The indirect method is relegated to one of the appendices, which I may add later.

Here, then, are the vector derivatives in spherical coordinates:

Gradient:

\[\grad T = \pdv{T}{r} \vu{r} + \frac{1}{r} \pdv{T}{\theta} \vu{\theta} + \frac{1}{r \sin \theta} \pdv{T}{\phi} \vu{\phi} \tagl{1.70}\]

Divergence:

\[\div \vec{v} = \frac{1}{r^2} \pdv{}{r} (r^2 v_r) + \frac{1}{r\sin \theta} \pdv{}{\theta} (\sin \theta v_{\theta}) + \frac{1}{r \sin \theta} \pdv{v_{\phi}}{\phi} \tagl{1.71} \]

Curl:

\[\begin{aligned} \curl \vec{v} = & \frac{1}{r \sin \theta} \left[ \pdv{}{\theta} (\sin \theta V_{\phi}) - \pdv{v_{\theta}}{\phi} \right] \vu{r} \\ & \quad + \frac{1}{r} \left[ \frac{1}{\sin \theta} \pdv{v_r}{\phi} - \pdv{}{r} (r v_{\phi}) \right] \vu{\theta} \\ & \quad + \frac{1}{r} \left[ \pdv{}{r} (r v_{\theta}) - \pdv{v_r}{\theta} \right] \vu{\phi} \end{aligned} \tagl{1.72}\]

Laplacian:

\[\laplacian T = \frac{1}{r^2} \pdv{}{r} \left( r^2 \pdv{T}{r} \right) + \frac{1}{r^2 \sin \theta} \pdv{}{\theta} \left( \sin \theta \pdv{T}{\theta} \right) + \frac{1}{r^2 \sin ^2 \theta} \frac{\partial ^2 T}{\partial \phi ^2} \tagl{1.73} \]

1.4.2: Cylindrical Coordinates #

The cylindrical coordinates \( (s, \phi, z) \) of a point P are defined in Fig 1.42. Notice that \( \phi \) has the same meaning as in spherical coordinates, and z is the same as Cartesian. \( s \) is the distance to P from the z axis, whereas the spherical coordinate \( r \) is the distance from the origin. The relation to Cartesian coordinates is somewhat cleaner than the spherical sort

\[x = s \cos \phi, \qquad y = s \sin \phi, \qquad z = z \tagl{1.74}\]

Figure 1.42

The unit vectors (Prob 1.42) are

\[\begin{aligned} \vu{s} & = \cos \phi \vu{x} + \sin \phi \vu{y} \\ \vu{\phi} & = - \sin \phi \vu{x} + \cos \phi \vu{y} \\ \vu{z} & = \vu{z} \end{aligned} \tagl{1.75}\]

The infinitesimal displacements are

\[dl_s = ds, \qquad dl_{\phi} = s \dd \phi, \qquad dl_z = dz \tagl{1.76} \]

so

\[\dd \vec{l} = ds \vu{s} + s \dd \phi \vu{\phi} + dz \vu{z} \tagl{1.77}\]

and the volume element is

\[\dd \tau = s \, \dd s \, \dd \phi \, \dd z \tagl{1.78}\]

The range of s is \( 0 \rightarrow \infty \), \( \phi \) goes from \( 0 \rightarrow 2\pi \), and \( z \) from \( -\infty \rightarrow \infty \).

The vector derivatives in cylindrical coordinates are:

Gradient:

\[\grad T = \pdv{T}{s} \vu{s} + \frac{1}{s} \pdv{T}{\phi} \vu{\phi} + \pdv{T}{z} \vu{z} \tagl{1.79}\]

Divergence:

\[\div \vec{v} = \frac{1}{s} \pdv{}{s} (s v_s) + \frac{1}{s} \pdv{v_\phi}{\phi} + \pdv{v_z}{z} \tagl{1.80} \]

Curl:

\[\begin{aligned} \curl \vec{v} = & \left( \frac{1}{s} \pdv{v_z}{\phi} - \pdv{v_{\phi}}{z} \right) \vu{s} \\ & + \left( \pdv{v_s}{z} - \pdv{v_z}{s} \right) \vu{\phi} \\ & + \frac{1}{s} \left[ \pdv{}{s} (s v_{\phi}) - \pdv{v_s}{\phi} \right] \vu{z} \end{aligned} \tagl{1.81}\]

Laplacian:

\[\laplacian T = \frac{1}{s} \pdv{}{s} \left( s \pdv{T}{s} \right) + \frac{1}{s^2} \frac{\partial ^2 T}{\partial \phi ^2} + \frac{\partial ^2 T}{\partial z^2} \tagl{1.82} \]