What this lesson covers

In the plane one angle, or one slope, tells us the direction of a line. In space we use three numbers. This lesson defines direction cosines and direction ratios, shows how to pass from one to the other, and uses them to find the direction of a segment and the coordinates of a point on a directed line.

Direction cosines of a directed line

Let a directed line LL through the origin OO make angles α\alpha, β\beta and γ\gamma with the positive directions of the axes OX→\overrightarrow{OX}, OY→\overrightarrow{OY} and OZ→\overrightarrow{OZ}. These are called the direction angles. Their cosines cos⁡α\cos\alpha, cos⁡β\cos\beta and cos⁡γ\cos\gamma are called the direction cosines (d.c.'s) of LL, written (l,m,n)(l, m, n):

l=cos⁡α,m=cos⁡β,n=cos⁡γ.l = \cos\alpha, \qquad m = \cos\beta, \qquad n = \cos\gamma.

For a line not through the origin, use the parallel line through the origin with the same direction.

The direction cosines always satisfy

l2+m2+n2=1,that iscos⁡2α+cos⁡2β+cos⁡2γ=1.l^2 + m^2 + n^2 = 1, \quad \text{that is} \quad \cos^2\alpha + \cos^2\beta + \cos^2\gamma = 1.

The reason: the point at unit distance along the line is (l,m,n)(l, m, n), and its distance from the origin is 1. Two more forms follow from this one:

sin⁡2α+sin⁡2β+sin⁡2γ=2,cos⁡2α+cos⁡2β+cos⁡2γ=−1.\sin^2\alpha + \sin^2\beta + \sin^2\gamma = 2, \qquad \cos 2\alpha + \cos 2\beta + \cos 2\gamma = -1.

For the first, replace each sin⁡2\sin^2 by 1−cos⁡21 - \cos^2; for the second, use cos⁡2α=2cos⁡2α−1\cos 2\alpha = 2\cos^2\alpha - 1.

Direction cosines of the axes

  • The xx axis makes angles 0∘0^\circ, 90∘90^\circ, 90∘90^\circ with the axes, so its d.c.'s are (cos⁡0∘,cos⁡90∘,cos⁡90∘)=(1,0,0)(\cos 0^\circ, \cos 90^\circ, \cos 90^\circ) = (1, 0, 0).
  • The yy axis has d.c.'s (cos⁡90∘,cos⁡0∘,cos⁡90∘)=(0,1,0)(\cos 90^\circ, \cos 0^\circ, \cos 90^\circ) = (0, 1, 0).
  • The zz axis has d.c.'s (cos⁡90∘,cos⁡90∘,cos⁡0∘)=(0,0,1)(\cos 90^\circ, \cos 90^\circ, \cos 0^\circ) = (0, 0, 1).

Direction ratios

Any three numbers proportional to the direction cosines of a line are called direction ratios (d.r.'s) of the line, written (a,b,c)(a, b, c). If (a,b,c)(a, b, c) are d.r.'s of a line, then so is (λa,λb,λc)(\lambda a, \lambda b, \lambda c) for any λ≠0\lambda \neq 0. Direction ratios are easier to work with because they need not satisfy a2+b2+c2=1a^2 + b^2 + c^2 = 1.

From direction ratios to direction cosines

If (a,b,c)(a, b, c) are d.r.'s and (l,m,n)(l, m, n) are d.c.'s of the same line, then

la=mb=nc=±1a2+b2+c2,\displaystyle \frac{l}{a} = \frac{m}{b} = \frac{n}{c} = \pm\frac{1}{\sqrt{a^2 + b^2 + c^2}},

so

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

taking the same sign throughout. In short, divide the d.r.'s by their length.

Direction of a line segment

The d.r.'s of the segment joining A(x1,y1,z1)A(x_1, y_1, z_1) and B(x2,y2,z2)B(x_2, y_2, z_2) may be taken as

(x2−x1,  y2−y1,  z2−z1)or(x1−x2,  y1−y2,  z1−z2).(x_2 - x_1,\; y_2 - y_1,\; z_2 - z_1) \quad \text{or} \quad (x_1 - x_2,\; y_1 - y_2,\; z_1 - z_2).

Its d.c.'s are

±(x2−x1AB,  y2−y1AB,  z2−z1AB).\displaystyle \pm\left(\frac{x_2 - x_1}{AB},\; \frac{y_2 - y_1}{AB},\; \frac{z_2 - z_1}{AB}\right).

A line has two sets of d.c.'s, one for each direction along it: if (l,m,n)(l, m, n) is one set, the other is (−l,−m,−n)(-l, -m, -n).

A point on a directed line

If (l,m,n)(l, m, n) are the d.c.'s of OP→\overrightarrow{OP}, where OO is the origin, and OP=rOP = r, then

P=(lr,  mr,  nr).P = (lr,\; mr,\; nr).

Example 1

Find the d.c.'s of the line with d.r.'s (1,2,2)(1, 2, 2).

1+4+4=3\sqrt{1 + 4 + 4} = 3, so the d.c.'s are ±(13,23,23)\displaystyle \pm\left(\tfrac{1}{3}, \tfrac{2}{3}, \tfrac{2}{3}\right).

Example 2

A line makes angles 60∘60^\circ and 45∘45^\circ with the xx and yy axes. Find the angle it makes with the zz axis.

cos⁡2γ=1−cos⁡260∘−cos⁡245∘=1−14−12=14,\displaystyle \cos^2\gamma = 1 - \cos^2 60^\circ - \cos^2 45^\circ = 1 - \tfrac{1}{4} - \tfrac{1}{2} = \tfrac{1}{4},

so cos⁡γ=±12\displaystyle \cos\gamma = \pm\tfrac{1}{2} and γ=60∘\gamma = 60^\circ or 120∘120^\circ.

Example 3

Find the d.c.'s of the segment joining A(4,−1,2)A(4, -1, 2) and B(6,2,−4)B(6, 2, -4).

The d.r.'s are (2,3,−6)(2, 3, -6) and AB=4+9+36=7AB = \sqrt{4 + 9 + 36} = 7. The d.c.'s are ±(27,37,−67)\displaystyle \pm\left(\tfrac{2}{7}, \tfrac{3}{7}, -\tfrac{6}{7}\right).

Example 4

OP→\overrightarrow{OP} has d.c.'s (27,37,−67)\displaystyle \left(\tfrac{2}{7}, \tfrac{3}{7}, -\tfrac{6}{7}\right) and OP=14OP = 14. Find PP.

P=(14⋅27,14⋅37,14⋅(−67))=(4,6,−12)\displaystyle P = (14 \cdot \tfrac{2}{7}, 14 \cdot \tfrac{3}{7}, 14 \cdot (-\tfrac{6}{7})) = (4, 6, -12).

Practice

  1. Find the d.c.'s of the line with d.r.'s (2,−1,2)(2, -1, 2).
  2. Can 12,12,12\displaystyle \tfrac{1}{2}, \tfrac{1}{2}, \tfrac{1}{2} be the direction cosines of a line? Give a reason.
  3. A line makes 45∘45^\circ with the xx axis and 60∘60^\circ with the yy axis. Find the angle it makes with the zz axis.
  4. Find the d.c.'s of the segment joining (1,2,−3)(1, 2, -3) and (3,−1,3)(3, -1, 3).
  5. OP→\overrightarrow{OP} has d.c.'s (23,−13,23)\displaystyle \left(\tfrac{2}{3}, -\tfrac{1}{3}, \tfrac{2}{3}\right) and OP=6OP = 6. Find PP.
  6. If α,β,γ\alpha, \beta, \gamma are direction angles of a line and α=β=60∘\alpha = \beta = 60^\circ, find cos⁡2α+cos⁡2β+cos⁡2γ\cos 2\alpha + \cos 2\beta + \cos 2\gamma without finding γ\gamma.

Answers

Show answers
  1. 4+1+4=3\sqrt{4 + 1 + 4} = 3, so ±(23,−13,23)\displaystyle \pm\left(\tfrac{2}{3}, -\tfrac{1}{3}, \tfrac{2}{3}\right).
  2. No: 14+14+14=34≠1\displaystyle \tfrac{1}{4} + \tfrac{1}{4} + \tfrac{1}{4} = \tfrac{3}{4} \neq 1.
  3. cos⁡2γ=1−12−14=14\displaystyle \cos^2\gamma = 1 - \tfrac{1}{2} - \tfrac{1}{4} = \tfrac{1}{4}, so γ=60∘\gamma = 60^\circ or 120∘120^\circ.
  4. D.r.'s (2,−3,6)(2, -3, 6) and length 7, so ±(27,−37,67)\displaystyle \pm\left(\tfrac{2}{7}, -\tfrac{3}{7}, \tfrac{6}{7}\right).
  5. (4,−2,4)(4, -2, 4).
  6. It is always −1-1.