Calculate the Cross Product of Two Vectors
The cross product is a type of vector multiplication only defined in three and seven dimensions that outputs another vector. This operation, used in almost exclusively three dimensions, is useful for applications in physics and engineering. In this article, we will calculate the cross product of two three-dimensional vectors defined in Cartesian coordinates.
Contents
Steps
Cheat Sheet
Doc:Cross Product of Vectors Diagram
Calculating the Cross Product
- Consider two general three-dimensional vectors defined in Cartesian coordinates.
- <math>\begin{align}\mathbf{a} &= A\mathbf{i} + B\mathbf{j} + C\mathbf{k} \\
\mathbf{b} &= D\mathbf{i} + E\mathbf{j} + F\mathbf{k}\end{align}</math>
- Here, <math>\mathbf{i}, \mathbf{j}, \mathbf{k}</math> are unit vectors, and <math>A, B, C, D, E, F</math> are constants.
- Set up the matrix. One of the easiest ways to compute a cross product is to set up the unit vectors with the two vectors in a matrix.
- <math>\mathbf{a} \times \mathbf{b} = \begin{vmatrix}\mathbf{i} & \mathbf{j} & \mathbf{k} \\ A & B & C \\ D & E & F\end{vmatrix}</math>
- Calculate the determinant of the matrix. Below, we use cofactor expansion (expansion by minors).
- <math>\mathbf{a} \times \mathbf{b} = (BF - EC)\mathbf{i} - (AF - DC)\mathbf{j} + (AE - DB)\mathbf{k}</math>
- This vector is orthogonal to both <math>\mathbf{a}</math> and <math>\mathbf{b}.</math>
Example
- Consider the two vectors below.
- <math>\begin{align}\mathbf{u} &= 2\mathbf{i} - \mathbf{j} + 3\mathbf{k} \\
\mathbf{v} &= 5\mathbf{i} + 7\mathbf{j} - 4\mathbf{k}\end{align}</math>
- Set up the matrix.
- <math>\mathbf{u} \times \mathbf{v} = \begin{vmatrix}\mathbf{i} & \mathbf{j} & \mathbf{k} \\ 2 & -1 & 3 \\ 5 & 7 & -4\end{vmatrix}</math>
- Calculate the determinant of the matrix.
- <math>\begin{align}\mathbf{u} \times \mathbf{v} &= (4 - 21)\mathbf{i} - (-8 - 15)\mathbf{j} + (14 + 5)\mathbf{k} \\
&= -17\mathbf{i} + 23\mathbf{j} + 19\mathbf{k}\end{align}</math>
Video
Template:Video:Calculate the Cross Product of Two Vectors
Tips
- The cross product of a vector with any multiple of itself is 0. This is easier shown when setting up the matrix. The second and third rows are linearly dependent, since you can write one as a multiple of the other. Then, the determinant of the matrix and therefore the cross product is 0.
- One can show that the vector produced by a cross product of two vectors <math>\mathbf{a} \times \mathbf{b}</math> is orthogonal to both <math>\mathbf{a}</math> and <math>\mathbf{b}.</math> To do so, compute the dot products. These products are called triple products - since the operation on the outside is a dot product, these are the scalar triple products.
- <math>\begin{align}\mathbf{a} &\cdot (\mathbf{a} \times \mathbf{b}) \\
\mathbf{b} &\cdot (\mathbf{a} \times \mathbf{b})\end{align}</math>
- These triple products follow something known as cyclic permutation - that is, if you swap the positions of the vectors without reordering them, the expressions are equivalent. Then, we can rewrite them such that a vector is crossing with itself.
- <math>\begin{align}\mathbf{a} &\cdot (\mathbf{b} \times \mathbf{b}) \\
\mathbf{b} &\cdot (\mathbf{a} \times \mathbf{a})\end{align}</math>
- However, we know that the cross product of a vector with itself is 0. Since a dot product of the two vectors ends up being 0 as well, they are orthogonal.
Related Articles
- Add or Subtract Vectors
- Resolve a Vector Into Components
- Normalize a Vector
- Convert Raster to Vector
- Divide a Vector by a Scalar
- Find Perpendicular Vectors in 2 Dimensions