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 a=(a1,a2,…,an) a equals open paren a sub 1 comma a sub 2 comma dot dot dot comma a sub n close paren and b=(b1,b2,…,bn) b equals open paren b sub 1 comma b sub 2 comma dot dot dot comma b sub n close paren in Rn R to the n-th power:

a⋅b=a1⁢b1+a2⁢b2+⋯+an⁢bn=∑i=1n(ai)⁢bi a times b equals a sub 1 b sub 1 plus a sub 2 b sub 2 plus dot dot dot plus a sub n b sub n equals the sum from i equals 1 to n of open paren a sub i close paren b sub i

The result is a scalar (a number), not a vector.

Geometric Form

a⋅b=∥a∥∥b∥cos⁡θ a times b equals the metric of a times the metric of b times cosine theta

where θ theta is the angle between a a and b b. This shows: the dot product measures how aligned the vectors are.

Key Properties

  • a⋅b=b⋅a a times b equals b times a (commutative)

  • a⋅a=∥a∥2 a times a equals the metric of a squared (gives squared length)

  • a⋅b=0⟺a⊥b a times b equals 0 long left right double arrow a up tack b (perpendicular vectors have zero dot product)

  • a⋅b>0 a times b is greater than 0 means the angle is <90∘ is less than 90 raised to the composed with power;
    a⋅b<0 a times b is less than 0 means the angle is >90∘ is greater than 90 raised to the composed with power

The Cross Product

Definition

For vectors a=(a1,a2,a3) a equals open paren a sub 1 comma a sub 2 comma a sub 3 close paren and b=(b1,b2,b3) b equals open paren b sub 1 comma b sub 2 comma b sub 3 close paren in R3 R cubed only:

a×b=(a2⁢b3−a3⁢b2a3⁢b1−a1⁢b3a1⁢b2−a2⁢b1) a times b equals the 3 by 1 column matrix Row 1: a sub 2 b sub 3 minus a sub 3 b sub 2 Row 2: a sub 3 b sub 1 minus a sub 1 b sub 3 Row 3: a sub 1 b sub 2 minus a sub 2 b sub 1

The result is a vector, perpendicular to both a a and b b.

Geometric Form

∥a×b∥=∥a∥∥b∥sin⁡θ the metric of a times b equals the metric of a times the metric of b times sine theta

The magnitude equals the area of the parallelogram spanned by a a and b b. The direction is given by the right-hand rule.

Key Properties

  • a×b=−(b×a) a times b equals negative open paren b times a close paren (anti-commutative)

  • a×a=0 a times a equals 0 (a vector crossed with itself is zero)

  • a×b=0⟺a∥b a times b equals 0 long left right double arrow a parallel to b (parallel vectors have zero cross product)

  • a×b⊥a a times b up tack a and
    a×b⊥b a times b up tack b

Comparison Table

Property

Dot Product

Cross Product

Result

Scalar

Vector

Dimensions

Any Rn R to the n-th power

Only R3 R cubed

Zero when

Perpendicular

Parallel

Measures

Alignment (cos⁡θ) cosine theta

Perpendicular area (sin⁡θ) sine theta

Commutativity

Yes

No (anti-commutative)

Worked Example

Let a=(1,2,3) a equals open paren 1 comma 2 comma 3 close paren and b=(4,5,6) b equals open paren 4 comma 5 comma 6 close paren.

Dot Product

a⋅b=1⁢(4)+2⁢(5)+3⁢(6)=4+10+18=32 a times b equals 1 times 4 plus 2 times 5 plus 3 times 6 equals 4 plus 10 plus 18 equals 32

Since a⋅b>0 a times b is greater than 0, the angle between them is acute (<90∘ is less than 90 raised to the composed with power).

Cross Product

a×b=(2⋅6−3⋅5,3⋅4−1⋅6,1⋅5−2⋅4) a times b equals open paren 2 times 6 minus 3 times 5 comma 3 times 4 minus 1 times 6 comma 1 times 5 minus 2 times 4 close paren

=(12−15,12−6,5−8)=(−3,6,−3) equals open paren 12 minus 15 comma 12 minus 6 comma 5 minus 8 close paren equals open paren negative 3 comma 6 comma negative 3 close paren

Verify perpendicularity:

a⋅(a×b)=1⁢(−3)+2⁢(6)+3⁢(−3)=−3+12−9=0 a times open paren a times b close paren equals 1 times negative 3 plus 2 times 6 plus 3 times negative 3 equals negative 3 plus 12 minus 9 equals 0

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) open paren r the n ary times of F close paren

Applications

In physics, work is force dot displacement: W=F⋅d W equals F times d. Torque is position cross force: τ=r×F tau equals r times F.

In graphics, the dot product determines lighting (surface normal ⋅ times light direction), while the cross product computes surface normals from triangle vertices.

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 cos⁡θ cosine theta); it is zero for perpendicular vectors. The cross product gives a perpendicular vector with magnitude proportional to sin⁡θ sine theta and equal to the area of the parallelogram; it is zero for parallel vectors. Dot products work in any dimension, while cross products are specific to R3 R cubed. Both are essential tools in geometry, physics, and graphics.