Skip to content

How to compute the cross product, and what it means

5 min read

Short answer

For 3D vectors, a×b=(a2b3−a3b2, a3b1−a1b3, a1b2−a2b1)\mathbf a\times\mathbf b=(a_2b_3-a_3b_2,\ a_3b_1-a_1b_3,\ a_1b_2-a_2b_1). The result is perpendicular to both a\mathbf a and b\mathbf b (right-hand rule), and its length ∣a∣∣b∣sin⁡θ|\mathbf a||\mathbf b|\sin\theta equals the area of the parallelogram they span.

Two vectors span a parallelogram and their cross product is perpendicular to itaba × barea = |a × b|
a and b span a parallelogram. The cross product stands perpendicular to it; its length is the area.

A memory aid for the formula

Write the determinant-style table with i,j,k\mathbf i,\mathbf j,\mathbf k in the first row, a\mathbf a in the second and b\mathbf b in the third, and expand along the first row (middle term with a minus sign). It reproduces the three components above.

Properties to remember

  • a×b=−(b×a)\mathbf a\times\mathbf b=-(\mathbf b\times\mathbf a): order matters.
  • a×b=0\mathbf a\times\mathbf b=\mathbf 0 exactly when a\mathbf a and b\mathbf b are parallel.
  • It is defined only in 3D (in 2D you can use the scalar a1b2−a2b1a_1b_2-a_2b_1, the signed area).
  • i×j=k\mathbf i\times\mathbf j=\mathbf k, j×k=i\mathbf j\times\mathbf k=\mathbf i, k×i=j\mathbf k\times\mathbf i=\mathbf j.

Worked example

Compute a×b\mathbf a\times\mathbf b for a=(1,2,3)\mathbf a=(1,2,3) and b=(4,5,6)\mathbf b=(4,5,6), check it, and find the area of the parallelogram.

a×b=(2⋅6−3⋅5, 3⋅4−1⋅6, 1⋅5−2⋅4)=(−3, 6, −3).\mathbf a\times\mathbf b=(2\cdot6-3\cdot5,\ 3\cdot4-1\cdot6,\ 1\cdot5-2\cdot4)=(-3,\ 6,\ -3). Check perpendicularity: a⋅(−3,6,−3)=−3+12−9=0\mathbf a\cdot(-3,6,-3)=-3+12-9=0 and b⋅(−3,6,−3)=−12+30−18=0\mathbf b\cdot(-3,6,-3)=-12+30-18=0 ✓.

Area =∣a×b∣=9+36+9=54≈7.35=|\mathbf a\times\mathbf b|=\sqrt{9+36+9}=\sqrt{54}\approx7.35.

Try it yourself

Compute (1,0,2)×(0,1,1)(1,0,2)\times(0,1,1) and verify it is perpendicular to the first vector.

Show the answer

(0⋅1−2⋅1, 2⋅0−1⋅1, 1⋅1−0⋅0)=(−2,−1,1)(0\cdot1-2\cdot1,\ 2\cdot0-1\cdot1,\ 1\cdot1-0\cdot0)=(-2,-1,1). Check: (1,0,2)⋅(−2,−1,1)=−2+0+2=0(1,0,2)\cdot(-2,-1,1)=-2+0+2=0 ✓.

Keep going with practice

Vectors in 3D, including dot and cross products, are part of Vidi's courses, with an interactive 3D coordinate explorer.