Cheatsheet: Cross products as signed area
The 2D cross product
Section titled “The 2D cross product”For v = [a, b] and w = [c, d]:
v × w = a·d - b·c (one signed number)Magnitude = area of the parallelogram v and w span. Sign = orientation.
The sign is orientation
Section titled “The sign is orientation”| Sign | Meaning |
|---|---|
| Positive | w is counterclockwise from v |
| Negative | w is clockwise from v |
| Zero | v and w are collinear (parallelogram collapsed, area 0) |
It IS the determinant
Section titled “It IS the determinant”v × w = det([ a c ]) = a·d - c·b ([ b d ])Columns v and w. The signed area of the parallelogram they span is the determinant from the determinant lesson. Zero cross product = dependent columns = zero determinant = rank deficient: one collapse, four names.
Anti-commutative (contrast with the dot product)
Section titled “Anti-commutative (contrast with the dot product)”v × w = -(w × v)Swapping inputs keeps the area but flips the turn, so the sign flips. The dot product is symmetric (v·w = w·v, reports alignment); the cross product is antisymmetric (reports signed area).
Worked examples
Section titled “Worked examples”| Cross product | a·d - b·c | Reading |
|---|---|---|
[1,0] × [0,1] | 1 - 0 = 1 | Unit square, area 1, CCW |
[2,0] × [0,1] | 2 - 0 = 2 | 2x1 rectangle, CCW |
[0,1] × [2,0] | 0 - 2 = -2 | Same area, swapped, CW |
[2,1] × [4,2] | 4 - 4 = 0 | Collinear, collapsed |
[3,1] × [1,2] | 6 - 1 = 5 | Area 5, [1,2] CCW from [3,1] |
3D foreshadow
Section titled “3D foreshadow”In 3D the cross product of two vectors is itself a vector (not a number): perpendicular to both inputs, length equal to the parallelogram’s area. The next lesson derives this through duality.
Why it matters for AI (honest)
Section titled “Why it matters for AI (honest)”Less central than the dot product. Shows up in physics-informed neural networks (fluid, electromagnetism), geometric deep learning (3D rotations, mesh orientation), and robotics (torque, angular velocity). The lesson’s value is structural: dot and cross are the two fundamental products of vectors.
Pitfalls to dodge
Section titled “Pitfalls to dodge”- Confusing it with the dot product. Dot = alignment, symmetric. Cross = signed area, antisymmetric.
- Dropping the sign. Negative means a clockwise turn, not an error. Area is the magnitude.
- Wrong diagonal. It is
a·d - b·c(main minus off), same as the determinant. - Expecting a number in 3D. The 3D cross product is a vector.
The one-line version
Section titled “The one-line version”The 2D cross product is the signed area two vectors span, which is just the determinant of the matrix they form, and unlike the dot product it flips sign when you swap the inputs.