Original title: Fundamentals of Orthogonal Curvilinear Coordinates

Original date: March 21, 2026

This note was converted to Markdown from the PDF “Orthogonal Curvilinear Coordinates and Vector Operators”, keeping the original section hierarchy and equation numbers (1) to (22).

Contents

  • 1 Fundamentals of Orthogonal Curvilinear Coordinates
    • 1.1 Orthogonal curvilinear coordinates and Lamé coefficients
      • 1.1.1 The coordinate map and coordinate tangent vectors
      • 1.1.2 Definition and physical meaning of the Lamé coefficients
      • 1.1.3 Building the local orthonormal basis
    • 1.2 Where the differential elements come from
      • 1.2.1 The line element: a total differential
      • 1.2.2 The surface element: the geometry of the cross product
      • 1.2.3 The volume element: the scalar triple product
    • 1.3 Deriving the operators: flux and circulation density
      • 1.3.1 Gradient
  • 2 Geometric Derivation of the Vector Operators
    • 2.1 Deriving the divergence
      • 2.1.1 Net flux along the first coordinate direction
      • 2.1.2 Summing up: the final formula
    • 2.2 Deriving the curl
      • 2.2.1 The closed path integral
      • 2.2.2 Circulation density
      • 2.2.3 The general determinant form
  • 3 Worked Example: Spherical Coordinates
    • 3.1 Basis vectors and Lamé coefficients
    • 3.2 Differential elements
    • 3.3 Vector operator formulas

1 Fundamentals of Orthogonal Curvilinear Coordinates

In electrodynamics we often have to work with vector fields in non-Cartesian coordinates in order to exploit the symmetry of a physical system (for example spherical or axial symmetry). Suppose we have a set of orthogonal curvilinear coordinates (q1,q2,q3)(q_1,q_2,q_3).

1.1 Orthogonal Curvilinear Coordinates and Lamé Coefficients

In Cartesian coordinates, a change in a coordinate (such as dx\mathrm{d}x) is directly equal to a length of displacement in space. However, when dealing with systems that have spherical or axial symmetry (such as a point charge or a long straight wire), we introduce generalized orthogonal curvilinear coordinates (q1,q2,q3)(q_1,q_2,q_3).

In these coordinate systems, the coordinates themselves may no longer have the dimension of length (for example the angles θ\theta and ϕ\phi in spherical coordinates). To preserve the metric properties of Euclidean space in physical laws, we need a set of coefficients that scale a “change in coordinate” into a “true physical distance”. This is the geometric essence of the Lamé coefficients.

1.1.1 The Coordinate Map and Coordinate Tangent Vectors

Let the position vector of any point in space be r\mathbf{r}, a function of the generalized coordinates:

r=r(q1,q2,q3)=x(q1,q2,q3)i^+y(q1,q2,q3)j^+z(q1,q2,q3)k^.(1)\mathbf{r} =\mathbf{r}(q_1,q_2,q_3) =x(q_1,q_2,q_3)\hat{\mathbf{i}} +y(q_1,q_2,q_3)\hat{\mathbf{j}} +z(q_1,q_2,q_3)\hat{\mathbf{k}}. \tag{1}

When we change one coordinate qiq_i by a small amount dqi\mathrm{d}q_i while holding the others fixed, the direction in which the position vector changes is the direction of the local coordinate axis at that point. We define the coordinate tangent vector as:

vi=∂r∂qi.(2)\mathbf{v}_i=\frac{\partial\mathbf{r}}{\partial q_i}. \tag{2}

This vector points in the direction of increasing qiq_i, and its magnitude measures how much that coordinate direction is “stretched”.

1.1.2 Definition and Physical Meaning of the Lamé Coefficients

Definition 1.1 (Lamé coefficients): The magnitude of the coordinate tangent vector vi\mathbf{v}_i is called the Lamé coefficient of that coordinate direction, usually written hih_i:

hi=∣∂r∂qi∣=(∂x∂qi)2+(∂y∂qi)2+(∂z∂qi)2.(3)h_i =\left|\frac{\partial\mathbf{r}}{\partial q_i}\right| =\sqrt{ \left(\frac{\partial x}{\partial q_i}\right)^2 +\left(\frac{\partial y}{\partial q_i}\right)^2 +\left(\frac{\partial z}{\partial q_i}\right)^2 }. \tag{3}

Physical interpretation: A Lamé coefficient is essentially the “scale” of the coordinate system. In the physical displacement dli=hi dqi\mathrm{d}l_i=h_i\,\mathrm{d}q_i:

  • If qiq_i itself has the dimension of length (such as rr), then hih_i is a dimensionless pure number (usually 11).
  • If qiq_i is dimensionless (such as the angle θ\theta), then hih_i must carry the dimension of length, so that dli\mathrm{d}l_i is measured in meters.

1.1.3 Building the Local Orthonormal Basis

In an orthogonal coordinate system, the three coordinate tangent vectors v1,v2,v3\mathbf{v}_1,\mathbf{v}_2,\mathbf{v}_3 at any point are always mutually perpendicular. To make vector calculations convenient, we normalize them to obtain the local orthonormal basis at that point:

e^i=vi∣vi∣=1hi∂r∂qi.(4)\hat{\mathbf{e}}_i =\frac{\mathbf{v}_i}{|\mathbf{v}_i|} =\frac{1}{h_i}\frac{\partial\mathbf{r}}{\partial q_i}. \tag{4}

Note: Unlike the fixed Cartesian basis {i^,j^,k^}\{\hat{\mathbf{i}},\hat{\mathbf{j}},\hat{\mathbf{k}}\}, the directions of the curvilinear basis vectors {e^1,e^2,e^3}\{\hat{\mathbf{e}}_1,\hat{\mathbf{e}}_2,\hat{\mathbf{e}}_3\} generally change from point to point. When we later derive the differential operators, the derivatives of the basis vectors themselves must be taken into account.

1.2 Where the Differential Elements Come From

1.2.1 The Line Element: A Total Differential

By the definition of the total differential of a multivariable function, the displacement vector dr\mathrm{d}\mathbf{r} can be written as:

dl=dr=∂r∂q1dq1+∂r∂q2dq2+∂r∂q3dq3=h1dq1e^1+h2dq2e^2+h3dq3e^3.(5)\mathrm{d}\mathbf{l} =\mathrm{d}\mathbf{r} =\frac{\partial\mathbf{r}}{\partial q_1}\mathrm{d}q_1 +\frac{\partial\mathbf{r}}{\partial q_2}\mathrm{d}q_2 +\frac{\partial\mathbf{r}}{\partial q_3}\mathrm{d}q_3 =h_1\mathrm{d}q_1\hat{\mathbf{e}}_1 +h_2\mathrm{d}q_2\hat{\mathbf{e}}_2 +h_3\mathrm{d}q_3\hat{\mathbf{e}}_3. \tag{5}

This shows that the role of hih_i is to convert a “coordinate increment” into a “physical length increment”.

1.2.2 The Surface Element: The Geometry of the Cross Product

In an orthogonal coordinate system, the small surface element spanned by dqi\mathrm{d}q_i and dqj\mathrm{d}q_j is a rectangle. Using the geometric meaning of the cross product (the area of the parallelogram spanned by two vectors, together with its normal), the surface element vector da\mathrm{d}\mathbf{a} is:

daij=(hidqie^i)×(hjdqje^j)=(hihj dqi dqj)e^k.(6)\mathrm{d}\mathbf{a}_{ij} =(h_i\mathrm{d}q_i\hat{\mathbf{e}}_i) \times(h_j\mathrm{d}q_j\hat{\mathbf{e}}_j) =(h_i h_j\,\mathrm{d}q_i\,\mathrm{d}q_j)\hat{\mathbf{e}}_k. \tag{6}

Here (i,j,k)(i,j,k) run in the cyclic order of a right-handed orthonormal basis. For example, the surface element on a surface of constant q3q_3 is da3=h1h2 dq1 dq2 e^3\mathrm{d}\mathbf{a}_3=h_1h_2\,\mathrm{d}q_1\,\mathrm{d}q_2\,\hat{\mathbf{e}}_3.

1.2.3 The Volume Element: The Scalar Triple Product

The volume of the small cell bounded by the three coordinate increments equals the scalar triple product of its three edge vectors:

dτ=∣(h1dq1e^1)⋅(h2dq2e^2×h3dq3e^3)∣=h1h2h3 dq1 dq2 dq3.(7)\mathrm{d}\tau =\left| (h_1\mathrm{d}q_1\hat{\mathbf{e}}_1) \cdot\left( h_2\mathrm{d}q_2\hat{\mathbf{e}}_2 \times h_3\mathrm{d}q_3\hat{\mathbf{e}}_3 \right) \right| =h_1h_2h_3\,\mathrm{d}q_1\,\mathrm{d}q_2\,\mathrm{d}q_3. \tag{7}

1.3 Deriving the Operators: Flux and Circulation Density

1.3.1 Gradient

By the definition of the directional derivative, the total differential of a scalar field ff is df=∇f⋅dl\mathrm{d}f=\nabla f\cdot\mathrm{d}\mathbf{l}. Comparing with the total differential formula df=∑i∂f∂qidqi\mathrm{d}f=\sum_i\frac{\partial f}{\partial q_i}\mathrm{d}q_i gives:

∇f=1h1∂f∂q1e^1+1h2∂f∂q2e^2+1h3∂f∂q3e^3.(8)\nabla f =\frac{1}{h_1}\frac{\partial f}{\partial q_1}\hat{\mathbf{e}}_1 +\frac{1}{h_2}\frac{\partial f}{\partial q_2}\hat{\mathbf{e}}_2 +\frac{1}{h_3}\frac{\partial f}{\partial q_3}\hat{\mathbf{e}}_3. \tag{8}

2 Geometric Derivation of the Vector Operators

In orthogonal curvilinear coordinates (q1,q2,q3)(q_1,q_2,q_3), the key point is that every physical quantity involving “length” must be multiplied by the corresponding Lamé coefficient hih_i. Consider a volume element dτ=(h1dq1)(h2dq2)(h3dq3)\mathrm{d}\tau=(h_1\mathrm{d}q_1)(h_2\mathrm{d}q_2)(h_3\mathrm{d}q_3).

2.1 Deriving the Divergence (∇⋅A\nabla\cdot\mathbf{A})

The divergence is defined as the net flux per unit volume. We compute the total flux through the surface of the small hexahedral cell.

2.1.1 Net Flux Along the q1q_1 Direction

Consider the pair of faces perpendicular to the q1q_1 direction (each with area dS1=h2h3 dq2 dq3\mathrm{d}S_1=h_2h_3\,\mathrm{d}q_2\,\mathrm{d}q_3):

Back face (at q1q_1): the inward flux is the field component there multiplied by the area.

Φback=−A1(q1,q2,q3)⋅h2(q1,q2,q3)h3(q1,q2,q3) dq2 dq3.(9)\Phi_{\mathrm{back}} ={}-A_1(q_1,q_2,q_3) {}\cdot h_2(q_1,q_2,q_3)h_3(q_1,q_2,q_3) \,\mathrm{d}q_2\,\mathrm{d}q_3. \tag{9}

The minus sign indicates inflow.

Front face (at q1+dq1q_1+\mathrm{d}q_1): by a first-order Taylor expansion, the flux function (A1h2h3)(A_1h_2h_3) there becomes:

Φfront=[A1h2h3+∂∂q1(A1h2h3) dq1]dq2 dq3.(10)\Phi_{\mathrm{front}} =\left[ A_1h_2h_3 +\frac{\partial}{\partial q_1}(A_1h_2h_3)\,\mathrm{d}q_1 \right]\mathrm{d}q_2\,\mathrm{d}q_3. \tag{10}

Net flux along q1q_1:

dΦ1=Φfront+Φback=∂∂q1(A1h2h3) dq1 dq2 dq3.(11)\mathrm{d}\Phi_1 =\Phi_{\mathrm{front}}+\Phi_{\mathrm{back}} =\frac{\partial}{\partial q_1}(A_1h_2h_3) \,\mathrm{d}q_1\,\mathrm{d}q_2\,\mathrm{d}q_3. \tag{11}

2.1.2 Summing Up: The Final Formula

The contributions along the q2,q3q_2,q_3 directions follow in the same way. The total net flux is dΦ=dΦ1+dΦ2+dΦ3\mathrm{d}\Phi=\mathrm{d}\Phi_1+\mathrm{d}\Phi_2+\mathrm{d}\Phi_3. By the definition of divergence, ∇⋅A=dΦdτ\nabla\cdot\mathbf{A}=\frac{\mathrm{d}\Phi}{\mathrm{d}\tau}, where dτ=h1h2h3 dq1 dq2 dq3\mathrm{d}\tau=h_1h_2h_3\,\mathrm{d}q_1\,\mathrm{d}q_2\,\mathrm{d}q_3:

∇⋅A=1h1h2h3[∂∂q1(h2h3A1)+∂∂q2(h1h3A2)+∂∂q3(h1h2A3)].(12)\nabla\cdot\mathbf{A} =\frac{1}{h_1h_2h_3}\Bigg[ \frac{\partial}{\partial q_1}(h_2h_3A_1) +\frac{\partial}{\partial q_2}(h_1h_3A_2) +\frac{\partial}{\partial q_3}(h_1h_2A_3) \Bigg]. \tag{12}

2.2 Deriving the Curl (∇×A\nabla\times\mathbf{A})

Each component of the curl is defined as the circulation per unit area. We derive component 33, namely (∇×A)3(\nabla\times\mathbf{A})_3, that is, the circulation around a loop in the q1−q2q_1-q_2 plane.

2.2.1 The Closed Path Integral

Consider the rectangular path

(q1,q2)⟶(q1+dq1,q2)⟶(q1+dq1,q2+dq2)⟶(q1,q2+dq2)(q_1,q_2) \longrightarrow(q_1+\mathrm{d}q_1,q_2) \longrightarrow(q_1+\mathrm{d}q_1,q_2+\mathrm{d}q_2) \longrightarrow(q_1,q_2+\mathrm{d}q_2)

which finally returns to the starting point.

Segment 1 (along q1q_1):

dΓ1=[A1h1]q2 dq1.\mathrm{d}\Gamma_1=[A_1h_1]_{q_2}\,\mathrm{d}q_1.

Segment 2 (along q2q_2):

dΓ2=[A2h2]q1+dq1 dq2≈[A2h2+∂∂q1(A2h2) dq1]dq2.\mathrm{d}\Gamma_2 =[A_2h_2]_{q_1+\mathrm{d}q_1}\,\mathrm{d}q_2 \approx\left[ A_2h_2+\frac{\partial}{\partial q_1}(A_2h_2)\,\mathrm{d}q_1 \right]\mathrm{d}q_2.

Segment 3 (along −q1-q_1):

dΓ3=−[A1h1]q2+dq2 dq1≈−[A1h1+∂∂q2(A1h1) dq2]dq1.\mathrm{d}\Gamma_3 =-[A_1h_1]_{q_2+\mathrm{d}q_2}\,\mathrm{d}q_1 \approx-\left[ A_1h_1+\frac{\partial}{\partial q_2}(A_1h_1)\,\mathrm{d}q_2 \right]\mathrm{d}q_1.

Segment 4 (along −q2-q_2):

dΓ4=−[A2h2]q1 dq2.\mathrm{d}\Gamma_4=-[A_2h_2]_{q_1}\,\mathrm{d}q_2.

2.2.2 Circulation Density

Adding the circulation along the four segments, the zeroth-order terms cancel and we obtain:

dΓ12=[∂∂q1(A2h2)−∂∂q2(A1h1)]dq1 dq2.(13)\mathrm{d}\Gamma_{12} =\left[ \frac{\partial}{\partial q_1}(A_2h_2) -\frac{\partial}{\partial q_2}(A_1h_1) \right]\mathrm{d}q_1\,\mathrm{d}q_2. \tag{13}

The area enclosed by this loop is da3=h1h2 dq1 dq2\mathrm{d}a_3=h_1h_2\,\mathrm{d}q_1\,\mathrm{d}q_2. From the definition (∇×A)3=dΓ12da3(\nabla\times\mathbf{A})_3=\frac{\mathrm{d}\Gamma_{12}}{\mathrm{d}a_3} we get:

(∇×A)3=1h1h2[∂∂q1(h2A2)−∂∂q2(h1A1)].(14)(\nabla\times\mathbf{A})_3 =\frac{1}{h_1h_2} \left[ \frac{\partial}{\partial q_1}(h_2A_2) -\frac{\partial}{\partial q_2}(h_1A_1) \right]. \tag{14}

2.2.3 The General Determinant Form

By cyclically permuting the indices, the curl operator can be written in a single unified form:

∇×A=1h1h2h3∣h1e^1h2e^2h3e^3∂∂q1∂∂q2∂∂q3h1A1h2A2h3A3∣.(15)\nabla\times\mathbf{A} =\frac{1}{h_1h_2h_3} \begin{vmatrix} h_1\hat{\mathbf{e}}_1 & h_2\hat{\mathbf{e}}_2 & h_3\hat{\mathbf{e}}_3\\ \dfrac{\partial}{\partial q_1} & \dfrac{\partial}{\partial q_2} & \dfrac{\partial}{\partial q_3}\\ h_1A_1 & h_2A_2 & h_3A_3 \end{vmatrix}. \tag{15}

3 Worked Example: Spherical Coordinates (r,θ,ϕ)(r,\theta,\phi)

Spherical coordinates are related to Cartesian coordinates by:

x=rsin⁡θcos⁡ϕ,y=rsin⁡θsin⁡ϕ,z=rcos⁡θ.x=r\sin\theta\cos\phi,\qquad y=r\sin\theta\sin\phi,\qquad z=r\cos\theta.

3.1 Basis Vectors and Lamé Coefficients

Computing the Lamé coefficients from the definition:

  • hr=∣∂r∂r∣=1h_r=\left|\frac{\partial\mathbf{r}}{\partial r}\right|=1;
  • hθ=∣∂r∂θ∣=rh_\theta=\left|\frac{\partial\mathbf{r}}{\partial\theta}\right|=r;
  • hϕ=∣∂r∂ϕ∣=rsin⁡θh_\phi=\left|\frac{\partial\mathbf{r}}{\partial\phi}\right|=r\sin\theta.

The basis vectors expressed in Cartesian components:

e^r=sin⁡θcos⁡ϕ i^+sin⁡θsin⁡ϕ j^+cos⁡θ k^.(16)\hat{\mathbf{e}}_r =\sin\theta\cos\phi\,\hat{\mathbf{i}} +\sin\theta\sin\phi\,\hat{\mathbf{j}} +\cos\theta\,\hat{\mathbf{k}}. \tag{16} e^θ=cos⁡θcos⁡ϕ i^+cos⁡θsin⁡ϕ j^−sin⁡θ k^.(17)\hat{\mathbf{e}}_\theta =\cos\theta\cos\phi\,\hat{\mathbf{i}} +\cos\theta\sin\phi\,\hat{\mathbf{j}} -\sin\theta\,\hat{\mathbf{k}}. \tag{17} e^ϕ=−sin⁡ϕ i^+cos⁡ϕ j^.(18)\hat{\mathbf{e}}_\phi =-\sin\phi\,\hat{\mathbf{i}} +\cos\phi\,\hat{\mathbf{j}}. \tag{18}

3.2 Differential Elements

Line element:

dl=dr e^r+r dθ e^θ+rsin⁡θ dϕ e^ϕ.\mathrm{d}\mathbf{l} =\mathrm{d}r\,\hat{\mathbf{e}}_r +r\,\mathrm{d}\theta\,\hat{\mathbf{e}}_\theta +r\sin\theta\,\mathrm{d}\phi\,\hat{\mathbf{e}}_\phi.

Surface element (on a surface of constant rr):

dar=r2sin⁡θ dθ dϕ e^r.\mathrm{d}\mathbf{a}_r =r^2\sin\theta\,\mathrm{d}\theta\,\mathrm{d}\phi\,\hat{\mathbf{e}}_r.

Volume element:

dτ=r2sin⁡θ dr dθ dϕ.\mathrm{d}\tau=r^2\sin\theta\,\mathrm{d}r\,\mathrm{d}\theta\,\mathrm{d}\phi.

3.3 Vector Operator Formulas

Substitute the hih_i into the general operator formulas.

Gradient:

∇f=∂f∂re^r+1r∂f∂θe^θ+1rsin⁡θ∂f∂ϕe^ϕ.(19)\nabla f =\frac{\partial f}{\partial r}\hat{\mathbf{e}}_r +\frac{1}{r}\frac{\partial f}{\partial\theta}\hat{\mathbf{e}}_\theta +\frac{1}{r\sin\theta}\frac{\partial f}{\partial\phi}\hat{\mathbf{e}}_\phi. \tag{19}

Divergence:

∇⋅A=1(1)(r)(rsin⁡θ)[∂∂r(r2sin⁡θ Ar)+∂∂θ(rsin⁡θ Aθ)+∂∂ϕ(rAϕ)]=1r2∂∂r(r2Ar)+1rsin⁡θ∂∂θ(sin⁡θ Aθ)+1rsin⁡θ∂Aϕ∂ϕ.(20)\nabla\cdot\mathbf{A} =\frac{1}{(1)(r)(r\sin\theta)} \Bigg[ \frac{\partial}{\partial r}(r^2\sin\theta\,A_r) +\frac{\partial}{\partial\theta}(r\sin\theta\,A_\theta) +\frac{\partial}{\partial\phi}(rA_\phi) \Bigg] =\frac{1}{r^2}\frac{\partial}{\partial r}(r^2A_r) +\frac{1}{r\sin\theta}\frac{\partial}{\partial\theta}(\sin\theta\,A_\theta) +\frac{1}{r\sin\theta}\frac{\partial A_\phi}{\partial\phi}. \tag{20}

Curl (the rr component as an example):

(∇×A)r=1hθhϕ[∂∂θ(hϕAϕ)−∂∂ϕ(hθAθ)]=1r2sin⁡θ[∂∂θ(rsin⁡θ Aϕ)−∂∂ϕ(rAθ)].(21)(\nabla\times\mathbf{A})_r =\frac{1}{h_\theta h_\phi} \left[ \frac{\partial}{\partial\theta}(h_\phi A_\phi) -\frac{\partial}{\partial\phi}(h_\theta A_\theta) \right] =\frac{1}{r^2\sin\theta} \left[ \frac{\partial}{\partial\theta}(r\sin\theta\,A_\phi) -\frac{\partial}{\partial\phi}(rA_\theta) \right]. \tag{21}

Cancelling the constant factor of rr gives:

(∇×A)r=1rsin⁡θ[∂∂θ(sin⁡θ Aϕ)−∂Aθ∂ϕ].(22)(\nabla\times\mathbf{A})_r =\frac{1}{r\sin\theta} \left[ \frac{\partial}{\partial\theta}(\sin\theta\,A_\phi) -\frac{\partial A_\theta}{\partial\phi} \right]. \tag{22}