Dot products and cross products are the two fundamental ways to multiply vectors. The dot product outputs a scalar that tells you how aligned two vectors are, while the cross product outputs a new vector perpendicular to both inputs. Together, they let you calculate angles, areas, projections, work, and torque.
Vector Operations
Concept of Dot Product
The dot product has two equivalent forms. The algebraic form multiplies corresponding components and sums the results:
a⋅b=a1b1+a2b2+a3b3
The geometric form connects the dot product to the angle between the vectors:
a⋅b=∣a∣∣b∣cosθ
The fact that these two expressions are always equal is what makes the dot product so useful. The geometric form tells you what the dot product means: it measures how much one vector points in the direction of another. More precisely, a⋅b equals the length of a's projection onto b, scaled by ∣b∣.
Three key properties:
Commutative:a⋅b=b⋅a
Distributive:a⋅(b+c)=a⋅b+a⋅c
Scalar multiplication:(ka)⋅b=k(a⋅b)
Note that the dot product is not associative. Writing (a⋅b)⋅c doesn't even make sense, because a⋅b is a scalar, not a vector.
Calculation of Dot Product
To find the angle between two vectors, combine both forms of the dot product:
Compute a⋅b algebraically using components.
Compute ∣a∣ and ∣b∣.
Solve for the angle: cosθ=∣a∣∣b∣a⋅b, then θ=cos−1(∣a∣∣b∣a⋅b).
Example: Find the angle between a=(1,2,3) and b=(4,−5,6).
a⋅b=(1)(4)+(2)(−5)+(3)(6)=4−10+18=12
∣a∣=1+4+9=14, ∣b∣=16+25+36=77
cosθ=147712=107812≈0.365, so θ≈68.6°
Special cases to recognize quickly:
If a⋅b=0, the vectors are perpendicular (θ=90°, since cos90°=0).
If a⋅b=∣a∣∣b∣, the vectors are parallel and same direction (θ=0°).
If a⋅b=−∣a∣∣b∣, the vectors are parallel and opposite direction (θ=180°).
A positive dot product means the angle is acute; a negative dot product means obtuse.
Cross Product
Definition of Cross Product
Unlike the dot product, the cross product produces a vector, not a scalar. The algebraic formula is:
a×b=(a2b3−a3b2,a3b1−a1b3,a1b2−a2b1)
The magnitude of the result is given by the geometric form:
∣a×b∣=∣a∣∣b∣sinθ
Geometrically, the cross product gives you a vector that is perpendicular to both a and b. Its magnitude equals the area of the parallelogram formed by the two vectors. Where the dot product uses cosθ to measure alignment, the cross product uses sinθ to measure how "spread apart" the vectors are.
Three key properties:
Anticommutative:a×b=−(b×a) (order matters!)
Distributive:a×(b+c)=a×b+a×c
Scalar multiplication:(ka)×b=k(a×b)
The cross product is not commutative. Swapping the order flips the direction of the result. It's also not associative: a×(b×c)=(a×b)×c in general.
Computation of Cross Product
The component formula can be hard to memorize on its own. The determinant method gives you a systematic way to compute it:
a×b=ia1b1ja2b2ka3b3
Expand along the first row using cofactors:
The i component: +(a2b3−a3b2)
The j component: −(a1b3−a3b1) (note the minus sign)
The k component: +(a1b2−a2b1)
A common mistake is forgetting the negative sign on the j component. The signs alternate: +,−,+.
Direction is determined by the right-hand rule: point your fingers along a, curl them toward b, and your thumb points in the direction of a×b.
Special case: If a and b are parallel (or one is the zero vector), then a×b=0, since sin0°=sin180°=0.
Applications of Vector Products
Dot product applications:
Work:W=F⋅d, where F is force and d is displacement. This picks out only the component of force in the direction of motion.
Scalar projection of a onto b: compba=∣b∣a⋅b
Orthogonality test: Two vectors are perpendicular if and only if their dot product is zero.
Cross product applications:
Torque:τ=r×F, where r is the position vector from the pivot to the point where force is applied.
Area of a parallelogram spanned by a and b: A=∣a×b∣. The area of the triangle formed by those same vectors is 21∣a×b∣.
Normal vectors: The cross product of two vectors in a plane gives a normal vector to that plane.
Two identities worth knowing:
Scalar triple product:a⋅(b×c)=b⋅(c×a)=c⋅(a×b). This gives the (signed) volume of the parallelepiped formed by the three vectors.
Vector triple product (BAC-CAB rule):a×(b×c)=(a⋅c)b−(a⋅b)c. The mnemonic "BAC-CAB" matches the order of vectors in the result.