Learning Objectives
By the end of this section, you will be able to:
- Define and compute the cross product of two vectors using both the determinant formula and component-by-component calculation
- Apply the right-hand rule to determine the direction of the cross product
- Interpret geometrically the cross product as a vector perpendicular to both inputs with magnitude equal to the parallelogram area
- Prove and use the key properties: anti-commutativity, distributivity, and orthogonality
- Apply the cross product to compute torque, angular momentum, and surface normals
- Connect the cross product to computer graphics, robotics, and machine learning applications
The Big Picture: A New Way to Multiply Vectors
"The cross product is the tool that lets us construct a vector perpendicular to a plane, find the area of a parallelogram, and calculate rotational effects in physics."
In the previous section, we learned about the dot product , which takes two vectors and returns a scalar (a number). The dot product measures how much two vectors point in the same direction.
Now we introduce the cross product , which takes two vectors and returns a vector. This new vector is:
- Perpendicular to both input vectors
- Has magnitude equal to the area of the parallelogram formed by the two vectors
- Direction determined by the right-hand rule
Dot Product (Review)
Returns a scalar. Measures alignment. Maximum when vectors are parallel.
Cross Product (This Section)
Returns a vector. Measures "perpendicularity." Maximum when vectors are perpendicular.
Key Distinction
The cross product is only defined for vectors in three dimensions. While the dot product generalizes to any number of dimensions, the cross product specifically requires 3D space because its result needs a unique perpendicular direction.
Historical Context: The Birth of Vector Algebra
The cross product emerged from the work of William Rowan Hamilton and Josiah Willard Gibbs in the 19th century. Hamilton developed quaternions in 1843, a four-dimensional extension of complex numbers. The cross product is actually the "vector part" of quaternion multiplication.
Gibbs, an American physicist at Yale, recognized that for most practical applications in physics and engineering, the full machinery of quaternions was unnecessary. In the 1880s, he developed the modern vector notation we use today, extracting the dot product and cross product as separate operations.
The symbol for the cross product was introduced by Gibbs, deliberately chosen to suggest multiplication while being distinct from the dot product symbol .
Alternative Names
The cross product is also called the vector product (because it produces a vector), the outer product in some contexts, or simply the cross. In physics, the notation (wedge product) is sometimes used.
Geometric Definition
The cross product is defined geometrically by two properties:
Geometric Definition of the Cross Product
1. Magnitude
where is the angle between the vectors ()
2. Direction
The vector is perpendicular to both and , with direction given by the right-hand rule.
The Parallelogram Interpretation
The magnitude has a beautiful geometric meaning: it equals the area of the parallelogram formed by vectors and .
Why? Consider a parallelogram with sides and :
- The base has length
- The height is (the perpendicular distance from base to opposite side)
- Area = base × height =
Triangle Area
The area of a triangle with vertices at the origin and tips of vectors and is half the parallelogram area:
Algebraic Definition: The Determinant Formula
For vectors and , the cross product can be computed using a determinant:
Determinant Formula
Expanding this determinant using cofactors along the first row:
Component Formula
In component form, if and , then:
Memory Aid
Each component is a "cyclic" pattern: for the first component, skip the first index and compute . For the second, skip the second index: . For the third: .
Standard Basis Cross Products
The cross products of the standard basis vectors follow a cyclic pattern:
| Cross Product | Result | Explanation |
|---|---|---|
| i × j | k | x-axis crossed with y-axis gives z-axis |
| j × k | i | y-axis crossed with z-axis gives x-axis |
| k × i | j | z-axis crossed with x-axis gives y-axis |
| j × i | -k | Reversing order negates the result |
| k × j | -i | Anti-commutativity |
| i × k | -j | Anti-commutativity |
| i × i | 0 | Any vector crossed with itself is zero |
The Cyclic Pattern:
Going forward in the cycle gives positive results; going backward gives negative.
The Right-Hand Rule
The right-hand rule is a physical mnemonic for determining the direction of the cross product. Here's how it works:
- Point your fingers in the direction of the first vector
- Curl your fingers toward the second vector (through the smaller angle)
- Your thumb points in the direction of
Right-Hand Rule Visualizer
i × j = k
x-axis crossed with y-axis gives z-axis
a
(1, 0, 0)
b
(0, 1, 0)
a × b
(0, 0, 1)
How to Use the Right-Hand Rule:
- 1. Point your fingers in the direction of vector a
- 2. Curl your fingers toward vector b (through the smaller angle)
- 3. Your thumb points in the direction of a × b
Why "Right-Hand"?
Mathematics uses a right-handed coordinate system by convention: if you point your fingers from the positive x-axis toward the positive y-axis and curl them, your thumb points in the positive z-direction. This convention is standard in physics, engineering, and computer graphics.
Interactive Exploration
Use the visualizer below to explore the cross product. Adjust the vectors and using the sliders and observe how the cross product changes in both magnitude and direction.
Interactive Cross Product Visualizer
Vector a = (2.0, 0.0, 0.0)
Vector b = (1.0, 2.0, 0.0)
Cross Product Result
Orange: Vector a | Cyan: Vector b | Purple: a × b | Shaded area: Parallelogram (area = |a × b|)
Notice how:
- When vectors are perpendicular (), the cross product magnitude is maximized
- When vectors are parallel ( or ), the cross product is zero
- The cross product vector is always perpendicular to both input vectors
- The shaded parallelogram area equals
Properties of the Cross Product
The cross product satisfies several important algebraic properties:
1. Anti-Commutativity
Unlike the dot product (which is commutative), switching the order of the cross product reverses the direction. This is because the right-hand rule gives the opposite direction when you swap the vectors.
2. Distributivity
The cross product distributes over addition, just like ordinary multiplication.
3. Scalar Multiplication
Scalars can be factored out of the cross product.
4. Self Cross Product
Any vector crossed with itself gives the zero vector. This follows from the formula: .
5. Orthogonality
The cross product is perpendicular to both input vectors, confirmed by zero dot products.
6. NOT Associative
Important Caveat
The cross product is NOT associative:
In general, the order of operations matters! There is no simple grouping rule.
Summary of Properties
| Property | Formula |
|---|---|
| Anti-commutativity | b × a = -(a × b) |
| Distributivity | a × (b + c) = a × b + a × c |
| Scalar multiplication | (ka) × b = k(a × b) |
| Self cross product | a × a = 0 |
| Orthogonality | (a × b) · a = (a × b) · b = 0 |
| Magnitude | |a × b| = |a||b|sin(θ) |
| Not associative | (a × b) × c ≠ a × (b × c) in general |
Worked Examples
Example 1: Computing a Cross Product
Find where and .
Solution: Using the component formula:
First component:
Second component:
Third component:
Verification: Check orthogonality by computing dot products:
✓
✓
Example 2: Area of a Triangle
Find the area of the triangle with vertices , , and .
Solution: Create edge vectors from P:
Cross product:
Magnitude:
Area of triangle
Example 3: Finding a Perpendicular Vector
Find a vector perpendicular to both and .
Solution: The cross product gives us exactly this:
The vector is perpendicular to both and . We can verify: and ✓
Applications in Physics and Engineering
The cross product appears throughout physics wherever rotation, torque, or perpendicularity is involved.
1. Torque (Moment of Force)
Torque measures the rotational effect of a force about a pivot point:
where is the position vector from the pivot to the force application point, and is the force vector.
The magnitude explains why:
- Longer lever arms (larger ) produce more torque
- Perpendicular forces () are most effective
- Forces along the lever () produce no rotation
Torque as a Cross Product: τ = r × F
Position Vector |r| = 2.0 m
Distance from pivot to force application point
Force Magnitude |F| = 1.5 N
Magnitude of applied force
Force Angle θ = 90°
Angle between lever and force direction
Torque Analysis
Key Observations:
- • Maximum torque occurs when θ = 90° (force perpendicular to lever)
- • Zero torque when θ = 0° or 180° (force parallel to lever)
- • Torque direction is perpendicular to both r and F (out of/into the screen in 2D)
- • This is why we push door handles at the edge, not near the hinges!
2. Angular Momentum
Angular momentum measures rotational motion:
where is linear momentum.
Angular momentum is conserved in the absence of external torques, which explains phenomena like a spinning ice skater accelerating when pulling in their arms.
3. Magnetic Force
The force on a charged particle moving through a magnetic field:
where is charge, is velocity, and is the magnetic field.
This force is always perpendicular to both the velocity and magnetic field, causing charged particles to move in circular or helical paths.
Applications in Computer Graphics and Machine Learning
The cross product is essential in 3D graphics, robotics, and geometric machine learning.
1. Surface Normals for 3D Rendering
In 3D graphics, every surface needs a normal vector for lighting calculations. Given a triangular face with vertices , the normal is:
This is fundamental to:
- Diffuse lighting: Brightness ∝ (Lambert's law)
- Back-face culling: If , the face points away from the camera
- Collision detection: Determining which side of a surface an object is on
2. Rotation and Orientation in Robotics
Robot kinematics uses cross products extensively:
- Computing joint velocities from angular velocities:
- Constructing rotation axes for inverse kinematics
- Calculating Jacobian matrices for robot arm control
3. 3D Deep Learning
In geometric deep learning and point cloud processing:
- PointNet++ and similar networks use cross products to compute local surface features
- Mesh neural networks require surface normals as input features
- Physics-informed neural networks for fluid dynamics use curl operations (which involve cross products)
Python Implementation
Computing and Verifying Cross Products
Let's implement the cross product and verify its properties:
Application: Surface Normals for 3D Graphics
Here's how the cross product computes surface normals for lighting:
Common Mistakes to Avoid
Mistake 1: Forgetting Anti-Commutativity
Wrong: Assuming
Correct:
Order matters! Switching vectors reverses the direction.
Mistake 2: Confusing Cross and Dot Products
Cross product: Returns a vector perpendicular to both inputs
Dot product: Returns a scalar measuring alignment
They are completely different operations with different geometric meanings.
Mistake 3: Trying to Use Cross Product in 2D
The cross product is only defined for 3D vectors. In 2D, you can compute a "scalar cross product" which gives the signed area, but this is a scalar, not a vector.
Mistake 4: Assuming Associativity
Wrong:
Reality: These are generally different! The cross product is not associative.
Mistake 5: Wrong Component Formula
A common sign error: the second component has a negative pattern in the determinant expansion.
Correct: (not )
Test Your Understanding
Cross Product Quiz
What is the result of i × j (where i and j are standard basis vectors)?
Summary
The cross product is a fundamental operation in 3D vector algebra that produces a vector perpendicular to two input vectors with magnitude equal to the parallelogram area they span.
Key Formulas
Magnitude
Component Formula
Key Properties
| Property | Formula/Description |
|---|---|
| Anti-commutative | b × a = -(a × b) |
| Distributive | a × (b + c) = a × b + a × c |
| Perpendicular result | (a × b) ⊥ a and (a × b) ⊥ b |
| Self cross = zero | a × a = 0 |
| Parallelogram area | |a × b| = area of parallelogram |
| Right-hand rule | Determines direction of result |
Key Applications
- Torque:
- Angular momentum:
- Magnetic force:
- Surface normals in 3D graphics
- Area calculations for triangles and parallelograms
- Rotation axes in robotics and physics simulations
Coming Next: In the next section, we'll explore Lines and Planes in Space, where the cross product helps us find equations of planes and determine distances and angles in 3D geometry.