Ma · Mathematics

How to Find the Curl in Spherical Coordinates

Published By the 9to5Science editorial team

At a glance

  1. 1. Check the convention

    Use r for distance, theta for polar angle from the positive z-axis, and phi for azimuth from the positive x-axis.

  2. 2. Identify components

    Write the field as F_r, F_theta, and F_phi along the spherical unit vectors.

  3. 3. Apply the formula

    Substitute the components into the three curl components, including the spherical-coordinate scale factors.

  4. 4. Check the result

    Simplify and express the answer in spherical unit vectors; verify signs with a familiar field if useful.

Advertisement

The curl of a vector field measures its local tendency to rotate. In spherical coordinates, finding it requires more than taking a Cartesian-looking determinant: the unit vectors change with position, and the coordinate directions have different scale factors.

The formula below uses the common physics convention in which rr is distance from the origin, θ\theta is the polar angle measured down from the positive zz-axis, and ϕ\phi is the azimuth measured around the zz-axis from the positive xx-axis. It also includes a worked example and a note on other conventions.

The spherical-coordinate curl formula

Write the vector field as

F=Fr e^r+Fθ e^θ+Fϕ e^ϕ.\mathbf{F}=F_r\,\hat{\mathbf{e}}_r+F_\theta\,\hat{\mathbf{e}}_\theta+F_\phi\,\hat{\mathbf{e}}_\phi.

Here, FrF_r, FθF_\theta, and FϕF_\phi are scalar component functions of rr, θ\theta, and ϕ\phi. With the convention above, the curl is

(∇×F)r=1rsin⁡θ[∂∂θ(sin⁡θFϕ)−∂Fθ∂ϕ],(∇×F)θ=1r[1sin⁡θ∂Fr∂ϕ−∂∂r(rFϕ)],(∇×F)ϕ=1r[∂∂r(rFθ)−∂Fr∂θ].\begin{aligned} (\nabla\times\mathbf{F})_r &=\frac{1}{r\sin\theta}\left[\frac{\partial}{\partial\theta}(\sin\theta F_\phi)-\frac{\partial F_\theta}{\partial\phi}\right],\\ (\nabla\times\mathbf{F})_\theta &=\frac{1}{r}\left[\frac{1}{\sin\theta}\frac{\partial F_r}{\partial\phi}-\frac{\partial}{\partial r}(rF_\phi)\right],\\ (\nabla\times\mathbf{F})_\phi &=\frac{1}{r}\left[\frac{\partial}{\partial r}(rF_\theta)-\frac{\partial F_r}{\partial\theta}\right]. \end{aligned}

These are components along e^r\hat{\mathbf{e}}_r, e^θ\hat{\mathbf{e}}_\theta, and e^ϕ\hat{\mathbf{e}}_\phi, respectively. The factors of rr and sin⁡θ\sin\theta account for the changing lengths of coordinate directions.

Where the formula comes from

Spherical coordinates are an orthogonal coordinate system with scale factors

hr=1,hθ=r,hϕ=rsin⁡θ.h_r=1,\qquad h_\theta=r,\qquad h_\phi=r\sin\theta.

For right-handed orthogonal coordinates u1,u2,u3u_1,u_2,u_3 with scale factors h1,h2,h3h_1,h_2,h_3, the first curl component, for example, is

(∇×F)1=1h2h3[∂∂u2(h3F3)−∂∂u3(h2F2)].(\nabla\times\mathbf{F})_1 =\frac{1}{h_2h_3}\left[\frac{\partial}{\partial u_2}(h_3F_3)-\frac{\partial}{\partial u_3}(h_2F_2)\right].

Substituting (u1,u2,u3)=(r,θ,ϕ)(u_1,u_2,u_3)=(r,\theta,\phi) and the three spherical scale factors gives the displayed formula. This is why applying the Cartesian determinant formula directly to Fr,Fθ,FϕF_r,F_\theta,F_\phi would be incorrect.

Worked example: a field that rotates about the z-axis

Consider

F=rsin⁡θ e^ϕ,\mathbf{F}=r\sin\theta\,\hat{\mathbf{e}}_\phi,

so Fr=0F_r=0, Fθ=0F_\theta=0, and Fϕ=rsin⁡θF_\phi=r\sin\theta. Substitute each component into the curl formula:

(∇×F)r=1rsin⁡θ∂∂θ(rsin⁡2θ)=2cos⁡θ,(∇×F)θ=−1r∂∂r(r2sin⁡θ)=−2sin⁡θ,(∇×F)ϕ=0.\begin{aligned} (\nabla\times\mathbf{F})_r &=\frac{1}{r\sin\theta}\frac{\partial}{\partial\theta}(r\sin^2\theta) =2\cos\theta,\\ (\nabla\times\mathbf{F})_\theta &=-\frac{1}{r}\frac{\partial}{\partial r}(r^2\sin\theta) =-2\sin\theta,\\ (\nabla\times\mathbf{F})_\phi&=0. \end{aligned}

Therefore,

∇×F=2cos⁡θ e^r−2sin⁡θ e^θ.\nabla\times\mathbf{F}=2\cos\theta\,\hat{\mathbf{e}}_r-2\sin\theta\,\hat{\mathbf{e}}_\theta.

To check the answer, note that rsin⁡θ e^ϕr\sin\theta\,\hat{\mathbf{e}}_\phi is the Cartesian field (−y,x,0)(-y,x,0). Its Cartesian curl is (0,0,2)=2e^z(0,0,2)=2\hat{\mathbf{e}}_z. Since e^z=cos⁡θ e^r−sin⁡θ e^θ\hat{\mathbf{e}}_z=\cos\theta\,\hat{\mathbf{e}}_r-\sin\theta\,\hat{\mathbf{e}}_\theta, the two results agree.

A reliable calculation procedure

  1. Confirm which angle is polar and which is azimuthal.
  2. Express the field in spherical unit vectors and identify its three scalar components.
  3. Differentiate the component combinations shown in the formula. For example, differentiate rFϕrF_\phi as a product; do not replace it with r ∂Fϕ/∂rr\,\partial F_\phi/\partial r alone.
  4. Combine the three results with their corresponding unit vectors.
  5. If possible, check the result by converting to Cartesian coordinates or testing a simple special case.

Common mistakes

  • Swapping θ\theta and ϕ\phi. Some mathematics texts use θ\theta for azimuth and ϕ\phi for polar angle. The formula changes when the names and coordinate directions change. Follow the convention stated by your source rather than mixing formulas.
  • Using Cartesian components in the spherical formula. The formula requires Fr,Fθ,FϕF_r,F_\theta,F_\phi, not Fx,Fy,FzF_x,F_y,F_z.
  • Dropping scale factors. Terms such as rFθrF_\theta, rFϕrF_\phi, and sin⁡θFϕ\sin\theta F_\phi are part of the derivatives; omitting them generally gives the wrong result.
  • Treating coordinate singularities as physical blow-ups. The formula contains 1/r1/r and 1/sin⁡θ1/\sin\theta, so it is not directly usable at the origin or on the polar axis. A field and its curl may still be regular there; examine the field in a nonsingular coordinate system or take a suitable limit.

References

  1. Schey, H. M., Div, Grad, Curl, and All That: An Informal Text on Vector Calculus
  2. Arfken, G. B., Weber, H. J., and Harris, F. E., Mathematical Methods for Physicists

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.