Visualizing geometric product relationships in plane geometry
07 Jan 2019In previous posts, I have shown how to visualize both the dot product and the wedge product of two vectors as parallelogram areas. In this post, I will show how the dot product and the wedge product are related through a third algebraic product: the geometric product. Along the way, we will see that the geometric product provides a simple way to algebraically model all of the major geometric relationships between vectors: rotations, reflections, and projections.
Before introducing the geometric product, let’s review the wedge and dot products and their interpretation in terms of parallelogram areas.
Given two vectors,
and , their wedge product, , is straightforwardly visualized as the area of the parallelogram spanned by these vectors:Recall that algebraically, the wedge product
produces an object called a bivector that represents the size and direction (but not the shape or location) of a plane segment in a similar way that a vector represents the size and direction (but not the location) of a line segment.The dot product of the same two vectors,
, can be visualized as a parallelogram formed by one of the vectors and a copy of the other that has been rotated by degrees:Well, almost. When I originally wrote about this area interpretation of the dot product, I didn’t want to get into a discussion of bivectors, but once you have the concept of bivector as directed plane segment, it’s best to say that what this parallelogram depicts is not quite the dot product,
, which is a scalar (real number), but rather the bivector where is a unit bivector.The scalar
scales the unit bivector to produce a bivector with magnitude/area . It’s hard to draw a scalar on a piece of paper without some version of this trick. Once you’re looking for it, you’ll see that graphical depictions of real numbers/scalars almost always show how they scale some reference object. It could be a unit segment of an axis or a scale bar; here it is instead a unit area .Examining the way that the dot product and the wedge product can be represented by parallelograms suggests an algebraic relationship between them:
where
represents the result of rotating by degrees. Since the dot product is symmetric, we also haveTo really understand this relationship, we’ll need an algebraic way to represent how
is related to ; in other words, we’ll need to figure out how to represent rotations algebraically.To work towards an algebraic representation of rotations, recall how the dot product and wedge product can be expressed in terms of lengths and angles:
If you’re familiar with complex numbers, then adding these two products together produces a very suggestive result:
where the second line is an expression of Euler’s FormulaAt this point, it probably isn’t so clear what it could mean to exponentiate a bivector. Suspend disbelief, I’ll come back to this..
In words, the sum of the dot product and the wedge product of two vectors is the product of their lengths,
and , and a factor representing the rotation between their directions, . This sum is so geometrically meaningful that Geometric Algebra gives it its own name: the geometric product, and its own notation, simple juxtaposition of vectors:Since the dot product is symmetric, but the wedge product is anti-symmetric, the order of the factors in a geometric product matters. The reverse of this product is
These product formulas can be solved in order to represent the dot product and wedge product in terms of the geometric productAs an alternative, it is possible to define the geometric product as a linear, associative product between vectors such that the square of a vector is a scalar, and then define the dot product and wedge product as the symmetric and anti-symmetric parts of the geometric product.,
In other words, the dot and wedge products are half the symmetric and anti-symmetric sums of the geometric product and its reverse.
Using these relations gives a very interesting way to characterize parallel and perpendicular vectors: vectors are parallel when their wedge product is zero, so that the geometric product commutes:
and they are perpendicular when their dot product is zero, so that the geometric product anti-commutes:
In general, for vectors that are neither perpendicular nor parallel, the geometric product is neither commutative nor anti-commutative. For this reason, it’s important to keep track of the order of terms in a multiplication when using the geometric product. We’ll see that with the geometric product, you can get an awful lot of geometry done by thinking about when the order of various symbols can be swapped.
Properties of the geometric product
Vectors square to scalars
Since the wedge product of a vector with itself is always
, the geometric product of a vector with itself is equal to the dot product of that vector with itself:Associative
The geometric product has another property that is less obvious from its decomposition as the sum of the dot and wedge products: it is associative,
Associativity is extremely useful algebraically. Combined with the fact that vectors square to real numbers (scalars), associativity means that equations involving products of vectors can be solved. For example, given
if we know
, we can solve for by first multiplying on the right byand then dividing through by the scalar
Invertible
Another way to say that we can solve equations involving geometric products is to say that under the geometric product, vectors have unique inverses. This is a consequence of associativity and the fact that vectors square to scalars.
For an inverse of vector
, we requireMultiplying both sides of this equation by
givesand dividing by the scalar
gives a formula for the inverse of a vector:In other words, to find the inverse of a vector, divide the vector by the square of its length.
Since the order of geometric multiplications matters in general, we should check that
also equals :Neither the wedge product nor the dot product alone admit unique inverses, but their sum, the geometric product, contains just the right information to admit a unique inverse.
Interpreting the geometric product geometrically
Algebraically, the geometric product has some very useful properties, but how can we interpret it geometrically?
To simplify, let’s first consider the geometric product of two unit vectors. I’ll use the notation
to represent the unit vector in the same direction as :so that
and
We will use the fact that the square of a unit vector is
in the process of simplifying several expressions below.Recalling the lengths-and-angles formula for the geometric product,
we can see that the geometric product of two unit vectors effectively represents the rotation between them:
The rotation represented by Some care is required for rotations in more than two dimensions. When : is not in the same plane as and then no longer represents a rotation of . A closely related formula does generalize: is a rotation of by twice the angle between and in any number of dimensions even when and are not all in the same plane.
can be applied to another vector in the plane, , by multiplying on the right (remember, order matters) to formAs a check,
so right multiplication by
rotates toReversing the order of factors in a geometric product of unit vectors reverses the sense of rotation, so that
is a rotation in the opposite direction as As a check,To compose two rotations represented as geometric products,
and , we simply multiply them:In terms of angles, this represents the same calculation as
Triangle angle sum laws
This is enough to start to give geometric product interpretations to some familiar facts about triangles. Given a triangle with edge vectors
, , and ,the rotations through the exterior angles are represented by
, , and .The composition of exterior angles is a full rotation, which is simply an identity operation for vectors.
To show this algebraically, we simply multiply the geometric products representing each rotation to compose the rotations, and then re-associate:
A “straight angle”, i.e. a rotation by
degrees, is the rotation between and , which is simplyIf the exterior angle rotations of a triangle are One way to visually see that these angles add up to a half-turn is to notice that every sector of the circle has an equal missing sector on the opposite side.
, , and , then the interior angle rotations are simply the negatives of each of these, , , and , and so the composition of the interior angles iswhich is a straight angle. In other words, the composition of the interior angles of a triangle is a straight angle, i.e. a
degree angle.Right angles
If two unit vectors have zero dot product, so that they anti-commute under the geometric product,
then multiplying both sides on the right by
giveswhich we can interpret geometrically as saying that the composition of a right angle with itself is a straight angle. The above manipulation is an algebraic way of representing the fact that the following statements are all equivalent:
- two vectors are perpendicular
- two vectors have zero dot product
- two vectors anti-commute under the geometric product
- the angle between two vectors bisects a straight angle
Dilations
For vectors that are not unit vectors, it’s a little easier to supply a geometric interpretation for the geometric ratio, Note that for unit vectors, there is no distinction between ratios and products because a unit vector is its own inverse: , than the geometric product . In terms of lengths and angles, the geometric ratio is
This is a composition of the rotation that takes the direction of In the Argand diagram picture of complex arithmetic, multiplying by a complex number has exactly this same effect of dilation and scaling. In Visual Complex Analysis, Needham calls this an “amplitwist” for “amplification” and “twist”.
Ratios of vectors in the plane behave in exactly the same way as complex numbers; the Argand diagram effectively models vectors in the plane as complex numbers by forming ratios of every vector with a constant unit vector pointing along the “real axis”.
As a check,
Applying the geometric ratio repeatedly produces a sequence of vectors lying on a logarithmic spiral, with adjacent pairs of vectors forming the legs of a sequence of similar triangles.
Rotation, Reflection, Projection, Rejection
Reversing the order of the terms in the geometric ratio from
to reverses the sense of rotation, but leaves the dilation unchangedExamining this picture suggests that
is the reflection of across This representation of a reflection is sometimes referred to as a “sandwich product” because is sandwiched between and its inverse. It can equivalently be written as becauseNotice that
is linear in , but independent of the scale of , as expected for a reflection of acrossThis sandwich product expression for reflection makes it particularly evident that a vector and its reflection have the same length. If
then
where we have made use of the fact that
is a scalar and so it can be moved freely within a geometric product.Left multiplying
by the unit factor gives another representation for the reflection of across :The last line represents applying the rotation between
and to the vector twice. In other words, to reflect across , rotate through twice the angle between and .There is a simple relationship between the reflection of
across and the parallel and perpendicular components (i.e. the projection and “rejection”) of relative to : the projection and rejection are the half symmetric and anti-symmetric sums of and its reflection inIn other words, the sum of
and its reflection across is twice the projection of ontoand the difference of
and its reflection across is twice the rejection of fromUsing the freedom to insert the unit factor
into the equation for and re-associating giveswhich is a familiar way to interpret the dot product in terms of a projection, and similarly,
which is a probably less familiar way to interpret the wedge product in terms of rejection.
We can check that combining these components gives back the whole vector
:Planarity
We have seen that the condition that three vectors form a triangle is
A similar but weaker condition on three vectors is that they are in the same plane, and the traditional way to state this condition algebraically is in terms of linear dependence:
for some set of scalars
, , and that are not all . In words:- A weighted sum of the vectors is
- It is possible to scale the vectors so that they form a triangle
- At least one of the vectors can be written as a weighted sum of the other two
Geometric Algebra provides two ways to restate the planarity condition without the need for introducing extra scalar parameters. Suppose (without loss of generality) that
is non-zero, and wedge on the right by :The last two terms are
by anti-symmetry of the wedge product, and so, after dividing through by the non-zero scalar , we haveas a restatement of the condition that In general, the wedge product of . vectors is if and only if the vectors all lie in an dimensional linear subspace. The wedge product of two vectors is when they are directed along the same line, the wedge product of three vectors is when they are in the same plane, and so on.
, , and are in the same plane. A geometrical interpretation of this formula is that the vectors span a parallelepiped with no volumeThere is a further alternative statement of the condition of planarity of three vectors using the geometric product that is very useful for proofs in plane geometry. Again starting from
and assuming that
is non-zero, multiplying on the right by givesand alternatively, multiplying on the left by
givesSubtracting this equation from the previous one and noting that
because is a scalar givesand dividing by the non-zero scalar
and re-arranging givesas a third way of stating the condition that three vectors are in the same plane. This condition is harder to extend to other dimensions, but it’s very useful in computations because it means that we’re always free to reverse the geometric product of any three vectors that are in the same plane.
We’ve seen that in order to rotate a vector
by the angle between two other vectors, and , we can formand using the planarity condition above to reverse the three vectors shows that multiplying on the right by
is equivalent to multiplying on the left byThis freedom to reverse triples of vectors in the plane makes it easy to check that rotation preserves length:
Multiplying on both the left by This double-reflection formula for rotation is the form that works in any dimension; i.e. applies to vectors that may not lie completely in the plane of rotation.:
and on the right by applies the rotation twice, and re-associating shows that this is equivalent to reflecting first in and then inApplying the planarity condition twice to a product of four vectors shows that products of pairs of vectors in the same plane commute with one another:
For exactly the same reason, ratios of pairs of vectors in the plane also commute:
We have seen above that ratios of vectors in the plane behave similarly to complex numbers, so it’s comforting to see that they are commutative.
Coordinates
To better understand how the directed unit plane segment (unit bivector),
, behaves under the geometric product, it is useful to introduce a pair of orthogonal (perpendicular) unit vectors, and , which can serve as coordinate basis vectors. Then .The condition that these are unit vectors is that they square to
:and the condition that they are orthogonal is that they anti-commute, so that their geometric product is equal to their wedge product:
Since
can be written as a product of unit vectors, we expect that multiplying vectors in the plane by will rotate them. Let’s consider what happens when we multiply the coordinate vectors on the right by I:so right multiplication by
rotates both unit vectors counter-clockwise by degrees. Any other vector in the plane can be written as a linear combination of these unit vectors, so right multiplication by rotates any vector in the plane by degrees counter-clockwise.As expected for a right-angle rotation,
:which suggests why The fact that \exp(I \theta) = \cos(\theta) + I\sin(\theta) Just as for complex numbers, the strategy is to expand the exponential as a power series, reduce all higher powers of using and then recognize the series for and .. squares to negative one lets us make sense of expressions like
behaved so similarly to the imaginary unit in some earlier formulasFurthermore, we can show that
anti-commutes with any vector in the plane using the planarity condition to reverse products of three vectors in the plane, and anti-commutativity of orthogonal vectors to reverse andSince
is a product of a pair of vectors in the plane, it commutes with other products of pairs of vectors in the plane.Duality
With this, we finally have enough preparation to understand the relationship between the parallelogram representations of the dot product and wedge product.
We set out to understand why
and we can now prove this result algebraically:
Let’s go through this calculation line by line:
- Expand the dot product as the symmetric part of the geometric product
- Distributivity of the geometric product
- anti-commutes with vectors in the plane, so it anti-commutes with
- The geometric product is associative
- Recognize the anti-symmetric part of the geometric product as the wedge product
- Right-multiplication of by rotates counter-clockwise by degrees, so we can identify with
In the fifth step,
the unit bivector
acts in two interestingly different ways: on the left hand side, it is scaled by to make a bivector with the right magnitude; on the right hand side, it rotates counter-clockwise by degrees to produce a parallelogram spanned by vectors with the right direction relationship.This relationship between the dot product and the wedge product is called “duality” because it gives a way of exchanging one kind of product for the other.
Scaling constrains what is easily visualized
The reason that this duality relationship is useful for visualizing the dot product is that the dot product depends linearly on two vectors, and if we draw the vectors as arrows on the page, then their dot product naturally has units of area on the page. Duality gives us a natural way to convert the scalar result of the dot product to a bivector, so that the grade matches the units.
This turns out to be a generally useful constraint: if you want to visualize some object built out of vectors on the page, its grade should match its unitsMost introductory-level discussions of geometry don’t really have the language to discuss grade, and frequently choose not to emphasize units either, so there is a fair amount of confusion about these points. In physics, it’s basically impossible to draw a “to scale” representation of the cross product of two vectors represented as arrows, because the cross product produces a vector (grade . This is why the dot product ) with units of area. is very often visualized through one of the related projections or . The dot product alone is not easily visualizable because it is a scalar (grade ), but it has units of area. The projections are visualizable because they are vectors (grade ) with units of length.
The geometric product of two vectors contains a scalar (grade
) and a bivector (grade ), so if we want to visualize it, we need it to be unitless. This is why it’s easier to visualize the geometric ratio of two vectors (which is unitless) than the geometric product of two vectors (which has units of area).Conclusion
The geometric product is an important unifying concept for representing Euclidean geometry algebraically. It combines the more familiar dot and wedge products into a single associative and invertible product, and clarifies their relationship. The geometric product represents rotations, reflections, and dilations through simple products or ratios of vectors, allows composing these operations with multiplication, and often allows simplifying these compositions by re-associating within the products. In this post, we were able to use this same trick over and over again to show that
- The exterior angle rotations of a triangle compose to a full turn
- The interior angles of a triangle compose to a half turn
- Rotations and reflections preserve the length of vectors
- The composition of two reflections is a rotation
and the geometric product makes it possible to reduce many more geometric proofs to algebra without ever needing to introduce coordinates or parameterizations of angles and trigonometric functions.
Thanks as usual to Jaime George for editing this post.