Cross Product
For two 3D vectors, the cross product is:
\[\mathbf a \times \mathbf b = \begin{bmatrix} a_yb_z-a_zb_y\\ a_zb_x-a_xb_z\\ a_xb_y-a_yb_x \end{bmatrix}\]A handy way to remember it is the determinant form:
\[\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}\]Geometric Meaning
- The result is perpendicular to both \(\mathbf a\) and \(\mathbf b\).
- Its magnitude is the area of the parallelogram spanned by \(\mathbf a\) and \(\mathbf b\):
- Its direction follows the right-hand rule.
E.g., \(\mathbf z = \mathbf x \times \mathbf y\):

Properties
- Anti-commutative: \(\mathbf a\times\mathbf b= -\mathbf b\times\mathbf a\)
- A vector crossed with itself (or any parallel vector) is zero: \(\mathbf a \times \mathbf a = \mathbf 0\)
- Distributive: \(\mathbf a \times (\mathbf b + \mathbf c) = \mathbf a \times \mathbf b + \mathbf a \times \mathbf c\)
- Not associative: \(\mathbf a \times (\mathbf b \times \mathbf c) \neq (\mathbf a \times \mathbf b) \times \mathbf c\) in general. The BAC-CAB rule below tells us what the triple product actually is.
Skew-Symmetric Matrix Form
The cross product with \(\mathbf a\) is a linear map, so it can be written as a matrix multiplication:
\[\mathbf a \times \mathbf b = [\mathbf a]_\times \mathbf b, \quad [\mathbf a]_\times = \begin{bmatrix} 0 & -a_z & a_y \\ a_z & 0 & -a_x \\ -a_y & a_x & 0 \end{bmatrix}\]\([\mathbf a]_\times\) is skew-symmetric: \([\mathbf a]_\times^T = -[\mathbf a]_\times\). This form shows up a lot in rotations and Lie groups.
A few more identities that show up in rotations and Lie groups:
- Swapping the order flips the sign: \([\boldsymbol\theta]_\times \mathbf v = -[\mathbf v]_\times \boldsymbol\theta\)
- Rotations commute with the cross product: \(R(\mathbf a \times \mathbf b) = (R\mathbf a) \times (R\mathbf b)\)
- \([\mathbf v]_\times^T [\mathbf v]_\times = \|\mathbf v\|^2 I - \mathbf v \mathbf v^T\) (from the BAC-CAB rule below)
Column Vectors vs Row Vectors
For column vectors, anti-commutativity in matrix form reads:
\[\mathbf a \times \mathbf b = -\mathbf b \times \mathbf a = -[\mathbf b]_\times \mathbf a\]For row vectors, transpose the cross product:
\[(\mathbf a \times \mathbf b)^T = ([\mathbf a]_\times \mathbf b)^T = \mathbf b^T [\mathbf a]_\times^T\]The same skew matrix works here, because a skew matrix is defined by its elements, not by whether it multiplies a column or a row. Since \([\mathbf a]_\times^T = -[\mathbf a]_\times\):
\[\boxed{(\mathbf a \times \mathbf b)^T = -\mathbf b^T [\mathbf a]_\times}\]This is the form that shows up in Jacobians like \(\mathbf n^T [\mathbf p]_\times\), where a row vector multiplies a skew matrix from the left.
Scalar Triple Product
Prove:
\[\mathbf a\cdot(\mathbf b\times\mathbf c) = \mathbf b\cdot(\mathbf c\times\mathbf a) = \mathbf c\cdot(\mathbf a\times\mathbf b)\]Expand the first expression:
\[\mathbf a\cdot(\mathbf b\times\mathbf c) = \begin{bmatrix}a_x&a_y&a_z\end{bmatrix} \begin{bmatrix} b_yc_z-b_zc_y\\ b_zc_x-b_xc_z\\ b_xc_y-b_yc_x \end{bmatrix}\] \[\begin{aligned} ={}&a_xb_yc_z-a_xb_zc_y\\ &+a_yb_zc_x-a_yb_xc_z\\ &+a_zb_xc_y-a_zb_yc_x \end{aligned}\]Similarly,
\[\mathbf b\cdot(\mathbf c\times\mathbf a) = \begin{bmatrix}b_x&b_y&b_z\end{bmatrix} \begin{bmatrix} c_ya_z-c_za_y\\ c_za_x-c_xa_z\\ c_xa_y-c_ya_x \end{bmatrix}\] \[\begin{aligned} ={}&b_xc_ya_z-b_xc_za_y\\ &+b_yc_za_x-b_yc_xa_z\\ &+b_zc_xa_y-b_zc_ya_x \end{aligned}\]These are the same six terms with the same signs, so the two expressions are equal. Cycling \(\mathbf a \to \mathbf b \to \mathbf c \to \mathbf a\) once more gives \(\mathbf c\cdot(\mathbf a\times\mathbf b)\).
All three equal the determinant, which is the signed volume of the parallelepiped spanned by \(\mathbf a, \mathbf b, \mathbf c\):
\[\mathbf a\cdot(\mathbf b\times\mathbf c) = \begin{vmatrix} a_x & a_y & a_z \\ b_x & b_y & b_z \\ c_x & c_y & c_z \end{vmatrix}\]Vector Triple Product (BAC-CAB Rule)
The vector triple product can be expanded as:
\[\mathbf a \times (\mathbf b \times \mathbf c) = \mathbf b (\mathbf a \cdot \mathbf c) - \mathbf c (\mathbf a \cdot \mathbf b)\]Hence the name “BAC - CAB”.
Proof
Let
\[\mathbf a= \begin{bmatrix}a_x\\a_y\\a_z\end{bmatrix}, \quad \mathbf b= \begin{bmatrix}b_x\\b_y\\b_z\end{bmatrix}, \quad \mathbf c= \begin{bmatrix}c_x\\c_y\\c_z\end{bmatrix}\]Then
\[\mathbf b\times\mathbf c= \begin{bmatrix} b_yc_z-b_zc_y\\ b_zc_x-b_xc_z\\ b_xc_y-b_yc_x \end{bmatrix}\]Write out the \(x\) component of \(\mathbf a \times (\mathbf b \times \mathbf c)\):
\[\begin{aligned} [\mathbf a\times(\mathbf b\times\mathbf c)]_x &= a_y(b_xc_y-b_yc_x) - a_z(b_zc_x-b_xc_z) \end{aligned}\]Expand and regroup:
\[= b_x(a_yc_y+a_zc_z) - c_x(a_yb_y+a_zb_z)\]Now, add and subtract \(a_xb_xc_x\):
\[= b_x(a_xc_x+a_yc_y+a_zc_z) - c_x(a_xb_x+a_yb_y+a_zb_z)\]The terms inside the parentheses are simply dot products:
\[= b_x(\mathbf a\cdot\mathbf c) - c_x(\mathbf a\cdot\mathbf b)\]Applying the same procedure to the \(y\) and \(z\) components gives:
\[\boxed{ \mathbf a\times(\mathbf b\times\mathbf c) = \mathbf b(\mathbf a\cdot\mathbf c) - \mathbf c(\mathbf a\cdot\mathbf b) }\]