Linear Algebra

The Cross Product

Two vectors span a patch of area. Its size is the length of the answer, its tilt is the direction, and each component of the formula is nothing more mysterious than the area of that patch's shadow on one of the walls.

x 1.5
y 1.3
z 0.0
x 0.4
y -0.5
z 1.5
a × b
its length
area of the patch
|a| |b| sin θ
angle between
a · (a × b)
b · (a × b)

Drag the scene to orbit. The shadow areas are measured off the drawing, the components come from the formula, and they are never copied from each other.

What to observe

  1. Slide a and b apart and watch the patch between them open up. The answer grows with that patch and with nothing else: a cross product is an area wearing a direction, and the direction is just which way the patch faces.
  2. Bring the two arrows into line. The patch collapses, the area goes to zero and so does the whole vector. Parallel vectors span nothing, which is the mirror image of perpendicular vectors having no shadow.
  3. Now for the formula. Turn the wall shadows on. The patch throws a shadow on each of the three walls, and the signed area of each shadow is exactly one component of a × b. The bars on the right measure the shadows and compare them to the arithmetic, and they land on top of each other.
  4. That is where axby − aybxcomes from: it is the area of a parallelogram in the plane, base times height, written in coordinates. Every component is that same two dimensional formula, applied to a different pair of axes.
  5. Look at the middle component in the panel: the pair is taken as z then x, not x then z. The three planes are visited in the cycle x → y → z → x, and the sign of every term is just which way round that cycle you went.
  6. Press swap. Every component changes sign and the vector flips over, because the shadow you were measuring is now traced the other way round. The area never changed, only the sense of the loop around it.
  7. Check the two bottom readouts: a · (a × b) and b · (a × b) are zero, always, to the last digit. The answer is perpendicular to both, which is forced, because a patch's facing direction cannot lie inside the patch.

Shortcuts: space run/pause · s step · r reset · f fullscreen