Vector Algebra · Lesson 5 of 9
The Dot Product and Angles
“Measure directional alignment with a scalar product, and use it to calculate angles and test perpendicularity.”
• Explain the dot product and its dependence on the angle between vectors. • Derive the component formula from basis-vector products. • Apply commutative, distributive and scalar-multiplication rules. • Calculate angles and test perpendicularity while handling zero vectors correctly.
A product that measures alignment
Multiplying two vectors can produce either a scalar or another vector, depending on the operation. The dot product produces a scalar. It compares how strongly two nonzero vectors point along the same direction, taking both their lengths and their angle into account.
Translate two nonzero vectors to a common tail without rotating them. Their angle is chosen in the interval .
If either input is , an angle is not defined, but the dot product is defined to be zero. This separate convention makes the algebra consistent. Whenever an angle formula divides by vector magnitudes, both vectors must be nonzero.
What the sign tells us
Cosine is positive for an acute angle, zero for a right angle, and negative for an obtuse angle. The sign of the dot product therefore records a geometric relationship. At the extreme angles, the product equals either the positive or negative product of the lengths.
| Relative direction | Dot product |
|---|---|
| Same direction | , so . |
| Perpendicular nonzero vectors | , so . |
| Opposite directions | , so . |
| Acute or obtuse angle | The product is respectively positive or negative. |
Taking a vector with itself gives angle zero and hence . A zero dot product between two nonzero vectors proves perpendicularity. A zero dot product alone does not prove that either input is zero.
Problem
If , and , find the angle between them.
- 1.Rearrange the definition: .
- 2.Substitute to get .
- 3.Because , the angle is , or 60 degrees.
Properties that make the product useful
Interchanging the two vectors leaves their lengths and angle unchanged, which explains commutativity. The dot product also distributes over addition, and a scalar factor can be taken outside it. These rules permit expansion, but the scalar nature of the result must be respected.
The perpendicular unit basis makes component calculations simple. A basis vector dotted with itself gives 1; two different basis vectors give 0. Expanding a product therefore removes every mixed-axis term.
For example, , whereas . The same argument in all nine terms leaves just the three products of matching components.
Finding angles in coordinates
Calculate the dot product and the two lengths separately, then substitute into the cosine formula. A quick sign check is valuable: a negative product must lead to an obtuse angle. If the question asks for an angle at a vertex, form both side vectors starting at that vertex.
Problem
Find the angle between and .
- 1.The dot product is .
- 2.Each magnitude is , so .
- 3.Therefore , an obtuse angle. Leaving the answer in inverse-cosine form is exact.
Problem
Find for , and .
- 1.The angle is at , so use and .
- 2.Their dot product is , while their magnitudes are and .
- 3.Thus . Using in place of would give the supplementary angle.
Perpendicularity and opposed directions
The dot product can establish a right angle without calculating an inverse cosine. It also distinguishes vectors that point in the same line but opposite directions. In both situations, state the nonzero conditions before interpreting the result as an angle.
Problem
For and , show that is perpendicular to .
- 1.First find and .
- 2.Their dot product is .
- 3.Both are nonzero, so they are perpendicular. Equivalently, expanding gives ; the original vectors have equal squared magnitude 35.
Problem
Points have position vectors , , and . Find the angle between and .
- 1.Subtract endpoint positions: and .
- 2.The dot product is . The magnitudes are and .
- 3.Therefore and . The vectors are collinear and oppositely directed, as also follows from .
A zero dot product does not imply a zero input vector. For example, , although neither vector is zero. Conversely, if an input is zero, do not try to calculate an angle by dividing by its magnitude.
Quiz
What is ?
For two nonzero vectors with a negative dot product, their angle is
Which statement follows from ?
Which vectors determine ?
If and are nonzero, then their dot product is
Practice Problems
- Find the angle between vectors of magnitudes and whose dot product is .
- Find the angle between and .
- Show that , and are mutually perpendicular unit vectors.
- If and , find when they are perpendicular.
- Prove that . State the qualification needed to interpret a zero result as a right angle.
- Give two nonzero vectors whose dot product is zero, and two whose dot product is negative.
- If two equal-magnitude vectors make an angle of 60 degrees and have dot product , find their common magnitude.
Key Takeaways
The dot product is a scalar that measures alignment through cosine. Matching components are multiplied and added to calculate it. Nonzero perpendicular vectors have zero dot product; the zero-input case needs separate interpretation. Angles at a vertex require two vectors directed away from that vertex. The sign of a dot product provides a quick check on the resulting angle.