Mathematics roadmap · فارسی

Dot products and angles: measuring alignment with a number

Two magnitudes do not reveal alignment. Equal-size forces may point together or perpendicularly and contribute differently to a specified displacement. The dot product combines magnitudes and angle into a number. Goal: connect component calculation with geometry, find angles and projections, and test perpendicularity without slopes. Prerequisites: cosine law, projection. We use real vectors on orthonormal axes.

1. Starting question

What is one nonzero vector's contribution along a perpendicular nonzero vector?

Diagnostic answer

Zero projection, because the cosine of 90° is zero. The vectors themselves need not vanish; only their along-direction contribution does.

2. Two descriptions of one calculation

In three dimensions the dot or scalar product is

u·v=u₁v₁+u₂v₂+u₃v₃.

Its output is scalar. For nonzero vectors with included angle 0≤θ≤π, its geometry is u·v=‖u‖‖v‖cos θ. To connect them, compute the squared distance between arrowheads twice. Component expansion gives ‖u−v‖²=‖u‖²+‖v‖²−2(u₁v₁+u₂v₂+u₃v₃). The cosine law gives the same triangle with last term −2‖u‖‖v‖cos θ. Comparing establishes the identity.

Dot products commute, distribute over sums, and are linear under scalar multiplication. Also u·u=‖u‖²≥0, equaling zero only for zero u. Components require compatible units; the product may have different units from either input.

3. Angles and signs

For nonzero vectors, cos θ=(u·v)/(‖u‖‖v‖), then arccos returns an angle in [0,π]. Positive dot product means acute, negative obtuse, zero perpendicular. Zero dotted with any vector is zero, but an angle with the zero vector is undefined; the angle formula's denominator would vanish.

For u=⟨2,1,2⟩, v=⟨1,2,2⟩, dot product is 2+2+4=8, with both magnitudes 3. Thus cos θ=8/9, θ≈27.27°. Eight itself is not an angle; dividing by magnitudes removes scale. Doubling u doubles the dot product but preserves the angle.

For u=⟨1,2,−1⟩, v=⟨2,−1,0⟩, the dot product is zero. Both vectors are nonzero, so they are perpendicular. The test works in space without requiring a potentially undefined line slope.

4. Projection in one formula

For v≠0, the unit direction is e=v/‖v‖. The signed scalar component is u·e=(u·v)/‖v‖, and vector projection is

proj_v(u)=((u·v)/(v·v))v.

Dotting the remainder with v gives v·(u−proj_v(u))=0, proving perpendicularity. For the first example, p=(8/9)⟨1,2,2⟩=⟨8/9,16/9,16/9⟩; the remainder is ⟨10/9,−7/9,2/9⟩. Check its dot product with v: (10−14+4)/9=0. Adding projection and remainder recovers u.

Vector u splits into its projection along v and a perpendicular remainder; the included angle determines whether the dot product is positive, zero or negative.

The projection line passes through the origin. For a displaced line, first take a difference of points; the lines-and-planes lesson will use that idea.

5. Applications and a bound

For constant force F=⟨4,−1,2⟩ N and displacement d=⟨3,2,0⟩ m, work is W=F·d=12−2=10 J. The force's perpendicular component does no work along that displacement. The formula assumes constant force; a varying force generally requires more than endpoint displacement.

Since |cos θ|≤1, Cauchy–Schwarz gives |u·v|≤‖u‖‖v‖; if either is zero it is immediate. Therefore the ratio supplied to arccos must lie between -1 and 1. An outside value calls for checking data, arithmetic or rounding, rather than inventing a new real angle.

6. Independent practice

  1. Dot ⟨3,−2,1⟩ with ⟨−1,4,2⟩; is the angle acute or obtuse?
Answer 1

−3−8+2=−9. Both vectors are nonzero, so the negative product indicates an obtuse angle.

  1. Choose t so ⟨t,2,1⟩ is perpendicular to ⟨1,−1,3⟩.
Answer 2

Set t−2+3=t+1=0, giving t=−1. Both resulting vectors are nonzero, so the angle test applies.

  1. Find the angle between ⟨1,1,0⟩ and ⟨1,0,1⟩.
Answer 3

Dot product 1, each magnitude √2, giving cosine 1/2 and angle π/3=60°. Axes must be orthonormal.

  1. Project u=⟨3,4,0⟩ onto v=⟨1,0,1⟩ and find the remainder.
Answer 4

u·v=3, v·v=2. Projection ⟨3/2,0,3/2⟩; remainder ⟨3/2,4,−3/2⟩, whose dot product with v is zero.

  1. Does u·v=u·w imply v=w?
Answer 5

No: it only implies u·(v−w)=0. With u=⟨1,0⟩, vectors v=⟨2,3⟩, w=⟨2,−1⟩ both give dot product 2 but differ. A single directional measurement does not retain all vector information.

7. Continue and review

Proceed to cross products and orientation when you can check angles, perpendicularity and projections geometrically and algebraically. If output types are confusing, label each calculation “number” or “vector.” Later retrieve: ⟨2,−1⟩ and ⟨1,2⟩ have zero dot product and a right angle.

Sources and authorship

Examples, reasoning and diagram are original. Further definition/application reading: OpenStax, dot product. Online check: 2026-11-17. Diagram provenance.