# Cross product

{{#invoke:Hatnote|hatnote}} Template:Jargon In mathematics, the cross product or vector product is a binary operation on two vectors in three-dimensional space and is denoted by the symbol ×. The cross product a × b of two linearly independent vectors a and b is a vector that is perpendicular to both and therefore normal to the plane containing them. It has many applications in mathematics, physics, and engineering.

If two vectors have the same direction (or have the exact opposite direction from one another, ie. are not linearly independent) or if either one has zero length, then their cross product is zero. More generally, the magnitude of the product equals the area of a parallelogram with the vectors for sides; in particular, for perpendicular vectors, this is a rectangle and the magnitude of the product is the product of their lengths. The cross product is anticommutative (i.e. a × b = −b × a) and is distributive over addition (i.e. a × (b + c) = a × b + a × c). The space and product form an algebra over a field, which is neither commutative nor associative, but is a Lie algebra with the cross product being the Lie bracket.

Like the dot product, it depends on the metric of Euclidean space, but unlike the dot product, it also depends on a choice of orientation or "handedness". The product can be generalized in various ways; it can be made independent of orientation by changing the result to pseudovector, or in arbitrary dimensions the exterior product of vectors can be used with a bivector or two-form result. Also, using the orientation and metric structure just as for the traditional 3-dimensional cross product, one can in n dimensions take the product of n − 1 vectors to produce a vector perpendicular to all of them. But if the product is limited to non-trivial binary products with vector results, it exists only in three and seven dimensions. If one adds the further requirement that the product be uniquely defined, then only the 3-dimensional cross product qualifies. (See Generalizations, below, for other dimensions.)

## Definition

The cross product of two vectors a and b is defined only in three-dimensional space and is denoted by a × b. In physics, sometimes the notation ab is used, though this is avoided in mathematics to avoid confusion with the exterior product.

The cross product a × b is defined as a vector c that is perpendicular to both a and b, with a direction given by the right-hand rule and a magnitude equal to the area of the parallelogram that the vectors span.

The cross product is defined by the formula

$\mathbf {a} \times \mathbf {b} =\left\|\mathbf {a} \right\|\left\|\mathbf {b} \right\|\sin \theta \ \mathbf {n}$ where θ is the angle between a and b in the plane containing them (hence, it is between 0° and 180°), ‖a‖ and ‖b‖ are the magnitudes of vectors a and b, and n is a unit vector perpendicular to the plane containing a and b in the direction given by the right-hand rule (illustrated). If the vectors a and b are parallel (i.e., the angle θ between them is either 0° or 180°), by the above formula, the cross product of a and b is the zero vector 0. The cross product a × b (vertical, in purple) changes as the angle between the vectors a (blue) and b (red) changes. The cross product is always perpendicular to both vectors, and has magnitude zero when the vectors are parallel and maximum magnitude ‖a‖‖b‖ when they are perpendicular.

By convention, the direction of the vector n is given by the right-hand rule, where one simply points the forefinger of the right hand in the direction of a and the middle finger in the direction of b. Then, the vector n is coming out of the thumb (see the picture on the right). Using this rule implies that the cross-product is anti-commutative, i.e., b × a = −(a × b). By pointing the forefinger toward b first, and then pointing the middle finger toward a, the thumb will be forced in the opposite direction, reversing the sign of the product vector.

Using the cross product requires the handedness of the coordinate system to be taken into account (as explicit in the definition above). If a left-handed coordinate system is used, the direction of the vector n is given by the left-hand rule and points in the opposite direction.

This, however, creates a problem because transforming from one arbitrary reference system to another (e.g., a mirror image transformation from a right-handed to a left-handed coordinate system), should not change the direction of n. The problem is clarified by realizing that the cross product of two vectors is not a (true) vector, but rather a pseudovector. See cross product and handedness for more detail.

## Names According to Sarrus' rule, the determinant of a 3×3 matrix involves multiplications between matrix elements identified by crossed diagonals

In 1881, Josiah Willard Gibbs, and independently Oliver Heaviside, introduced both the dot product and the cross product using a period (a . b) and an "x" (a x b), respectively, to denote them.

In 1877, to emphasize the fact that the result of a dot product is a scalar while the result of a cross product is a vector, William Kingdon Clifford coined the alternative names scalar product and vector product for the two operations. These alternative names are still widely used in the literature.

Both the cross notation (a × b) and the name cross product were possibly inspired by the fact that each scalar component of a × b is computed by multiplying non-corresponding components of a and b. Conversely, a dot product a · b involves multiplications between corresponding components of a and b. As explained below, the cross product can be expressed in the form of a determinant of a special 3×3 matrix. According to Sarrus' rule, this involves multiplications between matrix elements identified by crossed diagonals.

## Computing the cross product

### Coordinate notation

The standard basis vectors i, j, and k satisfy the following equalities:

{\begin{aligned}\mathbf {i} &=\mathbf {j} \times \mathbf {k} \\\mathbf {j} &=\mathbf {k} \times \mathbf {i} \\\mathbf {k} &=\mathbf {i} \times \mathbf {j} \end{aligned}} which imply, by the anticommutativity of the cross product, that

{\begin{aligned}\mathbf {k\times j} &=-\mathbf {i} \\\mathbf {i\times k} &=-\mathbf {j} \\\mathbf {j\times i} &=-\mathbf {k} \end{aligned}} The definition of the cross product also implies that

$\mathbf {i} \times \mathbf {i} =\mathbf {j} \times \mathbf {j} =\mathbf {k} \times \mathbf {k} =\mathbf {0}$ (the zero vector).

These equalities, together with the distributivity and linearity of the cross product (but both do not follow easily from the definition given above), are sufficient to determine the cross product of any two vectors u and v. Each vector can be defined as the sum of three orthogonal components parallel to the standard basis vectors:

{\begin{aligned}\mathbf {u} &=u_{1}\mathbf {i} +u_{2}\mathbf {j} +u_{3}\mathbf {k} \\\mathbf {v} &=v_{1}\mathbf {i} +v_{2}\mathbf {j} +v_{3}\mathbf {k} \end{aligned}} Their cross product u × v can be expanded using distributivity:

{\begin{aligned}\mathbf {u} \times \mathbf {v} ={}&(u_{1}\mathbf {i} +u_{2}\mathbf {j} +u_{3}\mathbf {k} )\times (v_{1}\mathbf {i} +v_{2}\mathbf {j} +v_{3}\mathbf {k} )\\={}&u_{1}v_{1}(\mathbf {i} \times \mathbf {i} )+u_{1}v_{2}(\mathbf {i} \times \mathbf {j} )+u_{1}v_{3}(\mathbf {i} \times \mathbf {k} )+{}\\&u_{2}v_{1}(\mathbf {j} \times \mathbf {i} )+u_{2}v_{2}(\mathbf {j} \times \mathbf {j} )+u_{2}v_{3}(\mathbf {j} \times \mathbf {k} )+{}\\&u_{3}v_{1}(\mathbf {k} \times \mathbf {i} )+u_{3}v_{2}(\mathbf {k} \times \mathbf {j} )+u_{3}v_{3}(\mathbf {k} \times \mathbf {k} )\\\end{aligned}} This can be interpreted as the decomposition of u × v into the sum of nine simpler cross products involving vectors aligned with i, j, or k. Each one of these nine cross products operates on two vectors that are easy to handle as they are either parallel or orthogonal to each other. From this decomposition, by using the above-mentioned equalities and collecting similar terms, we obtain:

{\begin{aligned}\mathbf {u} \times \mathbf {v} ={}&u_{1}v_{1}\mathbf {0} +u_{1}v_{2}\mathbf {k} -u_{1}v_{3}\mathbf {j} -{}\\&u_{2}v_{1}\mathbf {k} -u_{2}v_{2}\mathbf {0} +u_{2}v_{3}\mathbf {i} +{}\\&u_{3}v_{1}\mathbf {j} -u_{3}v_{2}\mathbf {i} -u_{3}v_{3}\mathbf {0} \\={}&(u_{2}v_{3}-u_{3}v_{2})\mathbf {i} +(u_{3}v_{1}-u_{1}v_{3})\mathbf {j} +(u_{1}v_{2}-u_{2}v_{1})\mathbf {k} \\\end{aligned}} meaning that the three scalar components of the resulting vector s = s1i + s2j + s3k = u × v are

{\begin{aligned}s_{1}&=u_{2}v_{3}-u_{3}v_{2}\\s_{2}&=u_{3}v_{1}-u_{1}v_{3}\\s_{3}&=u_{1}v_{2}-u_{2}v_{1}\end{aligned}} Using column vectors, we can represent the same result as follows:

${\begin{pmatrix}s_{1}\\s_{2}\\s_{3}\end{pmatrix}}={\begin{pmatrix}u_{2}v_{3}-u_{3}v_{2}\\u_{3}v_{1}-u_{1}v_{3}\\u_{1}v_{2}-u_{2}v_{1}\end{pmatrix}}$ ### Matrix notation

The cross product can also be expressed as the formal[note 1] determinant:

$\mathbf {u\times v} ={\begin{vmatrix}\mathbf {i} &\mathbf {j} &\mathbf {k} \\u_{1}&u_{2}&u_{3}\\v_{1}&v_{2}&v_{3}\\\end{vmatrix}}$ This determinant can be computed using Sarrus' rule or cofactor expansion. Using Sarrus' rule, it expands to

$\mathbf {u\times v} =(u_{2}v_{3}\mathbf {i} +u_{3}v_{1}\mathbf {j} +u_{1}v_{2}\mathbf {k} )-(u_{3}v_{2}\mathbf {i} +u_{1}v_{3}\mathbf {j} +u_{2}v_{1}\mathbf {k} ).$ Using cofactor expansion along the first row instead, it expands to

$\mathbf {u\times v} ={\begin{vmatrix}u_{2}&u_{3}\\v_{2}&v_{3}\end{vmatrix}}\mathbf {i} -{\begin{vmatrix}u_{1}&u_{3}\\v_{1}&v_{3}\end{vmatrix}}\mathbf {j} +{\begin{vmatrix}u_{1}&u_{2}\\v_{1}&v_{2}\end{vmatrix}}\mathbf {k}$ which gives the components of the resulting vector directly.

## Properties

### Geometric meaning

The magnitude of the cross product can be interpreted as the positive area of the parallelogram having a and b as sides (see Figure 1):

$A=\left\|\mathbf {a} \times \mathbf {b} \right\|=\left\|\mathbf {a} \right\|\left\|\mathbf {b} \right\|\sin \theta .\,\!$ Indeed, one can also compute the volume V of a parallelepiped having a, b and c as sides by using a combination of a cross product and a dot product, called scalar triple product (see Figure 2):

$\mathbf {a} \cdot (\mathbf {b} \times \mathbf {c} )=\mathbf {b} \cdot (\mathbf {c} \times \mathbf {a} )=\mathbf {c} \cdot (\mathbf {a} \times \mathbf {b} ).$ Since the result of the scalar triple product may be negative, the volume of the parallelepiped is given by its absolute value. For instance,

$V=|\mathbf {a} \cdot (\mathbf {b} \times \mathbf {c} )|.$ Because the magnitude of the cross product goes by the sine of the angle between its arguments, the cross product can be thought of as a measure of perpendicularity in the same way that the dot product is a measure of parallelism. Given two unit vectors, their cross product has a magnitude of 1 if the two are perpendicular and a magnitude of zero if the two are parallel. The converse is true for the dot product of two unit vectors.

Unit vectors enable two convenient identities: the dot product of two unit vectors yields the cosine (which may be positive or negative) of the angle between the two unit vectors. The magnitude of the cross product of the two unit vectors yields the sine (which will always be positive).

### Algebraic properties Cross product distributivity over vector addition. The vectors b and c are resolved into parallel and perpendicular components to a: parallel components vanish in the cross product, perpendicular ones remain. The planes indicate the axial vectors normal to those planes, and are not bivectors.
• If the cross product of two vectors is the zero vector (i.e. a × b = 0), then either one or both of the inputs is the zero vector, (a = 0 and/or b = 0) or else they are parallel or antiparallel (ab) so that the sine of the angle between them is zero (θ = 0° or θ = 180° and sinθ = 0).
• The self cross product of a vector is the zero vector, i.e., a × a = 0.
$\mathbf {a} \times \mathbf {b} =-\mathbf {b} \times \mathbf {a} ,$ $\mathbf {a} \times (\mathbf {b} +\mathbf {c} )=(\mathbf {a} \times \mathbf {b} )+(\mathbf {a} \times \mathbf {c} ),$ • and compatible with scalar multiplication so that
$(r\mathbf {a} )\times \mathbf {b} =\mathbf {a} \times (r\mathbf {b} )=r(\mathbf {a} \times \mathbf {b} ).$ $\mathbf {a} \times (\mathbf {b} \times \mathbf {c} )+\mathbf {b} \times (\mathbf {c} \times \mathbf {a} )+\mathbf {c} \times (\mathbf {a} \times \mathbf {b} )=\mathbf {0} .$ Distributivity, linearity and Jacobi identity show that the R3 vector space together with vector addition and the cross product forms a Lie algebra, the Lie algebra of the real orthogonal group in 3 dimensions, SO(3).

• The cross product does not obey the cancellation law: that is, a × b = a × c with a0 does not imply b = c, but only that:
{\begin{aligned}\mathbf {0} &=(\mathbf {a} \times \mathbf {b} )-(\mathbf {a} \times \mathbf {c} )\\&=\mathbf {a} \times (\mathbf {b} -\mathbf {c} ).\\\end{aligned}} From the definition of the cross product, the angle between a and bc must be zero, and these vectors must be parallel. That is, they are related by a scale factor t, leading to:

$\mathbf {c} =\mathbf {b} +t\mathbf {a} ,$ for some scalar t.

• If a · b = a · c and a × b = a × c, for non-zero vector a, then b = c, as
$\mathbf {a} \times (\mathbf {b} -\mathbf {c} )=\mathbf {0}$ and
$\mathbf {a} \cdot (\mathbf {b} -\mathbf {c} )=0,$ so bc is both parallel and perpendicular to the non-zero vector a, something that is only possible if bc = 0 so they are identical.

• From the geometrical definition, the cross product is invariant under rotations about the axis defined by a × b. More generally the cross product obeys the following identity under matrix transformations:
$(M\mathbf {a} )\times (M\mathbf {b} )=(\det M)M^{-T}(\mathbf {a} \times \mathbf {b} )$ • The cross product of two vectors lies in the null space of the 2×3 matrix with the vectors as rows:
$\mathbf {a} \times \mathbf {b} \in NS\left({\begin{bmatrix}\mathbf {a} \\\mathbf {b} \end{bmatrix}}\right).$ • For the sum of two cross products, the following identity holds:
$\mathbf {a} \times \mathbf {b} +\mathbf {c} \times \mathbf {d} =(\mathbf {a} -\mathbf {c} )\times (\mathbf {b} -\mathbf {d} )+\mathbf {a} \times \mathbf {d} +\mathbf {c} \times \mathbf {b} .$ ### Differentiation

{{#invoke:main|main}}

The product rule applies to the cross product in a similar manner:

${\frac {d}{dx}}(\mathbf {a} \times \mathbf {b} )={\frac {d\mathbf {a} }{dx}}\times \mathbf {b} +\mathbf {a} \times {\frac {d\mathbf {b} }{dx}}.$ This identity can be easily proved using the matrix multiplication representation.

### Triple product expansion

{{#invoke:main|main}}

The cross product is used in both forms of the triple product. The scalar triple product of three vectors is defined as

$\mathbf {a} \cdot (\mathbf {b} \times \mathbf {c} ),$ It is the signed volume of the parallelepiped with edges a, b and c and as such the vectors can be used in any order that's an even permutation of the above ordering. The following therefore are equal:

$\mathbf {a} \cdot (\mathbf {b} \times \mathbf {c} )=\mathbf {b} \cdot (\mathbf {c} \times \mathbf {a} )=\mathbf {c} \cdot (\mathbf {a} \times \mathbf {b} ),$ The vector triple product is the cross product of a vector with the result of another cross product, and is related to the dot product by the following formula

$\mathbf {a} \times (\mathbf {b} \times \mathbf {c} )=\mathbf {b} (\mathbf {a} \cdot \mathbf {c} )-\mathbf {c} (\mathbf {a} \cdot \mathbf {b} ).$ The mnemonic "BAC minus CAB" is used to remember the order of the vectors in the right hand member. This formula is used in physics to simplify vector calculations. A special case, regarding gradients and useful in vector calculus, is

{\begin{aligned}\nabla \times (\nabla \times \mathbf {f} )&=\nabla (\nabla \cdot \mathbf {f} )-(\nabla \cdot \nabla )\mathbf {f} \\&=\nabla (\nabla \cdot \mathbf {f} )-\nabla ^{2}\mathbf {f} ,\\\end{aligned}} where ∇2 is the vector Laplacian operator.

Another identity relates the cross product to the scalar triple product:

$(\mathbf {a} \times \mathbf {b} )\times (\mathbf {a} \times \mathbf {c} )=(\mathbf {a} \cdot (\mathbf {b} \times \mathbf {c} ))\mathbf {a}$ ### Alternative formulation

The cross product and the dot product are related by:

$|\mathbf {a} \times \mathbf {b} |^{2}=|\mathbf {a} |^{2}|\mathbf {b} |^{2}-(\mathbf {a} \cdot \mathbf {b} )^{2}.$ The right-hand side is the Gram determinant of a and b, the square of the area of the parallelogram defined by the vectors. This condition determines the magnitude of the cross product. Namely, since the dot product is defined, in terms of the angle θ between the two vectors, as:

$\mathbf {a\cdot b} =|\mathbf {a} ||\mathbf {b} |\cos \theta ,$ the above given relationship can be rewritten as follows:

$|\mathbf {a\times b} |^{2}=|\mathbf {a} |^{2}|\mathbf {b} |^{2}\left(1-\cos ^{2}\theta \right).$ Invoking the Pythagorean trigonometric identity one obtains:

$|\mathbf {a} \times \mathbf {b} |=|\mathbf {a} ||\mathbf {b} ||\sin \theta |,$ which is the magnitude of the cross product expressed in terms of θ, equal to the area of the parallelogram defined by a and b (see definition above).

The combination of this requirement and the property that the cross product be orthogonal to its constituents a and b provides an alternative definition of the cross product.

### Lagrange's identity

The relation:

$|\mathbf {a} \times \mathbf {b} |^{2}=\det {\begin{bmatrix}\mathbf {a} \cdot \mathbf {a} &\mathbf {a} \cdot \mathbf {b} \\\mathbf {a} \cdot \mathbf {b} &\mathbf {b} \cdot \mathbf {b} \\\end{bmatrix}}=|\mathbf {a} |^{2}|\mathbf {b} |^{2}-(\mathbf {a} \cdot \mathbf {b} )^{2}.$ can be compared with another relation involving the right-hand side, namely Lagrange's identity expressed as:

$\sum _{1\leq i where a and b may be n-dimensional vectors. This also shows that the Riemannian volume form for surfaces is exactly the surface element from vector calculus. In the case where n = 3, combining these two equations results in the expression for the magnitude of the cross product in terms of its components:

$|\mathbf {a} \times \mathbf {b} |^{2}=\sum _{1\leq i The same result is found directly using the components of the cross-product found from:

$\mathbf {a} \times \mathbf {b} =\det {\begin{bmatrix}\mathbf {i} &\mathbf {j} &\mathbf {k} \\a_{1}&a_{2}&a_{3}\\b_{1}&b_{2}&b_{3}\\\end{bmatrix}}.$ In R3 Lagrange's equation is a special case of the multiplicativity |vw| = |v||w| of the norm in the quaternion algebra.

It is a special case of another formula, also sometimes called Lagrange's identity, which is the three dimensional case of the Binet-Cauchy identity:

$(\mathbf {a} \times \mathbf {b} )\cdot (\mathbf {c} \times \mathbf {d} )=(\mathbf {a} \cdot \mathbf {c} )(\mathbf {b} \cdot \mathbf {d} )-(\mathbf {a} \cdot \mathbf {d} )(\mathbf {b} \cdot \mathbf {c} ).$ If a = c and b = d this simplifies to the formula above.

## Alternative ways to compute the cross product

### Conversion to matrix multiplication

The vector cross product also can be expressed as the product of a skew-symmetric matrix and a vector:

$\mathbf {a} \times \mathbf {b} =[\mathbf {a} ]_{\times }\mathbf {b} ={\begin{bmatrix}\,0&\!-a_{3}&\,\,a_{2}\\\,\,a_{3}&0&\!-a_{1}\\-a_{2}&\,\,a_{1}&\,0\end{bmatrix}}{\begin{bmatrix}b_{1}\\b_{2}\\b_{3}\end{bmatrix}}$ $\mathbf {a} \times \mathbf {b} =[\mathbf {b} ]_{\times }^{\mathrm {T} }\mathbf {a} ={\begin{bmatrix}\,0&\,\,b_{3}&\!-b_{2}\\-b_{3}&0&\,\,b_{1}\\\,\,b_{2}&\!-b_{1}&\,0\end{bmatrix}}{\begin{bmatrix}a_{1}\\a_{2}\\a_{3}\end{bmatrix}}$ where superscript T refers to the transpose operation, and [a]× is defined by:

$[\mathbf {a} ]_{\times }{\stackrel {\rm {def}}{=}}{\begin{bmatrix}\,\,0&\!-a_{3}&\,\,\,a_{2}\\\,\,\,a_{3}&0&\!-a_{1}\\\!-a_{2}&\,\,a_{1}&\,\,0\end{bmatrix}}.$ It should be noted that [a]× is a singular matrix where a is it's (right and left) null-vector.

Also, if a is itself a cross product:

$\mathbf {a} =\mathbf {c} \times \mathbf {d}$ then

$[\mathbf {a} ]_{\times }=\mathbf {d} \mathbf {c} ^{\mathrm {T} }-\mathbf {c} \mathbf {d} ^{\mathrm {T} }.$ This result can be generalized to higher dimensions using geometric algebra. In particular in any dimension bivectors can be identified with skew-symmetric matrices, so the product between a skew-symmetric matrix and vector is equivalent to the grade-1 part of the product of a bivector and vector.{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }} In three dimensions bivectors are dual to vectors so the product is equivalent to the cross product, with the bivector instead of its vector dual. In higher dimensions the product can still be calculated but bivectors have more degrees of freedom and are not equivalent to vectors.{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }}

This notation is also often much easier to work with, for example, in epipolar geometry.

From the general properties of the cross product follows immediately that

$[\mathbf {a} ]_{\times }\,\mathbf {a} =\mathbf {0}$ and   $\mathbf {a} ^{\mathrm {T} }\,[\mathbf {a} ]_{\times }=\mathbf {0}$ and from fact that [a]× is skew-symmetric it follows that

$\mathbf {b} ^{\mathrm {T} }\,[\mathbf {a} ]_{\times }\,\mathbf {b} =0.$ The above-mentioned triple product expansion (bac-cab rule) can be easily proven using this notation.{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }} The above definition of [a]× means that there is a one-to-one mapping between the set of 3×3 skew-symmetric matrices, also known as the Lie algebra of SO(3), and the operation of taking the cross product with some vector a.{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }}

### Index notation for tensors

The cross product can alternatively be defined in terms of the Levi-Civita symbol εijk and a dot product ηmi (= δmi for an orthonormal basis), which are useful in converting vector notation for tensor applications:

$\mathbf {a\times b} =\mathbf {c} \Leftrightarrow \ c^{m}=\sum _{i=1}^{3}\sum _{j=1}^{3}\sum _{k=1}^{3}\eta ^{mi}\varepsilon _{ijk}a^{j}b^{k}$ where the indices $i,j,k$ correspond to vector components. This characterization of the cross product is often expressed more compactly using the Einstein summation convention as

$\mathbf {a\times b} =\mathbf {c} \Leftrightarrow \ c^{m}=\eta ^{mi}\varepsilon _{ijk}a^{j}b^{k}$ in which repeated indices are summed over the values 1 to 3. Note that this representation is another form of the skew-symmetric representation of the cross product:

$\eta ^{mi}\varepsilon _{ijk}a^{j}=[\mathbf {a} ]_{\times }.$ In classical mechanics: representing the cross-product by using the Levi-Civita symbol can cause mechanical symmetries to be obvious when physical systems are isotropic. (An example: consider a particle in a Hooke's Law potential in three-space, free to oscillate in three dimensions; none of these dimensions are "special" in any sense, so symmetries lie in the cross-product-represented angular momentum, which are made clear by the abovementioned Levi-Civita representation).{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }} ### Mnemonic {{#invoke:Hatnote|hatnote}}Template:Main other The word "xyzzy" can be used to remember the definition of the cross product. If $\mathbf {a} =\mathbf {b} \times \mathbf {c}$ where: $\mathbf {a} ={\begin{bmatrix}a_{x}\\a_{y}\\a_{z}\end{bmatrix}},\mathbf {b} ={\begin{bmatrix}b_{x}\\b_{y}\\b_{z}\end{bmatrix}},\mathbf {c} ={\begin{bmatrix}c_{x}\\c_{y}\\c_{z}\end{bmatrix}}$ then: $a_{x}=b_{y}c_{z}-b_{z}c_{y}\,$ $a_{y}=b_{z}c_{x}-b_{x}c_{z}\,$ $a_{z}=b_{x}c_{y}-b_{y}c_{x}.\,$ The second and third equations can be obtained from the first by simply vertically rotating the subscripts, xyzx. The problem, of course, is how to remember the first equation, and two options are available for this purpose: either to remember the relevant two diagonals of Sarrus's scheme (those containing i), or to remember the xyzzy sequence. Since the first diagonal in Sarrus's scheme is just the main diagonal of the above-mentioned 3×3 matrix, the first three letters of the word xyzzy can be very easily remembered. ### Cross visualization Similarly to the mnemonic device above, a "cross" or X can be visualized between the two vectors in the equation. This may help you to remember the correct cross product formula. If $\mathbf {a} =\mathbf {b} \times \mathbf {c}$ then: $\mathbf {a} ={\begin{bmatrix}b_{x}\\b_{y}\\b_{z}\end{bmatrix}}\times {\begin{bmatrix}c_{x}\\c_{y}\\c_{z}\end{bmatrix}}.$ $a_{x}={\begin{bmatrix}b_{y}\\b_{z}\end{bmatrix}}\times {\begin{bmatrix}c_{y}\\c_{z}\end{bmatrix}}.$ It should be noted that when doing this for $a_{y}$ the next two elements down should "wrap around" the matrix so that after the z component comes the x component. For clarity, when performing this operation for $a_{y}$ , the next two components should be z and x (in that order). While for $a_{z}$ the next two components should be taken as x and y. $a_{y}={\begin{bmatrix}b_{z}\\b_{x}\end{bmatrix}}\times {\begin{bmatrix}c_{z}\\c_{x}\end{bmatrix}},a_{z}={\begin{bmatrix}b_{x}\\b_{y}\end{bmatrix}}\times {\begin{bmatrix}c_{x}\\c_{y}\end{bmatrix}}$ For $a_{x}$ then, if we visualize the cross operator as pointing from an element on the left to an element on the right, we can take the first element on the left and simply multiply by the element that the cross points to in the right hand matrix. We then subtract the next element down on the left, multiplied by the element that the cross points to here as well. This results in our $a_{x}$ formula – $a_{x}=b_{y}c_{z}-b_{z}c_{y}.\,$ ## Applications ### Computational geometry The cross product appears in the calculation of the distance of two skew lines (lines not in the same plane) from each other in three-dimensional space. The cross product can be used to calculate the normal for a triangle or polygon, an operation frequently performed in computer graphics. For example, the winding of a polygon (clockwise or anticlockwise) about a point within the polygon can be calculated by triangulating the polygon (like spoking a wheel) and summing the angles (between the spokes) using the cross product to keep track of the sign of each angle. The cross product is used in calculating the volume of a polyhedron such as a tetrahedron or parallelepiped. ### Mechanics Moment of a force $\mathbf {F} _{\mathrm {B} }$ applied at point B around point A is given as: $\mathbf {M} _{\mathrm {A} }=\mathbf {r} _{\mathrm {AB} }\times \mathbf {F} _{\mathrm {B} }.\,$ ### Other The cross product occurs in the formula for the vector operator curl. It is also used to describe the Lorentz force experienced by a moving electrical charge in a magnetic field. The definitions of torque and angular momentum also involve the cross product. The trick of rewriting a cross product in terms of a matrix multiplication appears frequently in epipolar and multi-view geometry, in particular when deriving matching constraints. ## Cross product as an exterior product The cross product can be viewed in terms of the exterior product. This view allows for a natural geometric interpretation of the cross product. In exterior algebra the exterior product (or wedge product) of two vectors is a bivector. A bivector is an oriented plane element, in much the same way that a vector is an oriented line element. Given two vectors a and b, one can view the bivector ab as the oriented parallelogram spanned by a and b. The cross product is then obtained by taking the Hodge dual of the bivector ab, mapping 2-vectors to vectors: $a\times b=*(a\wedge b)\,.$ This can be thought of as the oriented multi-dimensional element "perpendicular" to the bivector. Only in three dimensions is the result an oriented line element – a vector – whereas, for example, in 4 dimensions the Hodge dual of a bivector is two-dimensional – another oriented plane element. So, only in three dimensions is the cross product of a and b the vector dual to the bivector ab: it is perpendicular to the bivector, with orientation dependent on the coordinate system's handedness, and has the same magnitude relative to the unit normal vector as ab has relative to the unit bivector; precisely the properties described above. ## Cross product and handedness When measurable quantities involve cross products, the handedness of the coordinate systems used cannot be arbitrary. However, when physics laws are written as equations, it should be possible to make an arbitrary choice of the coordinate system (including handedness). To avoid problems, one should be careful to never write down an equation where the two sides do not behave equally under all transformations that need to be considered. For example, if one side of the equation is a cross product of two vectors, one must take into account that when the handedness of the coordinate system is not fixed a priori, the result is not a (true) vector but a pseudovector. Therefore, for consistency, the other side must also be a pseudovector.{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }}

More generally, the result of a cross product may be either a vector or a pseudovector, depending on the type of its operands (vectors or pseudovectors). Namely, vectors and pseudovectors are interrelated in the following ways under application of the cross product:

• vector × vector = pseudovector
• pseudovector × pseudovector = pseudovector
• vector × pseudovector = vector
• pseudovector × vector = vector.

So by the above relationships, the unit basis vectors i, j and k of an orthonormal, right-handed (Cartesian) coordinate frame must all be pseudovectors (if a basis of mixed vector types is disallowed, as it normally is) since i × j = k, j × k = i and k × i = j.

Because the cross product may also be a (true) vector, it may not change direction with a mirror image transformation. This happens, according to the above relationships, if one of the operands is a (true) vector and the other one is a pseudovector (e.g., the cross product of two vectors). For instance, a vector triple product involving three (true) vectors is a (true) vector.

A handedness-free approach is possible using exterior algebra.

## Generalizations

There are several ways to generalize the cross product to the higher dimensions.

### Lie algebra

{{#invoke:main|main}} The cross product can be seen as one of the simplest Lie products, and is thus generalized by Lie algebras, which are axiomatized as binary products satisfying the axioms of multilinearity, skew-symmetry, and the Jacobi identity. Many Lie algebras exist, and their study is a major field of mathematics, called Lie theory.

### Quaternions

Template:Rellink The cross product can also be described in terms of quaternions, and this is why the letters i, j, k are a convention for the standard basis on R3. The unit vectors i, j, k correspond to "binary" (180 deg) rotations about their respective axes (Altmann, S. L., 1986, Ch. 12), said rotations being represented by "pure" quaternions (zero scalar part) with unit norms.

For instance, the above given cross product relations among i, j, and k agree with the multiplicative relations among the quaternions i, j, and k. In general, if a vector [a1, a2, a3] is represented as the quaternion a1i + a2j + a3k, the cross product of two vectors can be obtained by taking their product as quaternions and deleting the real part of the result. The real part will be the negative of the dot product of the two vectors.

Alternatively, using the above identification of the 'purely imaginary' quaternions with R3, the cross product may be thought of as half of the commutator of two quaternions.

### Octonions

{{#invoke:see also|seealso}} A cross product for 7-dimensional vectors can be obtained in the same way by using the octonions instead of the quaternions. The nonexistence of nontrivial vector-valued cross products of two vectors in other dimensions is related to the result from Hurwitz's theorem that the only normed division algebras are the ones with dimension 1, 2, 4, and 8.

### Wedge product

{{#invoke:main|main}} In general dimension, there is no direct analogue of the binary cross product that yields specifically a vector. There is however the wedge product, which has similar properties, except that the wedge product of two vectors is now a 2-vector instead of an ordinary vector. As mentioned above, the cross product can be interpreted as the wedge product in three dimensions by using the Hodge dual to map 2-vectors to vectors. The Hodge dual of the wedge product yields an (n − 2)-vector, which is a natural generalization of the cross product in any number of dimensions.

The wedge product and dot product can be combined (through summation) to form the geometric product.

### Multilinear algebra

In the context of multilinear algebra, the cross product can be seen as the (1,2)-tensor (a mixed tensor, specifically a bilinear map) obtained from the 3-dimensional volume form,[note 2] a (0,3)-tensor, by raising an index.

In detail, the 3-dimensional volume form defines a product $V\times V\times V\to \mathbf {R} ,$ by taking the determinant of the matrix given by these 3 vectors. By duality, this is equivalent to a function $V\times V\to V^{*},$ (fixing any two inputs gives a function $V\to \mathbf {R}$ by evaluating on the third input) and in the presence of an inner product (such as the dot product; more generally, a non-degenerate bilinear form), we have an isomorphism $V\to V^{*},$ and thus this yields a map $V\times V\to V,$ which is the cross product: a (0,3)-tensor (3 vector inputs, scalar output) has been transformed into a (1,2)-tensor (2 vector inputs, 1 vector output) by "raising an index".

Translating the above algebra into geometry, the function "volume of the parallelepiped defined by $(a,b,-)$ " (where the first two vectors are fixed and the last is an input), which defines a function $V\to \mathbf {R}$ , can be represented uniquely as the dot product with a vector: this vector is the cross product $a\times b.$ From this perspective, the cross product is defined by the scalar triple product, $\mathrm {Vol} (a,b,c)=(a\times b)\cdot c.$ In the same way, in higher dimensions one may define generalized cross products by raising indices of the n-dimensional volume form, which is a $(0,n)$ -tensor. The most direct generalizations of the cross product are to define either:

These products are all multilinear and skew-symmetric, and can be defined in terms of the determinant and parity.

This is the unique multilinear, alternating product which evaluates to $e_{1}\times \cdots \times e_{n-1}=e_{n}$ , $e_{2}\times \cdots \times e_{n}=e_{1},$ and so forth for cyclic permutations of indices.

In coordinates, one can give a formula for this $(n-1)$ -ary analogue of the cross product in Rn by:

$\bigwedge (\mathbf {v} _{1},\dots ,\mathbf {v} _{n-1})={\begin{vmatrix}v_{1}{}^{1}&\cdots &v_{1}{}^{n}\\\vdots &\ddots &\vdots \\v_{n-1}{}^{1}&\cdots &v_{n-1}{}^{n}\\\mathbf {e} _{1}&\cdots &\mathbf {e} _{n}\end{vmatrix}}.$ This formula is identical in structure to the determinant formula for the normal cross product in R3 except that the row of basis vectors is the last row in the determinant rather than the first. The reason for this is to ensure that the ordered vectors (v1, ...,vn−1, Λ(v1, ...,vn−1)) have a positive orientation with respect to (e1, ..., en). If n is odd, this modification leaves the value unchanged, so this convention agrees with the normal definition of the binary product. In the case that n is even, however, the distinction must be kept. This $(n-1)$ -ary form enjoys many of the same properties as the vector cross product: it is alternating and linear in its arguments, it is perpendicular to each argument, and its magnitude gives the hypervolume of the region bounded by the arguments. And just like the vector cross product, it can be defined in a coordinate independent way as the Hodge dual of the wedge product of the arguments.

## History

In 1773, the Italian mathematician Joseph Louis Lagrange, (born Giuseppe Luigi Lagrancia), introduced the component form of both the dot and cross products in order to study the tetrahedron in three dimensions. In 1843 the Irish mathematical physicist Sir William Rowan Hamilton introduced the quaternion product, and with it the terms "vector" and "scalar". Given two quaternions [0, u] and [0, v], where u and v are vectors in R3, their quaternion product can be summarized as [−u·v, u×v]. James Clerk Maxwell used Hamilton's quaternion tools to develop his famous electromagnetism equations, and for this and other reasons quaternions for a time were an essential part of physics education.

In 1878 William Kingdon Clifford published his Elements of Dynamic which was an advanced text for its time. He defined the product of two vectors to have magnitude equal to the area of the parallelogram of which they are two sides, and direction perpendicular to their plane.

Oliver Heaviside in England and Josiah Willard Gibbs, a professor at Yale University in Connecticut, also felt that quaternion methods were too cumbersome, often requiring the scalar or vector part of a result to be extracted. Thus, about forty years after the quaternion product, the dot product and cross product were introduced—to heated opposition. Pivotal to (eventual) acceptance was the efficiency of the new approach, allowing Heaviside to reduce the equations of electromagnetism from Maxwell's original 20 to the four commonly seen today.

Largely independent of this development, and largely unappreciated at the time, Hermann Grassmann created a geometric algebra not tied to dimension two or three, with the exterior product playing a central role. In 1853 Augustin-Louis Cauchy, a contemporary of Grassmann, published a paper on algebraic keys which were used to solve equations and had the same multiplication properties as the cross product. William Kingdon Clifford combined the algebras of Hamilton and Grassmann to produce Clifford algebra, where in the case of three-dimensional vectors the bivector produced from two vectors dualizes to a vector, thus reproducing the cross product.

The cross notation and the name "cross product" began with Gibbs. Originally they appeared in privately published notes for his students in 1881 as Elements of Vector Analysis. The utility for mechanics was noted by Aleksandr Kotelnikov. Gibbs's notation and the name "cross product" later reached a wide audience through Vector Analysis, a textbook by Edwin Bidwell Wilson, a former student. Wilson rearranged material from Gibbs's lectures, together with material from publications by Heaviside, Föpps, and Hamilton. He divided vector analysis into three parts:

First, that which concerns addition and the scalar and vector products of vectors. Second, that which concerns the differential and integral calculus in its relations to scalar and vector functions. Third, that which contains the theory of the linear vector function.

Two main kinds of vector multiplications were defined, and they were called as follows:

• The direct, scalar, or dot product of two vectors
• The skew, vector, or cross product of two vectors

Several kinds of triple products and products of more than three vectors were also examined. The above-mentioned triple product expansion was also included.