The Cross Product

The cross product builds the one direction perpendicular to two others.

Before this Lesson

Put a wrench on a bolt and turn it counterclockwise, the way that loosens it. The handle lies flat, and your pull lies flat, both in one level plane. Yet the bolt moves in neither direction. It climbs straight up, square to both. Two arrows go in, and a third comes out. The arithmetic behind that third arrow also tells you which way a tilted panel faces and how big it is.

bolt climbs pull handle
The handle and the pull lie flat, and the bolt moves up

Two arrows in, a third one out

Slide two vectors, A\mathbf{A} and B\mathbf{B}, tail to tail. Unless they're parallel, they pin down one flat plane. Their cross product, A×B\mathbf{A} \times \mathbf{B}, is a new vector, and the rules for building it are short:

  • Its line is perpendicular to that plane, which makes it perpendicular to both A\mathbf{A} and B\mathbf{B}.
  • Its sense along that line comes from the right-hand rule. Point the fingers of your right hand along A\mathbf{A}, curl them toward B\mathbf{B} through the smaller angle, and your thumb points along A×B\mathbf{A} \times \mathbf{B}. The Handbook names this rule without saying how it works.
  • Its length is ∣A∣∣B∣sin⁡θ|\mathbf{A}||\mathbf{B}|\sin\theta, where θ\theta is the angle between them.

The sine looks arbitrary until you draw the parallelogram the two vectors span. Its base is ∣A∣|\mathbf{A}|. Its height is how far B\mathbf{B} stands off that base, which is ∣B∣sin⁡θ|\mathbf{B}|\sin\theta. Base times height is ∣A∣∣B∣sin⁡θ|\mathbf{A}||\mathbf{B}|\sin\theta, so the cross product's length is the parallelogram's area. One arrow records both which way the plane faces and how much area the two vectors span.

A B A × B θ |B| sin θ area = |A||B| sin θ fingers curl from A to B
The arrow stands square to the plane, and its length is the shaded area

The Handbook's Vectors section packs this into one line, with n\mathbf{n} as the unit vector perpendicular to the plane of A\mathbf{A} and B\mathbf{B}:

A×B=∣A∣∣B∣ nsin⁡θ\mathbf{A} \times \mathbf{B} = |\mathbf{A}||\mathbf{B}|\,\mathbf{n}\sin\theta

What the picture already says

Three properties follow from the picture with no arithmetic at all.

  • Perpendicular to both. The dot product of A×B\mathbf{A} \times \mathbf{B} with either A\mathbf{A} or B\mathbf{B} is zero, which gives you a free check on any result.
  • Order matters. Swap the vectors, and your fingers curl the other way. The thumb flips, and the length stays the same. The Handbook prints this as A×B=−B×A\mathbf{A} \times \mathbf{B} = -\mathbf{B} \times \mathbf{A}. The dot product didn't care about order, but this one does.
  • Parallel vectors give zero. At 0° or 180°, sin⁡θ=0\sin\theta = 0, and the parallelogram collapses into a line with no area. The result is the zero vector. The Handbook's Identities list says that if A×B=0\mathbf{A} \times \mathbf{B} = \mathbf{0}, then A=0\mathbf{A} = \mathbf{0}, B=0\mathbf{B} = \mathbf{0}, or A\mathbf{A} is parallel to B\mathbf{B}.
A × B A B A × B B × A A B B × A = −(A × B) parallel A B A × B = 0
Swapping the order flips the arrow, and parallel vectors leave nothing

Now try it on the axis arrows. i\mathbf{i} and j\mathbf{j} are each 1 long and 90° apart, so i×j\mathbf{i} \times \mathbf{j} has a length of (1)(1)sin⁡90∘=1(1)(1)\sin 90^\circ = 1. Fingers along +x, curl toward +y, and your thumb points up +z. So i×j=k\mathbf{i} \times \mathbf{j} = \mathbf{k}. The Identities list prints the family:

i×j=kj×k=ik×i=ji×i=j×j=k×k=0\mathbf{i} \times \mathbf{j} = \mathbf{k} \qquad \mathbf{j} \times \mathbf{k} = \mathbf{i} \qquad \mathbf{k} \times \mathbf{i} = \mathbf{j} \qquad \mathbf{i} \times \mathbf{i} = \mathbf{j} \times \mathbf{j} = \mathbf{k} \times \mathbf{k} = \mathbf{0}

There's nothing to memorize if you put the three on a circle. Cross two in forward order, and you get the third. Cross them in backward order, and you get its negative.

x y z i j k i × j = k i j k forward: i × j = k backward: j × i = −k
The right-handed axes and the circle that goes with them
Checkpoint
1 of 3

What is k×j\mathbf{k} \times \mathbf{j}?

A.
i\mathbf{i}
B.
j\mathbf{j}
C.
0\mathbf{0}
D.
−i-\mathbf{i}

Determinants: one number from a square array

Computing a cross product from components takes one tool. A determinant is a square array of numbers between vertical bars, and the whole array stands for a single number. The Handbook's Determinants section calls the 2 × 2 kind second-order and the 3 × 3 kind third-order.

A 2 × 2 is one diagonal's product minus the other's, starting from the top left:

∣a1a2b1b2∣=a1b2−a2b1∣3214∣=(3)(4)−(2)(1)=10\begin{vmatrix} a_1 & a_2 \\ b_1 & b_2 \end{vmatrix} = a_1 b_2 - a_2 b_1 \qquad \begin{vmatrix} 3 & 2 \\ 1 & 4 \end{vmatrix} = (3)(4) - (2)(1) = 10

A 3 × 3 shrinks to three of those. Walk across the top row. For each entry, cross out its row and its column, and multiply the entry by the 2 × 2 that's left. The signs alternate: plus, minus, plus. The Handbook prints it this way, along with a six-term version you can ignore:

∣a1a2a3b1b2b3c1c2c3∣=a1(b2c3−b3c2)−a2(b1c3−b3c1)+a3(b1c2−b2c1)\begin{vmatrix} a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \\ c_1 & c_2 & c_3 \end{vmatrix} = a_1(b_2 c_3 - b_3 c_2) - a_2(b_1 c_3 - b_3 c_1) + a_3(b_1 c_2 - b_2 c_1)
a1 a2 a3 b1 b2 b3 c1 c2 c3 + a1(b2 c3 − b3 c2) a1 a2 a3 b1 b2 b3 c1 c2 c3 − a2(b1 c3 − b3 c1) a1 a2 a3 b1 b2 b3 c1 c2 c3 + a3(b1 c2 − b2 c1)
Cross out a row and a column, and a 2 × 2 is left

The minus sign in the middle belongs to the position, whatever sign the entry already has. Many approved calculators also evaluate determinants in a matrix mode, which makes a quick check.

Worked Example A third-order determinant
1 of 3

Evaluate this determinant:

∣21−1302145∣\begin{vmatrix} 2 & 1 & -1 \\ 3 & 0 & 2 \\ 1 & 4 & 5 \end{vmatrix}

The cross product from components

Multiply out (axi+ayj+azk)×(bxi+byj+bzk)(a_x\mathbf{i} + a_y\mathbf{j} + a_z\mathbf{k}) \times (b_x\mathbf{i} + b_y\mathbf{j} + b_z\mathbf{k}), all nine products, as you did for the dot product. This time the outcome flips. Like with like vanishes, since i×i=0\mathbf{i} \times \mathbf{i} = \mathbf{0}, and the six mixed products survive, each with a sign from the circle. Collect them by unit vector:

A×B=(aybz−azby)i−(axbz−azbx)j+(axby−aybx)k\mathbf{A} \times \mathbf{B} = (a_y b_z - a_z b_y)\mathbf{i} - (a_x b_z - a_z b_x)\mathbf{j} + (a_x b_y - a_y b_x)\mathbf{k}

Nobody memorizes that. Look at it, though: plus, minus, plus, and each bracket a 2 × 2. It's the 3 × 3 recipe, with the unit vectors as the top row. Arrows in the top row mean the result is a vector, not one number, so this is the recipe borrowed as a memory aid. It's also how the Handbook's Vectors section prints the cross product:

A×B=∣ijkaxayazbxbybz∣\mathbf{A} \times \mathbf{B} = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ a_x & a_y & a_z \\ b_x & b_y & b_z \end{vmatrix}

The first vector goes in the second row, and the second vector goes in the third. The minus sign on the j\mathbf{j} term is the one people lose, and an exam's wrong answers count on it. When you finish, dot the result with either vector and look for zero. Many approved calculators also take cross products in a vector mode.

Worked Example A cross product, term by term
1 of 3

Find A×B\mathbf{A} \times \mathbf{B} for A=2i+3j−k\mathbf{A} = 2\mathbf{i} + 3\mathbf{j} - \mathbf{k} and B=4i−j+2k\mathbf{B} = 4\mathbf{i} - \mathbf{j} + 2\mathbf{k}.

The unit normal: which way a plane faces

Return to the mast from Vectors and Components, and stretch a triangular tarp between its two cables. Wind pushes on fabric square to its face, so you want the direction straight out of the tarp, called its normal. None of its edges point that way, but any two of them lie in its plane, so cross them.

x y z Q (0, 0, 12) P (3, −4, 0) S (−5, 0, 0) A B n −n
A tarp between the cables, with its two normals

That gives the right line, but its length is whatever the area happened to be. You want direction alone, so divide by the length, as for any unit vector:

n=A×B∣A×B∣\mathbf{n} = \frac{\mathbf{A} \times \mathbf{B}}{|\mathbf{A} \times \mathbf{B}|}

That's the Handbook's line from earlier, solved for n\mathbf{n}. A plane has two faces, so −n-\mathbf{n} is just as perpendicular, and B×A\mathbf{B} \times \mathbf{A} produces it. When a question asks for a unit vector perpendicular to a plane, either one is correct.

Worked Example The direction straight out of the tarp
1 of 3

The tarp's corners are the mast top Q(0,0,12)Q(0, 0, 12) m and the anchors P(3,−4,0)P(3, -4, 0) m and S(−5,0,0)S(-5, 0, 0) m. Find a unit vector perpendicular to the tarp.

Area: the length you divided away

The 109.2 you divided away wasn't waste. It's the area of the parallelogram the two edges span. A diagonal cuts any parallelogram into two identical triangles, so a triangle gets half:

parallelogram area=∣A×B∣triangle area=12∣A×B∣\text{parallelogram area} = |\mathbf{A} \times \mathbf{B}| \qquad \text{triangle area} = \tfrac{1}{2}|\mathbf{A} \times \mathbf{B}|

So the tarp has an area of 12(109.2)=54.6 m2\tfrac{1}{2}(109.2) = 54.6\ \text{m}^2. This is the 12absin⁡C\tfrac{1}{2}ab\sin C from Triangle Trigonometry, written in components, so you never need the angle. The Handbook doesn't mention this use: it never says that a cross product's length is an area.

Given three corners, make two edges leaving the same corner, each head minus tail. Any corner works.

Checkpoint
1 of 2

A parallelogram has adjacent sides A=2i−j+2k\mathbf{A} = 2\mathbf{i} - \mathbf{j} + 2\mathbf{k} ft and B=−2i−5j+4k\mathbf{B} = -2\mathbf{i} - 5\mathbf{j} + 4\mathbf{k} ft. What is its area?

ft²

Moments: why a wrench is a cross product

Back to the wrench, seen from above. Let r\mathbf{r} run from the bolt's center to your hand, and pull with a force F\mathbf{F} at an angle θ\theta to the handle. Split that pull in two. The part along the handle, ∣F∣cos⁡θ|\mathbf{F}|\cos\theta, tugs on the bolt and turns nothing. The part square to the handle, ∣F∣sin⁡θ|\mathbf{F}|\sin\theta, does all the turning.

r F θ |F| cos θ turns nothing |F| sin θ does the turning M, out of the page
Only the part of the pull square to the handle turns the bolt

So the turning effect is ∣r∣∣F∣sin⁡θ|\mathbf{r}||\mathbf{F}|\sin\theta, the length of r×F\mathbf{r} \times \mathbf{F}, and that's where the sine comes from. The direction fits too: curl your fingers the way the bolt turns, and your thumb lies along its axis. The Handbook's Statics section, under Moments (Couples), defines a moment as this cross product and writes out its components, with xx, yy, and zz belonging to r\mathbf{r}:

M=r×FMx=yFz−zFyMy=zFx−xFzMz=xFy−yFx\mathbf{M} = \mathbf{r} \times \mathbf{F} \qquad M_x = yF_z - zF_y \qquad M_y = zF_x - xF_z \qquad M_z = xF_y - yF_x

Order counts: F×r\mathbf{F} \times \mathbf{r} gives the opposite moment. So does running r\mathbf{r} backward. Its tail sits at the point you're taking the moment about, and its head lands on the force's line of action, the endless straight line the force acts along.

The head can land anywhere on that line. Slide it along, and r\mathbf{r} changes only by a piece parallel to F\mathbf{F}, and a parallel piece crossed with F\mathbf{F} gives zero. In the figure, a longer r\mathbf{r} meets the line at a shallower angle, and ∣r∣sin⁡θ|\mathbf{r}|\sin\theta stays equal to the same perpendicular distance. The Handbook says only "from a point to the line of action," so pick whichever point makes the arithmetic easiest.

O d r1 r2 θ1 θ2 F line of action |r1| sin θ1 = |r2| sin θ2 = d
Every r to the line of action has the same perpendicular distance

In a flat problem, with everything in the x-y plane, only Mz=xFy−yFxM_z = xF_y - yF_x survives, the k\mathbf{k} component of r×F\mathbf{r} \times \mathbf{F}. A positive value means counterclockwise, because with your thumb along +z, pointing at you, your fingers curl counterclockwise. Moments and Couples picks up from this form.

Worked Example A moment about a point in space
1 of 3

A force F=2i−3j+6k\mathbf{F} = 2\mathbf{i} - 3\mathbf{j} + 6\mathbf{k} kN acts through P(4,1,2)P(4, 1, 2) m. Find its moment about Q(1,−1,1)Q(1, -1, 1) m.

Recap

  • A×B\mathbf{A} \times \mathbf{B} is perpendicular to both vectors, with its sense from the right-hand rule and a length of ∣A∣∣B∣sin⁡θ|\mathbf{A}||\mathbf{B}|\sin\theta.
  • Swapping the order flips the sign, parallel vectors give the zero vector, and i×j=k\mathbf{i} \times \mathbf{j} = \mathbf{k}.
  • A 3 × 3 determinant goes across the top row with signs plus, minus, plus. Put i\mathbf{i}, j\mathbf{j}, k\mathbf{k} in that row to get A×B\mathbf{A} \times \mathbf{B}, then check by dotting with either vector.
  • The unit normal is (A×B)/∣A×B∣(\mathbf{A} \times \mathbf{B})/|\mathbf{A} \times \mathbf{B}|, and its negative is also normal. ∣A×B∣|\mathbf{A} \times \mathbf{B}| is the parallelogram's area, and half of it is the triangle's.
  • M=r×F\mathbf{M} = \mathbf{r} \times \mathbf{F}, with r\mathbf{r} running from the moment point to any point on the line of action.