Vectors
Geometric form of the dot product
The product of the two magnitudes and the cosine of the angle between them; its sign reveals whether the angle is acute, right or obtuse.
Last updated
The Formula
a · b = |a| |b| cos(theta)
The product of the two magnitudes and the cosine of the angle between them; its sign reveals whether the angle is acute, right or obtuse.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| |a| | Magnitude of the first vector | length | The square root of the sum of the squared components of a. |
| |b| | Magnitude of the second vector | length | The square root of the sum of the squared components of b. |
| theta | Angle between the two vectors | angle | Zero for parallel vectors, a right angle for orthogonal ones and a straight angle for opposite directions. |
What Each Symbol Means
|a|length
Magnitude of the first vector
The square root of the sum of the squared components of a.
|b|length
Magnitude of the second vector
The square root of the sum of the squared components of b.
thetaangle
Angle between the two vectors
Zero for parallel vectors, a right angle for orthogonal ones and a straight angle for opposite directions.
See It Worked With Real Numbers
A formula on its own does not tell you which number goes where. The how to calculate the dot product of two vectors page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.
Where This Formula Appears
This equation is the working core of How To Calculate The Dot Product Of Two Vectors, filed under Math. Every number the guide produces comes from substituting into this one line.
Common Questions
What is the formula for Geometric form of the dot product?
The formula for Geometric form of the dot product is a · b = |a| |b| cos(theta). The product of the two magnitudes and the cosine of the angle between them; its sign reveals whether the angle is acute, right or obtuse.
What does each symbol in Geometric form of the dot product stand for?
|a| is magnitude of the first vector; |b| is magnitude of the second vector; theta is angle between the two vectors.
What units should I use with Geometric form of the dot product?
Substitute |a| in length, |b| in length, theta in angle. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.
What is a common mistake when using Geometric form of the dot product?
Pairing components from different positions. The formula uses a1b1, a2b2 and a3b3, never a1b2 or a2b1. Mixing positions is easy when vectors are written on separate lines. Keep the two triples vertically aligned and work down the columns, one product per row.