The cross product: formula, orientation, plane normals, and areas

Original publication: Updated:

What is a cross product?

For vectors a,b\mathbf a,\mathbf b in oriented three-dimensional Euclidean space, their cross product a×b\mathbf a\times\mathbf b is a vector perpendicular to both. For nonzero, nonparallel inputs, its length is

∣a×b∣=∣a∣∣b∣sin⁡θ,|\mathbf a\times\mathbf b|=|\mathbf a||\mathbf b|\sin\theta,

where 0≤θ≤π0\le\theta\le\pi is their angle. Its direction is determined by the right-hand rule: curl the fingers of your right hand from a\mathbf a toward b\mathbf b through the smaller angle; the thumb gives the direction of the product.

Vectors a and b forming an angle theta, with their cross product perpendicular to their plane and its length indicated.

A dot product is a scalar. A cross product is a vector. Swapping the inputs reverses its sign:

b×a=−a×b.\mathbf b\times\mathbf a=-\mathbf a\times\mathbf b.

If the inputs are parallel, or either is zero, the cross product is zero; a direction for the zero vector is not specified by the right-hand rule.

The component formula

For

a=(a1,a2,a3),b=(b1,b2,b3),\mathbf a=(a_1,a_2,a_3),\qquad\mathbf b=(b_1,b_2,b_3),

we have

a×b=(a2b3−a3b2, a3b1−a1b3, a1b2−a2b1).\boxed{\mathbf a\times\mathbf b=(a_2b_3-a_3b_2,\ a_3b_1-a_1b_3,\ a_1b_2-a_2b_1).}

Remember the cyclic order 1→2→3→11\to2\to3\to1. For the first component use the second and third coordinates; for the second use the third and first; for the third use the first and second. Reversing one pair accidentally is a common sign error.

Example: compute all three components

Take a=(2,5,1)\mathbf a=(2,5,1) and b=(3,2,1)\mathbf b=(3,2,1).

The first component is 5⋅1−1⋅2=35\cdot1-1\cdot2=3.

The second and third coordinates of (2,5,1) and (3,2,1) paired to calculate the first cross-product component, 5 times 1 minus 2 times 1 equals 3.

The second is 1⋅3−2⋅1=11\cdot3-2\cdot1=1. In the cyclic order this uses the third coordinate before the first, rather than simply taking the first coordinate before the third.

The third and repeated first coordinates paired in cyclic order to calculate the middle component, 1 times 3 minus 1 times 2 equals 1.

The third is 2⋅2−5⋅3=−112\cdot2-5\cdot3=-11. Thus

(2,5,1)×(3,2,1)=(3,1,−11).\boxed{(2,5,1)\times(3,2,1)=(3,1,-11).}

As a check, its dot products with the inputs are 6+5−11=06+5-11=0 and 9+2−11=09+2-11=0. A mistaken sign often fails one of these checks immediately.

Application 1: a normal to a plane

Two independent direction vectors spanning a plane have a nonzero cross product, which supplies a normal. Once a point p\mathbf p on the plane is known, its equation is

(a×b)⋅(x−p)=0.(\mathbf a\times\mathbf b)\cdot(\mathbf x-\mathbf p)=0.

For the vectors in the example, a plane through (1,2,3)(1,2,3) has equation 3x+y−11z=−283x+y-11z=-28. The complete conversion is shown in vector equations of planes.

If the two directions are parallel, their cross product vanishes and does not determine a plane normal. Check independence rather than substituting a zero normal into the formula.

Application 2: areas in three dimensions

The parallelogram spanned by a,b\mathbf a,\mathbf b has base ∣a∣|\mathbf a| and perpendicular height ∣b∣sin⁡θ|\mathbf b|\sin\theta. Its area is consequently

Aparallelogram=∣a×b∣.\boxed{A_{\mathrm{parallelogram}}=|\mathbf a\times\mathbf b|.}

The triangle spanned by the same two vectors has half that area:

Atriangle=12∣a×b∣.\boxed{A_{\mathrm{triangle}}=\frac12|\mathbf a\times\mathbf b|.}

For the example, ∣(3,1,−11)∣=131|(3,1,-11)|=\sqrt{131}, so the parallelogram area is 131\sqrt{131} and the triangle area is 131/2\sqrt{131}/2.

An equivalent dot-product formula

Since a⋅b=∣a∣∣b∣cos⁡θ\mathbf a\cdot\mathbf b=|\mathbf a||\mathbf b|\cos\theta,

∣a×b∣2=∣a∣2∣b∣2−(a⋅b)2.|\mathbf a\times\mathbf b|^2=|\mathbf a|^2|\mathbf b|^2-(\mathbf a\cdot\mathbf b)^2.

Therefore

Atriangle=12∣a∣2∣b∣2−(a⋅b)2.\boxed{A_{\mathrm{triangle}}=\frac12\sqrt{|\mathbf a|^2|\mathbf b|^2-(\mathbf a\cdot\mathbf b)^2}.}

For (2,5,1)(2,5,1) and (3,2,1)(3,2,1), the squared lengths are 3030 and 1414, and the dot product is 1717. Hence 30⋅14−172=13130\cdot14-17^2=131, agreeing with the cross-product calculation.

Choose whichever area formula is shorter for the given data. If an examination assumes only dot products, the final formula can be justified directly using the cosine of the included angle. Remember that the cross-product length is the parallelogram area; a triangle still needs the factor 1/21/2.

Related articles

About the author

Koki Saito

Physician and graduate of the University of Tokyo Faculty of Medicine. Drawing on his entrance-exam experience, he explains how to choose mathematical methods and construct complete solutions.

Full profile →

Have a question or spotted an error? Contact us.