working without coordinates
geometric algebra, part 5
last updated 2026-11
part 4 still worked in components - nine partial derivatives, then sort them by grade. but doesn't need coordinates: a few rules, derived once, and most derivatives in physics take a line. this is what makes Maxwell's equations in part 6 short
the directional derivative
start with something that's obviously coordinate-free - how fast a field changes when you step in the direction :
no axes in sight - just "move a bit along and compare". itself is then put back together from the directional derivatives along any orthonormal basis:
and it comes out the same whichever basis you pick - it's a vector that belongs to the space, not to the coordinates. that's the whole trick of this page: work out for a general (usually easy), then put in for , multiply by and add up
the basic derivatives
is the position vector, its length, and a constant vector
the position vector itself - stepping by changes by exactly , so , and
(in dimensions, ). all scalar - divergence 3, no curl
a projection - for any step , so
(the sum is just written in components). the gradient of "how far along " is - as expected
the square - , so by the previous one
the length, and its powers - , and the chain rule works as usual for scalar functions:
the gradient of the distance is the unit vector pointing away - no square roots of to differentiate
products with a scalar - for a scalar field , the product rule is the usual one, - keep the order, since is a vector and doesn't commute with
python check
from sympy import symbols, sqrt
from galgebra.ga import Ga
x, y, z = symbols('x y z', real=True)
a1, a2, a3 = symbols('a1 a2 a3', real=True)
g3, e1, e2, e3 = Ga.build('e1 e2 e3', g=[1, 1, 1], coords=(x, y, z))
grad = g3.grad
X = x*e1 + y*e2 + z*e3 # position vector
a = a1*e1 + a2*e2 + a3*e3 # constant vector
r = sqrt(x**2 + y**2 + z**2)
print(grad*X) # 3
print(grad*(X | a)) # a1*e1 + a2*e2 + a3*e3
print(grad*(X*X)) # 2*x*e1 + 2*y*e2 + 2*z*e3
print((grad*r).simplify()) # x*e1/sqrt(x**2 + y**2 + z**2) + ... - x/r
the inverse square field
now a real one: the field that falls off as , pointing away from the origin - . with the product rule and the rules above:
(using ). zero - no divergence and no curl, anywhere except the origin, in one line
example - the standard way
the divergence, by components - , the same for and , adding up to ✓
the curl - the x-component is ✓, then the same for the other two
so: two separate calculations with three components each, against one line that never mentions a component
and it's special to that power - in 3D, only the field falling off as is source-free
why exactly $1/r^2$
the same calculation for any power, , is zero only for - only the field falling off as is source-free in 3D. the 3 is , the number of dimensions: the field spreads over a sphere's surface, which grows as . in 2D it would be
python check
from sympy import symbols, sqrt
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
X = x*e1 + y*e2 + z*e3
r = sqrt(x**2 + y**2 + z**2)
print((grad*(X/r**3)).simplify()) # 0
print((grad*(X/r**2)).simplify()) # 1/(x**2 + y**2 + z**2) - n = -2: (n + 3) r^n = 1/r^2
the point charge
the electric field of a point charge at the origin is that very field, . so everywhere but at the charge - and with a charge density in general, the two laws of electrostatics are one equation:
the scalar part is Gauss's law , the bivector part says - no curl, so a potential exists. and here, " of a vector is a scalar" is a physical statement. part 6 makes it the full thing, with time and magnetism
the integral form
one more fact, stated without proof - the fundamental theorem of geometric calculus. for a volume with the surface and outward unit normal :
for a vector field, the scalar part is the divergence theorem (Gauss), the bivector part the curl version of it - both theorems, one formula
example - Gauss's law for the point charge
on a sphere of radius , , so - a plain number, the same all over the sphere. times the area gives ✓, and no bivector part, so no circulation ✓
what we have
- is "step along and compare", and in any basis
- , , , and the product rule with a scalar
- in one line - and is the only power that does it in 3D
- electrostatics is , and holds both integral theorems
next, the goal: all four Maxwell's equations as one