---
title: 'Orthogonal Curvilinear Coordinates and Vector Operators'
description: 'Starting from the coordinate map and the Lamé coefficients, this note derives the line, surface, and volume elements together with the gradient, divergence, and curl, using spherical coordinates as the worked example.'
tags: ['Mathematical methods of physics', 'Vector analysis', 'Orthogonal curvilinear coordinates']
translator: 'Claude'
---

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](#basics)
  - 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](#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](#spherical)
  - 3.1 Basis vectors and Lamé coefficients
  - 3.2 Differential elements
  - 3.3 Vector operator formulas

<a id="basics"></a>

## 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 $(q_1,q_2,q_3)$.

### 1.1 Orthogonal Curvilinear Coordinates and Lamé Coefficients

In Cartesian coordinates, a change in a coordinate (such as $\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 $(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 $\mathbf{r}$, a function of the generalized coordinates:

$$
\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 $q_i$ by a small amount $\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:

$$
\mathbf{v}_i=\frac{\partial\mathbf{r}}{\partial q_i}.
\tag{2}
$$

This vector points in the direction of increasing $q_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 $\mathbf{v}_i$ is called the **Lamé coefficient** of that coordinate direction, usually written $h_i$:

$$
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 $\mathrm{d}l_i=h_i\,\mathrm{d}q_i$:

- If $q_i$ itself has the dimension of length (such as $r$), then $h_i$ is a dimensionless pure number (usually $1$).
- If $q_i$ is dimensionless (such as the angle $\theta$), then $h_i$ must carry the dimension of length, so that $\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 $\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:

$$
\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 $\{\hat{\mathbf{i}},\hat{\mathbf{j}},\hat{\mathbf{k}}\}$, the directions of the curvilinear basis vectors $\{\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 $\mathrm{d}\mathbf{r}$ can be written as:

$$
\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 $h_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 $\mathrm{d}q_i$ and $\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 $\mathrm{d}\mathbf{a}$ is:

$$
\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)$ run in the cyclic order of a right-handed orthonormal basis. For example, the surface element on a surface of constant $q_3$ is $\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:

$$
\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 $f$ is $\mathrm{d}f=\nabla f\cdot\mathrm{d}\mathbf{l}$. Comparing with the total differential formula $\mathrm{d}f=\sum_i\frac{\partial f}{\partial q_i}\mathrm{d}q_i$ gives:

$$
\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}
$$

<a id="operators"></a>

## 2 Geometric Derivation of the Vector Operators

In orthogonal curvilinear coordinates $(q_1,q_2,q_3)$, the key point is that every physical quantity involving “length” must be multiplied by the corresponding Lamé coefficient $h_i$. Consider a volume element $\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 ($\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 $q_1$ Direction

Consider the pair of faces perpendicular to the $q_1$ direction (each with area $\mathrm{d}S_1=h_2h_3\,\mathrm{d}q_2\,\mathrm{d}q_3$):

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

$$
\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 $q_1+\mathrm{d}q_1$)**: by a first-order Taylor expansion, the flux function $(A_1h_2h_3)$ there becomes:

$$
\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 $q_1$**:

$$
\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 $q_2,q_3$ directions follow in the same way. The total net flux is $\mathrm{d}\Phi=\mathrm{d}\Phi_1+\mathrm{d}\Phi_2+\mathrm{d}\Phi_3$. By the definition of divergence, $\nabla\cdot\mathbf{A}=\frac{\mathrm{d}\Phi}{\mathrm{d}\tau}$, where $\mathrm{d}\tau=h_1h_2h_3\,\mathrm{d}q_1\,\mathrm{d}q_2\,\mathrm{d}q_3$:

$$
\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 ($\nabla\times\mathbf{A}$)

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

#### 2.2.1 The Closed Path Integral

Consider the rectangular path

$$
(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 $q_1$)**:

$$
\mathrm{d}\Gamma_1=[A_1h_1]_{q_2}\,\mathrm{d}q_1.
$$

**Segment 2 (along $q_2$)**:

$$
\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 $-q_1$)**:

$$
\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 $-q_2$)**:

$$
\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:

$$
\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 $\mathrm{d}a_3=h_1h_2\,\mathrm{d}q_1\,\mathrm{d}q_2$. From the definition $(\nabla\times\mathbf{A})_3=\frac{\mathrm{d}\Gamma_{12}}{\mathrm{d}a_3}$ we get:

$$
(\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:

$$
\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}
$$

<a id="spherical"></a>

## 3 Worked Example: Spherical Coordinates $(r,\theta,\phi)$

Spherical coordinates are related to Cartesian coordinates by:

$$
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:

- $h_r=\left|\frac{\partial\mathbf{r}}{\partial r}\right|=1$;
- $h_\theta=\left|\frac{\partial\mathbf{r}}{\partial\theta}\right|=r$;
- $h_\phi=\left|\frac{\partial\mathbf{r}}{\partial\phi}\right|=r\sin\theta$.

The basis vectors expressed in Cartesian components:

$$
\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}
$$

$$
\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}
$$

$$
\hat{\mathbf{e}}_\phi
=-\sin\phi\,\hat{\mathbf{i}}
+\cos\phi\,\hat{\mathbf{j}}.
\tag{18}
$$

### 3.2 Differential Elements

**Line element**:

$$
\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 $r$)**:

$$
\mathrm{d}\mathbf{a}_r
=r^2\sin\theta\,\mathrm{d}\theta\,\mathrm{d}\phi\,\hat{\mathbf{e}}_r.
$$

**Volume element**:

$$
\mathrm{d}\tau=r^2\sin\theta\,\mathrm{d}r\,\mathrm{d}\theta\,\mathrm{d}\phi.
$$

### 3.3 Vector Operator Formulas

Substitute the $h_i$ into the general operator formulas.

**Gradient**:

$$
\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**:

$$
\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 $r$ component as an example)**:

$$
(\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 $r$ gives:

$$
(\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}
$$
