Skip to content

Mathematics · Ch 5 — Vectors

Direction Angles and Direction Cosines

5.3.4

Direction Angles and Direction Cosines

For a non-zero vector aˉ\bar a, its direction angles α,β,γ∈[0,π]\alpha,\beta,\gamma\in[0,\pi] are the angles it

makes with the positive X,Y,ZX,Y,Z axes, and their cosines l=cos⁡α, m=cos⁡β, n=cos⁡γl=\cos\alpha,\ m=\cos\beta,\ n=\cos\gamma are its

direction cosines (d.c.'s). Since α\alpha is the angle between ı^\hat\imath and aˉ=a1ı^+a2ȷ^+a3k^\bar a=a_1\hat\imath+a_2\hat\jmath+a_3\hat k, cos⁡α=aˉ⋅ı^∣aˉ∣=a1∣aˉ∣\cos\alpha=\dfrac{\bar a\cdot\hat\imath}{|\bar a|}=\dfrac{a_1}{|\bar a|}, and similarly cos⁡β=a2/∣aˉ∣, cos⁡γ=a3/∣aˉ∣\cos\beta=a_2/|\bar a|,\ \cos\gamma=a_3/|\bar a|. Squaring and adding these three,

l2+m2+n2=1,l^2+m^2+n^2=1,

and aˉ=∣aˉ∣(lı^+mȷ^+nk^)\bar a=|\bar a|(l\hat\imath+m\hat\jmath+n\hat k), so (l,m,n)(l,m,n) are exactly the components of the unit

vector along aˉ\bar a. The axes' own direction cosines are ı^:(1,0,0), ȷ^:(0,1,0), k^:(0,0,1)\hat\imath:(1,0,0),\ \hat\jmath:(0,1,0),\ \hat k:(0,0,1), and a line LL′LL' has direction cosines (l,m,n)(l,m,n) in one sense and (−l,−m,−n)(-l,-m,-n) in the other (the

two directions along the same line).

Direction ratios. Any three numbers a,b,ca,b,c proportional to the direction cosines (a=λl, b=λm, c=λna=\lambda l,\ b=\lambda m,\ c=\lambda n for some λ\lambda) are called direction ratios (d.r.'s). Since l2+m2+n2=1l^2+m^2+n^2=1 forces

λ2(a2+b2+c2)=1\lambda^2(a^2+b^2+c^2)=1, the direction cosines are recovered from direction ratios by

l=±aa2+b2+c2,m=±ba2+b2+c2,n=±ca2+b2+c2l=\pm\frac{a}{\sqrt{a^2+b^2+c^2}},\quad m=\pm\frac{b}{\sqrt{a^2+b^2+c^2}},\quad n=\pm\frac{c}{\sqrt{a^2+b^2+c^2}}

(matching signs throughout). A line has infinitely many direction-ratio triples (any scalar multiple works)

but only one unsigned set of direction cosines.

Worked examples.

  • Direction ratios 4,−12,184,-12,18 give magnitude 16+144+324=22\sqrt{16+144+324}=22, so direction cosines (211,−611,911)\left(\tfrac{2}{11},-\tfrac{6}{11},\tfrac{9}{11}\right).
  • A line perpendicular to two given lines (with direction ratios −1,2,2-1,2,2 and 0,2,10,2,1): writing the unknown direction cosines l,m,nl,m,n, the two perpendicularity conditions −l+2m+2n=0-l+2m+2n=0 and 2m+n=02m+n=0 give two linear equations, solved together (and then normalised by l2+m2+n2=1l^2+m^2+n^2=1) for the direction ratios/cosines of the perpendicular line.
  • For a line making equations 5l+m+3n=05l+m+3n=0 and 5mn−2nl+6lm=05mn-2nl+6lm=0: eliminate mm using the first (linear) relation, substitute into the second (quadratic) relation to get a homogeneous quadratic in l,nl,n alone, factor it to …
Figure 1Fig. 5.47 — Direction angles α, β, γ that a vector ā = OP makes with the positive X-, Y- and Z-axes
Fig. 1 — Fig. 5.47 — Direction angles α, β, γ that a vector ā = OP makes with the positive X-, Y- and Z-axes

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

What this figure shows. Shows a vector a drawn from the origin together with the three angles it makes against the positive X, Y and Z axes, labelled alpha, beta and gamma; dropping these three angles down to their cosines (cos alpha, cos beta, cos gamma) gives exactly the direction cosines l, m, n used everywhere afterwards to describe a line's orientation in space, including in the perpendicularity and angle-between-lines problems of the exercises. …