Grad, div, curl

Definition (nabla) open_in_new

Define the gradient operator $$ \nabla = \v e_i \pdd{x^i}. $$

Definition (gradient without coordinates) open_in_new

Alternatively to here, we can define the gradient of a scalar field $\phi: \R^n \to \R$ by $$ \phi(\v x+\v h) = \phi(\v x) + \v h\cdot\nabla\phi + O(|\v h|^2). $$

Proposition (scalar field following a curve) open_in_new

Let $\v x(t): \R \to \R^n$ be a curve in $\R^n$ and $\phi: \R^n \to \R$ be a scalar field. Then $$ \dvd{\phi\big(\v x(t)\big)}t = \nabla\phi\cdot\dvd xt.$$ Proof

Definition (divergence) open_in_new

For a vector field $\v F: \R^n\to\R^n$, the divergence of $\v F$ is a scalar field $$ \nabla\cdot\v F = \pdfd{F_i}{x^i}. $$

E.g. in $\R^3$, $$\nabla\cdot\v F = \pdfd{F_x}x + \pdfd{F_y}y + \pdfd{F_z}z. $$ Think as the net flow of $\v F$ out of ($\nabla\cdot\v F>0$) or into ($\nabla\cdot\v F<0$) the point $\v x$.

Definition (curl) open_in_new

For a vector field $\v F: \R^3\to\R^3$, the curl of $\v F$ is $$ \nabla \times \v F = \epsilon_{ijk} \pdfd{F_j}{x_i} \v e_k.$$

Think as the rotation of $\v F$ using the right-hand rule.

Definition (irrotational, solenoidal) open_in_new

A vector field $\v F: \R^3\to\R^3$ is

  • irrotational if $\nabla\times\v F=\v 0$;

  • divergence-free/solenoidal if $\nabla\cdot\v F=0$.

Definition (Laplacian) open_in_new

The Laplacian is a second-order differential operator: $$ \nabla^2 = \nabla\cdot\nabla = \frac{\partial^2}{\partial x^i\partial x^i}. $$

E.g. in $\R^3$, $$ \nabla^2 = \pdd[2] x + \pdd[2]y + \pdd[2]z.$$ $\nabla^2\phi$ is a scalar field, and $\nabla^2\v F$ is a vector field, acting component-wise.

Properties:

Theorem (conservative iff irrotational) open_in_new

For vector field $\v F: \R^3 \to \R^3$ defined everywhere, it is conservative iff it is irrotational: $$ \nabla\times\v F=\v 0 \iff \v F=\nabla\phi. $$

Proof

Theorem (divergence-free iff equal to curl) open_in_new

For $\v F: \R^3\to\R^3$ defined everywhere, $$ \nabla\cdot\v F = 0 \iff \v F=\nabla\times\v A \quad\text{for some }\v A. $$

Proof

Orthogonal curvilinear coordinates open_in_new

Definition (orthogonal curvilinear coordinates) open_in_new

For coordinates $\v x(u,v,w)$, it is said to be orthogonal curvilinear if $\partial\v x/\partial u$, $\partial\v x/\partial v$, $\partial\v x/\partial w$ are mutually orthogonal.

We can introduce normalised tangent vectors $$ \pdvd xu = h_u \v e_u, \quad \pdvd xv = h_v \v e_v, \quad \pdvd xw = h_w \v e_w $$ where $h_u, h_v, h_w>0$, $\v e_u, \v e_v, \v e_w$ orthonormal and by reordering the coordinates $\v e_u\times\v e_v = \v e_w$.

Then we have length element $$ d\v x = h_u \v e_u\,du + h_v \v e_v\,dv + h_w\v e_w\,dw. $$

Lemma (nabla in orthogonal curvilinear coordinates) open_in_new

In orthogonal curvilinear coordinates $\v x(u,v,w)$, $$ \nabla = \frac1{h_u}\v e_u \pdd u + \frac1{h_v}\v e_v\pdd v + \frac1{h_w}\v e_w \pdd w $$ and for scalar field $f: \R^3\to\R$ and vector field $\v F:\R^3\to\R^3$, $$\begin{align*} \nabla f &= \frac1{h_u} \pdfd fu \v e_u + \frac1{h_v}\pdfd fv\v e_v + \frac1{h_w}\pdfd fw \v e_w, \\ \nabla\cdot\v F &= \frac{1}{h_u h_v h_w} \bigg(\pdd u(h_v h_w F_u) + \pdd v(h_u h_w F_v) + \pdd w (h_uh_v F_w)\bigg), \\ \nabla\times\v F &= \frac1{h_uh_v h_w}\begin{vmatrix}h_u\v e_u & h_v\v e_v & h_w\v e_w \\ \pdd u & \pdd v & \pdd w \\ h_uF_u & h_v F_v & h_w F_w \end{vmatrix}. \end{align*}$$

Proof

Example (cylindrical polar coordinates) open_in_new

Cylindrical polar coordinates are given by $$\begin{align*} x &= \rho \cos \phi & & & \rho&\in[0,\infty) \\ y &= \rho \sin \phi & &\text{with} & \phi&\in[0, 2\pi) \\ z &= z &&& z&\in(-\infty, \infty). \end{align*}$$ The inverse map is $$ \begin{align*} \rho &= \sqrt{x^2+y^2}, \\ \tan\phi &= \frac yx. \end{align*} $$

The orthonormal vectors are $$ \begin{align*} \v e_\rho \equiv \vhat\rho &= (\cos\phi,\sin\phi,0), & h_\rho &= 1, \\ \v e_\phi \equiv \vhat\phi &= (-\sin\phi, \cos\phi,0), & h_\phi &= \rho, \\ \v e_z \equiv\vhat z &= (0,0,1), &h_z &= 1. \end{align*} $$

So the Jacobian is $$ \pdfd{(x,y,z)}{(\rho,\phi,z)} = h_\rho h_\phi h_z = \rho. $$ The derivative stuff are $$\begin{align*} \nabla &= \vhat\rho \pdd \rho + \frac1\rho\vhat\phi\pdd\phi + \vhat z\pdd z, \\ \nabla f &= \vhat\rho \pdfd f \rho + \frac1\rho\vhat\phi\pdfd f\phi + \vhat z\pdfd fz, \\ \nabla\cdot\v F &= \frac1\rho\pdfd{(\rho F_\rho)}\rho + \frac1\rho\pdfd{F_\phi}\phi + \pdfd{F_z}z, \\ \nabla^2 f &= \frac1\rho\pdd\rho\bigg(\rho\pdfd f\rho\bigg) + \frac1{\rho^2}\pdfd[2]f\phi + \pdfd[2]fz. \end{align*}$$

Example (spherical polar coordinates) open_in_new

Spherical polar coordinates are defined as $$\begin{align*} x &= r\sin\theta\cos\phi & & & r &\in [0,\infty) \\ y &= r\sin\theta\sin\phi & &\text{with} & \theta &\in [0,\pi] \\ z &= r\cos\theta & & & \phi &\in [0,2\pi). \end{align*}$$ The inverse map is $$\begin{align*} r &= \sqrt{x^2+y^2+z^2}, \\ \tan\theta &= \frac{\sqrt{x^2+y^2}}z, \\ \tan\phi &= \frac yx. \end{align*}$$

The tangent vectors are $$\begin{align*} \v e_r \equiv \vhat r &= (\sin\theta\cos\phi,\sin\theta\sin\phi,\cos\theta), & h_r &= 1, \\ \v e_\theta \equiv \vhat\theta &= (\cos\theta\cos\phi, \cos\theta\sin\phi, -\sin\theta), &h_\theta &= r, \\ \v e_\phi \equiv \vhat \phi &= (-\sin\phi, \cos\phi, 0), & h_\phi &= r\sin\theta. \end{align*}$$

Jacobian $$ \frac{\partial(x,y,z)}{\partial(r,\theta,\phi)} = r^2 \sin\theta. $$

The derivative stuff are $$\begin{align*} \nabla &= \vhat r \pdd r +\frac1r\vhat\theta \pdd\theta + \frac1{r\sin\theta}\vhat \phi\pdd \phi, \\ \nabla f &= \vhat r \pdfd fr +\frac1r\vhat\theta \pdfd f\theta + \frac1{r\sin\theta}\vhat \phi\pdfd f\phi, \\ \nabla\cdot\v F &= \frac1{r^2} \pdfd{(r^2 F_r)}r + \frac1{r\sin\theta} \pdfd{(\sin\theta F_\theta)}\theta + \frac1{r\sin\theta}\pdfd{F_\phi}{\phi} \\ \nabla^2 f &= \frac1{r^2} \pdd r\bigg(r^2\pdfd fr\bigg) + \frac1{r^2\sin\theta}\pdd\theta\bigg(\sin\theta\pdfd f\theta\bigg) + \frac1{r^2\sin^2\theta} \pdfd[2]f\phi. \end{align*}$$