Dot Product vs Cross Product
Subtopic: Vector Operations
The dot product and cross product are two ways to multiply vectors, yielding completely different results. The dot product gives a scalar measuring alignment; the cross product gives a vector perpendicular to both inputs. Understanding when to use each is essential for physics, graphics, and geometry.
Introduction
Multiplying numbers is straightforward. But how do you multiply vectors? There's no single answer—different products serve different purposes. The two most important are the dot product (inner product) and the cross product.
The dot product asks: how much do these vectors point in the same direction? The cross product asks: what's perpendicular to both?
The Dot Product
Definition
For vectors
The result is a scalar (a number), not a vector.
Geometric Form
where
Key Properties
a⋅b=b⋅a (commutative)a⋅a=∥a∥2 (gives squared length)a⋅b=0⟺a⊥b (perpendicular vectors have zero dot product)a⋅b>0 means the angle is<90∘ ;a⋅b<0 means the angle is>90∘
The Cross Product
Definition
For vectors
The result is a vector, perpendicular to both
Geometric Form
The magnitude equals the area of the parallelogram spanned by
Key Properties
a×b=−(b×a) (anti-commutative)a×a=0 (a vector crossed with itself is zero)a×b=0⟺a∥b (parallel vectors have zero cross product)a×b⊥a anda×b⊥b
Comparison Table
Property | Dot Product | Cross Product |
|---|---|---|
Result | Scalar | Vector |
Dimensions | Any | Only |
Zero when | Perpendicular | Parallel |
Measures | Alignment | Perpendicular area |
Commutativity | Yes | No (anti-commutative) |
Worked Example
Let
Dot Product
Since
Cross Product
Verify perpendicularity:
When to Use Which
Use the DOT product to:
Find the angle between vectors
Check if vectors are perpendicular
Project one vector onto another
Compute work (force · displacement)
Use the CROSS product to:
Find a vector perpendicular to two others
Compute area of a parallelogram
Determine orientation (left/right, clockwise/counterclockwise)
Compute torque
(r⨉F)
Applications
In physics, work is force dot displacement:
In graphics, the dot product determines lighting (surface normal
In navigation, the cross product determines whether to turn left or right; the dot product determines whether you're facing toward or away from a target.
Summary
The dot product gives a scalar measuring alignment (via