Vector operators in cylindrical and spherical coordinates
Vector operators in cylindrical and spherical coordinates
Course contents
Vector operators in cylindrical and spherical coordinates
A radial field can have constant-looking components while its direction varies from point to point. This is why Cartesian derivative formulas cannot be applied to cylindrical or spherical components as if the basis were fixed. Scale factors and changing unit vectors account for the geometry. We use physical components along unit basis vectors throughout.
1 Cylindrical and spherical unit frames
In cylindrical coordinates, x=ρcosθ, y=ρsinθ, and z=z. The unit vectors are
eρ=(cosθ,sinθ,0),eθ=(−sinθ,cosθ,0),ez=(0,0,1).
They form a right-handed orthonormal frame for ρ>0. Differentiation gives ∂θeρ=eθ and ∂θeθ=−eρ. The displacement is dx=eρdρ+ρeθdθ+ezdz, so coordinate scale factors are (1,ρ,1).
For spherical coordinates use ϕ as polar angle from the positive z axis and θ as azimuth:
x=rsinϕcosθ,y=rsinϕsinθ,z=rcosϕ.
In the right-handed coordinate order (r,ϕ,θ), the unit vectors are
The scale factors are (1,r,rsinϕ) because dx=erdr+reϕdϕ+rsinϕeθdθ. The formulas below apply on regular charts r>0, 0<ϕ<π; chart singularities on the axis are not automatically singularities of the physical field.
Physical vector components in F=Frer+Fϕeϕ+Fθeθ are not the same as coefficients of the nonunit coordinate vectors ∂x/∂r,∂x/∂ϕ,∂x/∂θ. Confusing them removes or duplicates scale factors.
2 Deriving the orthogonal-coordinate formulas
For right-handed orthogonal coordinates u1,u2,u3 with positive scale factors hi, write H=h1h2h3. Since df=∑ifuidui must equal ∇f⋅dx, coefficient comparison gives
∇f=i∑eihi1fui.
A small coordinate box has volume Hdu1du2du3. Its two faces normal to ei have area scale H/hi. Subtracting opposite-face fluxes and dividing by volume gives
∇⋅F=H1i∑∂ui(hiHFi).
This local derivation is the differential limit of the divergence theorem; it includes changing face areas.
For curl, circulation around a small oriented coordinate rectangle in directions uj,uk is the difference of the derivatives of the edge quantities hkFk and hjFj. Dividing by its area hjhkdujduk and applying Stokes locally gives
(∇×F)i=hjhk1[∂uj(hkFk)−∂uk(hjFj)],
for cyclic triples (i,j,k). These arguments require differentiable fields and a regular chart. They derive the scale-factor formulas rather than treating them as unrelated tables.
Taking divergence of the gradient gives Δf=ρ−1∂ρ(ρfρ)+ρ−2fθθ+fzz.
Solid rotation. For F=Ωρeθ, divergence is zero and curl is 2Ωez. In Cartesian coordinates this is (−Ωy,Ωx,0), confirming the same answer. Differentiating only the component Fθ=Ωρ and ignoring the frame geometry would miss a factor in the curl.
Radial planar spreading. The field F=Aeρ/ρ has zero divergence away from the axis, since ρFρ=A. Its outward flux through a cylinder of radius R and height L is 2πAL. Nonzero enclosed flux does not contradict the local zero divergence: the axis is a singularity excluded from the formula's regular region.
For radial f=f(r), this reduces to f′′+2f′/r. Thus Δ(1/r)=0 for r>0. The function is singular at zero, so this is not a globally source-free statement. For F=Aer/r2, divergence is likewise zero away from zero and sphere flux is 4πA.
As a nonsingular chart check, the Cartesian field (x,y,z) becomes F=rer and has divergence r−2∂r(r3)=3. The cylindrical version is ρeρ+zez, also giving 3. A valid physical result agrees across regular charts.
A Cartesian chain-rule proof of the scale factors
To justify the local formulas directly, let x=x(u) be a C2 coordinate diffeomorphism between open subsets of R3, with mutually orthogonal nonzero coordinate vectors xui=hiei and a right-handed unit frame (e1,e2,e3). Let F be C1 on the target. Write Fi=F⋅ei and H=h1h2h3. The reciprocal coordinate vector is ∇ui=ei/hi, since its dot product with xuj is δij.
For i=j, equality of mixed coordinate derivatives gives ∂j(hiei)=∂i(hjej). Dotting with ei yields ∂jhi=hjei⋅∂iej, since a unit vector is orthogonal to each of its own derivatives. The Cartesian chain rule and the trace definition of divergence now give
This accounts for every derivative of the moving frame. For a cyclic triple (i,j,k), the Cartesian curl identity expressed in this right-handed orthonormal frame gives
(∇×F)i=hjek⋅∂jF−hkej⋅∂kF.
Differentiate Fk=F⋅ek and Fj=F⋅ej. The remaining frame terms combine using ∂j(hkek)=∂k(hjej), or equivalently
Substitution gives exactly [∂j(hkFk)−∂k(hjFj)]/(hjhk). Thus the curl formula follows by ordinary derivatives on a regular chart, without requiring an unproved theorem on an arbitrary curved coordinate box. The scalar Laplacian follows by applying the proved divergence identity to the gradient for a C2 scalar field. Cylindrical and spherical substitutions retain their already specified coordinate order and positive scale-factor domains.
5 Graded practice
E1 Foundation. Express F=(x,y,2z) in cylindrical components and compute its divergence.
E2 Scalar field. For f=ρ2+z2, calculate the cylindrical gradient and Laplacian. Compare with Cartesian results.
E3 Radial field. For F=rmer on r>0, find its divergence and identify the exponent giving zero.
E4 Chart versus field. Use the spherical formula to calculate Δ(rcosϕ). Explain why the coordinate denominators do not imply this field is singular on the axis.
E5 Curl. For cylindrical F=ρzeθ, compute curl.
6 Full solutions
S1.F=ρeρ+2zez. Divergence is ρ−1∂ρ(ρ2)+∂z(2z)=2+2=4, matching 1+1+2 in Cartesian coordinates.
S2. Gradient is 2ρeρ+2zez, and Laplacian is ρ−1∂ρ(2ρ2)+2=4+2=6. Since f=x2+y2+z2, these are the expected Cartesian gradient and Laplacian.
S3. Divergence is r−2∂r(rm+2)=(m+2)rm−1. It vanishes for m=−2, away from zero. A singular origin still requires separate flux treatment.
S4. The radial contribution is 2cosϕ/r. The polar contribution is −2cosϕ/r, and the azimuthal contribution is zero. They cancel, giving zero. The scalar is simply Cartesian z, smooth everywhere; only the spherical chart degenerates on the axis.
S5. The radial component is −∂z(ρz)=−ρ, the azimuthal component is zero, and the vertical component is ρ−1∂ρ(ρ2z)=2z. Thus curl is −ρeρ+2zez.
Summary
Curvilinear vector operations require physical component conventions, coordinate orientation and scale factors. Gradients compare scalar differentials with displacement; divergence tracks changing face areas; curl tracks circulation on coordinate rectangles. Cylindrical and spherical chart singularities must be distinguished from genuine singular fields and sources.