Skip to content

Mathematics · Ch 5 — Vectors

Finding angle between two vectors

5.3.2

Finding angle between two vectors

Rearranging the dot-product definition, the angle θ\theta (0≤θ≤π0\le\theta\le\pi) between two non-zero vectors

aˉ,bˉ\bar a,\bar b is

cos⁡θ=aˉ⋅bˉ∣aˉ∣∣bˉ∣,i.e.θ=cos⁡−1 ⁣(aˉ⋅bˉ∣aˉ∣∣bˉ∣).\cos\theta=\frac{\bar a\cdot\bar b}{|\bar a||\bar b|},\qquad\text{i.e.}\qquad \theta=\cos^{-1}\!\left(\frac{\bar a\cdot\bar b}{|\bar a||\bar b|}\right).

Since cosine is positive for 0≤θ<π/20\le\theta<\pi/2, zero at θ=π/2\theta=\pi/2, and negative for π/2<θ≤π\pi/2<\theta\le\pi,

the sign of aˉ⋅bˉ\bar a\cdot\bar b alone already tells whether the angle between two vectors is acute

(aˉ⋅bˉ>0\bar a\cdot\bar b>0), right (aˉ⋅bˉ=0\bar a\cdot\bar b=0), or obtuse (aˉ⋅bˉ<0\bar a\cdot\bar b<0) -- without ever

computing θ\theta itself. This sign test is exactly how "obtuse angle" conditions in the exercises are turned …