paskvilwiki

up: math & phy

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 ∇\boldsymbol\nabla 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 FF changes when you step in the direction a\mathbf a:

(a⋅∇)F(x)=lim⁡ε→0F(x+εa)−F(x)ε(\mathbf a\cdot\boldsymbol\nabla)F(\mathbf x) = \lim_{\varepsilon\to0}\frac{F(\mathbf x + \varepsilon\mathbf a) - F(\mathbf x)}{\varepsilon}

no axes in sight - just "move a bit along a\mathbf a and compare". ∇\boldsymbol\nabla itself is then put back together from the directional derivatives along any orthonormal basis:

∇=∑iei (ei⋅∇)\boldsymbol\nabla = \sum_i\mathbf e_i\,(\mathbf e_i\cdot\boldsymbol\nabla)

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 (a⋅∇)F(\mathbf a\cdot\boldsymbol\nabla)F for a general a\mathbf a (usually easy), then put ei\mathbf e_i in for a\mathbf a, multiply by ei\mathbf e_i and add up

the basic derivatives

x\mathbf x is the position vector, r=∣x∣r = |\mathbf x| its length, and a\mathbf a a constant vector

the position vector itself - stepping by εa\varepsilon\mathbf a changes x\mathbf x by exactly εa\varepsilon\mathbf a, so (a⋅∇)x=a(\mathbf a\cdot\boldsymbol\nabla)\mathbf x = \mathbf a, and

∇x=∑ieiei=3\boldsymbol\nabla\mathbf x = \sum_i\mathbf e_i\mathbf e_i = 3

(in nn dimensions, nn). all scalar - divergence 3, no curl

a projection - (b⋅∇)(x⋅a)=b⋅a(\mathbf b\cdot\boldsymbol\nabla)(\mathbf x\cdot\mathbf a) = \mathbf b\cdot\mathbf a for any step b\mathbf b, so

∇(x⋅a)=∑iei(ei⋅a)=a\boldsymbol\nabla(\mathbf x\cdot\mathbf a) = \sum_i\mathbf e_i(\mathbf e_i\cdot\mathbf a) = \mathbf a

(the sum is just a\mathbf a written in components). the gradient of "how far along a\mathbf a" is a\mathbf a - as expected

the square - (b⋅∇)(x2)=bx+xb=2 b⋅x(\mathbf b\cdot\boldsymbol\nabla)(\mathbf x^2) = \mathbf b\mathbf x + \mathbf x\mathbf b = 2\,\mathbf b\cdot\mathbf x, so by the previous one

∇(x2)=2x\boldsymbol\nabla(\mathbf x^2) = 2\mathbf x

the length, and its powers - r=(x2)1/2r = (\mathbf x^2)^{1/2}, and the chain rule works as usual for scalar functions:

∇r=12r 2x=xr=x^,∇rn=n rn−1 x^=n rn−2 x\boldsymbol\nabla r = \frac{1}{2r}\,2\mathbf x = \frac{\mathbf x}{r} = \hat{\mathbf x}, \qquad \boldsymbol\nabla r^n = n\,r^{n-1}\,\hat{\mathbf x} = n\,r^{n-2}\,\mathbf x

the gradient of the distance is the unit vector pointing away - no square roots of x2+y2+z2x^2 + y^2 + z^2 to differentiate

products with a scalar - for a scalar field ff, the product rule is the usual one, ∇(fF)=(∇f) F+f ∇F\boldsymbol\nabla(fF) = (\boldsymbol\nabla f)\,F + f\,\boldsymbol\nabla F - keep the order, since ∇f\boldsymbol\nabla f is a vector and doesn't commute with FF

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 1/r21/r^2, pointing away from the origin - x/r3\mathbf x/r^3. with the product rule and the rules above:

∇xr3=(∇r−3) x+r−3 ∇x=−3r−5 xx+3r−3=−3r−3+3r−3=0\boldsymbol\nabla\frac{\mathbf x}{r^3} = (\boldsymbol\nabla r^{-3})\,\mathbf x + r^{-3}\,\boldsymbol\nabla\mathbf x = -3r^{-5}\,\mathbf x\mathbf x + 3r^{-3} = -3r^{-3} + 3r^{-3} = 0

(using xx=r2\mathbf x\mathbf x = r^2). zero - no divergence and no curl, anywhere except the origin, in one line

example - the standard way

the divergence, by components - ∂xxr3=1r3−3x2r5\partial_x\frac{x}{r^3} = \frac{1}{r^3} - \frac{3x^2}{r^5}, the same for yy and zz, adding up to 3r3−3r2r5=0\frac{3}{r^3} - \frac{3r^2}{r^5} = 0 ✓

the curl - the x-component is ∂yzr3−∂zyr3=−3yzr5+3zyr5=0\partial_y\frac{z}{r^3} - \partial_z\frac{y}{r^3} = -\frac{3yz}{r^5} + \frac{3zy}{r^5} = 0 ✓, 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 1/r21/r^2 is source-free

why exactly $1/r^2$

the same calculation for any power, ∇(rnx)=n rn−2 xx+3rn=(n+3) rn\boldsymbol\nabla(r^n\mathbf x) = n\,r^{n-2}\,\mathbf x\mathbf x + 3r^n = (n + 3)\,r^n, is zero only for n=−3n = -3 - only the field falling off as 1/r21/r^2 is source-free in 3D. the 3 is ∇x\boldsymbol\nabla\mathbf x, the number of dimensions: the field spreads over a sphere's surface, which grows as r2r^2. in 2D it would be 1/r1/r

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 qq at the origin is that very field, E=q4πε0xr3\mathbf E = \frac{q}{4\pi\varepsilon_0}\frac{\mathbf x}{r^3}. so ∇E=0\boldsymbol\nabla\mathbf E = 0 everywhere but at the charge - and with a charge density ρ\rho in general, the two laws of electrostatics are one equation:

∇E=ρε0\boldsymbol\nabla\mathbf E = \frac{\rho}{\varepsilon_0}

the scalar part is Gauss's law ∇⋅E=ρ/ε0\boldsymbol\nabla\cdot\mathbf E = \rho/\varepsilon_0, the bivector part says ∇∧E=0\boldsymbol\nabla\wedge\mathbf E = 0 - no curl, so a potential exists. and here, "∇\boldsymbol\nabla 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 VV with the surface ∂V\partial V and outward unit normal n^\hat{\mathbf n}:

∫V∇F dV=∮∂Vn^ F dA\int_V\boldsymbol\nabla F\,dV = \oint_{\partial V}\hat{\mathbf n}\,F\,dA

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 rr, n^=x/r\hat{\mathbf n} = \mathbf x/r, so n^E=q4πε0xxr4=q4πε0r2\hat{\mathbf n}\mathbf E = \frac{q}{4\pi\varepsilon_0}\frac{\mathbf x\mathbf x}{r^4} = \frac{q}{4\pi\varepsilon_0r^2} - a plain number, the same all over the sphere. times the area 4πr24\pi r^2 gives q/ε0q/\varepsilon_0 ✓, and no bivector part, so no circulation ✓

what we have

  • (a⋅∇)F(\mathbf a\cdot\boldsymbol\nabla)F is "step along a\mathbf a and compare", and ∇=∑ei(ei⋅∇)\boldsymbol\nabla = \sum\mathbf e_i(\mathbf e_i\cdot\boldsymbol\nabla) in any basis
  • ∇x=3\boldsymbol\nabla\mathbf x = 3, ∇(x⋅a)=a\boldsymbol\nabla(\mathbf x\cdot\mathbf a) = \mathbf a, ∇rn=n rn−2x\boldsymbol\nabla r^n = n\,r^{n-2}\mathbf x, and the product rule with a scalar
  • ∇(x/r3)=0\boldsymbol\nabla(\mathbf x/r^3) = 0 in one line - and 1/r21/r^2 is the only power that does it in 3D
  • electrostatics is ∇E=ρ/ε0\boldsymbol\nabla\mathbf E = \rho/\varepsilon_0, and ∫V∇F dV=∮n^F dA\int_V\boldsymbol\nabla F\,dV = \oint\hat{\mathbf n}F\,dA holds both integral theorems

next, the goal: all four Maxwell's equations as one