multivectors and the 3D algebra
geometric algebra, part 2
last updated 2026-11
part 1 multiplied two vectors and got a scalar plus a bivector. keep multiplying, and you get everything the algebra has - in 3D that's only eight building blocks, and the cross product, complex numbers and quaternions all turn out to be made of them
the eight building blocks
take any product of basis vectors and simplify it with the two rules from part 1 - , and swapping two different neighbours flips the sign. for example
repeated vectors always meet and cancel, so what's left is each basis vector at most once. in 3D that gives basis blades, sorted by grade - how many vectors are multiplied:
| grade | name | blades | count | geometry |
|---|---|---|---|---|
| 0 | scalar | 1 | a number | |
| 1 | vector | 3 | oriented line | |
| 2 | bivector | 3 | oriented plane | |
| 3 | trivector | 1 | oriented volume |
the counts are binomial coefficients, 1-3-3-1 - in dimensions you get blades in grades
a multivector is any sum of them, like . same as with complex numbers, the parts of different grade just stay apart. picks the grade- part - here , ,
multivectors add part by part and multiply term by term, and the product of any two is again a multivector - the space is closed. that, plus associativity and distributivity, is what makes it an algebra
vector times bivector
part 1 split the product of two vectors into a lower grade (the dot, grade 0) and a higher grade (the wedge, grade 2). a vector times a bivector splits the same way, into a vector and a trivector:
- the part of in the plane of gives a vector, turned by 90° within the plane - e.g.
- the part out of the plane gives a volume - e.g.
the same pattern holds throughout: multiplying by a vector moves one grade down (inner, ) and one up (outer, )
python check
from galgebra.ga import Ga
g3, e1, e2, e3 = Ga.build('e1 e2 e3', g=[1, 1, 1])
B = e1*e2
print(e2*e1*e3*e2) # e1^e3, which is -e31
print(e1*B, e1 | B) # e2 e2 - in the plane: the inner part
print(e3*B, e3 ^ B) # e1^e2^e3 e1^e2^e3 - out of it: the outer part
the pseudoscalar
the single trivector is the unit volume, and it behaves a lot like the imaginary unit :
- it squares to ,
- it commutes with everything in 3D - , and the same for every blade
why it works
for the square, move the second to the front (two swaps, no sign change), then the rest is :
and a vector passes through the three factors of with two sign flips - it anticommutes with the other two, and commutes with its own
so wherever shows up in a product, you can move it around freely and treat as . it's called the pseudoscalar because it commutes like a scalar, but flips sign under a mirror (a mirror flips one of the three axes)
duality and the cross product
multiply each basis vector by :
(for the first: move the last to the front, two swaps). multiplying by turns a vector into the bivector of the plane perpendicular to it - its dual. and multiplying by turns it back:
that's exactly the pairing part 1 found between the wedge and the cross product, so now it's exact:
and with it, the geometric product in 3D is . the cross product isn't a separate operation - it's the wedge, taken in its dual form
this also explains the cross product's quirks from part 1. it only exists in 3D because only there is the dual of a plane a single direction (in 4D it's another plane), and it's a pseudovector because flips sign under a mirror
example - the cross product through duality
from part 1, , , and . multiply by , using and the same for the others:
the determinant formula in part 1 gave ✓
python check
from galgebra.ga import Ga
g3, e1, e2, e3 = Ga.build('e1 e2 e3', g=[1, 1, 1])
I = e1*e2*e3
a = e1 + 2*e2
b = 3*e2 + e3
print(I*I) # -1
print(I*e1 - e1*I) # 0 - I commutes
print(I*e1, I*e2, I*e3) # e2^e3 -e1^e3 e1^e2
print(-I*(a ^ b)) # 2*e1 - e2 + 3*e3
splitting a vector along a direction
dividing by a vector (part 1) gives the parallel and perpendicular parts in one go. for any non-zero , , and splitting into dot and wedge:
the first is the familiar projection . the second (the rejection) is a bivector times a vector in its own plane, so by the section above it's a vector, in that plane and perpendicular to - no Gram-Schmidt needed
example - projection and rejection
along , so and :
- parallel:
- the wedge:
- perpendicular: multiply each term by and by (e.g. , , ) - the two trivectors cancel, as they must:
the standard way: projection ✓, the rest is minus that, ✓, and it's perpendicular to : ✓
python check
from galgebra.ga import Ga
g3, e1, e2, e3 = Ga.build('e1 e2 e3', g=[1, 1, 1])
a = 2*e1 + 3*e2 + e3
n = e1 + e2
print((a | n)*n.inv()) # 5*e1/2 + 5*e2/2
print((a ^ n)*n.inv()) # -e1/2 + e2/2 + e3
reversion
one more operation that rotations (part 3) need: the reverse writes every product backwards, . on the blades:
- scalars and vectors stay as they are
- bivectors flip sign,
- the trivector flips too, (three swaps)
it plays the role of the complex conjugate - for , , a plain number, just like
complex numbers and quaternions, found inside
the even blades (grades 0 and 2) are closed under multiplication on their own - a product of an even number of vectors stays even. those even parts are old friends
2D: the complex numbers
in 2D the even part is , and - that's a complex number, with as . and it's not just a look-alike: is the oriented unit area of the plane, so the "imaginary unit" finally has a geometric meaning. vectors and complex numbers are also linked directly: - every vector in the plane has its complex number, read relative to
example: , and with ordinary complex numbers, ✓
3D: the quaternions
in 3D the even part is - four components, three of them squaring to . take
and check Hamilton's rules: , and ✓ (same for , ), and so ✓
so a quaternion is a scalar plus a bivector - and the reason they're so good at rotations is the next page
why the minus signs
the plain cyclic choice gives , a left-handed version with . negating all three fixes that, and keeps as the planes perpendicular to x, y and z - so rotates about x, about y, about z, and the textbook quaternion formulas work as they are. other choices satisfy Hamilton's rules too, e.g. , , - but there rotates about z, and every formula needs its axes relabelled
python check
from galgebra.ga import Ga
g2, f1, f2 = Ga.build('f1 f2', g=[1, 1])
print((3 + 2*(f1*f2))*(1 - 4*(f1*f2))) # 11 - 10*f1^f2
g3, e1, e2, e3 = Ga.build('e1 e2 e3', g=[1, 1, 1])
I = e1*e2*e3
i, j, k = -I*e1, -I*e2, -I*e3
print(i*i, i*j, k, i*j*k) # -1 -e1^e2 -e1^e2 -1
what we have
- 3D GA has 8 blades in 4 grades: scalar, 3 vectors, 3 bivectors, 1 trivector - and multivectors are their sums
- the pseudoscalar squares to and commutes with everything in 3D
- duality: turns a vector into its perpendicular plane, and
- a vector splits along any direction into
- the reverse flips grades 2 and 3
- complex numbers are the even part of 2D GA, quaternions the even part of 3D
next, rotations - and why the quaternions need half angles