Skip to lesson content

Lesson 5 of 9

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.”

Learning Objectives

• 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.

Definition
Angle between vectors

Translate two nonzero vectors to a common tail without rotating them. Their angle is chosen in the interval .

Scalar or dot productLaTeX
is the angle between the two nonzero vectors. The result is a real number, not a vector.
The angle between two vectorsθab0 ≤ θ ≤ 180°
The angle between two vectors— Translate arrows to a common tail, then use the angle between their directions.

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 directionDot product
Same direction, so .
Perpendicular nonzero vectors, so .
Opposite directions, so .
Acute or obtuse angleThe 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.

Example — An angle from magnitudes and a product

Problem
If , and , find the angle between them.

  1. 1.Rearrange the definition: .
  2. 2.Substitute to get .
  3. 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.

Dot-product lawsLaTeX
The distributive law also holds over subtraction. Each dot product is a scalar.

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.

Products of the unit basisLaTeX
Use commutativity for the reversed mixed products.

For example, , whereas . The same argument in all nine terms leaves just the three products of matching components.

Dot product in componentsLaTeX
This applies to and .

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.

Angle from a dot productLaTeX
Both vectors must be nonzero. A value outside the interval for the cosine signals inconsistent data or a calculation error.
Example — An obtuse angle

Problem
Find the angle between and .

  1. 1.The dot product is .
  2. 2.Each magnitude is , so .
  3. 3.Therefore , an obtuse angle. Leaving the answer in inverse-cosine form is exact.
Example — Choosing the correct vertex vectors

Problem
Find for , and .

  1. 1.The angle is at , so use and .
  2. 2.Their dot product is , while their magnitudes are and .
  3. 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.

Example — Perpendicular sum and difference

Problem
For and , show that is perpendicular to .

  1. 1.First find and .
  2. 2.Their dot product is .
  3. 3.Both are nonzero, so they are perpendicular. Equivalently, expanding gives ; the original vectors have equal squared magnitude 35.
Example — An angle between directed segments

Problem
Points have position vectors , , and . Find the angle between and .

  1. 1.Subtract endpoint positions: and .
  2. 2.The dot product is . The magnitudes are and .
  3. 3.Therefore and . The vectors are collinear and oppositely directed, as also follows from .
Common mistake

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

Quick check

What is ?

Quick check

For two nonzero vectors with a negative dot product, their angle is

Quick check

Which statement follows from ?

Quick check

Which vectors determine ?

Quick check

If and are nonzero, then their dot product is

Practice Problems

Practice Problems
  1. Find the angle between vectors of magnitudes and whose dot product is .
  2. Find the angle between and .
  3. Show that , and are mutually perpendicular unit vectors.
  4. If and , find when they are perpendicular.
  5. Prove that . State the qualification needed to interpret a zero result as a right angle.
  6. Give two nonzero vectors whose dot product is zero, and two whose dot product is negative.
  7. If two equal-magnitude vectors make an angle of 60 degrees and have dot product , find their common magnitude.

Key Takeaways

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.