spacetime algebra
geometric algebra, part 7
last updated 2026-11
in part 6, and 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 , and Lorentz transformations are just rotors
new notation for this page (see part 1): spacetime vectors are plain, , and bold stays for 3D vectors
four directions, one with a plus
four orthonormal basis vectors, for time and for space - but they don't all square to :
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: , in grades 1-4-6-4-1 - scalar, 4 vectors, 6 bivectors, 4 trivectors, and the pseudoscalar , with again. one difference from 3D: 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 and place is the spacetime vector , and its square is
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 . now take the six bivectors that contain :
they square to - - they anticommute with each other, and . that's exactly how 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 :
time and the observer's 3D position, as a scalar plus a 3D vector. a different observer has a different , and splits the same 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 , the vector derivative in spacetime is
where and - the "reciprocal" basis, needed because of the minus signs (it makes or , as a derivative has to). now split it, like above:
the operator from part 6 - it was the spacetime derivative all along, seen by one observer
Maxwell's equation: ∇F = J
the field is already a spacetime object - both and are spacetime bivectors, all six of them. so part 6's equation is . multiply it by from the left, and with the spacetime current - the charge density and the current as one vector - it becomes
why it works
clears it on the left side, and on the right , so :
the bracket is , and
or in units with , just . 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
is a vector and a bivector, so has a vector and a trivector part (part 2, one grade down and one up). is a vector, so:
- - the component is Gauss, the components are Ampère-Maxwell
- - the trivectors with are Faraday, the one without () 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 - say - is still , but now, so the exponential gives cosh and sinh instead of cos and sin:
applied to the time direction, (same half-angle argument as in part 3 - lies in the plane, so it gets ). that's the velocity of an observer moving along x with - the rapidity is the hyperbolic angle, and , 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 , which is the same as reading in the old one
example - a moving observer sees a magnetic field
a pure electric field along y, , no . anticommutes with , so , and
(using ). read it as : and - the moving observer sees a magnetic field
the standard field transformation for a boost : ✓, and ✓
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: . a boost turns it into - and a scalar plus a pseudoscalar commutes with any rotor, so . both parts are invariant:
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: ✓ (as ), and ✓ - a pure electric field stays "mostly electric" for every observer, and never gets a magnetic part along
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: , , 16 blades, and is the invariant interval
- the spacetime split: are the observer's 3D basis - the 3D algebra is the even part of STA - and
- , and Maxwell's equation is - vector part with sources, trivector part without
- boosts are rotors in planes containing , mixes and , and 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