Skip to content

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,θ,ϕ) (r, \theta, \phi) ; r 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=rsinθcosϕ,y=rsinθsinϕ,z=rcosθ(1.62) 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, r^,θ^,ϕ^ \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 x^,y^,z^ \vu{x}, \vu{y}, \vu{z} ), and any vector A can be expressed in terms of them, in the usual way:

A=Arr^+Aθθ^+Aϕϕ^(1.63) \vec{A} = A_r \vu{r} + A_\theta \vu{\theta} + A_\phi \vu{\phi} \tagl{1.63}

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

r^=sinθcosϕx^+sinθsinϕy^+cosθz^θ^=cosθcosϕx^+cosθsinϕy^sinθz^ϕ^=sinϕx^+cosϕy^(1.64) \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: r^ \vu{r} , θ^ \vu{\theta} , and ϕ^ \vu{\phi} are associated with a particular point P, and they change direction as P moves around. For example, r^ \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, A=y^ \vec{A} = \vu{y} and B=y^ \vec{B} = - \vu{y} , and yet both of them would be written as r^ \vu{r} in spherical coordinates. One could take account of this by explicitly indicating the point of reference: r^(θ,ϕ),θ^(θ,ϕ),ϕ^(θ,ϕ) \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, A+B=0 \vec{A} + \vec{B} = 0 , not 2r^ 2 \vu{r} , and AB=1 \vec{A} \cdot \vec{B} = -1 , not +1 +1 ). Beware of differentiating a vector that is expressed in spherical coordinates, since the unit vectors themselves are functions of position (r^/θ=θ^ \partial \vu{r} / \partial \theta = \vu{\theta} , for example). And do not take r^,θ^,ϕ^ \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 r^ \vu{r} direction is simply dr (Fig. 1.38a), just as an infinitesimal element of length in the x direction is dx:

dlr=dr(1.65) \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 dθ \dd \theta - that doesn't even have the right units for a length! Rather,

dlθ=rdθ(1.66) \dd l_{\theta} = r \dd \theta \tagl{1.66}

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

dlϕ=rsinθdϕ(1.67) \dd l_{\phi} = r \sin \theta \dd \phi \tagl{1.67}

so that we can write the general infinitesimal displacement as

dl=drr^+rdθθ^+rsinθdϕϕ^(1.68) \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 dxx^+dyy^+dzz^ \dd x \vu{x} + \dd y \vu{y} + \dd z \vu{z} played in Cartesian coordinates.

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

dτ=dlrdlθdlϕ=r2sinθdrdθdϕ(1.69) \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 da \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 r is constant, whereas θ \theta and ϕ \phi change (Fig. 1.39), so

da1=dlθdlϕr^=r2sinθdθdϕr^ \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 (π/2 \pi / 2 ) while r r and ϕ \phi may vary, then

da2=dlrdlϕθ^=rdrdϕθ^ \dd \vec{a}_2 = \dd l_r \dd l_{\phi} \vu{\theta} = r \dd r \dd \phi \vu{\theta}

Notice, finally, that r r ranges from 0 0 to \infty , ϕ \phi from 0 0 to 2π 2 \pi , and θ \theta from 0 0 to π \pi .

Figure 1.39

Example 1.13

Find the volume of a sphere of radius R

Solution Well, we know that we should get 43πR3 \frac{4}{3} \pi R^3 . Let's see what happens...

V=dτ=r=0Rdrθ=0πrdθϕ=02πrsinθdϕ=(0Rr2dr)(0πsinθdθ)(02πdϕ)=(R33)(2)(2π)=43πR3 \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,θ,ϕ r, \theta, \phi notation. In principle, this is entirely straightforward: in the case of the gradient,

T=Txx^+Tyy^+Tzz^ \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

Tx=Tr(rx)+Tθ(θx)+Tϕ(ϕx) \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 (1.62) \eqref{1.62} - or rather, their inverse. Then we'd do the same for y and z, and then substitute in the formulas for x^,y^,z^ \vu{x}, \vu{y}, \vu{z} in terms of r^,θ^,ϕ^ \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:

T=Trr^+1rTθθ^+1rsinθTϕϕ^(1.70) \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:

v=1r2r(r2vr)+1rsinθθ(sinθvθ)+1rsinθvϕϕ(1.71) \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:

×v=1rsinθ[θ(sinθVϕ)vθϕ]r^+1r[1sinθvrϕr(rvϕ)]θ^+1r[r(rvθ)vrθ]ϕ^(1.72) \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:

2T=1r2r(r2Tr)+1r2sinθθ(sinθTθ)+1r2sin2θ2Tϕ2(1.73) \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,ϕ,z) (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 s is the distance to P from the z axis, whereas the spherical coordinate r r is the distance from the origin. The relation to Cartesian coordinates is somewhat cleaner than the spherical sort

x=scosϕ,y=ssinϕ,z=z(1.74) 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

s^=cosϕx^+sinϕy^ϕ^=sinϕx^+cosϕy^z^=z^(1.75) \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

dls=ds,dlϕ=sdϕ,dlz=dz(1.76) dl_s = ds, \qquad dl_{\phi} = s \dd \phi, \qquad dl_z = dz \tagl{1.76}

so

dl=dss^+sdϕϕ^+dzz^(1.77) \dd \vec{l} = ds \vu{s} + s \dd \phi \vu{\phi} + dz \vu{z} \tagl{1.77}

and the volume element is

dτ=sdsdϕdz(1.78) \dd \tau = s \, \dd s \, \dd \phi \, \dd z \tagl{1.78}

The range of s is 0 0 \rightarrow \infty , ϕ \phi goes from 02π 0 \rightarrow 2\pi , and z z from -\infty \rightarrow \infty .

The vector derivatives in cylindrical coordinates are:

Gradient:

T=Tss^+1sTϕϕ^+Tzz^(1.79) \grad T = \pdv{T}{s} \vu{s} + \frac{1}{s} \pdv{T}{\phi} \vu{\phi} + \pdv{T}{z} \vu{z} \tagl{1.79}

Divergence:

v=1ss(svs)+1svϕϕ+vzz(1.80) \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:

×v=(1svzϕvϕz)s^+(vszvzs)ϕ^+1s[s(svϕ)vsϕ]z^(1.81) \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:

2T=1ss(sTs)+1s22Tϕ2+2Tz2(1.82) \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}