Seven-dimensional cross product

In mathematics, the seven-dimensional cross product is a bilinear operation on vectors in seven-dimensional Euclidean space. It assigns to any two vectors a, b in $\mathbb{R}^7$ a vector a × b also in $\mathbb{R}^7$. Like the cross product in three dimensions, the seven-dimensional product is anticommutative and a × b is orthogonal both to a and to b. Unlike in three dimensions, it does not satisfy the Jacobi identity, and while the three-dimensional cross product is unique up to a sign, there are many seven-dimensional cross products. The seven-dimensional cross product has the same relationship to the octonions as the three-dimensional product does to the quaternions.

The seven-dimensional cross product is one way of generalizing the cross product to other than three dimensions, and it is the only other bilinear product of two vectors that is vector-valued, orthogonal, and has the same magnitude as in the 3D case. In other dimensions there are vector-valued products of three or more vectors that satisfy these conditions, and binary products with bivector results.

Multiplication table
The product can be given by a multiplication table, such as the one here. This table, due to Cayley, gives the product of orthonormal basis vectors ei and ej for each i, j from 1 to 7. For example, from the table
 * $$\mathbf{e}_1 \times \mathbf{e}_2 = \mathbf{e}_3 =-\mathbf{e}_2 \times \mathbf{e}_1$$

The table can be used to calculate the product of any two vectors. For example, to calculate the e1 component of x × y the basis vectors that multiply to produce e1 can be picked out to give
 * $$\left( \mathbf{ x \times y}\right)_1 = x_2y_3 - x_3y_2 +x_4y_5-x_5y_4 + x_7y_6-x_6y_7.$$

This can be repeated for the other six components.

There are 480 such tables for any given set of orthogonal basis vectors, one for each of the products satisfying the definition such that each entry in the table can be expressed in terms of a single element of the basis. This table can be summarized by the relation
 * $$\mathbf{e}_i \mathbf{\times} \mathbf{e}_j = \varepsilon _{ijk} \mathbf{e}_k, $$

where $$\varepsilon _{ijk}$$ is a completely antisymmetric tensor with a positive value +1 when ijk = 123, 145, 176, 246, 257, 347, 365.

The top left 3 × 3 corner of this table gives the cross product in three dimensions.

Definition
A cross product on a Euclidean space V is a bilinear map from V × V to V, mapping vectors x and y in V to another vector x × y also in V, where x × y has the properties where (x·y) is the Euclidean dot product and |x| is the Euclidean norm. The first property states that the product is perpendicular to its arguments, while the second property gives the magnitude of the product. An equivalent expression in terms of the angle θ between the vectors is
 * orthogonality:
 * $$\mathbf{x} \cdot (\mathbf{x} \times \mathbf{y}) = (\mathbf{x} \times \mathbf{y}) \cdot \mathbf{y}=0,$$
 * magnitude:
 * $$|\mathbf{x} \times \mathbf{y}|^2 = |\mathbf{x}|^2 |\mathbf{y}|^2 - (\mathbf{x} \cdot \mathbf{y})^2 $$
 * $$|\mathbf{x} \times \mathbf{y}| = |\mathbf{x}| |\mathbf{y}| \sin \theta, $$

which is the area of the parallelogram in the plane of x and y with the two vectors as sides. A third statement of the magnitude condition is
 * $$|\mathbf{x} \times \mathbf{y}| = |\mathbf{x}| |\mathbf{y}|~\mbox{if} \  \left( \mathbf{x} \cdot \mathbf{y} \right)= 0,$$

if x × x = 0 is assumed as a separate axiom.

Consequences of the defining properties
Given the properties of bilinearity, orthogonality and magnitude, a nonzero cross product exists only in three and seven dimensions. This can be shown by postulating the properties required for the cross product, then deducing an equation which is only satisfied when the dimension is 0, 1, 3 or 7. In zero dimensions there is only the zero vector, while in one dimension all vectors are parallel, so in both these cases the product must be identically zero.

The restriction to 0, 1, 3 and 7 dimensions is related to Hurwitz's theorem, that normed division algebras are only possible in 1, 2, 4 and 8 dimensions. The cross product is formed from the product of the normed division algebra by restricting it to the 0, 1, 3, or 7 imaginary dimensions of the algebra, giving nonzero products in only three and seven dimensions.

In contrast to the three-dimensional cross product, which is unique (apart from sign), there are many possible binary cross products in seven dimensions. One way to see this is to note that given any pair of vectors x and y $$\isin \mathbb{R}^7$$ and any vector v of magnitude |v| = |x||y| sin θ in the five-dimensional space perpendicular to the plane spanned by x and y, it is possible to find a cross product with a multiplication table (and an associated set of basis vectors) such that x × y = v. Unlike in three dimensions, x × y = a × b does not imply that a and b lie in the same plane as x and y.

Further properties follow from the definition, including the following identities:
 * 1) Anticommutativity:
 * $$ \mathbf{x} \times \mathbf{y} = -\mathbf{y} \times \mathbf{x} $$
 * 1) Scalar triple product:
 * $$ \mathbf{x} \cdot (\mathbf{y} \times \mathbf{z}) = \mathbf{y} \cdot (\mathbf{z} \times \mathbf{x}) = \mathbf{z} \cdot (\mathbf{x} \times \mathbf{y})$$
 * 1) Malcev identity:
 * $$ (\mathbf{x} \times \mathbf{y}) \times (\mathbf{x} \times \mathbf{z}) = ((\mathbf{x} \times \mathbf{y}) \times \mathbf{z}) \times \mathbf{x} + ((\mathbf{y} \times \mathbf{z}) \times \mathbf{x}) \times \mathbf{x} + ((\mathbf{z} \times \mathbf{x}) \times \mathbf{x}) \times \mathbf{y}$$
 * $$ \mathbf{x} \times (\mathbf{x} \times \mathbf{y}) = -|\mathbf{x}|^2 \mathbf{y} + (\mathbf{x} \cdot \mathbf{y}) \mathbf{x}.$$

Other properties follow only in the three-dimensional case, and are not satisfied by the seven-dimensional cross product, notably,
 * 1) Vector triple product:
 * $$ \mathbf{x} \times (\mathbf{y} \times \mathbf{z}) = (\mathbf{x} \cdot \mathbf{z}) \mathbf{y} - (\mathbf{x} \cdot \mathbf{y}) \mathbf{z} $$
 * 1) Jacobi identity:
 * $$ \mathbf{x} \times (\mathbf{y} \times \mathbf{z}) + \mathbf{y} \times (\mathbf{z} \times \mathbf{x}) + \mathbf{z} \times (\mathbf{x} \times \mathbf{y}) = 0$$

Thanks to the Jacobi Identity, the three-dimensional cross product gives $$\mathbb{R}^3$$ the structure of a Lie algebra, which is isomorphic to $$\mathfrak{so}(3)$$, the Lie algebra of the 3d rotation group. Because the Jacobi identity fails in seven dimensions, the seven-dimensional cross product does not give $$\mathbb{R}^7$$ the structure of a Lie algebra.

Coordinate expressions
To define a particular cross product, an orthonormal basis $\{e_{j}\}$ may be selected and a multiplication table provided that determines all the products $\{e_{i} × e_{j}\}$. One possible multiplication table is described in the Multiplication table section, but it is not unique. Unlike three dimensions, there are many tables because every pair of unit vectors is perpendicular to five other unit vectors, allowing many choices for each cross product.

Once we have established a multiplication table, it is then applied to general vectors x and y by expressing x and y in terms of the basis and expanding x × y through bilinearity. Using e1 to e7 for the basis vectors a different multiplication table from the one in the Introduction, leading to a different cross product, is given with anticommutativity by
 * $$\mathbf{e}_1 \times \mathbf{e}_2 = \mathbf{e}_4, \quad \mathbf{e}_2 \times \mathbf{e}_4 = \mathbf{e}_1, \quad \mathbf{e}_4 \times \mathbf{e}_1 = \mathbf{e}_2,$$
 * $$\mathbf{e}_2 \times \mathbf{e}_3 = \mathbf{e}_5, \quad \mathbf{e}_3 \times \mathbf{e}_5 = \mathbf{e}_2, \quad \mathbf{e}_5 \times \mathbf{e}_2 = \mathbf{e}_3,$$
 * $$\mathbf{e}_3 \times \mathbf{e}_4 = \mathbf{e}_6, \quad \mathbf{e}_4 \times \mathbf{e}_6 = \mathbf{e}_3, \quad \mathbf{e}_6 \times \mathbf{e}_3 = \mathbf{e}_4,$$
 * $$\mathbf{e}_4 \times \mathbf{e}_5 = \mathbf{e}_7, \quad \mathbf{e}_5 \times \mathbf{e}_7 = \mathbf{e}_4, \quad \mathbf{e}_7 \times \mathbf{e}_4 = \mathbf{e}_5,$$
 * $$\mathbf{e}_5 \times \mathbf{e}_6 = \mathbf{e}_1, \quad \mathbf{e}_6 \times \mathbf{e}_1 = \mathbf{e}_5, \quad \mathbf{e}_1 \times \mathbf{e}_5 = \mathbf{e}_6,$$
 * $$\mathbf{e}_6 \times \mathbf{e}_7 = \mathbf{e}_2, \quad \mathbf{e}_7 \times \mathbf{e}_2 = \mathbf{e}_6, \quad \mathbf{e}_2 \times \mathbf{e}_6 = \mathbf{e}_7,$$
 * $$\mathbf{e}_7 \times \mathbf{e}_1 = \mathbf{e}_3, \quad \mathbf{e}_1 \times \mathbf{e}_3 = \mathbf{e}_7, \quad \mathbf{e}_3 \times \mathbf{e}_7 = \mathbf{e}_1.$$

More compactly this rule can be written as
 * $$\mathbf{e}_i \times \mathbf{e}_{i+1} = \mathbf{e}_{i+3}$$

with i = 1, ..., 7 modulo 7 and the indices i, i + 1 and i + 3 allowed to permute evenly. Together with anticommutativity this generates the product. This rule directly produces the two diagonals immediately adjacent to the diagonal of zeros in the table. Also, from an identity in the subsection on consequences,
 * $$\mathbf{e}_i \times \left( \mathbf{e}_i \times \mathbf{e}_{i+1}\right) =-\mathbf{e}_{i+1} = \mathbf{e}_i \times \mathbf{e}_{i+3} \ ,$$

which produces diagonals further out, and so on.

The ej component of cross product x × y is given by selecting all occurrences of ej in the table and collecting the corresponding components of x from the left column and of y from the top row. The result is:
 * $$\begin{align}\mathbf{x} \times \mathbf{y}

=  (x_2y_4 - x_4y_2 + x_3y_7 - x_7y_3 + x_5y_6 - x_6y_5)\,&\mathbf{e}_1 \\ {}+ (x_3y_5 - x_5y_3 + x_4y_1 - x_1y_4 + x_6y_7 - x_7y_6)\,&\mathbf{e}_2 \\ {}+ (x_4y_6 - x_6y_4 + x_5y_2 - x_2y_5 + x_7y_1 - x_1y_7)\,&\mathbf{e}_3 \\ {}+ (x_5y_7 - x_7y_5 + x_6y_3 - x_3y_6 + x_1y_2 - x_2y_1)\,&\mathbf{e}_4 \\ {}+ (x_6y_1 - x_1y_6 + x_7y_4 - x_4y_7 + x_2y_3 - x_3y_2)\,&\mathbf{e}_5 \\ {}+ (x_7y_2 - x_2y_7 + x_1y_5 - x_5y_1 + x_3y_4 - x_4y_3)\,&\mathbf{e}_6 \\ {}+ (x_1y_3 - x_3y_1 + x_2y_6 - x_6y_2 + x_4y_5 - x_5y_4)\,&\mathbf{e}_7. \end{align}$$

As the cross product is bilinear, the operator x × – can be written as a matrix, which takes the form
 * $$T_{\mathbf x} = \begin{bmatrix}

0  & -x_4 & -x_7 &  x_2 & -x_6 &  x_5 &  x_3 \\ x_4 & 0   & -x_5 & -x_1 &  x_3 & -x_7 &  x_6 \\ x_7 & x_5 & 0    & -x_6 & -x_2 &  x_4 & -x_1 \\ -x_2 & x_1 &  x_6 &  0   & -x_7 & -x_3 &  x_5 \\ x_6 & -x_3 & x_2 &  x_7 &  0   & -x_1 & -x_4 \\ -x_5 & x_7 & -x_4 &  x_3 &  x_1 & 0    & -x_2 \\ -x_3 & -x_6 & x_1 & -x_5 &  x_4 &  x_2 & 0 \end{bmatrix}.$$

The cross product is then given by
 * $$\mathbf{x} \times \mathbf{y} = T_{\mathbf{x}} \mathbf{y}.$$

Different multiplication tables


Two different multiplication tables have been used in this article, and there are more. These multiplication tables are characterized by the Fano plane, and these are shown in the figure for the two tables used here: at top, the one described by Sabinin, Sbitneva, and Shestakov, and at bottom that described by Lounesto. The numbers under the Fano diagrams (the set of lines in the diagram) indicate a set of indices for seven independent products in each case, interpreted as ijk → ei × ej = ek. The multiplication table is recovered from the Fano diagram by following either the straight line connecting any three points, or the circle in the center, with a sign as given by the arrows. For example, the first row of multiplications resulting in e1 in the above listing is obtained by following the three paths connected to e1 in the lower Fano diagram: the circular path e2 × e4, the diagonal path e3 × e7, and the edge path e6 × e1 = e5 rearranged using one of the above identities as:
 * $$\mathbf{e}_6 \times \left( \mathbf{e}_6 \times \mathbf{e}_1 \right) = -\mathbf{e}_1 = \mathbf{e}_6 \times \mathbf{e}_5, $$

or
 * $$ \mathbf{e}_5 \times \mathbf{e}_6 =\mathbf{e}_1, $$

also obtained directly from the diagram with the rule that any two unit vectors on a straight line are connected by multiplication to the third unit vector on that straight line with signs according to the arrows (sign of the permutation that orders the unit vectors).

It can be seen that both multiplication rules follow from the same Fano diagram by simply renaming the unit vectors, and changing the sense of the center unit vector. Considering all possible permutations of the basis there are 480 multiplication tables and so 480 cross products like this.

Using geometric algebra
The product can also be calculated using geometric algebra of a seven-dimensional vector space with a positive-definite quadratic form. The product starts with the exterior product, a bivector-valued product of two vectors:
 * $$\mathbf{B} = \mathbf{x} \wedge \mathbf{y} = \frac{1}{2}(\mathbf{xy} - \mathbf{yx}).$$

This is bilinear, alternating, has the desired magnitude, but is not vector-valued. The vector, and so the cross product, comes from the contraction of this bivector with a trivector. In three dimensions, up to a scale factor there is only one trivector, the pseudoscalar of the space, and a product of the above bivector and one of the two unit trivectors gives the vector result, the dual of the bivector.

A similar calculation is done is seven dimensions, except that since trivectors form a 35-dimensional space there are many trivectors that could be used, though not just any trivector will do. The trivector that gives the same product as the above coordinate transform is
 * $$\mathbf{v} = \mathbf{e}_{124} + \mathbf{e}_{235} + \mathbf{e}_{346} + \mathbf{e}_{457} + \mathbf{e}_{561} + \mathbf{e}_{672} + \mathbf{e}_{713}.$$

This is combined with the exterior product to give the cross product
 * $$ \mathbf{x} \times \mathbf{y} = -(\mathbf{x} \wedge \mathbf{y}) ~\lrcorner~ \mathbf{v} $$

where $$ \lrcorner $$ is the left contraction operator from geometric algebra.

Relation to the octonions
Just as the 3-dimensional cross product can be expressed in terms of the quaternions, the 7-dimensional cross product can be expressed in terms of the octonions. After identifying R7 with the imaginary octonions (the orthogonal complement of the real part of O), the cross product is given in terms of octonion multiplication by
 * $$\mathbf x \times \mathbf y = \mathrm{Im}(\mathbf{xy}) = \frac{1}{2}(\mathbf{xy}-\mathbf{yx}).$$

Conversely, suppose V is a 7-dimensional Euclidean space with a given cross product. Then one can define a bilinear multiplication on R ⊕ V as follows:
 * $$(a,\mathbf{x})(b,\mathbf{y}) = (ab - \mathbf{x}\cdot\mathbf{y}, a\mathbf y + b\mathbf x + \mathbf{x}\times\mathbf{y}).$$

The space R ⊕ V with this multiplication is then isomorphic to the octonions.

The cross product only exists in three and seven dimensions as one can always define a multiplication on a space of one higher dimension as above, and this space can be shown to be a normed division algebra. By Hurwitz's theorem such algebras only exist in one, two, four, and eight dimensions, so the cross product must be in zero, one, three or seven dimensions. The products in zero and one dimensions are trivial, so non-trivial cross products only exist in three and seven dimensions.

The failure of the 7-dimension cross product to satisfy the Jacobi identity is related to the nonassociativity of the octonions. In fact,
 * $$\mathbf{x}\times(\mathbf{y}\times\mathbf{z}) + \mathbf{y}\times(\mathbf{z}\times\mathbf{x}) + \mathbf{z}\times(\mathbf{x}\times\mathbf{y}) = -\frac{3}{2}[\mathbf x, \mathbf y, \mathbf z]$$

where [x, y, z] is the associator.

Rotations
In three dimensions the cross product is invariant under the action of the rotation group, SO(3), so the cross product of x and y after they are rotated is the image of x × y under the rotation. But this invariance is not true in seven dimensions; that is, the cross product is not invariant under the group of rotations in seven dimensions, SO(7). Instead it is invariant under the exceptional Lie group G2, a subgroup of SO(7).

Generalizations
Nonzero binary cross products exist only in three and seven dimensions. Further products are possible when lifting the restriction that it must be a binary product. We require the product to be multi-linear, alternating, vector-valued, and orthogonal to each of the input vectors ai. The orthogonality requirement implies that in n dimensions, no more than n − 1 vectors can be used. The magnitude of the product should equal the volume of the parallelotope with the vectors as edges, which can be calculated using the Gram determinant. The conditions are = \det (\mathbf{a}_i \cdot \mathbf{a}_j) = \begin{vmatrix} \mathbf{a}_1 \cdot \mathbf{a}_1 & \mathbf{a}_1 \cdot \mathbf{a}_2 & \cdots & \mathbf{a}_1 \cdot \mathbf{a}_k\\ \mathbf{a}_2 \cdot \mathbf{a}_1 & \mathbf{a}_2 \cdot \mathbf{a}_2 & \cdots & \mathbf{a}_2 \cdot \mathbf{a}_k\\ \vdots                         & \vdots                          & \ddots & \vdots                         \\ \mathbf{a}_k \cdot \mathbf{a}_1 & \mathbf{a}_k \cdot \mathbf{a}_2 & \cdots & \mathbf{a}_k \cdot \mathbf{a}_k\\ \end{vmatrix} $$
 * orthogonality: $$\left( \mathbf{a}_1 \times \ \cdots \ \times \mathbf{a}_k\right) \cdot \mathbf{a}_i = 0$$ for i = 1, ..., k.
 * the Gram determinant: $$|\mathbf{a}_1 \times \cdots \times \mathbf{a}_k |^2

The Gram determinant is the squared volume of the parallelotope with a1, ..., ak as edges.

With these conditions a non-trivial cross product only exists: One version of the product of three vectors in eight dimensions is given by $$\mathbf{a} \times \mathbf{b} \times \mathbf{c} = (\mathbf{a} \wedge \mathbf{b} \wedge \mathbf{c}) ~\lrcorner~ (\mathbf{w} - \mathbf{ve}_8)$$ where v is the same trivector as used in seven dimensions, $$\lrcorner$$ is again the left contraction, and w = −ve12...7 is a 4-vector.
 * as a binary product in three and seven dimensions
 * as a product of n − 1 vectors in n ≥ 3 dimensions, being the Hodge dual of the exterior product of the vectors
 * as a product of three vectors in eight dimensions

There are also trivial products. As noted already, a binary product only exists in 7, 3, 1 and 0 dimensions, the last two being identically zero. A further trivial 'product' arises in even dimensions, which takes a single vector and produces a vector of the same magnitude orthogonal to it through the left contraction with a suitable bivector. In two dimensions this is a rotation through a right angle.

As a further generalization, we can loosen the requirements of multilinearity and magnitude, and consider a general continuous function Vd → V (where V is Rn endowed with the Euclidean inner product and d ≥ 2), which is only required to satisfy the following two properties:
 * 1) The cross product is always orthogonal to all the input vectors.
 * 2) If the input vectors are linearly independent, then the cross product is nonzero.

Under these requirements, the cross product only exists (I) for n = 3, d = 2, (II) for n = 7, d = 2, (III) for n = 8, d = 3, and (IV) for any d = n − 1.

In another direction, vector product algebras have been defined over an arbitrary field, and for any field not of characteristic 2 they must have dimension 0, 1, 3, or 7. In fact this result has been generalized still further, e.g. by working over any commutative ring in which 2 is cancellable, meaning that 2x = 2y implies x = y.