The dot product turns two vectors into a number. The cross product turns two vectors into a new vector, one that is perpendicular to both of them. That makes it the natural tool for building normal vectors to planes, computing areas and volumes, and describing rotation (torque and angular momentum). Unlike the dot product, it only works in three dimensions.
Definition
Definition
Cross product
For a=⟨a1,a2,a3⟩ and b=⟨b1,b2,b3⟩, the cross product is
a×b=⟨a2b3−a3b2,a3b1−a1b3,a1b2−a2b1⟩.
Nobody memorizes this formula as written. Instead, use a 3×3 determinant, expanded along the first row:
where prqs=ps−qr. (The first row contains vectors, so this is a memory device rather than a true determinant, but it gives exactly the right answer.)
Common mistake
The middle term has a minus sign. Forgetting it is the most common cross-product error. Always check your answer by dotting it with a and with b: both results must be 0.
Check: ⟨−10,7,9⟩⋅a=−20−7+27=0 and ⟨−10,7,9⟩⋅b=−10+28−18=0.
Geometry: direction and length
The check in the example is no accident. Expanding (a×b)⋅a from the definition, every term cancels, and the same happens for b. So a×b is orthogonal to both a and b. Of the two perpendicular directions, it points the way given by the right-hand rule: curl the fingers of your right hand from a toward b (through the smaller angle), and your thumb points along a×b.
a × b is perpendicular to the plane of a and b, pointing by the right-hand rule. Its length equals the area of the parallelogram spanned by a and b.
For the length, a direct (if tedious) algebraic computation gives Lagrange's identity ∣a×b∣2=∣a∣2∣b∣2−(a⋅b)2. Substituting a⋅b=∣a∣∣b∣cosθ gives ∣a∣2∣b∣2(1−cos2θ)=∣a∣2∣b∣2sin2θ. Since sinθ≥0 for 0≤θ≤π, we get the following.
Length of the cross product
If θ is the angle between a and b, then
∣a×b∣=∣a∣∣b∣sinθ,
which is the area of the parallelogram with sides a and b. In particular, two nonzero vectors are parallel if and only if a×b=0.
The parallelogram has base ∣a∣ and height ∣b∣sinθ, which is why its area appears. A triangle with two sides a and b has half that area.
Worked example: Area of a triangle in space
Find the area of the triangle with vertices P(1,0,1), Q(3,2,1) and R(1,3,4).
Solution. Two sides from P are PQ=⟨2,2,0⟩ and PR=⟨0,3,3⟩. Then
PQ×PR=⟨2⋅3−0⋅3,0⋅0−2⋅3,2⋅3−2⋅0⟩=⟨6,−6,6⟩,
with length 36⋅3=63. The triangle's area is half of that: 33.
Algebraic properties
The basis vectors multiply cyclically: i×j=k, j×k=i, k×i=j, and reversing any order flips the sign. In general:
b×a=−(a×b) (anticommutative), and so a×a=0.
(ca)×b=c(a×b)=a×(cb).
a×(b+c)=a×b+a×c, and similarly on the other side.
The cross product is not associative: (i×i)×j=0, but i×(i×j)=i×k=−j.
The scalar triple product
Combining both products gives the scalar triple producta⋅(b×c), which is the ordinary determinant
a⋅(b×c)=a1b1c1a2b2c2a3b3c3.
Geometrically, ∣b×c∣ is the area of the base parallelogram, and ∣a∣∣cosφ∣ (where φ is the angle between a and b×c) is the height of the slanted box above it.
Volume of a parallelepiped
The parallelepiped with edges a, b, c from one vertex has volume V=∣a⋅(b×c)∣. The three vectors are coplanar exactly when this triple product is 0.
Worked example: Volume and a torque
(a) Find the volume of the parallelepiped with edges a=⟨1,2,0⟩, b=⟨0,1,3⟩, c=⟨2,0,1⟩.
(b) A wrench handle points along r=⟨0,0.25,0⟩ meters from the bolt, and a force F=⟨0,0,−40⟩ newtons is applied at its end. Find the torque τ=r×F.
Solution. (a) Expand along the first row:
102210031=1(1−0)−2(0−6)+0=13,
so V=13 cubic units.
(b) r×F=⟨(0.25)(−40)−0⋅0,0⋅0−0⋅(−40),0⋅0−0.25⋅0⟩=⟨−10,0,0⟩. The torque has magnitude 10 N·m and points along the negative x-axis, the axis the bolt turns about. Here r⊥F, so the magnitude is simply ∣r∣∣F∣=0.25⋅40.
Tip
To get a unit vector perpendicular to two given vectors, compute their cross product and divide by its length. Its negative is the other answer.
Practice
Practice 1
Compute ⟨1,2,3⟩×⟨4,5,6⟩.
Enter a point like (2, -3)
Practice 2
Simplify (i×j)×j.
Practice 3
Find the area of the parallelogram spanned by ⟨3,0,1⟩ and ⟨−1,2,2⟩.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 4
Find the area of the triangle with vertices A(1,1,1), B(3,2,3) and C(2,4,1).
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 5
Vectors a and b have lengths 3 and 4, and the angle between them is 30∘. Find ∣a×b∣.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 6
Find the volume of the parallelepiped with edges ⟨1,1,0⟩, ⟨0,2,1⟩ and ⟨3,0,4⟩.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 7
Find the value of k for which ⟨1,2,−1⟩, ⟨0,1,3⟩ and ⟨2,k,1⟩ are coplanar.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.