4.4: Spherical Coordinates
- Last updated
- Jul 7, 2024
- Save as PDF
- Page ID
- 97114
( \newcommand{\kernel}{\mathrm{null}\,}\)
The spherical coordinate system is defined with respect to the Cartesian system in Figure 4.4.1. The spherical system uses r, the distance measured from the origin; θ, the angle measured from the +z axis toward the z=0 plane; and ϕ, the angle measured in a plane of constant z, identical to ϕ in the cylindrical system.

Spherical coordinates are preferred over Cartesian and cylindrical coordinates when the geometry of the problem exhibits spherical symmetry. For example, in the Cartesian coordinate system, the surface of a sphere concentric with the origin requires all three coordinates (x, y, and z) to describe. However, this surface can be described using a single constant parameter – the radius r – in the spherical coordinate system. This leads to a dramatic simplification in the mathematics in certain applications.
The basis vectors in the spherical system are ˆr, ˆθ, and ˆϕ. As always, the dot product of like basis vectors is equal to one, and the dot product of unlike basis vectors is equal to zero. For the cross-products, we find:
ˆr׈θ=ˆϕ
A useful diagram that summarizes these relationships is shown in Figure 4.4.2.
Like the cylindrical system, the spherical system is often less useful than the Cartesian system for identifying absolute and relative positions. The reason is the same: Basis directions in the spherical system depend on position. For example, ˆr is directed radially outward from the origin, so ˆr=ˆx for locations along the x-axis but ˆr=ˆy for locations along the y axis and ˆr=ˆz for locations along the z axis. Similarly, the directions of ˆθ and ˆϕ vary as a function of position. To overcome this awkwardness, it is common to begin a problem in spherical coordinates, and then to convert to Cartesian coordinates at some later point in the analysis. Here are the conversions:
x=rcosϕsinθy=rsinϕsinθz=rcosθ
The conversion from Cartesian to spherical coordinates is as follows:
r=√x2+y2+z2θ=arccos(z/r)ϕ=arctan(y,x)
where arctan is the four-quadrant inverse tangent function.

Dot products between basis vectors in the spherical and Cartesian systems are summarized in Table 4.4.1. This information can be used to convert between basis vectors in the spherical and Cartesian systems, in the same manner described in Section 4.3; e.g.
ˆx=ˆr(ˆr⋅ˆx)+ˆθ(ˆθ⋅ˆx)+ˆϕ(ˆϕ⋅ˆx)
ˆr=ˆx(ˆx⋅ˆr)+ˆy(ˆy⋅ˆr)+ˆz(ˆz⋅ˆr)
and so on.
⋅ | ˆr | ˆθ | ˆϕ |
---|---|---|---|
ˆx | sinθcosϕ | cosθcosϕ | −sinϕ |
ˆy | sinθsinϕ | cosθsinϕ | cosϕ |
ˆz | cosθ | −sinθ | 0 |
Example 4.4.1: Cartesian to spherical conversion
A vector field G=ˆx xz/y. Develop an expression for G in spherical coordinates.
Solution
Simply substitute expressions in terms of spherical coordinates for expressions in terms of Cartesian coordinates. Use Table 4.4.1 and Equations 4.4.4- 4.4.6. Making these substitutions and applying a bit of mathematical clean-up afterward, one obtains
G=(ˆrsinθcotϕ+ˆϕcosθcotϕ−ˆϕ)⋅rcosθcosϕ
Integration Over Length
A differential-length segment of a curve in the spherical system is dl=ˆr dr+ˆθ r dθ+ˆϕ rsinθ dϕ
As always, the integral of a vector field A(r) over a curve C is
∫CA⋅dl
To demonstrate line integration in the spherical system, imagine a sphere of radius a centered at the origin with “poles” at z=+a and z=−a. Let us calculate the integral of A(r)=ˆθ, where C is the arc drawn directly from pole to pole along the surface of the sphere, as shown in Figure 4.4.3. In this example, dl=ˆθ a dθ since r=a and ϕ (which could be any value) are both constant along C. Subsequently, A⋅dl=a dθ and the above integral is
∫π0a dθ=πa
i.e., half the circumference of the sphere, as expected.

Note that the spherical system is an appropriate choice for this example because the problem can be expressed with the minimum number of varying coordinates in the spherical system. If we had attempted this problem in the Cartesian system, we would find that both z and either x or y (or all three) vary over C and in a relatively complex way.
Integration Over Area
Now we ask the question, what is the integral of some vector field A over the surface S of a sphere of radius a centered on the origin? This is shown in Figure 4.4.4. The differential surface vector in this case is
ds=ˆr (r dθ)(rsinθ dϕ)=ˆr r2sinθ dθ dϕ

As always, the direction is normal to the surface and in the direction associated with positive flux. The quantities in parentheses are the distances associated with varying θ and ϕ, respectively. In general, the integral over a surface is
∫SA⋅ds
which we recognize as the area of the sphere, as expected. The corresponding calculation in the Cartesian or cylindrical systems is quite difficult in comparison.
Integration Over Volume
The differential volume element in the spherical system is dv = dr(rdθ)(rsinθdϕ) = r2dr sinθ dθ dϕ
For example, if A(r)=1 and the volume V is a sphere of radius a centered on the origin, then
∫VA(r) dv=∫a0∫π0∫2π0r2dr sinθ dθ dϕ=(∫a0r2dr)(∫π0sinθ dθ)(∫2π0dϕ)=(13a3)(2)(2π)=43πa3
which is the volume of a sphere.