vector calculus has gradient, divergence and curl, each with its own formula and a table of identities between them. GA has one operator, ∇, 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∂
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 f it's the usual gradient, ∇f
one thing to keep in mind: ∇ 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, ∇v splits like any product of two vectors:
∇v=∇⋅v+∇∧v
the scalar part is the divergence, ∇⋅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)
so ∇v=∇⋅v+I∇×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 - nine terms, the three with i=j give the divergence, the other six pair up into the three bivectors
example - a whirl
v=−ye1+xe2 - a field that circles around the z-axis. only two of the nine derivatives are non-zero, ∂xv2=1 and ∂yv1=−1:
∇v=e1e2⋅1+e2e1⋅(−1)=2e12
no scalar part, and a pure bivector in the xy-plane - the plane it whirls in. the standard way:
∇⋅v=∂x(−y)+∂yx=0 ✓
∇×v=(0,0,∂xx−∂y(−y))=2e3, and I⋅2e3=2e12 ✓
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^e2print(grad | v, grad ^ v)# 0 2*e1^e2 - divergence, curl
example - everything at once
w=xye1+yze2+zxe3. the non-zero derivatives are ∂xw1=y, ∂yw1=x, ∂yw2=z, ∂zw2=y, ∂xw3=z, ∂zw3=x, so
∇×w=(∂yw3−∂zw2,∂zw1−∂xw3,∂xw2−∂yw1)=(−y,−z,−x), and I(−ye1−ze2−xe3)=−ye23−ze31−xe12 ✓
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
∇ times itself is ∇∇=∇⋅∇+∇∧∇. the dot part is the Laplacian, ∇2=∂x2+∂y2+∂z2. the wedge part is zero - its components are ∂i∂j−∂j∂i, and partial derivatives commute. so
∇∇=∇2,∇∧∇=0
two of the classic identities are just this one fact, read on different grades:
on a scalar field, ∇∧(∇f)=0 - the curl of a gradient is zero
on a vector field, ∇∧(∇∧v)=0 - the trivector part, and by duality that's I∇⋅(∇×v), so the divergence of a curl is zero
and ∇(∇v)=∇2v in one go, where vector calculus needs ∇2v=∇(∇⋅v)−∇×(∇×v). that last identity is just the grade-1 part of ∇(∇⋅v+∇∧v) - it comes back in part 6, where it's the reason the wave equation takes one line
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 ✓
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 + e3print(grad*(grad*f))# 2*y
what we have
∇=∑ei∂i is a vector, and multiplies with the geometric product
∇v=∇⋅v+∇∧v - divergence plus curl, the curl as a bivector, ∇∧v=I∇×v
∇∇=∇2, and ∇∧∇=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