paskvilwiki

up: math & phy

spacetime algebra

geometric algebra, part 7

last updated 2026-11

in part 6, 1c∂t\frac1c\partial_t and ∇\boldsymbol\nabla sat side by side, but time wasn't a direction of the algebra. make it one - a fourth basis vector - and you get the spacetime algebra (STA). the 3D algebra of the earlier parts turns out to live inside it, Maxwell's equation becomes ∇F=J\nabla F = J, and Lorentz transformations are just rotors

new notation for this page (see part 1): spacetime vectors are plain, a,x,Ja, x, J, and bold stays for 3D vectors

four directions, one with a plus

four orthonormal basis vectors, γ0\gamma_0 for time and γ1,γ2,γ3\gamma_1, \gamma_2, \gamma_3 for space - but they don't all square to +1+1:

γ02=1,γ12=γ22=γ32=−1\gamma_0^2 = 1, \qquad \gamma_1^2 = \gamma_2^2 = \gamma_3^2 = -1

this is the signature (+−−−)(+{-}{-}{-}), and it's the only change. the one rule from part 1 now reads "a vector squared is its squared interval", and everything else - anticommuting perpendicular vectors, dot and wedge, rotors - works as before

the blades: 24=162^4 = 16, in grades 1-4-6-4-1 - scalar, 4 vectors, 6 bivectors, 4 trivectors, and the pseudoscalar I=γ0γ1γ2γ3I = \gamma_0\gamma_1\gamma_2\gamma_3, with I2=−1I^2 = -1 again. one difference from 3D: II now anticommutes with vectors (a vector passes four factors, three of them flip the sign), but still commutes with bivectors

the interval

an event at time tt and place x\mathbf x is the spacetime vector x=ct γ0+x1γ1+x2γ2+x3γ3x = ct\,\gamma_0 + x_1\gamma_1 + x_2\gamma_2 + x_3\gamma_3, and its square is

x2=c2t2−x12−x22−x32x^2 = c^2t^2 - x_1^2 - x_2^2 - x_3^2

the invariant interval of special relativity, straight from the signature - positive for timelike, negative for spacelike, zero on the light cone

the spacetime split

pick an observer - their time direction is γ0\gamma_0. now take the six bivectors that contain γ0\gamma_0:

σk=γkγ0,k=1,2,3\boldsymbol\sigma_k = \gamma_k\gamma_0, \qquad k = 1, 2, 3

they square to +1+1 - (γkγ0)2=−γk2γ02=1(\gamma_k\gamma_0)^2 = -\gamma_k^2\gamma_0^2 = 1 - they anticommute with each other, and σ1σ2σ3=γ0γ1γ2γ3=I\boldsymbol\sigma_1\boldsymbol\sigma_2\boldsymbol\sigma_3 = \gamma_0\gamma_1\gamma_2\gamma_3 = I. that's exactly how e1,e2,e3\mathbf e_1, \mathbf e_2, \mathbf e_3 behaved in parts 1-6, down to the same pseudoscalar. so the 3D algebra is the even part of STA - the observer's space vectors are spacetime bivectors, "the plane of my time direction and that space direction"

and splitting an event works by multiplying with γ0\gamma_0:

xγ0=ct+xkγkγ0=ct+xx\gamma_0 = ct + x_k\gamma_k\gamma_0 = ct + \mathbf x

time and the observer's 3D position, as a scalar plus a 3D vector. a different observer has a different γ0\gamma_0, and splits the same xx differently - that's relativity of simultaneity

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

x0, x, y, z = symbols('x0 x y z', real=True)    # x0 = ct
st, g0, g1, g2, g3 = Ga.build('g0 g1 g2 g3', g=[1, -1, -1, -1], coords=(x0, x, y, z))
I = g0*g1*g2*g3
s1, s2, s3 = g1*g0, g2*g0, g3*g0                # the observer's 3D basis

print(g0*g0, g1*g1, I*I)        # 1 -1 -1
print(s1*s1, s1*s2 + s2*s1)     # 1 0
print(s1*s2*s3 - I)             # 0
print(I*g0 + g0*I)              # 0     - I anticommutes with vectors
X = x0*g0 + x*g1 + y*g2 + z*g3
print(X*X)                      # -x**2 + x0**2 - y**2 - z**2
print(X*g0)                     # x0 - x*g0^g1 - y*g0^g2 - z*g0^g3    - g0^g1 = -s1

the spacetime derivative

with x0=ctx^0 = ct, the vector derivative in spacetime is

∇=γ0∂0+γ1∂1+γ2∂2+γ3∂3\nabla = \gamma^0\partial_0 + \gamma^1\partial_1 + \gamma^2\partial_2 + \gamma^3\partial_3

where γ0=γ0\gamma^0 = \gamma_0 and γk=−γk\gamma^k = -\gamma_k - the "reciprocal" basis, needed because of the minus signs (it makes γμ⋅γν=1\gamma^\mu\cdot\gamma_\nu = 1 or 00, as a derivative has to). now split it, like xx above:

γ0∇=∂0+γ0γk∂k=∂0+γkγ0 ∂k=1c∂t+∇\gamma_0\nabla = \partial_0 + \gamma_0\gamma^k\partial_k = \partial_0 + \gamma_k\gamma_0\,\partial_k = \frac1c\partial_t + \boldsymbol\nabla

the operator from part 6 - it was the spacetime derivative all along, seen by one observer

Maxwell's equation: ∇F = J

the field F=E+IcBF = \mathbf E + Ic\mathbf B is already a spacetime object - both σk\boldsymbol\sigma_k and IσkI\boldsymbol\sigma_k are spacetime bivectors, all six of them. so part 6's equation is γ0∇F=1ε0(ρ−J/c)\gamma_0\nabla F = \frac1{\varepsilon_0}(\rho - \mathbf J/c). multiply it by γ0\gamma_0 from the left, and with the spacetime current J=cρ γ0+JkγkJ = c\rho\,\gamma_0 + J_k\gamma_k - the charge density and the current as one vector - it becomes

∇F=μ0c J\boxed{\nabla F = \mu_0c\,J}

why it works

γ02=1\gamma_0^2 = 1 clears it on the left side, and on the right γ0σk=γ0γkγ0=−γk\gamma_0\boldsymbol\sigma_k = \gamma_0\gamma_k\gamma_0 = -\gamma_k, so γ0J=−Jkγk\gamma_0\mathbf J = -J_k\gamma_k:

∇F=1ε0(ργ0+Jkγkc)=1cε0(cρ γ0+Jkγk)\nabla F = \frac1{\varepsilon_0}\left(\rho\gamma_0 + \frac{J_k\gamma_k}c\right) = \frac{1}{c\varepsilon_0}\left(c\rho\,\gamma_0 + J_k\gamma_k\right)

the bracket is JJ, and 1cε0=μ0c\frac1{c\varepsilon_0} = \mu_0c

or in units with c=ε0=1c = \varepsilon_0 = 1, just ∇F=J\nabla F = J. no observer in it, no split into space and time - only spacetime vectors and the geometric product, so it holds the same in every inertial frame. Lorentz covariance isn't checked, it's built in

four laws from two grades

∇\nabla is a vector and FF a bivector, so ∇F=∇⋅F+∇∧F\nabla F = \nabla\cdot F + \nabla\wedge F has a vector and a trivector part (part 2, one grade down and one up). JJ is a vector, so:

  • ∇⋅F=μ0c J\nabla\cdot F = \mu_0c\,J - the γ0\gamma_0 component is Gauss, the γk\gamma_k components are Ampère-Maxwell
  • ∇∧F=0\nabla\wedge F = 0 - the trivectors with γ0\gamma_0 are Faraday, the one without (γ123\gamma_{123}) is no monopoles

the sources' equation and the source-free one - two grades in spacetime. part 6's four grades were the same two, each cut in two by the observer's split

python check - the four laws again
from sympy import symbols, Function
from galgebra.ga import Ga

x0, x, y, z = symbols('x0 x y z', real=True)    # x0 = ct
st, g0, g1, g2, g3 = Ga.build('g0 g1 g2 g3', g=[1, -1, -1, -1], coords=(x0, x, y, z))
grad = st.grad
I = g0*g1*g2*g3
s = [g1*g0, g2*g0, g3*g0]

def field(name):    # a 3D vector field on the s_k basis, components functions of x0, x, y, z
    return sum((Function(name + k)(x0, x, y, z)*sk for k, sk in zip('xyz', s)), 0*g0)

F = field('E') + I*field('cB')
D = grad*F

print(D.get_grade(1))
# (D{x}Ex + D{y}Ey + D{z}Ez)*g0                  - div E          = rho/eps0  (Gauss)
# + (-D{x0}Ex - D{z}cBy + D{y}cBz)*g1 + ...      - curl cB - dE/dx0 = mu0 c J  (Ampère-Maxwell)
print(D.get_grade(3))
# (D{y}Ex - D{x}Ey - D{x0}cBz)*g0^g1^g2 + ...    - -(curl E + dB/dt)          (Faraday)
# + (D{x}cBx + D{y}cBy + D{z}cBz)*g1^g2^g3       - div cB                     (no monopoles)

Lorentz boosts are rotors

a rotor in a plane that contains γ0\gamma_0 - say σ1=γ1γ0\boldsymbol\sigma_1 = \gamma_1\gamma_0 - is still R=eσ1α/2R = e^{\boldsymbol\sigma_1\alpha/2}, but σ12=+1\boldsymbol\sigma_1^2 = +1 now, so the exponential gives cosh and sinh instead of cos and sin:

R=eσ1α/2=cosh⁡α2+σ1sinh⁡α2R = e^{\boldsymbol\sigma_1\alpha/2} = \cosh\tfrac\alpha2 + \boldsymbol\sigma_1\sinh\tfrac\alpha2

applied to the time direction, Rγ0R~=cosh⁡α γ0+sinh⁡α γ1R\gamma_0\widetilde R = \cosh\alpha\,\gamma_0 + \sinh\alpha\,\gamma_1 (same half-angle argument as in part 3 - γ0\gamma_0 lies in the plane, so it gets R2R^2). that's the velocity of an observer moving along x with v/c=tanh⁡αv/c = \tanh\alpha - the rapidity α\alpha is the hyperbolic angle, and cosh⁡α=γ\cosh\alpha = \gamma, sinh⁡α=γv/c\sinh\alpha = \gamma v/c are the familiar Lorentz factors. a boost is a rotation in a plane containing time, and rotors handle it exactly like any other rotation

that moving observer measures the field in their own basis RγμR~R\gamma_\mu\widetilde R, which is the same as reading F′=R~FRF' = \widetilde RFR in the old one

example - a moving observer sees a magnetic field

a pure electric field along y, E=E σ2\mathbf E = E\,\boldsymbol\sigma_2, no B\mathbf B. σ2\boldsymbol\sigma_2 anticommutes with σ1\boldsymbol\sigma_1, so σ2R=R~σ2\boldsymbol\sigma_2R = \widetilde R\boldsymbol\sigma_2, and

F′=R~ Eσ2 R=E R~2σ2=E(cosh⁡α−σ1sinh⁡α) σ2=γE σ2−γvcE Iσ3F' = \widetilde R\,E\boldsymbol\sigma_2\,R = E\,\widetilde R^2\boldsymbol\sigma_2 = E(\cosh\alpha - \boldsymbol\sigma_1\sinh\alpha)\,\boldsymbol\sigma_2 = \gamma E\,\boldsymbol\sigma_2 - \gamma\tfrac vc E\,I\boldsymbol\sigma_3

(using σ1σ2=Iσ3\boldsymbol\sigma_1\boldsymbol\sigma_2 = I\boldsymbol\sigma_3). read it as E′+IcB′\mathbf E' + Ic\mathbf B': E′=γE σ2\mathbf E' = \gamma E\,\boldsymbol\sigma_2 and cB′=−γvcE σ3c\mathbf B' = -\gamma\frac vcE\,\boldsymbol\sigma_3 - the moving observer sees a magnetic field

the standard field transformation for a boost v=v e1\mathbf v = v\,\mathbf e_1: E⊥′=γ(E+v×B)⊥=γE e2\mathbf E'_\perp = \gamma(\mathbf E + \mathbf v\times\mathbf B)_\perp = \gamma E\,\mathbf e_2 ✓, and B⊥′=γ(B−v×Ec2)⊥=−γvEc2 e3\mathbf B'_\perp = \gamma\left(\mathbf B - \frac{\mathbf v\times\mathbf E}{c^2}\right)_\perp = -\gamma\frac{vE}{c^2}\,\mathbf e_3 ✓

python check
from sympy import symbols, cosh, sinh
from galgebra.ga import Ga

st, g0, g1, g2, g3 = Ga.build('g0 g1 g2 g3', g=[1, -1, -1, -1])
I = g0*g1*g2*g3
s1, s2, s3 = g1*g0, g2*g0, g3*g0
alpha = symbols('alpha', real=True)
E = symbols('E', positive=True)

R = cosh(alpha/2) + s1*sinh(alpha/2)
print((R*g0*R.rev()).simplify())     # cosh(alpha)*g0 + sinh(alpha)*g1    - the moving observer

F = E*s2
print((R.rev()*F*R).simplify())      # -E*cosh(alpha)*g0^g2 + E*sinh(alpha)*g1^g2
                                     #   g0^g2 = -s2, g1^g2 = -I*s3

the invariants

square the field: F2=(E+IcB)2=E2−c2B2+2Ic E⋅BF^2 = (\mathbf E + Ic\mathbf B)^2 = \mathbf E^2 - c^2\mathbf B^2 + 2Ic\,\mathbf E\cdot\mathbf B. a boost turns it into F′2=R~F2RF'^2 = \widetilde RF^2R - and a scalar plus a pseudoscalar commutes with any rotor, so F′2=F2F'^2 = F^2. both parts are invariant:

E2−c2B2andE⋅B\mathbf E^2 - c^2\mathbf B^2 \quad\text{and}\quad \mathbf E\cdot\mathbf B

the two Lorentz invariants of the electromagnetic field, as the two halves of one square

example - the moving observer again

for the boosted field above: γ2E2−γ2v2c2E2=E2\gamma^2E^2 - \gamma^2\frac{v^2}{c^2}E^2 = E^2 ✓ (as cosh⁡2−sinh⁡2=1\cosh^2 - \sinh^2 = 1), and E′⋅B′=0\mathbf E'\cdot\mathbf B' = 0 ✓ - a pure electric field stays "mostly electric" for every observer, and never gets a magnetic part along E\mathbf E

python check
from sympy import symbols, cosh, sinh
from galgebra.ga import Ga

st, g0, g1, g2, g3 = Ga.build('g0 g1 g2 g3', g=[1, -1, -1, -1])
I = g0*g1*g2*g3
s1, s2, s3 = g1*g0, g2*g0, g3*g0
alpha = symbols('alpha', real=True)
E = symbols('E', positive=True)

R = cosh(alpha/2) + s1*sinh(alpha/2)
F = E*s2
Fp = (R.rev()*F*R).simplify()
print(F*F, (Fp*Fp).simplify())       # E**2 E**2

where next

  • gravity - general relativity fits into STA as a gauge theory ("gauge theory gravity"): Lasenby, Doran and Gull, Gravity, gauge theories and geometric algebra, Phil. Trans. R. Soc. A 356 (1998), arXiv:gr-qc/0405033. it needs everything here plus a lot more machinery - way beyond this series
  • books - all the proofs this series skipped:
    • Doran, Lasenby - Geometric Algebra for Physicists (2003) - the standard reference for physics, from the basics through STA, quantum mechanics and gravity
    • Hestenes - New Foundations for Classical Mechanics (1986, 2nd ed. 1999) - GA for mechanics, from the person who revived it. also his Space-Time Algebra (1966, 2nd ed. 2015), where STA started
    • Macdonald - Linear and Geometric Algebra (2010) and Vector and Geometric Calculus (2012) - the gentlest full treatment, undergraduate level, with exercises
    • Dorst, Fontijne, Mann - Geometric Algebra for Computer Science (2007) - the geometric side, with graphics and robotics in mind
  • software - galgebra (symbolic, used here), clifford (numeric Python), kingdon (Python, any signature), ganja.js (JavaScript, with interactive drawings)
  • community - bivector.net collects tools, talks and papers

what we have

  • STA: γ02=1\gamma_0^2 = 1, γk2=−1\gamma_k^2 = -1, 16 blades, and x2x^2 is the invariant interval
  • the spacetime split: σk=γkγ0\boldsymbol\sigma_k = \gamma_k\gamma_0 are the observer's 3D basis - the 3D algebra is the even part of STA - and xγ0=ct+xx\gamma_0 = ct + \mathbf x
  • γ0∇=1c∂t+∇\gamma_0\nabla = \frac1c\partial_t + \boldsymbol\nabla, and Maxwell's equation is ∇F=μ0c J\nabla F = \mu_0c\,J - vector part with sources, trivector part without
  • boosts are rotors in planes containing γ0\gamma_0, R~FR\widetilde RFR mixes E\mathbf E and B\mathbf B, and F2F^2 holds both field invariants

from "a vector squared is its length squared" to one equation for all of electromagnetism, valid for every observer - that's the series