Cross Product

2 min read

The cross product a×b\mathbf{a} \times \mathbf{b} is defined only in R3\mathbb{R}^3 and \mathbb{R}^ and produces a vector (unlike the Dot Product which produces a scalar):

a×b=ijka1a2a3b1b2b3=(a2b3a3b2)i(a1b3a3b1)j+(a1b2a2b1)k\mathbf{a} \times \mathbf{b} = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix} = (a_2 b_3 - a_3 b_2)\mathbf{i} - (a_1 b_3 - a_3 b_1)\mathbf{j} + (a_1 b_2 - a_2 b_1)\mathbf{k}

Geometric interpretation:

  • The result is perpendicular to both a\mathbf{a} and b\mathbf{b} (right-hand rule for direction)
  • Its magnitude is the area of the parallelogram spanned by a\mathbf{a} and b\mathbf{b}: a×b=absinθ|\mathbf{a} \times \mathbf{b}| = |\mathbf{a}||\mathbf{b}|\sin\theta

Key properties:

  • Anti-commutative: a×b=(b×a)\mathbf{a} \times \mathbf{b} = -(\mathbf{b} \times \mathbf{a})
  • a×b=0\mathbf{a} \times \mathbf{b} = \mathbf{0} iff a\mathbf{a} and b\mathbf{b} are parallel
  • Not associative: (a×b)×ca×(b×c)(\mathbf{a} \times \mathbf{b}) \times \mathbf{c} \neq \mathbf{a} \times (\mathbf{b} \times \mathbf{c}) in general
  • The scalar triple product a(b×c)\mathbf{a} \cdot (\mathbf{b} \times \mathbf{c}) gives the volume of the parallelepiped

ML relevance: Less directly used than the dot product, but appears in 3D geometry, computer vision (surface normals), robotics, and physics simulations.

See also: Dot Product , Norms and Distance Metrics

Linked from

Nothing links here yet.