Samiksha Jaiswal (Editor)

Comparison of vector algebra and geometric algebra

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

Vector algebra and geometric algebra are alternative approaches to providing additional algebraic structures on vector spaces, with geometric interpretations, particularly vector fields in multivariable calculus and applications in mathematical physics.

Contents

Vector algebra is specific to Euclidean 3-space, while geometric algebra uses multilinear algebra and applies in all dimensions and signatures, notably 3+1 spacetime as well as 2 dimensions. They are mathematically equivalent in 3 dimensions, though the approaches differ. Vector algebra is more widely used in elementary multivariable calculus, while geometric algebra is used in some more advanced treatments, and is proposed for elementary use as well. In advanced mathematics, particularly differential geometry, neither is widely used, with differential forms being far more widely used.

Basic concepts and operations

In vector algebra the basic objects are scalars and vectors, and the operations (beyond the vector space operations of scalar multiplication and vector addition) are the dot (or scalar) product and the cross product ×.

In geometric algebra the basic objects are multivectors (scalars are 0-vectors, vectors are 1-vectors, etc.), and the operations include the Clifford product (here called "geometric product") and the exterior product. The dot product/inner product/scalar product is defined on 1-vectors, and allows the geometric product to be expressed as the sum of the inner product and the exterior product when multiplying 1-vectors.

Vector algebra uses the cross product, while geometric algebra uses the exterior product (and the geometric product). More subtly, geometric algebra in 3-dimensional Euclidean space distinguishes 0-vectors, 1-vectors, 2-vectors, and 3-vectors, while elementary vector algebra identifies 1-vectors and 2-vectors (as vectors) and 0-vectors and 3-vectors (as scalars), though more advanced vector algebra distinguishes these as scalars, vectors, pseudovectors, and pseudoscalars respectively. Unlike vector algebra, geometric algebra includes sums of k-vectors of differing k.

The cross product does not generalize to dimensions other than 3 as a product of two vectors, yielding a unique third orthogonal vector, and in higher dimensions not all k-vectors can be identified with vectors or scalars. By contrast, the exterior product (and geometric product) is defined uniformly for all dimensions and signatures, and multivectors are closed under these operations.

Embellishments, ad hoc techniques, and tricks

More advanced treatments of vector algebra add embellishments to the initial picture – pseudoscalars and pseudovectors (in terms of geometric algebra in 3 dimensions, correspondingly 3-vectors and 2-vectors), while applications to other dimensions use ad hoc techniques and "tricks" rather than a general mathematical approach. By contrast, geometric algebra begins with a complete picture, and applies uniformly in all dimensions.

For example, applying vector calculus in 2 dimensions, such as to compute torque or curl, requires adding an artificial 3rd dimension and extending the vector field to be constant in that dimension, or alternately considering these to be scalars. The torque or curl is then a normal vector field in this 3rd dimension. By contrast, geometric algebra in 2 dimensions defines these as a pseudoscalar field (a 2-vector field), without requiring a 3rd dimension. Similarly, the scalar triple product is ad hoc, and can instead be expressed uniformly using the exterior product and the geometric product.

List of analogous formulas

Here are some comparisons between standard R 3 vector relations and their corresponding exterior product and geometric product equivalents. All the exterior and geometric product equivalents here are good for more than three dimensions, and some also for two. In two dimensions the cross product is undefined even if what it describes (like torque) is perfectly well defined in a plane without introducing an arbitrary normal vector outside of the space.

Many of these relationships only require the introduction of the exterior product to generalize, but since that may not be familiar to somebody with only a background in vector algebra and calculus, some examples are given.

Algebraic and geometric properties of cross and exterior products

Cross and exterior products are both antisymmetric:

v × u = ( u × v ) v u = ( u v )

They are both linear in the first operand:

( u + v ) × w = u × w + v × w ( u + v ) w = u w + v w

and in the second operand:

u × ( v + w ) = u × v + u × w u ( v + w ) = u v + u w

In general, the cross product is not associative, while the exterior product is:

( u × v ) × w u × ( v × w ) ( u v ) w = u ( v w )

Both the cross and exterior products of two identical vectors are zero:

u × u = 0 u u = 0

u × v is perpendicular to the plane containing u and v .
u v is an oriented representation of the same plane.

The cross product of traditional vector algebra (on R 3 ) finds its place in geometric algebra G 3 as a scaled exterior product

a × b = i ( a b )

(this is antisymmetric). Relevant is the distinction between axial and polar vectors in vector algebra, which is natural in geometric algebra as the distinction between vectors and bivectors (elements of grade two).

The i here is a unit pseudoscalar of Euclidean 3-space, which establishes a duality between the vectors and the bivectors, and is named so because of the expected property

i 2 = ( e 1 e 2 e 3 ) 2 = e 1 e 2 e 3 e 1 e 2 e 3 = e 1 e 2 e 1 e 3 e 2 e 3 = e 1 e 1 e 2 e 3 e 2 e 3 = e 3 e 2 e 2 e 3 = 1

The equivalence of the R 3 cross product and the exterior product expression above can be confirmed by direct multiplication of i = e 1 e 2 e 3 with a determinant expansion of the exterior product

u v = 1 i < j 3 ( u i v j v i u j ) e i e j = 1 i < j 3 ( u i v j v i u j ) e i e j

See also Cross product as an exterior product. Essentially, the geometric product of a bivector and the pseudoscalar of Euclidean 3-space provides a method of calculation of the Hodge dual.

Norm of a vector

The norm (length) of a vector is defined in terms of the dot product

u 2 = u u

Using the geometric product this is also true, but this can be also be expressed more compactly as

u 2 = u 2

This follows from the definition of the geometric product and the fact that the exterior product of a vector wedge with itself is zero:

u u = u u + u u = u u

Lagrange identity

In three dimensions the product of two vector lengths can be expressed in terms of the dot and cross products

u 2 v 2 = ( u v ) 2 + u × v 2

The corresponding generalization expressed using the geometric product is

u 2 v 2 = ( u v ) 2 ( u v ) 2

This follows from expanding the geometric product of a pair of vectors with its reverse

( u v ) ( v u ) = ( u v + u v ) ( u v u v )

Determinant expansion of cross and wedge products

u × v = i < j | u i u j v i v j | e i × e j u v = i < j | u i u j v i v j | e i e j

Without justification or historical context, traditional linear algebra texts will often define the determinant as the first step of an elaborate sequence of definitions and theorems leading up to the solution of linear systems, Cramer's rule and matrix inversion.

An alternative treatment is to axiomatically introduce the wedge product, and then demonstrate that this can be used directly to solve linear systems. This is shown below, and does not require sophisticated math skills to understand.

It is then possible to define determinants as nothing more than the coefficients of the wedge product in terms of "unit k-vectors" ( e i e j terms) expansions as above.

A one-by-one determinant is the coefficient of e 1 for an R 1 1-vector. A two-by-two determinant is the coefficient of e 1 e 2 for an R 2 bivector A three-by-three determinant is the coefficient of e 1 e 2 e 3 for an R 3 trivector ...

When linear system solution is introduced via the wedge product, Cramer's rule follows as a side-effect, and there is no need to lead up to the end results with definitions of minors, matrices, matrix invertibility, adjoints, cofactors, Laplace expansions, theorems on determinant multiplication and row column exchanges, and so forth.

Matrix inversion (Cramer's rule) and determinants can be naturally expressed in terms of the wedge product.

The use of the wedge product in the solution of linear equations can be quite useful for various geometric product calculations.

Traditionally, instead of using the wedge product, Cramer's rule is usually presented as a generic algorithm that can be used to solve linear equations of the form A x = b (or equivalently to invert a matrix). Namely

x = 1 | A | adj ( A ) b .

This is a useful theoretic result. For numerical problems row reduction with pivots and other methods are more stable and efficient.

When the wedge product is coupled with the Clifford product and put into a natural geometric context, the fact that the determinants are used in the expression of R N parallelogram area and parallelepiped volumes (and higher-dimensional generalizations thereof) also comes as a nice side-effect.

As is also shown below, results such as Cramer's rule also follow directly from the wedge product's selection of non-identical elements. The end result is then simple enough that it could be derived easily if required instead of having to remember or look up a rule.

Two variables example

[ a b ] [ x y ] = a x + b y = c .

Pre- and post-multiplying by a and b ,

( a x + b y ) b = ( a b ) x = c b a ( a x + b y ) = ( a b ) y = a c

Provided a b 0 the solution is

[ x y ] = 1 a b [ c b a c ] .

For a , b R 2 , this is Cramer's rule since the e 1 e 2 factors of the wedge products

u v = | u 1 u 2 v 1 v 2 | e 1 e 2

divide out.

Similarly, for three, or N variables, the same ideas hold

[ a b c ] [ x y z ] = d [ x y z ] = 1 a b c [ d b c a d c a b d ]

Again, for the three variable three equation case this is Cramer's rule since the e 1 e 2 e 3 factors of all the wedge products divide out, leaving the familiar determinants.

A numeric example with three equations and two unknowns: In case there are more equations than variables and the equations have a solution, then each of the k-vector quotients will be scalars.

To illustrate here is the solution of a simple example with three equations and two unknowns.

[ 1 1 0 ] x + [ 1 1 1 ] y = [ 1 1 2 ]

The right wedge product with ( 1 , 1 , 1 ) solves for x

[ 1 1 0 ] [ 1 1 1 ] x = [ 1 1 2 ] [ 1 1 1 ]

and a left wedge product with ( 1 , 1 , 0 ) solves for y

[ 1 1 0 ] [ 1 1 1 ] y = [ 1 1 0 ] [ 1 1 2 ] .

Observe that both of these equations have the same factor, so one can compute this only once (if this was zero it would indicate the system of equations has no solution).

Collection of results for x and y yields a Cramer's rule-like form:

[ x y ] = 1 ( 1 , 1 , 0 ) ( 1 , 1 , 1 ) [ ( 1 , 1 , 2 ) ( 1 , 1 , 1 ) ( 1 , 1 , 0 ) ( 1 , 1 , 2 ) ] .

Writing e i e j = e i j , we have the end result:

[ x y ] = 1 e 13 + e 23 [ e 13 e 23 2 e 13 + 2 e 23 ] = [ 1 2 ] .

Equation of a plane

For the plane of all points r through the plane passing through three independent points r 0 , r 1 , and r 2 , the normal form of the equation is

( ( r 2 r 0 ) × ( r 1 r 0 ) ) ( r r 0 ) = 0.

The equivalent wedge product equation is

( r 2 r 0 ) ( r 1 r 0 ) ( r r 0 ) = 0.

Projection and rejection

Using the Gram–Schmidt process a single vector can be decomposed into two components with respect to a reference vector, namely the projection onto a unit vector in a reference direction, and the difference between the vector and that projection.

With, u ^ = u / u , the projection of v onto u ^ is

P r o j u ^ v = u ^ ( u ^ v )

Orthogonal to that vector is the difference, designated the rejection,

v u ^ ( u ^ v ) = 1 u 2 ( u 2 v u ( u v ) )

The rejection can be expressed as a single geometric algebraic product in a few different ways

u u 2 ( u v u v ) = 1 u ( u v ) = u ^ ( u ^ v ) = ( v u ^ ) u ^

The similarity in form between the projection and the rejection is notable. The sum of these recovers the original vector

v = u ^ ( u ^ v ) + u ^ ( u ^ v )

Here the projection is in its customary vector form. An alternate formulation is possible that puts the projection in a form that differs from the usual vector formulation

v = 1 u ( u v ) + 1 u ( u v ) = ( v u ) 1 u + ( v u ) 1 u

Working backwards from the end result, it can be observed that this orthogonal decomposition result can in fact follow more directly from the definition of the geometric product itself.

v = u ^ u ^ v = u ^ ( u ^ v + u ^ v )

With this approach, the original geometrical consideration is not necessarily obvious, but it is a much quicker way to get at the same algebraic result.

However, the hint that one can work backwards, coupled with the knowledge that the wedge product can be used to solve sets of linear equations (see: [1] ), the problem of orthogonal decomposition can be posed directly,

Let v = a u + x , where u x = 0 . To discard the portions of v that are colinear with u , take the exterior product

u v = u ( a u + x ) = u x

Here the geometric product can be employed

u v = u x = u x u x = u x

Because the geometric product is invertible, this can be solved for x:

x = 1 u ( u v ) .

The same techniques can be applied to similar problems, such as calculation of the component of a vector in a plane and perpendicular to the plane.

For three dimensions the projective and rejective components of a vector with respect to an arbitrary non-zero unit vector, can be expressed in terms of the dot and cross product

v = ( v u ^ ) u ^ + u ^ × ( v × u ^ ) .

For the general case the same result can be written in terms of the dot and wedge product and the geometric product of that and the unit vector

v = ( v u ^ ) u ^ + ( v u ^ ) u ^ .

It's also worthwhile to point out that this result can also be expressed using right or left vector division as defined by the geometric product:

v = ( v u ) 1 u + ( v u ) 1 u v = 1 u ( u v ) + 1 u ( u v ) .

Like vector projection and rejection, higher-dimensional analogs of that calculation are also possible using the geometric product.

As an example, one can calculate the component of a vector perpendicular to a plane and the projection of that vector onto the plane.

Let w = a u + b v + x , where u x = v x = 0 . As above, to discard the portions of w that are colinear with u or v , take the wedge product

w u v = ( a u + b v + x ) u v = x u v .

Having done this calculation with a vector projection, one can guess that this quantity equals x ( u v ) . One can also guess there is a vector and bivector dot product like quantity such that the allows the calculation of the component of a vector that is in the "direction of a plane". Both of these guesses are correct, and validating these facts is worthwhile. However, skipping ahead slightly, this to-be-proven fact allows for a nice closed form solution of the vector component outside of the plane:

x = ( w u v ) 1 u v = 1 u v ( u v w ) .

Notice the similarities between this planar rejection result and the vector rejection result. To calculate the component of a vector outside of a plane we take the volume spanned by three vectors (trivector) and "divide out" the plane.

Independent of any use of the geometric product it can be shown that this rejection in terms of the standard basis is

x = 1 ( A u , v ) 2 i < j < k | w i w j w k u i u j u k v i v j v k | | u i u j u k v i v j v k e i e j e k |

where

( A u , v ) 2 = i < j | u i u j v i v j | = ( u v ) 2

is the squared area of the parallelogram formed by u , and v .

The (squared) magnitude of x is

x 2 = x w = 1 ( A u , v ) 2 i < j < k | w i w j w k u i u j u k v i v j v k | 2

Thus, the (squared) volume of the parallelopiped (base area times perpendicular height) is

i < j < k | w i w j w k u i u j u k v i v j v k | 2

Note the similarity in form to the w, u, v trivector itself

i < j < k | w i w j w k u i u j u k v i v j v k | e i e j e k ,

which, if you take the set of e i e j e k as a basis for the trivector space, suggests this is the natural way to define the length of a trivector. Loosely speaking the length of a vector is a length, length of a bivector is area, and the length of a trivector is volume.

If a vector is factored directly into projective and rejective terms using the geometric product v = 1 u ( u v + u v ) , then it is not necessarily obvious that the rejection term, a product of vector and bivector is even a vector. Expansion of the vector bivector product in terms of the standard basis vectors has the following form

Let r = 1 u ( u v ) = u u 2 ( u v ) = 1 u 2 u ( u v )

It can be shown that

r = 1 u 2 i < j | u i u j v i v j | | u i u j e i e j |

(a result that can be shown more easily straight from r = v u ^ ( u ^ v ) ).

The rejective term is perpendicular to u , since | u i u j u i u j | = 0 implies r u = 0 .

The magnitude of r is

r 2 = r v = 1 u 2 i < j | u i u j v i v j | 2 .

So, the quantity

r 2 u 2 = i < j | u i u j v i v j | 2

is the squared area of the parallelogram formed by u and v .

It is also noteworthy that the bivector can be expressed as

u v = i < j | u i u j v i v j | e i e j .

Thus is it natural, if one considers each term e i e j as a basis vector of the bivector space, to define the (squared) "length" of that bivector as the (squared) area.

Going back to the geometric product expression for the length of the rejection 1 u ( u v ) we see that the length of the quotient, a vector, is in this case is the "length" of the bivector divided by the length of the divisor.

This may not be a general result for the length of the product of two k-vectors, however it is a result that may help build some intuition about the significance of the algebraic operations. Namely,

When a vector is divided out of the plane (parallelogram span) formed from it and another vector, what remains is the perpendicular component of the remaining vector, and its length is the planar area divided by the length of the vector that was divided out.

Area of the parallelogram defined by u and v

If A is the area of the parallelogram defined by u and v, then

A 2 = u × v 2 = i < j | u i u j v i v j | 2 ,

and

A 2 = ( u v ) 2 = i < j | u i u j v i v j | 2 .

Note that this squared bivector is a geometric multiplication; this computation can alternatively be stated as the Gram determinant of the two vectors.

Angle between two vectors

( sin θ ) 2 = u × v 2 u 2 v 2 ( sin θ ) 2 = ( u v ) 2 u 2 v 2

Volume of the parallelopiped formed by three vectors

In vector algebra, the volume of a parallelopiped is given by the square root of the squared norm of the scalar triple product:

V 2 = ( u × v ) w 2 = | u 1 u 2 u 3 v 1 v 2 v 3 w 1 w 2 w 3 | 2

V 2 = ( u v w ) 2 = ( i < j < k | u i u j u k v i v j v k w i w j w k | e ^ i e ^ j e ^ k ) 2 = i < j < k | u i u j u k v i v j v k w i w j w k | 2

Product of a vector and a bivector

In order to justify the normal to a plane result above, a general examination of the product of a vector and bivector is required. Namely,

w ( u v ) = i , j < k w i e i | u j u k v j v k | e j e k

This has two parts, the vector part where i = j or i = k , and the trivector parts where no indexes equal. After some index summation trickery, and grouping terms and so forth, this is

w ( u v ) = i < j ( w i e j w j e i ) | u i u j v i v j | + i < j < k | w i w j w k u i u j u k v i v j v k | e i e j e k

The trivector term is w u v . Expansion of ( u v ) w yields the same trivector term (it is the completely symmetric part), and the vector term is negated. Like the geometric product of two vectors, this geometric product can be grouped into symmetric and antisymmetric parts, one of which is a pure k-vector. In analogy the antisymmetric part of this product can be called a generalized dot product, and is roughly speaking the dot product of a "plane" (bivector), and a vector.

The properties of this generalized dot product remain to be explored, but first here is a summary of the notation

w ( u v ) = w ( u v ) + w u v ( u v ) w = w ( u v ) + w u v w u v = 1 2 ( w ( u v ) + ( u v ) w ) w ( u v ) = 1 2 ( w ( u v ) ( u v ) w )

Let w = x + y , where x = a u + b v , and y u = y v = 0 . Expressing w and the u v , products in terms of these components is

w ( u v ) = x ( u v ) + y ( u v ) = x ( u v ) + y ( u v ) + y u v

With the conditions and definitions above, and some manipulation, it can be shown that the term y ( u v ) = 0 , which then justifies the previous solution of the normal to a plane problem. Since the vector term of the vector bivector product the name dot product is zero when the vector is perpendicular to the plane (bivector), and this vector, bivector "dot product" selects only the components that are in the plane, so in analogy to the vector-vector dot product this name itself is justified by more than the fact this is the non-wedge product term of the geometric vector-bivector product.

Derivative of a unit vector

It can be shown that a unit vector derivative can be expressed using the cross product

d d t ( r r ) = 1 r 3 ( r × d r d t ) × r = ( r ^ × 1 r d r d t ) × r ^

The equivalent geometric product generalization is

d d t ( r r ) = 1 r 3 r ( r d r d t ) = 1 r ( r ^ d r d t )

Thus this derivative is the component of 1 r d r d t in the direction perpendicular to r . In other words, this is 1 r d r d t minus the projection of that vector onto r ^ .

This intuitively makes sense (but a picture would help) since a unit vector is constrained to circular motion, and any change to a unit vector due to a change in its generating vector has to be in the direction of the rejection of r ^ from d r d t . That rejection has to be scaled by 1/|r| to get the final result.

When the objective isn't comparing to the cross product, it's also notable that this unit vector derivative can be written

r d r ^ d t = r ^ d r d t

References

Comparison of vector algebra and geometric algebra Wikipedia