paskvilwiki

up: math & phy

the vector derivative

geometric algebra, part 4

last updated 2026-11

vector calculus has gradient, divergence and curl, each with its own formula and a table of identities between them. GA has one operator, ∇\boldsymbol\nabla, and the geometric product does the rest: divergence and curl come out as its two parts, the same way the dot and the wedge did in part 1

nabla is a vector

the vector derivative is the familiar nabla:

∇=e1∂∂x+e2∂∂y+e3∂∂z\boldsymbol\nabla = \mathbf e_1\frac{\partial}{\partial x} + \mathbf e_2\frac{\partial}{\partial y} + \mathbf e_3\frac{\partial}{\partial z}

the only new thing is that it's now a vector in the algebra, so it multiplies with the geometric product like any other vector - it just differentiates what's to its right, before multiplying. on a scalar field ff it's the usual gradient, ∇f\boldsymbol\nabla f

one thing to keep in mind: ∇\boldsymbol\nabla doesn't commute with what it acts on (it differentiates the right side only, and the product isn't commutative anyway), so keep it on the left of what it differentiates

divergence and curl in one product

on a vector field v\mathbf v, ∇v\boldsymbol\nabla\mathbf v splits like any product of two vectors:

∇v=∇⋅v+∇∧v\boxed{\boldsymbol\nabla\mathbf v = \boldsymbol\nabla\cdot\mathbf v + \boldsymbol\nabla\wedge\mathbf v}

  • the scalar part is the divergence, ∇⋅v\boldsymbol\nabla\cdot\mathbf v - exactly as in vector calculus
  • the bivector part is the curl, as a plane instead of an axis - by duality (part 2), ∇∧v=I (∇×v)\boldsymbol\nabla\wedge\mathbf v = I\,(\boldsymbol\nabla\times\mathbf v)

so ∇v=∇⋅v+I ∇×v\boldsymbol\nabla\mathbf v = \boldsymbol\nabla\cdot\mathbf v + I\,\boldsymbol\nabla\times\mathbf v. the bivector form is actually the more honest one: a curl is a circulation in a plane - the little paddle wheel spins in a plane, and the axis is just the 3D way of naming that plane

in components, ∇v=∑i,jeiej ∂ivj\boldsymbol\nabla\mathbf v = \sum_{i,j}\mathbf e_i\mathbf e_j\,\partial_iv_j - nine terms, the three with i=ji = j give the divergence, the other six pair up into the three bivectors

example - a whirl

v=−y e1+x e2\mathbf v = -y\,\mathbf e_1 + x\,\mathbf e_2 - a field that circles around the z-axis. only two of the nine derivatives are non-zero, ∂xv2=1\partial_x v_2 = 1 and ∂yv1=−1\partial_y v_1 = -1:

∇v=e1e2⋅1+e2e1⋅(−1)=2 e12\boldsymbol\nabla\mathbf v = \mathbf e_1\mathbf e_2\cdot 1 + \mathbf e_2\mathbf e_1\cdot(-1) = 2\,\mathbf e_{12}

no scalar part, and a pure bivector in the xy-plane - the plane it whirls in. the standard way:

  • ∇⋅v=∂x(−y)+∂yx=0\boldsymbol\nabla\cdot\mathbf v = \partial_x(-y) + \partial_y x = 0 ✓
  • ∇×v=(0,0,∂xx−∂y(−y))=2 e3\boldsymbol\nabla\times\mathbf v = (0, 0, \partial_x x - \partial_y(-y)) = 2\,\mathbf e_3, and I⋅2e3=2 e12I\cdot 2\mathbf e_3 = 2\,\mathbf e_{12} ✓
python check
from sympy import symbols
from galgebra.ga import Ga

x, y, z = symbols('x y z', real=True)
g3, e1, e2, e3 = Ga.build('e1 e2 e3', g=[1, 1, 1], coords=(x, y, z))
grad = g3.grad

v = -y*e1 + x*e2
print(grad*v)                # 2*e1^e2
print(grad | v, grad ^ v)    # 0 2*e1^e2    - divergence, curl
example - everything at once

w=xy e1+yz e2+zx e3\mathbf w = xy\,\mathbf e_1 + yz\,\mathbf e_2 + zx\,\mathbf e_3. the non-zero derivatives are ∂xw1=y\partial_xw_1 = y, ∂yw1=x\partial_yw_1 = x, ∂yw2=z\partial_yw_2 = z, ∂zw2=y\partial_zw_2 = y, ∂xw3=z\partial_xw_3 = z, ∂zw3=x\partial_zw_3 = x, so

∇w=y e1e1+x e2e1+z e2e2+y e3e2+z e1e3+x e3e3=(x+y+z)−x e12−y e23−z e31\begin{aligned} \boldsymbol\nabla\mathbf w &= y\,\mathbf e_1\mathbf e_1 + x\,\mathbf e_2\mathbf e_1 + z\,\mathbf e_2\mathbf e_2 + y\,\mathbf e_3\mathbf e_2 + z\,\mathbf e_1\mathbf e_3 + x\,\mathbf e_3\mathbf e_3 \\ &= (x + y + z) - x\,\mathbf e_{12} - y\,\mathbf e_{23} - z\,\mathbf e_{31} \end{aligned}

the standard way:

  • ∇⋅w=y+z+x\boldsymbol\nabla\cdot\mathbf w = y + z + x ✓
  • ∇×w=(∂yw3−∂zw2, ∂zw1−∂xw3, ∂xw2−∂yw1)=(−y,−z,−x)\boldsymbol\nabla\times\mathbf w = (\partial_y w_3 - \partial_z w_2,\ \partial_z w_1 - \partial_x w_3,\ \partial_x w_2 - \partial_y w_1) = (-y, -z, -x), and I(−y e1−z e2−x e3)=−y e23−z e31−x e12I(-y\,\mathbf e_1 - z\,\mathbf e_2 - x\,\mathbf e_3) = -y\,\mathbf e_{23} - z\,\mathbf e_{31} - x\,\mathbf e_{12} ✓
python check
from sympy import symbols
from galgebra.ga import Ga

x, y, z = symbols('x y z', real=True)
g3, e1, e2, e3 = Ga.build('e1 e2 e3', g=[1, 1, 1], coords=(x, y, z))
grad = g3.grad

w = x*y*e1 + y*z*e2 + z*x*e3
print(grad*w)                # x + y + z - x*e1^e2 + z*e1^e3 - y*e2^e3

one product, and both results fall out sorted by grade - no need to remember which component of the curl takes which derivative

the identities, for free

∇\boldsymbol\nabla times itself is ∇∇=∇⋅∇+∇∧∇\boldsymbol\nabla\boldsymbol\nabla = \boldsymbol\nabla\cdot\boldsymbol\nabla + \boldsymbol\nabla\wedge\boldsymbol\nabla. the dot part is the Laplacian, ∇2=∂x2+∂y2+∂z2\nabla^2 = \partial_x^2 + \partial_y^2 + \partial_z^2. the wedge part is zero - its components are ∂i∂j−∂j∂i\partial_i\partial_j - \partial_j\partial_i, and partial derivatives commute. so

∇∇=∇2,∇∧∇=0\boldsymbol\nabla\boldsymbol\nabla = \nabla^2, \qquad \boldsymbol\nabla\wedge\boldsymbol\nabla = 0

two of the classic identities are just this one fact, read on different grades:

  • on a scalar field, ∇∧(∇f)=0\boldsymbol\nabla\wedge(\boldsymbol\nabla f) = 0 - the curl of a gradient is zero
  • on a vector field, ∇∧(∇∧v)=0\boldsymbol\nabla\wedge(\boldsymbol\nabla\wedge\mathbf v) = 0 - the trivector part, and by duality that's I ∇⋅(∇×v)I\,\boldsymbol\nabla\cdot(\boldsymbol\nabla\times\mathbf v), so the divergence of a curl is zero

and ∇(∇v)=∇2v\boldsymbol\nabla(\boldsymbol\nabla\mathbf v) = \nabla^2\mathbf v in one go, where vector calculus needs ∇2v=∇(∇⋅v)−∇×(∇×v)\nabla^2\mathbf v = \boldsymbol\nabla(\boldsymbol\nabla\cdot\mathbf v) - \boldsymbol\nabla\times(\boldsymbol\nabla\times\mathbf v). that last identity is just the grade-1 part of ∇(∇⋅v+∇∧v)\boldsymbol\nabla(\boldsymbol\nabla\cdot\mathbf v + \boldsymbol\nabla\wedge\mathbf v) - it comes back in part 6, where it's the reason the wave equation takes one line

example - Laplacian of a scalar

f=x2y+zf = x^2y + z, so ∇f=2xy e1+x2 e2+e3\boldsymbol\nabla f = 2xy\,\mathbf e_1 + x^2\,\mathbf e_2 + \mathbf e_3, and once more:

∇∇f=e1e1 ∂x(2xy)+e2e1 ∂y(2xy)+e1e2 ∂x(x2)=2y+2x e21+2x e12=2y\boldsymbol\nabla\boldsymbol\nabla f = \mathbf e_1\mathbf e_1\,\partial_x(2xy) + \mathbf e_2\mathbf e_1\,\partial_y(2xy) + \mathbf e_1\mathbf e_2\,\partial_x(x^2) = 2y + 2x\,\mathbf e_{21} + 2x\,\mathbf e_{12} = 2y

the two bivector terms cancel - that's the zero curl of the gradient happening in front of you. and the standard Laplacian, ∂x2(x2y)=2y\partial_x^2(x^2y) = 2y ✓

python check
from sympy import symbols
from galgebra.ga import Ga

x, y, z = symbols('x y z', real=True)
g3, e1, e2, e3 = Ga.build('e1 e2 e3', g=[1, 1, 1], coords=(x, y, z))
grad = g3.grad

f = x**2*y + z
print(grad*f)            # 2*x*y*e1 + x**2*e2 + e3
print(grad*(grad*f))     # 2*y

what we have

  • ∇=∑ei∂i\boldsymbol\nabla = \sum\mathbf e_i\partial_i is a vector, and multiplies with the geometric product
  • ∇v=∇⋅v+∇∧v\boldsymbol\nabla\mathbf v = \boldsymbol\nabla\cdot\mathbf v + \boldsymbol\nabla\wedge\mathbf v - divergence plus curl, the curl as a bivector, ∇∧v=I ∇×v\boldsymbol\nabla\wedge\mathbf v = I\,\boldsymbol\nabla\times\mathbf v
  • ∇∇=∇2\boldsymbol\nabla\boldsymbol\nabla = \nabla^2, and ∇∧∇=0\boldsymbol\nabla\wedge\boldsymbol\nabla = 0 holds "curl grad = 0" and "div curl = 0" in one

so far, everything was still done in components. next, how to differentiate without coordinates at all - which is what makes Maxwell's equations short