What a cross product does and when you need it
A cross product is a calculation that takes two vectors (arrows with direction and length) and produces a third vector that points perpendicular to both of them. Unlike multiplication of regular numbers, the cross product only works in three dimensions, and the result is not a single number but a new vector with its own direction and magnitude.
You use cross products in physics to find torque (rotational force), in engineering to calculate normal forces on surfaces, and in computer graphics to determine which way a surface is facing. If you are working with two-dimensional vectors, the cross product does not explore — you would use the dot product instead.
The cross product is written as a × b (read as "a cross b") and produces a vector perpendicular to both a and b. The direction follows the right-hand rule: point your right hand's fingers in the direction of the first vector, curl them toward the second vector, and your thumb points in the direction of the result.
Key Takeaways
- The cross product of two three-dimensional vectors produces a third vector perpendicular to both, using a specific formula involving the components of each vector.
- The formula breaks down into three separate calculations, one for each component (x, y, and z) of the resulting vector.
- The magnitude of the cross product equals the area of the parallelogram formed by the two original vectors.
- The right-hand rule determines which direction the resulting vector points, and reversing the order of the vectors reverses the direction of the result.
- Most scientific calculators and spreadsheet programs have built-in functions to compute cross products, reducing the chance of arithmetic error.
Setting up your two vectors in component form
Before you can compute a cross product, you need both vectors written in component form. A three-dimensional vector has three components, usually labeled x, y, and z. Write the first vector as a = (a₁, a₂, a₃) and the second as b = (b₁, b₂, b₃).
For example, if you have vector a pointing 3 units in the x direction, 4 units in the y direction, and 2 units in the z direction, you write it as a = (3, 4, 2). Similarly, if vector b is (1, 0, 5), you now have both vectors ready for the calculation.
Make sure both vectors are in the same coordinate system and that you have all three components. If a problem gives you only two components, the third is zero.
The cross product formula and what each part means
The cross product formula produces three results, one for each component of the answer vector. If a = (a₁, a₂, a₃) and b = (b₁, b₂, b₃), then a × b = (a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁).
Breaking this down:
- The x-component of the result is a₂b₃ − a₃b₂ (the y and z components of a and b, in a specific order).
- The y-component of the result is a₃b₁ − a₁b₃ (the z and x components of a and b, in a specific order).
- The z-component of the result is a₁b₂ − a₂b₁ (the x and y components of a and b, in a specific order).
Notice the pattern: each component uses the other two components of a and b, never the matching one. The order matters — switching a and b reverses the sign of every component, which flips the direction of the result vector.
Working through a concrete example
Let's compute the cross product of a = (3, 4, 2) and b = (1, 0, 5).
Step 1: Calculate the x-component. Use the formula a₂b₃ − a₃b₂. Substitute: (4)(5) − (2)(0) = 20 − 0 = 20.
Step 2: Calculate the y-component. Use the formula a₃b₁ − a₁b₃. Substitute: (2)(1) − (3)(5) = 2 − 15 = −13.
Step 3: Calculate the z-component. Use the formula a₁b₂ − a₂b₁. Substitute: (3)(0) − (4)(1) = 0 − 4 = −4.
Your result is a × b = (20, −13, −4). This vector is perpendicular to both a and b. You can verify this by checking that the dot product of your result with each original vector equals zero.
Understanding magnitude and direction
Once you have the cross product vector, you can find its magnitude (length) using the distance formula: |a × b| = √(x² + y² + z²). For the example above, that is √(20² + (−13)² + (−4)²) = √(400 + 169 + 16) = √585 ≈ 24.19.
This magnitude has a geometric meaning: it equals the area of the parallelogram formed by vectors a and b when you place them tail-to-tail. If you need just the direction without the magnitude, divide each component by the magnitude to create a unit vector (a vector of length 1 pointing in the same direction).
The direction itself is determined by the right-hand rule. If you point your right hand's fingers along a and curl them toward b, your thumb points along a × b. If you reverse the order and compute b × a, the result points in the opposite direction.
Using calculators and software to avoid errors
For vectors with large numbers or many decimal places, hand calculation becomes tedious and error-prone. Most scientific calculators have a cross product function — check your manual for the syntax, which varies by model. Graphing calculators like the TI-84 can store vectors and compute their cross product in seconds.
Spreadsheet programs like Excel and Google Sheets do not have a built-in cross product function, but you can set up the formula in cells. Create columns for a₁, a₂, a₃, b₁, b₂, b₃, then use cells to compute each component using the formulas above. Python with the NumPy library computes cross products with a single line: numpy.cross(a, b).
If you are solving a physics or engineering problem, your textbook or course software likely has tools built in. Use them to check your hand calculations, especially when the numbers are messy.
Common mistakes and how to avoid them
The most frequent error is mixing up the order of subtraction in each component formula. Remember: the first term comes first, the second term is subtracted. Writing out the formula for each component before substituting numbers helps catch this.
Another mistake is forgetting that the cross product only works in three dimensions. If someone asks for the cross product of two-dimensional vectors, they either mean the dot product or they want you to treat the vectors as three-dimensional with a zero z-component.
A third common slip is confusing the cross product with the dot product. The dot product (a · b) produces a single number and tells you how much two vectors point in the same direction. The cross product (a × b) produces a vector perpendicular to both and tells you about rotation.
Frequently Asked Questions
What does it mean if my cross product is zero?
A cross product of (0, 0, 0) means the two vectors are parallel — they point in the same direction or exactly opposite directions. Parallel vectors have no unique perpendicular direction, so the cross product is zero. This is useful for checking whether two vectors are parallel without computing angles.
Why does the order matter in a cross product?
The cross product is not commutative, meaning a × b does not equal b × a. Instead, b × a equals the negative of a × b — every component flips sign. This is because the right-hand rule produces opposite directions depending on which vector you start with.
Can I use the cross product with vectors that have more or fewer than three components?
No. The cross product is defined only for three-dimensional vectors. For two-dimensional vectors, use the dot product instead. For higher dimensions, mathematicians use a generalization called the wedge product, but that is beyond basic vector calculations.
How do I know if my answer is correct?
Check that your result is perpendicular to both original vectors by computing the dot product of your answer with each one — both should equal zero. Also verify that you applied the right-hand rule correctly: if you curl your fingers from a toward b, your thumb should point along your answer.
Do I need to memorize the cross product formula?
For a homework problem or exam, yes. For real work, no — you will use a calculator or software. If you are learning the concept, memorizing the pattern (each component uses the other two, in a specific order) is more useful than memorizing the exact formula.