### Geometric product

Not to be confused with Algebraic geometry.

A geometric algebra (GA) is the Clifford algebra of a vector space over the field of real numbers endowed with a quadratic form. The term is also sometimes used as a collective term for the approach to classical, computational and relativistic geometry that applies these algebras. The distinguishing multiplication operation that defines the GA as a unital ring is the geometric product. Taking the geometric product among vectors can yield bivectors, trivectors, or general n-vectors. The addition operation combines these into general multivectors, which are the elements of the ring. This includes, among other possibilities, a well-defined sum of a scalar and a vector, an operation that is impossible by traditional vector addition. This operation may seem peculiar, but in geometric algebra it is seen as no more unusual than the representation of a complex number by the sum of its real and imaginary components.

Geometric algebra is distinguished from Clifford algebra in general by its restriction to real numbers and its emphasis on its geometric interpretation and physical applications. Specific examples of geometric algebras applied in physics include the algebra of physical space, the spacetime algebra, and the conformal geometric algebra. Geometric calculus, an extension of GA that includes differentiation and integration can be further shown to incorporate other theories such as complex analysis, differential geometry, and differential forms. Because of such a broad reach with a comparatively simple algebraic structure, GA has been advocated, most notably by David Hestenes[1] and Chris Doran,[2] as the preferred mathematical framework for physics. Proponents argue that it provides compact and intuitive descriptions in many areas including classical and quantum mechanics, electromagnetic theory and relativity.[3] Others claim that in some cases the geometric algebra approach is able to sidestep a "proliferation of manifolds"[4] that arises during the standard application of differential geometry.

The geometric product was first briefly mentioned by Hermann Grassmann, who was chiefly interested in developing the closely related but more limited exterior algebra. In 1878, William Kingdom Clifford greatly expanded on Grassmann's work to form what are now usually called Clifford algebras in his honor (although Clifford himself chose to call them "geometric algebras"). For several decades, geometric algebras went somewhat ignored, greatly eclipsed by the vector calculus then newly developed to describe electromagnetism. The term "geometric algebra" was repopularized by Hestenes in the 1960s, who recognized its importance to relativistic physics.[5] Since then, geometric algebra (GA) has also found application in computer graphics and robotics.

## Definition and notation

Given a finite dimensional real quadratic space V = Rn with quadratic form Q : VR, the geometric algebra for this quadratic space is the Clifford algebra Cℓ(V,Q).

The algebra product is called the geometric product. It is standard to denote the geometric product by juxtaposition. The above definition of the geometric algebra is abstract, so we summarize the properties of the geometric product by the following set of axioms. If a, b, and c are vectors, then the geometric product has the following properties:

$a\left(bc\right)=\left(ab\right)c$ (associativity)
$a\left(b+c\right)=ab+ac$ (distributivity over addition)
$a^2 \in \mathbb R$

Note that in the final property above, the square is not necessarily positive. An important property of the geometric product is the existence of elements with multiplicative inverse, also known as units. If a2 ≠ 0 for some vector a, then a−1 exists and is equal to a/(a2). Not all the elements of the algebra are necessarily units. For example, if u is a vector in V such that u2 = 1, the elements 1 ± u have no inverse since they are zero divisors: (1 − u)(1 + u) = 1 − uu = 1 − 1 = 0. There may also exist idempotent elements such as (1 + u)/2.

### Inner and outer product of vectors

From the axioms above, we find that, for vectors a and b, we may write the geometric product of any two vectors a and b as the sum of a symmetric product and an antisymmetric product:

$ab=\frac\left\{1\right\}\left\{2\right\}\left(ab+ba\right)+\frac\left\{1\right\}\left\{2\right\}\left(ab-ba\right)$

Thus we can define the inner product of vectors to be the symmetric product

which is a real number because it is a sum of squares. The remaining antisymmetric part is the outer product (the exterior product of the contained exterior algebra):

The inner and outer products are associated with familiar concepts from standard vector algebra. Pictorially, a and b are parallel if all their geometric product is equal to their inner product whereas a and b are perpendicular if their geometric product is equal to their outer product. In a geometric algebra for which the square of any nonzero vector is positive, the inner product of two vectors can be identified with the dot product of standard vector algebra. The outer product of two vectors can be identified with the signed area enclosed by a parallelogram the sides of which are the vectors. The cross product of two vectors in 3 dimensions with positive-definite quadratic form is closely related to their outer product.

Most instances of geometric algebras of interest have a nondegenerate quadratic forms. If the quadratic form is fully degenerate, the inner product of any two vectors is always zero, and the geometric algebra is then simply an exterior algebra. Unless otherwise stated, this article will treat only nondegenerate geometric algebras.

The outer product is naturally extended as a completely antisymmetric, associative operator between any number of vectors

$a_1\wedge a_2\wedge\dots\wedge a_r = \frac\left\{1\right\}\left\{r!\right\}\sum_\left\{\sigma\in\mathfrak\left\{S\right\}_r\right\} \operatorname\left\{sgn\right\}\left(\sigma\right) a_\left\{\sigma\left(1\right)\right\}a_\left\{\sigma\left(1\right)\right\} \dots a_\left\{\sigma\left(r\right)\right\},$

where the sum is over all permutations of the indices, with $\operatorname\left\{sgn\right\}\left(\sigma\right)$ the sign of the permutation.

A multivector that is the outer product of r independent vectors ($r \le n$) is called a blade, and the blade is said to be a multivector of grade r. From the axioms, with closure, every multivector of the geometric algebra is a sum of blades.

Consider a set of r independent vectors $\\left\{a_1,...,a_r\\right\}$ spanning an r-dimensional subspace of the vector space. With these, we can define a real symmetric matrix

$\left[\mathbf\left\{A\right\}\right]_\left\{ij\right\}=a_i\cdot a_j$

By the spectral theorem, A can be diagonalized to diagonal matrix D by an orthogonal matrix O via

$\sum_\left\{k,l\right\}\left[\mathbf\left\{O\right\}\right]_\left\{ik\right\}\left[\mathbf\left\{A\right\}\right]_\left\{kl\right\}\left[\mathbf\left\{O\right\}^\left\{\mathrm\left\{T\right\}\right\}\right]_\left\{lj\right\}=\sum_\left\{k,l\right\}\left[\mathbf\left\{O\right\}\right]_\left\{ik\right\}\left[\mathbf\left\{O\right\}\right]_\left\{jl\right\}\left[\mathbf\left\{A\right\}\right]_\left\{kl\right\}=\left[\mathbf\left\{D\right\}\right]_\left\{ij\right\}$

Define a new set of vectors $\\left\{e_1,...,e_r\\right\}$, known as orthogonal basis vectors, to be those transformed by the orthogonal matrix:

$e_i=\sum_j\left[\mathbf\left\{O\right\}\right]_\left\{ij\right\}a_j$

Since orthogonal transformations preserve inner products, it follows that $e_i\cdot e_j=\left[\mathbf\left\{D\right\}\right]_\left\{ij\right\}$ and thus the $\\left\{e_1,...,e_r\\right\}$ are perpendicular. In other words the geometric product of two distinct vectors $e_i \ne e_j$ is completely specified by their outer product, or more generally

\begin\left\{align\right\}e_1e_2\cdots e_r &= e_1 \wedge e_2 \wedge \cdots \wedge e_r \\

&= \left(\sum_j [\mathbf{O}]_{1j}a_j\right) \wedge \left(\sum_j [\mathbf{O}]_{2j}a_j\right) \wedge \cdots \wedge \left(\sum_j [\mathbf{O}]_{rj}a_j\right) \\ &= \det [\mathbf{O}] a_1 \wedge a_2 \wedge \cdots \wedge a_r \end{align}

Therefore every blade of grade r can be written as a geometric product of r vectors. More generally, if a degenerate geometric algebra is allowed, then the orthogonal matrix is replaced by a block matrix that is orthogonal in the nondegenerate block, and the diagonal matrix has zero-valued entries along the degenerate dimensions. If the new vectors of the nondegenerate subspace are normalized according to

$\hat\left\{e\right\}_i=\frac\left\{1\right\}\left\{\sqrt\left\{|e_i \cdot e_i|\right\}\right\}e_i,$

then these normalized vectors must square to +1 or -1. By Sylvester's law of inertia, the total number of +1's and the total number of -1's along the diagonal matrix is invariant. By extension, the total number p of orthonormal basis vectors that square to +1 and the total number q of orthonormal basis vectors that square to -1 is invariant. (If the degenerate case is allowed, then the total number of basis vectors that square to zero is also invariant.) We denote this algebra $\mathcal\left\{G\right\}\left(p,q\right)$. For example, $\mathcal G\left(3,0\right)$ models 3D Euclidean space, $\mathcal G\left(1,3\right)$ relativistic spacetime and $\mathcal G\left(4,1\right)$ a 3D conformal geometric algebra.

The set of all possible products of n orthogonal basis vectors with indices in increasing order, including 1 as the empty product forms a basis for the entire geometric algebra (an analogue of the PBW theorem). For example, the following is a basis for the geometric algebra $\mathcal\left\{G\right\}\left(3,0\right)$:

$\\left\{1,e_1,e_2,e_3,e_1e_2,e_1e_3,e_2e_3,e_1e_2e_3\\right\}\,$

A basis formed this way is called a standard basis for the geometric algebra, and any other orthogonal basis for V will produce another standard basis. Each standard basis consists of 2n elements. Every multivector of the geometric algebra can be expressed as a linear combination of the standard basis elements. If the standard basis elements are {Bi | iS} with S being an index set, then the geometric product of any two multivectors is

$\left(\Sigma_i \alpha_i B_i\right)\left(\Sigma_j \beta_j B_j\right)=\Sigma_\left\{i,j\right\} \alpha_i\beta_j B_i B_j\,$.

Using a standard basis, a graded vector space structure can be established. Elements of the geometric algebra that are simply scalar multiples of 1 are grade-0 blades and are called scalars. Nonzero multivectors that are in the span of $\\left\{e_1,\cdots,e_n\\right\}$ are grade-1 blades and are the ordinary vectors. Multivectors in the span of n-vectors. Alternatively, grade-n blades are called pseudoscalars, grade-n−1 blades pseudovectors, etc. Many of the elements of the algebra are not graded by this scheme since they are sums of elements of differing grade. Such elements are said to be of mixed grade. The grading of multivectors is independent of the orthogonal basis chosen originally.

A multivector $A$ may be decomposed with the grade-projection operator $\langle A \rangle _r$ which outputs the grade-r portion of A. As a result:

$A = \sum_\left\{r=0\right\}^\left\{n\right\} \langle A \rangle _r$

As an example, the geometric product of two vectors $a b = a \cdot b + a \wedge b = \langle a b \rangle_0 + \langle a b \rangle_2$ since $\langle a b \rangle_0=a\cdot b\,$ and $\langle a b \rangle_2 = a\wedge b\,$ and $\langle a b \rangle_i=0\,$ for i other than 0 and 2.

The decomposition of a multivector $A$ may also be split into those components that are even and those that are odd:

$A^+ = \langle A \rangle _0 + \langle A \rangle _2 + \langle A \rangle _4 + \cdots$
$A^- = \langle A \rangle _1 + \langle A \rangle _3 + \langle A \rangle _5 + \cdots$

This makes the algebra a Z2-graded algebra or superalgebra with the geometric product. Since the geometric product of two even multivectors is an even multivector, they define an even subalgebra. The even subalgebra of an n-dimensional geometric algebra is isomorphic to a full geometric algebra of (n-1) dimensions. Examples include $\mathcal G^+\left(2,0\right) \cong \mathcal G\left(0,1\right)$ and $\mathcal G^+\left(1,3\right) \cong \mathcal G\left(3,0\right)$.

### Representation of subspaces

Geometric algebra represents subspaces of V as multivectors, and so they coexist in the same algebra with vectors from V. A k dimensional subspace W of V is represented by taking an orthogonal basis $\\left\{b_1,b_2,\cdots b_k\\right\}$ and using the geometric product to form the blade D = b1b2⋅⋅⋅bk. There are multiple blades representing W; all those representing W are scalar multiples of D. These blades can be separated into two sets: positive multiples of D and negative multiples of D. The positive multiples of D are said to have the same orientation as D, and the negative multiples the opposite orientation.

Blades are important since geometric operations such as projections, rotations and reflections depend on the factorability via the outer product that (the restricted class of) n-blades provide but that (the generalized class of) grade-n multivectors do not when n ≥ 4.

### Unit pseudoscalars

Unit pseudoscalars are blades that play important roles in GA. A unit pseudoscalar for a non-degenerate subspace W of V is a blade that is the product of the members of an orthonormal basis for W. It can be shown that if I and I′ are both unit pseudoscalars for W, then I = ±I′ and I2 = ±1.

Suppose the geometric algebra $\mathcal\left\{G\right\}\left(n,0\right)$ with the familiar positive definite inner product on Rn is formed. Given a plane (2-dimensional subspace) of Rn, one can find an orthonormal basis {b1,b2} spanning the plane, and thus find a unit pseudoscalar I = b1b2 representing this plane. The geometric product of any two vectors in the span of b1 and b2 lies in $\\left\{\alpha_0+\alpha_1 I\mid \alpha_i\in\mathbb\left\{R\right\} \\right\}$, that is, it is the sum of a 0-vector and a 2-vector.

By the properties of the geometric product, I 2 = b1b2b1b2 = −b1b2b2b1 = −1. The resemblance to the imaginary unit is not accidental: the subspace $\\left\{\alpha_0+\alpha_1 I\mid \alpha_i\in\mathbb\left\{R\right\} \\right\}$ is R-algebra isomorphic to the complex numbers. In this way, a copy of the complex numbers is embedded in the geometric algebra for each 2-dimensional subspace of V on which the quadratic form is definite.

It is sometimes possible to identify the presence of an imaginary unit in a physical equation. Such units arise from one of the many quantities in the real algebra that square to −1, and these have geometric significance because of the properties of the algebra and the interaction of its various subspaces.

In $\mathcal\left\{G\right\}\left(3,0\right)$, an exceptional case occurs. Given a standard basis built from orthonormal ei's from V, the set of all 2-vectors is generated by

$\\left\{e_3e_2,e_1e_3,e_2e_1\\right\}\,$.

Labelling these i, j and k (momentarily deviating from our uppercase convention), the subspace generated by 0-vectors and 2-vectors is exactly $\\left\{\alpha_0+i\alpha_1+j\alpha_2+k\alpha_3\mid \alpha_i\in\mathbb\left\{R\right\}\\right\}$. This set is seen to be a subalgebra, and furthermore is R-algebra isomorphic to the quaternions, another important algebraic system.

### Dual basis

Let $\\left\{e_i\\right\}$ be a frame, i.e. a set of n basis vectors that span an n-dimensional vector space. The frame dual to the $\\left\{e_i\\right\}$ are the elements of the geometric algebra that are the multiplicative inverses of the basis vectors, which are the elements denoted $\\left\{e^i\\right\}$ satisfying

$e^i \cdot e_j = \delta^i\left\{\right\}_j,$

where δ is the Kronecker delta. Let

$\epsilon = e_1 \wedge \cdots \wedge e_n$

be a pseudoscalar forming the basis (this pseudoscalar is not necessarily unit). The dual basis vectors may be built constructively according to the formula

$e^i=\left(-1\right)^\left\{i-1\right\}e_1 \wedge \cdots \wedge \check\left\{e\right\}_i \wedge \cdots \wedge e_n \epsilon^\left\{-1\right\},$

where in the long wedge product the check symbol on the ith term means that the product is taken with respect to all of the basis vectors except that one, which is removed from the product. The long wedge product is therefore of grade n-1 so that, when multiplied by the grade n inverse pseudoscalar, returns a dual basis vector that is grade 1. Note that unlike the situation in traditional linear algebra, the dual frame of geometric algebra lies within the same space as the original basis, not in an abstract dual space.

### Extensions of the inner and outer products

It is common practice to extend the outer product on vectors to the entire algebra. This may be done through the use of the grade projection operator:

(the outer product)

This generalization is consistent with the above definition involving antisymmetrization. Another generalization related to the outer product is the commutator product:

The inner product on vectors can also be generalised, but in more than one non-equivalent way. The paper (Dorst 2002) gives a full treatment of several different inner products developed for geometric algebras and their interrelationships, and the notation is taken from there. Many authors use the same symbol as for the inner product of vectors for their chosen extension (e.g. Hestenes and Perwass). No consistent notation has emerged.

Among these several different generalizations of the inner product on vectors are:

(the left contraction)
(the right contraction)
(the scalar product)
(the "(fat) dot" product)
(Hestenes's inner product)[9]

(Dorst 2002) makes an argument for the use of contractions in preference to Hestenes's inner product; they are algebraically more regular and have cleaner geometric interpretations. A number of identities incorporating the contractions are valid without restriction of their inputs. Benefits of using the left contraction as an extension of the inner product on vectors include that the identity $ab = a \cdot b + a \wedge b$ is extended to $aB = a \;\big\lrcorner\; B + a \wedge B$ for any vector a and multivector B, and that the projection operation $\mathcal\left\{P\right\}_b \left(a\right) = \left(a \cdot b^\left\{-1\right\}\right)b$ is extended to $\mathcal\left\{P\right\}_B \left(A\right) = \left(A \;\big\lrcorner\; B^\left\{-1\right\}\right) \;\big\lrcorner\; B$ for any blades A and B (with a minor modification to accommodate null B, given below).

### Terminology specific to geometric algebra

Some terms are used in geometric algebra with a meaning that differs from the use of those terms in other fields of mathematics. Some of these are listed here:

Vector
In GA this refers specifically to an element of the 1-vector subspace unless otherwise clear from the context, despite the entire algebra forming a vector space.
Outer product
In GA this refers to what is generally called the exterior product (including in GA as an alternative). It is not the outer product of linear algebra.
Inner product
In GA this generally refers to a scalar product on the vector subspace (which is not required to be positive definite) and may include any chosen extension of this product to the entire algebra. It is not specifically the inner product on a normed vector space.
Versor
In GA this refers to an object that can be constructed as the geometric product of any number of non-null vectors. The term otherwise may refer to a unit quaternion, analogous to a rotor in GA.
Outermorphism
This term is used only in GA, and refers to a linear map on the vector subspace, extended to apply to the entire algebra by defining it as preserving the outer product.

## Geometric interpretation

### Projection and rejection

For any vector a and any invertible vector m,

$\, a = amm^\left\{-1\right\} = \left(a\cdot m + a \wedge m\right)m^\left\{-1\right\} = a_\left\{\| m\right\} + a_\left\{\perp m\right\}$

where the projection of a onto m (or the parallel part) is

$\, a_\left\{\| m\right\} = \left(a\cdot m\right)m^\left\{-1\right\}$

and the rejection of a onto m (or the perpendicular part) is

$\, a_\left\{\perp m\right\} = a - a_\left\{\| m\right\} = \left(a\wedge m\right)m^\left\{-1\right\} .$

Using the concept of a k-blade B as representing a subspace of V and every multivector ultimately being expressed in terms of vectors, this generalizes to projection of a general multivector onto any invertible k-blade B as[10]

$\, \mathcal\left\{P\right\}_B \left(A\right) = \left(A \;\big\lrcorner\; B^\left\{-1\right\}\right) \;\big\lrcorner\; B$

with the rejection being defined as

$\, \mathcal\left\{P\right\}_B^\perp \left(A\right) = A - \mathcal\left\{P\right\}_B \left(A\right) .$

The projection and rejection generalize to null blades B by replacing the inverse B−1 with the pseudoinverse B+ with respect to the contractive product.[11] The outcome of the projection coincides in both cases for non-null blades.[12].[13] For null blades B, the definition of the projection given here with the first contraction rather than the second being onto the pseudoinverse should be used,[14] as only then is the result necessarily in the subspace represented by B.[12] The projection generalizes through linearity to general multivectors A.[15] The projection is not linear in B and does not generalize to objects B that are not blades.

### Reflections

The definition of a reflection occurs in two forms in the literature. Several authors work with reflection along a vector (negating only the component parallel to the specifying vector, or reflection in the hypersurface orthogonal to that vector), while others work with reflection on a vector (negating all vector components except that parallel to the specifying vector). Either may be used to build general versor operations, but the latter has the advantage that it extends to the algebra in a simpler and algebraically more regular fashion.

#### Reflection along a vector

The reflection of a vector a along a vector m, or equivalently in the hyperplane orthogonal to m, is the same as negating the component of a vector parallel to m. The result of the reflection will be

$\! a\text{'} = \left\{-a_\left\{\| m\right\} + a_\left\{\perp m\right\}\right\} = \left\{-\left(a \cdot m\right)m^\left\{-1\right\} + \left(a \wedge m\right)m^\left\{-1\right\}\right\}$

= {(-m \cdot a - m \wedge a)m^{-1}} = -mam^{-1}

This is not the most general operation that may be regarded as a reflection when the dimension n ≥ 4. A general reflection may be expressed as the composite of any odd number of single-axis reflections. Thus, a general reflection of a vector may be written

$\! a \mapsto -MaM^\left\{-1\right\}$

where

$\! M = pq \ldots r$ and $\! M^\left\{-1\right\} = \left(pq \ldots r\right)^\left\{-1\right\} = r^\left\{-1\right\} \ldots q^\left\{-1\right\}p^\left\{-1\right\} .$

If we define the reflection along a non-null vector m of the product of vectors as the reflection of every vector in the product along the same vector, we get for any product of an odd number of vectors that, by way of example,

$\left(abc\right)\text{'} = a\text{'}b\text{'}c\text{'} = \left(-mam^\left\{-1\right\}\right)\left(-mbm^\left\{-1\right\}\right)\left(-mcm^\left\{-1\right\}\right) = -ma\left(m^\left\{-1\right\}m\right)b\left(m^\left\{-1\right\}m\right)cm^\left\{-1\right\} = -mabcm^\left\{-1\right\} \,$

and for the product of an even number of vectors that

$\left(abcd\right)\text{'} = a\text{'}b\text{'}c\text{'}d\text{'} = \left(-mam^\left\{-1\right\}\right)\left(-mbm^\left\{-1\right\}\right)\left(-mcm^\left\{-1\right\}\right)\left(-mdm^\left\{-1\right\}\right)$

= mabcdm^{-1} .\,

Using the concept of every multivector ultimately being expressed in terms of vectors, the reflection of a general multivector A using any reflection versor M may be written

$\, A \mapsto M\alpha\left(A\right)M^\left\{-1\right\} ,$

where α is the automorphism of reflection through the origin of the vector space (v ↦ −v) extended through multilinearity to the whole algebra.

#### Reflection on a vector

The result of reflecting a vector a on another vector n is to negate the rejection of a. It is akin to reflecting the vector a through the origin, except that the projection of a onto n is not reflected. Such an operation is described by

$\, a \mapsto nan^\left\{-1\right\} .$

Repeating this operation results in a general versor operation (including both rotations and reflections) of a general multivector A being expressed as

$\, A \mapsto NAN^\left\{-1\right\} .$

This allows a general definition of any versor N (including both reflections and rotors) as an object that can be expressed as a geometric product of any number of non-null 1-vectors. Such a versor can be applied in a uniform sandwich product as above irrespective of whether it is of even (a proper rotation) or odd grade (an improper rotation i.e. general reflection). The set of all versors with the geometric product as the group operation constitutes the Clifford group of the Clifford algebra Cp,q(R).[16]

### Hypervolume of an n-parallelotope spanned by n vectors

For vectors $a$ and $b$ spanning a parallelogram we have

$a \wedge b = \left(\left(a \wedge b\right) b^\left\{-1\right\}\right) b = a_\left\{\perp b\right\} b$

with the result that $a \wedge b$ is linear in the product of the "altitude" and the "base" of the parallelogram, that is, its area.

Similar interpretations are true for any number of vectors spanning an n-dimensional parallelotope; the outer product of vectors a1, a2, ... an, that is $\bigwedge_\left\{i=1\right\}^n a_i$, has a magnitude equal to the volume of the n-parallelotope. An n-vector doesn't necessarily have a shape of a parallelotope - this is a convenient visualization. It could be any shape, although the volume equals that of the parallelotope.

### Rotations

If we have a product of vectors $R = a_1a_2....a_r$ then we denote the reverse as

$R^\left\{\dagger\right\}= \left(a_1a_2....a_r\right)^\left\{\dagger\right\} = a_r....a_2a_1$.

As an example, assume that $R = ab$ we get

$RR^\left\{\dagger\right\} = abba = ab^2a =a^2b^2 = R^\left\{\dagger\right\}R$.

Scaling R so that RR = 1 then

$\left(RvR^\left\{\dagger\right\}\right)^2 = Rv^\left\{2\right\}R^\left\{\dagger\right\}= v^2RR^\left\{\dagger\right\} = v^2$

so $RvR$ leaves the length of $v$ unchanged. We can also show that

$\left(Rv_1R^\left\{\dagger\right\}\right) \cdot \left(Rv_2R^\left\{\dagger\right\}\right) = v_1 \cdot v_2$

so the transformation RvR preserves both length and angle. It therefore can be identified as a rotation or rotoreflection; R is called a rotor if it is a proper rotation (as it is if it can be expressed as a product of an even number of vectors) and is an instance of what is known in GA as a versor (presumably for historical reasons).

There is a general method for rotating a vector involving the formation of a multivector of the form $R = e^\left\{-\frac\left\{B \theta\right\}\left\{2\right\}\right\}$ that produces a rotation $\theta$ in the plane and with the orientation defined by a 2-blade $B$.

Rotors are a generalization of quaternions to n-D spaces.

For more about reflections, rotations and "sandwiching" products like RvR see Plane of rotation.

## Linear functions

An important class of functions of multivectors are the linear functions mapping multivectors to multivectors. The geometric algebra of an n-dimensional vector space is spanned by 2n standard basis elements. If a multivector in this basis is represented by a 2n x 1 real column matrix, then in principle all linear transformations of the multivector can be written as the matrix multiplication of a 2n x 2n real matrix on the column, just as in the entire theory of linear algebra in 2n dimensions.

There are several issues with this naive generalization. To see this, recall that the eigenvalues of a real matrix may in general be complex. The scalar coefficients of blades must be real, so these complex values are of no use. If we attempt to proceed with an analogy for these complex eigenvalues anyway, we know that in ordinary linear algebra, complex eigenvalues are associated with rotation matrices. However if the linear function is truly general, it could allow arbitrary exchanges among the different grades, such as a "rotation" of a scalar into a vector. This operation has no clear geometric interpretation.

We seek to restrict the class of linear functions of multivectors to more geometrically sensible transformations. A common restriction is to require that the linear functions be grade-preserving. The grade-preserving linear functions are the linear functions that map scalars to scalars, vectors to vectors, bivectors to bivectors, etc. In matrix representation, the grade-preserving linear functions are block diagonal matrices, where each r-grade block is of size $\binom nr \times \binom nr$. A weaker restriction allows the linear functions to map r-grade multivectors into linear combinations of r-grade and (n-r)-grade multivectors. These functions map scalars into scalars+pseudoscalars, vectors to vectors+pseudovectors, etc.

Often an invertible linear transformation from vectors to vectors is already of known interest. There is no unique way to generalize these transformations to the entire geometric algebra without further restriction. Even the restriction that the linear transformation be grade-preserving is not enough. We therefore desire a stronger rule, motivated by geometric interpretation, for generalizing these linear transformations of vectors in a standard way. The most natural choice is that of the outermorphism of the linear transformation because it extends the concepts of reflection and rotation straightforwardly. If f is a function that maps vectors to vectors, then its outermorphism is the function that obeys the rule

$\underline\left\{\mathsf\left\{f\right\}\right\}\left(a_1 \wedge a_2 \wedge \cdots \wedge a_r\right) = f\left(a_1\right) \wedge f\left(a_2\right) \wedge \cdots \wedge f\left(a_r\right).$

In particular, the outermorphism of the reflection of a vector on a vector is

$nan^\left\{-1\right\} \mapsto nAn^\left\{-1\right\},$

and the outermorphism of the rotation of a vector by a rotor is

$RaR^\left\{\dagger\right\} \mapsto RAR^\left\{\dagger\right\}.$

## Examples and applications

### Intersection of a line and a plane

We may define the line parametrically by $p = t + \alpha \ v$ where p and t are position vectors for points T and P and v is the direction vector for the line.

Then

$B \wedge \left(p-q\right) = 0$ and $B \wedge \left(t + \alpha v - q\right) = 0$

so

$\alpha = \frac\left\{B \wedge\left(q-t\right)\right\}\left\{B \wedge v\right\}$

and

$p = t + \left\left(\frac\left\{B \wedge \left(q-t\right)\right\}\left\{B \wedge v\right\}\right\right) v$.

### Rotating systems

The mathematical description of rotational forces such as torque and angular momentum make use of the cross product.

The cross product can be viewed in terms of the outer product allowing a more natural geometric interpretation of the cross product as a bivector using the dual relationship

$a \times b = -I \left(a \wedge b\right) \,.$

For example,torque is generally defined as the magnitude of the perpendicular force component times distance, or work per unit angle.

Suppose a circular path in an arbitrary plane containing orthonormal vectors $\hat\left\{ u\right\}$ and$\hat\left\{ v\right\}$ is parameterized by angle.



\mathbf{r} = r(\hat{ u} \cos \theta + \hat{ v} \sin \theta) = r \hat{ u}(\cos \theta + \hat{ u} \hat{ v} \sin \theta)

By designating the unit bivector of this plane as the imaginary number

$\left\{i\right\} = \hat\left\{ u\right\} \hat\left\{ v\right\} = \hat\left\{ u\right\} \wedge \hat\left\{ v\right\}$
$\left\{i\right\}^2 = -1$

this path vector can be conveniently written in complex exponential form



\mathbf{r} = r \hat{ u} e^{d\theta} = r \hat{ u} {i} e^ and $\left\{\hat\left\{v\right\}\right\}$.

### Electrodynamics and special relativity

In physics, the main applications are the geometric algebra of Minkowski 3+1 spacetime, C1,3, called spacetime algebra (STA).[5] or less commonly, C3, called the algebra of physical space (APS) where C3 is isomorphic to the even subalgebra of the 3+1 Clifford algebra, C0
3,1
.

While in STA points of spacetime are represented simply by vectors, in APS, points of (3+1)-dimensional spacetime are instead represented by paravectors: a 3-dimensional vector (space) plus a 1-dimensional scalar (time).

In spacetime algebra the electromagnetic field tensor has a bivector representation $\left\{F\right\} = \left(\left\{E\right\} + i c \left\{B\right\}\right)e_0$.[18] Here, the imaginary unit is the (four-dimensional) volume element, and $e_0$ is the unit vector in time direction. Using the four-current $\left\{J\right\}$, Maxwell's equations then simplify to

$\nabla \left\{F\right\} = \mu_0 c \left\{J\right\}$.

Boosts in this Lorenzian metric space have the same expression $e^$ as rotation in Euclidean space, where $\left\{\beta\right\}$ is the bivector generated by the time and the space directions involved, whereas in the Euclidean case it is the bivector generated by the two space directions, strengthening the "analogy" to almost identity.

## Relationship with other formalisms

$\mathcal G\left(3,0\right)$ may be directly compared to vector algebra.

The even subalgebra of $\mathcal G\left(2,0\right)$ is isomorphic to the complex numbers, as may be seen by writing a vector P in terms of its components in an orthonormal basis and left multiplying by the basis vector e1, yielding

$Z = \left\{e_1\right\} P = \left\{e_1\right\} \left( x \left\{e_1\right\} + y \left\{e_2\right\}\right)$

= x (1) + y ( {e_1} {e_2})\,

where we identify ie1e2 since

$\left(\left\{e_1\right\}\left\{e_2\right\}\right)^2 = \left\{e_1\right\}\left\{e_2\right\}\left\{e_1\right\}\left\{e_2\right\} = -\left\{e_1\right\}\left\{e_1\right\}\left\{e_2\right\}\left\{e_2\right\} = -1 \,$

Similarly, the even subalgebra of $\mathcal G\left(3,0\right)$ with basis {1, e2e3, e3e1, e1e2} is isomorphic to the quaternions as may be seen by identifying i ↦ −e2e3, j ↦ −e3e1 and k ↦ −e1e2.

Every associative algebra has a matrix representation; the Pauli matrices are a representation of $\mathcal G\left(3,0\right)$ and the Dirac matrices are a representation of $\mathcal G\left(1,3\right)$, showing the equivalence with matrix representations used by physicists.

## Geometric calculus

Main article: Geometric calculus

Geometric calculus extends the formalism to include differentiation and integration including differential geometry and differential forms.[19]

Essentially, the vector derivative is defined so that the GA version of Green's theorem is true,

$\int_\left\{A\right\} dA \nabla f = \oint_\left\{\partial A\right\} dx f$

and then one can write

$\nabla f = \nabla \cdot f + \nabla \wedge f$

as a geometric product, effectively generalizing Stokes' theorem (including the differential form version of it).

In $1D$ when A is a curve with endpoints $a$ and $b$, then

$\int_\left\{A\right\} dA \nabla f = \oint_\left\{\partial A\right\} dx f$

reduces to

$\int_\left\{a\right\}^\left\{b\right\} dx \nabla f = \int_\left\{a\right\}^\left\{b\right\} dx \cdot \nabla f = \int_\left\{a\right\}^\left\{b\right\} df = f\left(b\right) -f\left(a\right)$

or the fundamental theorem of integral calculus.

Also developed are the concept of vector manifold and geometric integration theory (which generalizes Cartan's differential forms).

## Conformal geometric algebra (CGA)

Main article: Conformal geometric algebra

A compact description of the current state of the art is provided by Bayro-Corrochano and Scheuermann (2010),[20] which also includes further references, in particular to Dorst et al (2007).[21] Other useful references are Li (2008).[22] and Bayro (2010).[23]

Working within GA, Euclidian space $\mathcal E^3$ is embedded projectively in the CGA $\mathcal G^\left\{4,1\right\}$ via the identification of Euclidean points with 1D subspaces in the 4D null cone of the 5D CGA vector subspace, and adding a point at infinity. This allows all conformal transformations to be done as rotations and reflections and is covariant, extending incidence relations of projective geometry to circles and spheres.

Specifically, we add orthogonal basis vectors $\, e_+$ and $\, e_-$ such that $\, \left\{e_+\right\}^2 = +1$ and $\, \left\{e_-\right\}^2 = -1$ to the basis of $\mathcal\left\{G\right\}\left(3,0\right)$ and identify null vectors

$n_\left\{\infty\right\} = e_- + e_+$ as an ideal point (point at infinity) (see Compactification) and
$n_\left\{o\right\} = \tfrac\left\{1\right\}\left\{2\right\}\left(e_- - e_+\right)$ as the point at the origin, giving
$n_\left\{\infty\right\} \cdot n_\left\{o\right\} = -1$.

This procedure has some similarities to the procedure for working with homogeneous coordinates in projective geometry and in this case allows the modeling of Euclidean transformations as orthogonal transformations.

A fast changing and fluid area of GA, CGA is also being investigated for applications to relativistic physics.

## History

Before the 20th century

Although the connection of geometry with algebra dates as far back at least to Euclid's Elements in the 3rd century B.C. (see Greek geometric algebra), GA in the sense used in this article was not developed until 1844, when it was used in a systematic way to describe the geometrical properties and transformations of a space. In that year, Hermann Grassmann introduced the idea of a geometrical algebra in full generality as a certain calculus (analogous to the propositional calculus) that encoded all of the geometrical information of a space.[24] Grassmann's algebraic system could be applied to a number of different kinds of spaces, the chief among them being Euclidean space, affine space, and projective space. Following Grassmann, in 1878 William Kingdon Clifford examined Grassmann's algebraic system alongside the quaternions of William Rowan Hamilton in (Clifford 1878). From his point of view, the quaternions described certain transformations (which he called rotors), whereas Grassmann's algebra described certain properties (or Strecken such as length, area, and volume). His contribution was to define a new product — the geometric product — on an existing Grassmann algebra, which realized the quaternions as living within that algebra. Subsequently Rudolf Lipschitz in 1886 generalized Clifford's interpretation of the quaternions and applied them to the geometry of rotations in n dimensions. Later these developments would lead other 20th-century mathematicians to formalize and explore the properties of the Clifford algebra.

Nevertheless, another revolutionary development of the 19th-century would completely overshadow the geometric algebras: that of vector analysis, developed independently by Josiah Willard Gibbs and Oliver Heaviside. Vector analysis was motivated by James Clerk Maxwell's studies of electromagnetism, and specifically the need to express and manipulate conveniently certain differential equations. Vector analysis had a certain intuitive appeal compared to the rigors of the new algebras. Physicists and mathematicians alike readily adopted it as their geometrical toolkit of choice, particularly following the influential 1901 textbook Vector Analysis by Edwin Bidwell Wilson, following lectures of Gibbs.

In more detail, there have been three approaches to geometric algebra: quaternionic analysis, initiated by Hamilton in 1843 and geometrized as rotors by Clifford in 1878; geometric algebra, initiated by Grassmann in 1844; and vector analysis, developed out of quaternionic analysis in the late 19th century by Gibbs and Heaviside. The legacy of quaternionic analysis in vector analysis can be seen in the use of i, j, k to indicate the basis vectors of R3: it is being thought of as the purely imaginary quaternions. From the perspective of geometric algebra, quaternions can be identified as C03,0(R), the even part of the Clifford algebra on Euclidean 3-space, which unifies the three approaches.

20th century and present

Progress on the study of Clifford algebras quietly advanced through the twentieth century, although largely due to the work of abstract algebraists such as Hermann Weyl and Claude Chevalley. The geometrical approach to geometric algebras has seen a number of 20th-century revivals. In mathematics, Emil Artin's Geometric Algebra[25] discusses the algebra associated with each of a number of geometries, including affine geometry, projective geometry, symplectic geometry, and orthogonal geometry. In physics, geometric algebras have been revived as a "new" way to do classical mechanics and electromagnetism, together with more advanced topics such as quantum mechanics and gauge theory.[26] David Hestenes reinterpreted the Pauli and Dirac matrices as vectors in ordinary space and spacetime, respectively, and has been a primary contemporary advocate for the use of geometric algebra.

In computer graphics and robotics, geometric algebras have been revived in order to efficiently represent rotations and other transformations. For applications of GA in robotics (screw theory, kinematics and dynamics using versors), computer vision, control and neural computing (geometric learning) see Bayro (2010).

## Software

GA is a very application oriented subject. There is a reasonably steep initial learning curve associated with it, but this can be eased somewhat by the use of applicable software.

The following is a list of freely available software that does not require ownership of commercial software or purchase of any commercial products for this purpose:

• GA Viewer Fontijne, Dorst, Bouma & Mann

The link provides a manual, introduction to GA and sample material as well as the software.

• CLUViz Perwass

Software allowing script creation and including sample visualizations, manual and GA introduction.

• Gaigen Fontijne

For programmers,this is a code generator with support for C,C++,C# and Java.

• Cinderella Visualizations Dorst.
• Gaalop Maxima to break down CLUViz code into C/C++ or Java code.
• Gaalop Precompiler CMake.
• Gaalet, C++ Expression Template Library Seybold.
• GALua, A Lua module adding GA data-types to the Lua programming language Parkin.