the geometric product
geometric algebra, part 1
last updated 2026-11
the usual vector algebra has two products, and both lose something:
- the dot product gives a number - how much the vectors agree, but nothing about the plane they span or which way you turn from one to the other
- the cross product gives a vector perpendicular to both - but that only works in 3D (in 2D there's no "perpendicular" left, in 4D there's a whole plane of them), it's not associative, and its result isn't really a vector: mirror the setup and it points the wrong way, which is why physics calls it a pseudovector
- neither can be undone - knowing and (or ) isn't enough to get back, so there's no division by a vector
GA replaces both with a single product that keeps all of it, and that you can divide by
notation
the same throughout the series:
| meaning | |
|---|---|
| , … | scalars (plain numbers) |
| , … | vectors in 3D (or 2D) space - bold, as in standard physics, so the GA and the standard results look the same |
| orthonormal basis vectors, | |
| short for , same for , , | |
| the geometric product - no symbol, just like multiplying numbers | |
| , | inner (dot) and outer (wedge) product, the two parts of |
| the cross product - only in the "standard" comparisons | |
| , … | general elements of the algebra (multivectors, part 2) |
| the pseudoscalar (part 2) - never , which stays the complex unit | |
| , | grade- part and reverse of (part 2) |
| the vector derivative (part 4) | |
| , | spacetime vectors and basis - plain, not bold (part 7 only) |
in galgebra, prints as e1^e2, and shows up as -e1^e3 - it keeps indices in increasing order
the one rule
we want to multiply vectors the way we multiply numbers - associative, distributive over addition, scalars commute with everything. what we don't ask for is commutativity, and we add just one rule:
a vector times itself is its length squared - a plain number. that's the whole definition, everything else in GA follows from it
what it says about basis vectors
straight from the rule. for the product of two different basis vectors, square their sum - has length , so:
so , or
perpendicular vectors anticommute. which means can't be a number (numbers commute with everything) and isn't a vector either (we'll see what it does to vectors in a moment) - it's a new kind of object, a bivector
and it squares to - swap the middle two (one sign flip), then use :
keep that in mind - that's where complex numbers and rotations come from, in parts 2 and 3
python check
from galgebra.ga import Ga
g2, e1, e2 = Ga.build('e1 e2', g=[1, 1]) # 2D, metric diag(1, 1)
print((e1 + e2)**2) # 2
print(e1*e2 + e2*e1) # 0
print((e1*e2)**2) # -1
dot and wedge
any product can be split into a symmetric and an antisymmetric half:
the symmetric half is the dot product, - a plain number
why it works
same trick as above - square :
so , and that's - the law of cosines
the antisymmetric half is new - the outer or wedge product . together:
a number plus a bivector. adding two different kinds of things looks odd at first, but it's the same as - the parts just stay apart, like real and imaginary
what the bivector means
is an oriented area: a piece of the plane spanned by and , with
- a size - the area of the parallelogram,
- an attitude - which plane it lies in
- an orientation - the turning sense, from towards
swap the vectors and the turning sense flips, . a vector with itself spans nothing,
the two extremes:
- parallel vectors - the wedge is zero, is a number and the vectors commute
- perpendicular vectors - the dot is zero, is a pure bivector and they anticommute (exactly what we found for )
and anything in between is a mix - with the angle from to and the unit bivector of their plane (in 2D just ):
with , that's Euler's formula in disguise. the geometric product of two vectors holds their lengths, the angle between them and the plane they're in
example - two vectors in 2D
take and , and multiply out term by term, using and :
the standard way:
- dot product - the scalar part ✓
- signed area of the parallelogram, the determinant - the part ✓, positive since is counter-clockwise from
- the angle: is at , at , so apart - and the product says , ✓
the other way round, - same dot, opposite turning sense
python check
from galgebra.ga import Ga
g2, e1, e2 = Ga.build('e1 e2', g=[1, 1])
a = 3*e1 + e2
b = e1 + 2*e2
print(a*b) # 5 + 5*e1^e2
print(b*a) # 5 - 5*e1^e2
print(a | b) # 5 - the inner (dot) product
print(a ^ b) # 5*e1^e2 - the wedge
in 3D there are three basis bivectors, one per coordinate plane - , , - and the wedge of two vectors holds the same three numbers as their cross product: each bivector goes with the vector perpendicular to its plane. not a coincidence - in 3D every plane has exactly one normal direction, and that's all the cross product is: the wedge, swapped for its normal. part 2 makes that exact with one multiplication
example - the same in 3D
for and , the same expansion gives (all the terms are the dot product, the rest pair up into bivectors):
and the standard way, ✓ and
the same three numbers as the wedge - with and , with and , with and ✓
python check
from galgebra.ga import Ga
g3, e1, e2, e3 = Ga.build('e1 e2 e3', g=[1, 1, 1])
a = e1 + 2*e2
b = 3*e2 + e3
print(a*b) # 6 + 3*e1^e2 + e1^e3 + 2*e2^e3
# (e1^e3 = -e31, so that's the -e31 above)
dividing by a vector
the one rule gives the inverse for free: is a number, so divide both sides by it
same direction, reciprocal length. any non-zero vector has one - and since the product keeps both the dot and the wedge, it holds enough to get back: . neither the dot nor the cross product alone can do that
example - getting b back
from the 2D example, and . , so , and with and :
which is ✓
python check
from galgebra.ga import Ga
g2, e1, e2 = Ga.build('e1 e2', g=[1, 1])
a = 3*e1 + e2
M = 5 + 5*(e1*e2) # the product a*b from before
print(a.inv()) # 3*e1/10 + e2/10
print(a.inv()*M) # e1 + 2*e2
print(e1*(e1*e2)) # e2 - e1 turned by 90°
and note what happens on the way: multiplying the vector by the bivector gives the vector - turned by 90°. bivectors rotate vectors in their plane - that's part 3
what we have
- one rule, , gives a product of vectors that is associative and invertible
- - a scalar plus a bivector
- the bivector is an oriented area, and unit bivectors square to
- in 3D the wedge holds the same numbers as the cross product, but as a plane instead of its normal - and it works the same in any number of dimensions
next, everything else you can build by multiplying vectors - and where the cross product, complex numbers and quaternions sit in it