Jump to content

Cross product

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Iorsh (talk | contribs) at 08:15, 15 July 2010 (Algebraic properties: Differentiation). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In mathematics, the cross product, vector product or Gibbs vector product is a binary operation on two vectors in three-dimensional space. It has a vector result, a vector which is always perpendicular to both of the vectors being multiplied and the plane containing them. It has many applications in mathematics, engineering and physics.

If either of the vectors being multiplied is zero or the vectors are parallel 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, distributive over addition and satisfies the Jacobi identity. 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 the 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. But if the product is limited to non-trivial products with vector results it only exists in three and seven dimensions.

The cross-product in respect to a right-handed coordinate system

Definition

Finding the direction of the cross product by the right-hand rule

The cross product of two vectors a and b is denoted by a × b. In physics, sometimes the notation ab is used,[1] 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[2][3]

where θ is the measure of the smaller angle between a and b (0° ≤ θ ≤ 180°), a and b are the magnitudes of vectors a and b, and is a unit vector perpendicular to the plane containing a and b in the direction given by the right-hand rule as 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 direction of the vector 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 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 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 . 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.

Computing the cross product

Coordinate notation

The unit vectors i, j, and k from the given orthogonal coordinate system satisfy the following equalities:

i × j = k           j × k = i           k × i = j

Together with the skew-symmetry and bilinearity of the cross product, these three identities are sufficient to determine the cross product of any two vectors. In particular, the following identities are also seen to hold

j × i = −k           k × j = −i           i × k = −j
i × i = j × j = k × k = 0.

With these rules, the coordinates of the cross product of two vectors can be computed easily, without the need to determine any angles: Let

a = a1i + a2j + a3k = (a1, a2, a3)

and

b = b1i + b2j + b3k = (b1, b2, b3).

The cross product can be calculated by distributive cross-multiplication:

a × b = (a1i + a2j + a3k) × (b1i + b2j + b3k)
a × b = a1i × (b1i + b2j + b3k) + a2j × (b1i + b2j + b3k) + a3k × (b1i + b2j + b3k)
a × b = (a1i × b1i) + (a1i × b2j) + (a1i × b3k) + (a2j × b1i) + (a2j × b2j) + (a2j × b3k) + (a3k × b1i) + (a3k × b2j) + (a3k × b3k).

Since scalar multiplication is commutative with cross multiplication, the right hand side can be regrouped as

a × b = a1b1(i × i) + a1b2(i × j) + a1b3(i × k) + a2b1(j × i) + a2b2(j × j) + a2b3(j × k) + a3b1(k × i) + a3b2(k × j) + a3b3(k × k).

This equation is the sum of nine simple cross products. After all the multiplication is carried out using the basic cross product relationships between i, j, and k defined above,

a × b = a1b1(0) + a1b2(k) + a1b3(−j) + a2b1(−k) + a2b2(0) + a2b3(i) + a3b1(j) + a3b2(−i) + a3b3(0).

This equation can be factored to form

a × b = (a2b3a3b2) i + (a3b1a1b3) j + (a1b2a2b1) k = (a2b3a3b2, a3b1a1b3, a1b2a2b1).

Matrix notation

The definition of the cross product can also be represented by the determinant of a formal matrix:

This determinant can be computed using Sarrus' rule or Cofactor expansion.

Using Sarrus' Rule, it expands to

Using Cofactor expansion along the first row instead, it expands to[4]

which gives the components of the resulting vector directly.

Properties

Geometric meaning

Figure 1: The area of a parallelogram as a cross product
Figure 2: The volume of a parallelepiped using dot and cross-products; dashed lines show the projections of c onto a × b and of a onto b × c, a first step in finding dot-products.

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):

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):

Figure 2 demonstrates that this volume can be found in two ways, showing geometrically that the identity holds that a "dot" and a "cross" can be interchanged without changing the result. That is:

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 "perpendicularness" in the same way that the dot product is a measure of "parallelness". 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.

Algebraic properties

The cross product is anticommutative,

a × b = −b × a,

distributive over addition,

a × (b + c) = (a × b) + (a × c),

and compatible with scalar multiplication so that

(r a) × b = a × (r b) = r (a × b).

It is not associative, but satisfies the Jacobi identity:

a × (b × c) + b × (c × a) + c × (a × b) = 0.

It does not obey the cancellation law:

If a × b = a × c and a0 then:
(a × b) − (a × c) = 0 and, by the distributive law above:
a × (bc) = 0
Now, if a is parallel to (bc), then even if a0 it is possible that (bc) ≠ 0 and therefore that bc.

However, if both a · b = a · c and a × b = a × c, then it can be concluded that b = c. Indeed,

a · (bc) = 0, and
a × (bc) = 0

so that bc is both parallel and perpendicular to the non-zero vector a. This is only possible if bc = 0.

The distributivity, linearity and Jacobi identity show that R3 together with vector addition and cross product forms a Lie algebra. In fact, the Lie algebra is that of the real orthogonal group in 3 dimensions, SO(3).

Further, two non-zero vectors a and b are parallel if and only if a × b = 0.

It follows from the geometrical definition above that the cross product is invariant under rotations about the axis defined by a×b.

There is also this property relating cross products and the triple product:

(a × b) × (a × c) = (a · (b × c)) a.

The cross product obeys this identity under matrix transformations:

where is a 3 by 3 matrix and is the transpose of the inverse

The cross product of two vectors in 3-D always lies in the null space of the matrix with the vectors as rows. In other words

Differentiation

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

This identity can be easily proved using the matrix multiplication representation.

Triple product expansion

The triple product expansion, also known as Lagrange's formula, is a formula relating the cross product of three vectors (called the vector triple product) with the dot product:

a × (b × c) = b(a · c) − c(a · 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 given below.

This is a special case of the more general Laplace-de Rham operator .

Alternative formulation

The cross product and the dot product are related by:

The right-hand side is the Gram determinant of a and b, the square of the volume of the parallelotope (in this case a parallogram) formed by the vectors. This condition determines the magnitude of the cross product.

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.[5]

This magnitude can be expressed in terms of angle using the customary definition of angle in terms of the dot product, namely:

resulting in:

Invoking the Pythagorean trigonometric identity one obtains:

which is the starting point for the magnitude used in the definition above.

Lagrange's identity

The relation:

can be compared with another relation involving the right-hand side, namely Lagrange's identity expressed as:[6]

where a and b may be n-dimensional vectors. In the case n=3, combining these two equations results in the expression for the magnitude of the cross product in terms of its components:[7]

The same result is found directly using the components of the cross-product found from:

In Lagrange's equation is a special case of the multiplicativity 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:[8][9]

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:[8]

where superscript T refers to the Transpose matrix, and [a]X is defined by:

Also, if is itself a cross product:

then[citation needed]

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.[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.[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

  and  

and from fact that is skew-symmetric it follows that

The above-mentioned triple product expansion (bac-cab rule) can be easily proven using this notation.[citation needed]

The above definition of 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 .[citation needed]

Index notation

The cross product can alternatively be defined in terms of the Levi-Civita symbol, εijk:

where the indices correspond, as in the previous section, to orthogonal vector components. This characterization of the cross product is often expressed more compactly using the Einstein summation convention as

in which repeated indices are summed from 1 to 3. Note that this representation is another form of the skew-symmetric representation of the cross product:

In classical mechanics: representing the cross-product with the Levi-Civita symbol can cause mechanical-symmetries to be obvious when physical-systems are isotropic in space. (Quick 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).[citation needed]

Mnemonic

The word xyzzy can be used to remember the definition of the cross product.

If

where:

then:

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 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. While this method does not have any real mathematical basis, it may help you to remember the correct Cross Product formula.

If

then:

If we want to obtain the formula for we simply drop the and from the formula, and take the next two components down -

It should be noted that when doing this for 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 , the next two components should be z and x (in that order). While for the next two components should be taken as x and y.

For 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 formula -

We can do this in the same way for and to construct their associated formulas.

Applications

Computational geometry

The cross product can be used to calculate the normal for a triangle or polygon, an operation frequently performed in computer graphics.

In computational geometry of the plane, the cross product is used to determine the sign of the acute angle defined by three points , and . It corresponds to the direction of the cross product of the two coplanar vectors defined by the pairs of points and , i.e., by the sign of the expression . In the "right-handed" coordinate system, if the result is 0, the points are collinear; if it is positive, the three points constitute a negative angle of rotation around from to , otherwise a positive angle. From another point of view, the sign of tells whether lies to the left or to the right of line .

Mechanics

Moment of a force applied at point B around point A is given as:

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 in relation to the exterior product. In red are the unit normal vector, and the "parallel" unit bivector.

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 calculus 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, identifying 2-vectors with vectors:

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, in three dimensions only 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.[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
  • vector × pseudovector = vector
  • pseudovector × pseudovector = pseudovector

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

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.

For example, the Heisenberg algebra gives another Lie algebra structure on In the basis the product is

Quaternions

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 : it is thought of as the imaginary quaternions.

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 and more straightforwardly, using the above identification of the 'purely imaginary' quaternions with , the cross product may be thought of as half of the commutator of two quaternions.

Octonions

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 such cross products of two vectors in other dimensions is related to the result that the only normed division algebras are the ones with dimension 1, 2, 4, and 8; Hurwitz theorem.

Wedge product

In general dimension, there is no direct analogue of the binary cross product. 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 after using Hodge duality to identify 2-vectors with vectors.

The wedge product and dot product can be combined to form the Clifford product.

Multilinear algebra

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

In detail, the 3-dimensional volume form defines a product by taking the determinant of the matrix given by these 3 vectors. By duality, this is equivalent to a function (fixing any two inputs gives a function 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 and thus this yields a map 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 " (where the first two vectors are fixed and the last is an input), which defines a function , can be represented uniquely as the dot product with a vector: this vector is the cross product From this perspective, the cross product is defined by the scalar triple product,

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 -tensor. The most direct generalizations of the cross product are to define either:

  • a -tensor, which takes as input vectors, and gives as output 1 vector – an -ary vector-valued product, or
  • a -tensor, which takes as input 2 vectors and gives as output skew-symmetric tensor of rank n−2 – a binary product with rank n−2 tensor values. One can also define -tensors for other k.

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

The -ary product can be described as follows: given vectors in define their generalized cross product as:

  • perpendicular to the hyperplane defined by the
  • magnitude is the volume of the parallelotope defined by the which can be computed as the Gram determinant of the
  • oriented so that is positively oriented.

This is the unique multilinear, alternating product which evaluates to , and so forth for cyclic permutations of indices.

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

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,Λ(v1,...,vn)) have a positive orientation with respect to (e1,...,en+1). If n is even, this modification leaves the value unchanged, so this convention agrees with the normal definition of the binary product. In the case that n is odd, however, the distinction must be kept. This n-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, Joseph Louis Lagrange introduced the component form of both the dot and cross products in order to study the tetrahedron in three dimensions.[10] 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.

However, Oliver Heaviside in England and Josiah Willard Gibbs in Connecticut 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. 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, which began with Gibbs, inspired the name "cross product". Originally appearing in privately published notes for his students in 1881 as Elements of Vector Analysis, Gibbs's notation—and the name—later reached a wider audience through Vector Analysis (Gibbs/Wilson), a textbook by a former student. Edwin Bidwell 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.

See also

Notes

  1. ^ By a volume form one means a function that takes in n vectors and gives out a scalar, the volume of the parallelotope defined by the vectors: This is an n-ary multilinear skew-symmetric form. In the presence of a basis, such as on this is given by the determinant, but in an abstract vector space, this is added structure. In terms of G-structures, a volume form is an -structure.

References

  1. ^ Jeffreys, H and Jeffreys, BS (1999). Methods of mathematical physics. Cambridge University Press. {{cite book}}: Unknown parameter |comment= ignored (help)CS1 maint: multiple names: authors list (link)
  2. ^ Wilson 1901, p. 60-61
  3. ^ Dennis G. Zill, Michael R. Cullen (2006). "Definition 7.4: Cross product of two vectors". Advanced engineering mathematics (3rd ed.). Jones & Bartlett Learning. p. 324. ISBN 076374591X.
  4. ^ Dennis G. Zill, Michael R. Cullen (2006). "Equation 7: a × b as sum of determinants". cited work. Jones & Bartlett Learning. p. 321. ISBN 076374591X.
  5. ^ WS Massey (1983). "Cross products of vectors in higher dimensional Euclidean spaces". The American Mathematical Monthly. 90 (10). The American Mathematical Monthly, Vol. 90, No. 10: 697–701. doi:10.2307/2323537. {{cite journal}}: Invalid |ref=harv (help); Unknown parameter |month= ignored (help)
  6. ^ Vladimir A. Boichenko, Gennadiĭ Alekseevich Leonov, Volker Reitmann (2005). Dimension theory for ordinary differential equations. Vieweg+Teubner Verlag. p. 26. ISBN 3519004372.{{cite book}}: CS1 maint: multiple names: authors list (link)
  7. ^ Pertti Lounesto (2001). Clifford algebras and spinors (2nd ed.). Cambridge University Press. p. 94. ISBN 0521005515.
  8. ^ a b Shuangzhe Liu and Gõtz Trenkler (2008). "Hadamard, Khatri-Rao, Kronecker and other matrix products" (PDF). Int J Information and systems sciences. 4 (1). Institute for scientific computing and education: 160–177. {{cite journal}}: Invalid |ref=harv (help)
  9. ^ by Eric W. Weisstein (2003). "Binet-Cauchy identity". CRC concise encyclopedia of mathematics (2nd ed.). CRC Press. p. 228. ISBN 1584883472.
  10. ^ Lagrange, JL (1773). "Solutions analytiques de quelques problèmes sur les pyramides triangulaires". Oeuvres. Vol. vol 3. {{cite book}}: |volume= has extra text (help)