Understanding the Cross Product
The cross product (also called the vector product) is a binary operation on two vectors in three-dimensional space. Unlike the dot product, which produces a scalar, the cross product produces a new vector that is perpendicular to both input vectors. The cross product is fundamental in physics, engineering, and computer graphics.
Given two vectors A = (a1, a2, a3) and B = (b1, b2, b3), their cross product A × B is computed using a determinant formula involving the unit vectors i, j, and k. The resulting vector is orthogonal to both A and B, and its magnitude equals the area of the parallelogram formed by A and B.
Cross Product Formulas
Determinant Formula
The cross product is computed via a 3x3 determinant with unit vectors in the first row.
Component Form
Expanding the determinant gives three components.
Magnitude
The magnitude of the cross product relates to the sine of the angle between vectors.
Parallelogram Area
The magnitude of the cross product equals the area of the parallelogram spanned by A and B.
Anti-Commutativity
The cross product is anti-commutative: reversing the order negates the result.
Right-Hand Rule
The direction follows the right-hand rule: curl fingers from A to B, thumb points along A x B.
How to Compute the Cross Product
Step-by-Step Process
- Write the two vectors as A = (a1, a2, a3) and B = (b1, b2, b3).
- Set up the 3x3 determinant: first row is i, j, k; second row is A; third row is B.
- Compute the i-component: a2*b3 - a3*b2.
- Compute the j-component: -(a1*b3 - a3*b1) = a3*b1 - a1*b3.
- Compute the k-component: a1*b2 - a2*b1.
- Combine: A x B = (i-comp, j-comp, k-comp).
- Calculate the magnitude: sqrt(i^2 + j^2 + k^2).
Properties of the Cross Product
- Anti-commutative: A x B = -(B x A).
- Distributive: A x (B + C) = A x B + A x C.
- Scalar multiplication: (cA) x B = c(A x B).
- Parallel vectors: If A is parallel to B, then A x B = 0.
- Perpendicularity: The result is always perpendicular to both input vectors.
- Not associative: A x (B x C) is generally not equal to (A x B) x C.
Applications of the Cross Product
The cross product is used extensively in physics for torque (r x F), angular momentum (r x p), and magnetic force (qv x B). In computer graphics, it determines surface normals, performs lighting calculations, and tests polygon winding order. In engineering, it helps analyze rotational forces, moments, and structural loads.
Triangle Area Using Cross Product
The area of a triangle with vertices P, Q, R can be found as half the magnitude of the cross product of two edge vectors: Area = (1/2)|PQ x PR|. This is a powerful computational technique used in 3D geometry and mesh processing.