paskvilwiki

up: math & phy

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 a⋅b\mathbf a\cdot\mathbf b 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 a×b\mathbf a\times\mathbf b 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 a\mathbf a and a⋅b\mathbf a\cdot\mathbf b (or a×b\mathbf a\times\mathbf b) isn't enough to get b\mathbf b 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
α,λ,θ\alpha, \lambda, \theta, … scalars (plain numbers)
a,b,v\mathbf a, \mathbf b, \mathbf v, … vectors in 3D (or 2D) space - bold, as in standard physics, so the GA and the standard results look the same
e1,e2,e3\mathbf e_1, \mathbf e_2, \mathbf e_3 orthonormal basis vectors, v=v1e1+v2e2+v3e3\mathbf v = v_1\mathbf e_1 + v_2\mathbf e_2 + v_3\mathbf e_3
e12\mathbf e_{12} short for e1e2\mathbf e_1\mathbf e_2, same for e23\mathbf e_{23}, e31\mathbf e_{31}, e123\mathbf e_{123}
ab\mathbf a\mathbf b the geometric product - no symbol, just like multiplying numbers
a⋅b\mathbf a\cdot\mathbf b, a∧b\mathbf a\wedge\mathbf b inner (dot) and outer (wedge) product, the two parts of ab\mathbf a\mathbf b
a×b\mathbf a\times\mathbf b the cross product - only in the "standard" comparisons
A,B,MA, B, M, … general elements of the algebra (multivectors, part 2)
II the pseudoscalar e123\mathbf e_{123} (part 2) - never ii, which stays the complex unit
⟨M⟩k\langle M\rangle_k, M~\widetilde M grade-kk part and reverse of MM (part 2)
∇\boldsymbol\nabla the vector derivative (part 4)
a,b,xa, b, x, γ0…γ3\gamma_0 … \gamma_3 spacetime vectors and basis - plain, not bold (part 7 only)

in galgebra, e12\mathbf e_{12} prints as e1^e2, and e31\mathbf e_{31} 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:

aa=a2=∣a∣2\mathbf a\mathbf a = \mathbf a^2 = |\mathbf a|^2

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

e12=e22=1\mathbf e_1^2 = \mathbf e_2^2 = 1 straight from the rule. for the product of two different basis vectors, square their sum - e1+e2\mathbf e_1 + \mathbf e_2 has length 2\sqrt2, so:

(e1+e2)2=e12+e1e2+e2e1+e22=2+e1e2+e2e1=2(\mathbf e_1+\mathbf e_2)^2 = \mathbf e_1^2 + \mathbf e_1\mathbf e_2 + \mathbf e_2\mathbf e_1 + \mathbf e_2^2 = 2 + \mathbf e_1\mathbf e_2 + \mathbf e_2\mathbf e_1 = 2

so e1e2+e2e1=0\mathbf e_1\mathbf e_2 + \mathbf e_2\mathbf e_1 = 0, or

e2e1=−e1e2\mathbf e_2\mathbf e_1 = -\mathbf e_1\mathbf e_2

perpendicular vectors anticommute. which means e1e2\mathbf e_1\mathbf e_2 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 −1-1 - swap the middle two (one sign flip), then use e12=e22=1\mathbf e_1^2 = \mathbf e_2^2 = 1:

(e1e2)2=e1e2e1e2=−e1e1e2e2=−1(\mathbf e_1\mathbf e_2)^2 = \mathbf e_1\mathbf e_2\mathbf e_1\mathbf e_2 = -\mathbf e_1\mathbf e_1\mathbf e_2\mathbf e_2 = -1

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:

ab=12(ab+ba)+12(ab−ba)\mathbf a\mathbf b = \tfrac12(\mathbf a\mathbf b + \mathbf b\mathbf a) + \tfrac12(\mathbf a\mathbf b - \mathbf b\mathbf a)

the symmetric half is the dot product, 12(ab+ba)=a⋅b\frac12(\mathbf a\mathbf b + \mathbf b\mathbf a) = \mathbf a\cdot\mathbf b - a plain number

why it works

same trick as above - square a+b\mathbf a + \mathbf b:

∣a+b∣2=(a+b)2=∣a∣2+ab+ba+∣b∣2|\mathbf a+\mathbf b|^2 = (\mathbf a+\mathbf b)^2 = |\mathbf a|^2 + \mathbf a\mathbf b + \mathbf b\mathbf a + |\mathbf b|^2

so ab+ba=∣a+b∣2−∣a∣2−∣b∣2\mathbf a\mathbf b + \mathbf b\mathbf a = |\mathbf a+\mathbf b|^2 - |\mathbf a|^2 - |\mathbf b|^2, and that's 2 a⋅b2\,\mathbf a\cdot\mathbf b - the law of cosines

the antisymmetric half is new - the outer or wedge product a∧b\mathbf a\wedge\mathbf b. together:

ab=a⋅b+a∧b\boxed{\mathbf a\mathbf b = \mathbf a\cdot\mathbf b + \mathbf a\wedge\mathbf b}

a number plus a bivector. adding two different kinds of things looks odd at first, but it's the same as 3+2i3 + 2i - the parts just stay apart, like real and imaginary

what the bivector means

a∧b\mathbf a\wedge\mathbf b is an oriented area: a piece of the plane spanned by a\mathbf a and b\mathbf b, with

  • a size - the area of the parallelogram, ∣a∣∣b∣sin⁡θ|\mathbf a||\mathbf b|\sin\theta
  • an attitude - which plane it lies in
  • an orientation - the turning sense, from a\mathbf a towards b\mathbf b
a b a ∧ b
the shape doesn't matter, only the plane, the area and the turning sense

swap the vectors and the turning sense flips, b∧a=−a∧b\mathbf b\wedge\mathbf a = -\mathbf a\wedge\mathbf b. a vector with itself spans nothing, a∧a=0\mathbf a\wedge\mathbf a = 0

the two extremes:

  • parallel vectors - the wedge is zero, ab=a⋅b\mathbf a\mathbf b = \mathbf a\cdot\mathbf b is a number and the vectors commute
  • perpendicular vectors - the dot is zero, ab=a∧b\mathbf a\mathbf b = \mathbf a\wedge\mathbf b is a pure bivector and they anticommute (exactly what we found for e1,e2\mathbf e_1, \mathbf e_2)

and anything in between is a mix - with θ\theta the angle from a\mathbf a to b\mathbf b and B^\hat B the unit bivector of their plane (in 2D just e12\mathbf e_{12}):

ab=∣a∣∣b∣(cos⁡θ+B^sin⁡θ)\mathbf a\mathbf b = |\mathbf a||\mathbf b|(\cos\theta + \hat B\sin\theta)

with B^2=−1\hat B^2 = -1, that's Euler's formula r(cos⁡θ+isin⁡θ)r(\cos\theta + i\sin\theta) 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 a=3e1+e2\mathbf a = 3\mathbf e_1 + \mathbf e_2 and b=e1+2e2\mathbf b = \mathbf e_1 + 2\mathbf e_2, and multiply out term by term, using e12=e22=1\mathbf e_1^2 = \mathbf e_2^2 = 1 and e2e1=−e12\mathbf e_2\mathbf e_1 = -\mathbf e_{12}:

ab=(3e1+e2)(e1+2e2)=3e1e1+6e1e2+e2e1+2e2e2=3+6e12−e12+2=5+5e12\begin{aligned} \mathbf a\mathbf b &= (3\mathbf e_1 + \mathbf e_2)(\mathbf e_1 + 2\mathbf e_2) \\ &= 3\mathbf e_1\mathbf e_1 + 6\mathbf e_1\mathbf e_2 + \mathbf e_2\mathbf e_1 + 2\mathbf e_2\mathbf e_2 \\ &= 3 + 6\mathbf e_{12} - \mathbf e_{12} + 2 \\ &= 5 + 5\mathbf e_{12} \end{aligned}

the standard way:

  • dot product 3⋅1+1⋅2=53\cdot1 + 1\cdot2 = 5 - the scalar part ✓
  • signed area of the parallelogram, the determinant ∣3112∣=6−1=5\begin{vmatrix}3 & 1\\ 1 & 2\end{vmatrix} = 6 - 1 = 5 - the e12\mathbf e_{12} part ✓, positive since b\mathbf b is counter-clockwise from a\mathbf a
  • the angle: a\mathbf a is at arctan⁡13=18.4°\arctan\frac13 = 18.4°, b\mathbf b at arctan⁡2=63.4°\arctan 2 = 63.4°, so 45°45° apart - and the product says tan⁡θ=5/5\tan\theta = 5/5, θ=45°\theta = 45° ✓

the other way round, ba=5−5e12\mathbf b\mathbf a = 5 - 5\mathbf e_{12} - 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 - e12\mathbf e_{12}, e23\mathbf e_{23}, e31\mathbf e_{31} - 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 a=e1+2e2\mathbf a = \mathbf e_1 + 2\mathbf e_2 and b=3e2+e3\mathbf b = 3\mathbf e_2 + \mathbf e_3, the same expansion gives (all the eiei\mathbf e_i\mathbf e_i terms are the dot product, the rest pair up into bivectors):

ab=e1(3e2+e3)+2e2(3e2+e3)=3e12+e1e3+6+2e23=6+3e12+2e23−e31\begin{aligned} \mathbf a\mathbf b &= \mathbf e_1(3\mathbf e_2 + \mathbf e_3) + 2\mathbf e_2(3\mathbf e_2 + \mathbf e_3) \\ &= 3\mathbf e_{12} + \mathbf e_1\mathbf e_3 + 6 + 2\mathbf e_{23} \\ &= 6 + 3\mathbf e_{12} + 2\mathbf e_{23} - \mathbf e_{31} \end{aligned}

and the standard way, a⋅b=6\mathbf a\cdot\mathbf b = 6 ✓ and

a×b=∣e1e2e3120031∣=2e1−e2+3e3\mathbf a\times\mathbf b = \begin{vmatrix}\mathbf e_1 & \mathbf e_2 & \mathbf e_3\\ 1 & 2 & 0\\ 0 & 3 & 1\end{vmatrix} = 2\mathbf e_1 - \mathbf e_2 + 3\mathbf e_3

the same three numbers as the wedge - 22 with e23\mathbf e_{23} and e1\mathbf e_1, −1-1 with e31\mathbf e_{31} and e2\mathbf e_2, 33 with e12\mathbf e_{12} and e3\mathbf e_3 ✓

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: aa=∣a∣2\mathbf a\mathbf a = |\mathbf a|^2 is a number, so divide both sides by it

a−1=a∣a∣2,a−1a=aa−1=1\mathbf a^{-1} = \frac{\mathbf a}{|\mathbf a|^2}, \qquad \mathbf a^{-1}\mathbf a = \mathbf a\mathbf a^{-1} = 1

same direction, reciprocal length. any non-zero vector has one - and since the product ab\mathbf a\mathbf b keeps both the dot and the wedge, it holds enough to get b\mathbf b back: b=a−1(ab)\mathbf b = \mathbf a^{-1}(\mathbf a\mathbf b). neither the dot nor the cross product alone can do that

example - getting b back

from the 2D example, a=3e1+e2\mathbf a = 3\mathbf e_1 + \mathbf e_2 and ab=5+5e12\mathbf a\mathbf b = 5 + 5\mathbf e_{12}. ∣a∣2=10|\mathbf a|^2 = 10, so a−1=110(3e1+e2)\mathbf a^{-1} = \frac1{10}(3\mathbf e_1 + \mathbf e_2), and with e1e12=e1e1e2=e2\mathbf e_1\mathbf e_{12} = \mathbf e_1\mathbf e_1\mathbf e_2 = \mathbf e_2 and e2e12=−e1e2e2=−e1\mathbf e_2\mathbf e_{12} = -\mathbf e_1\mathbf e_2\mathbf e_2 = -\mathbf e_1:

a−1(ab)=110(3e1+e2)(5+5e12)=110(15e1+15e2+5e2−5e1)=e1+2e2\begin{aligned} \mathbf a^{-1}(\mathbf a\mathbf b) &= \tfrac1{10}(3\mathbf e_1 + \mathbf e_2)(5 + 5\mathbf e_{12}) \\ &= \tfrac1{10}(15\mathbf e_1 + 15\mathbf e_2 + 5\mathbf e_2 - 5\mathbf e_1) \\ &= \mathbf e_1 + 2\mathbf e_2 \end{aligned}

which is b\mathbf b ✓

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 e1\mathbf e_1 by the bivector e12\mathbf e_{12} gives the vector e2\mathbf e_2 - e1\mathbf e_1 turned by 90°. bivectors rotate vectors in their plane - that's part 3

what we have

  • one rule, a2=∣a∣2\mathbf a^2 = |\mathbf a|^2, gives a product of vectors that is associative and invertible
  • ab=a⋅b+a∧b\mathbf a\mathbf b = \mathbf a\cdot\mathbf b + \mathbf a\wedge\mathbf b - a scalar plus a bivector
  • the bivector is an oriented area, and unit bivectors square to −1-1
  • 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