girgit.org

Three Dimensional Geometry

Which way does a line point? Direction cosines

The big ideaThe direction of a line in space is fixed by the three angles it makes with the axes, and the cosines of those angles, \( l, m, n \), always satisfy \( l^2 + m^2 + n^2 = 1 \).

In simple words

Stand in the corner of your room. Three edges meet there: one along the floor to your left, one along the floor to your right, and one going straight up. Now point a stick into the room. To tell a friend exactly which way it points, say how much it leans away from each of the three edges. Those three leans are not free: if the stick leans close to one edge, it must lean far from the other two.

Where this chapter starts

In Class 11 you gave every point in space an address \( (x, y, z) \), using the corner of a room as the origin and its three edges as the axes. In the last chapter you met vectors, with their dot and cross products. This chapter joins the two: it uses vectors to describe lines in space. Vector methods keep the work short and tidy, and each result is also written in the older Cartesian form, which is often easier to picture.

Direction angles and direction cosines

Take a directed line L through the origin, a line with an arrow on it showing which way counts as forward. It makes three angles with the positive directions of the axes:

  • \( \alpha \) (alpha) with the x-axis,
  • \( \beta \) (beta) with the y-axis,
  • \( \gamma \) (gamma) with the z-axis.

These are the direction angles. Their cosines, \( \cos\alpha, \cos\beta, \cos\gamma \), are the direction cosines (d.c.'s) of L, written \( l, m, n \):

\[ l = \cos\alpha, \quad m = \cos\beta, \quad n = \cos\gamma \]

Each angle lies between \( 0^\circ \) and \( 180^\circ \), so each direction cosine lies between −1 and 1.

A line has two ways to point

A line with no arrow can be followed in two opposite directions. Flip the arrow and each direction angle becomes its supplement: \( \alpha \) becomes \( 180^\circ - \alpha \), and so on. Since \( \cos(180^\circ - \alpha) = -\cos\alpha \), all three direction cosines change sign. So an undirected line has two sets, \( l, m, n \) and \( -l, -m, -n \). To get one definite set, choose a direction first.

If the line does not pass through the origin, draw a line through the origin parallel to it and use that one. Parallel lines have the same direction cosines, because they make the same angles with the axes.

Why \( l^2 + m^2 + n^2 = 1 \)

Take a point \( P(x, y, z) \) on L at distance r from O. The segment OP makes angle \( \alpha \) with the x-axis, so its shadow on that axis is \( x = r\cos\alpha = rl \). In the same way \( y = rm \) and \( z = rn \). The distance formula says \( x^2 + y^2 + z^2 = r^2 \), so

\[ r^2 l^2 + r^2 m^2 + r^2 n^2 = r^2 \quad \Rightarrow \quad l^2 + m^2 + n^2 = 1 \]

In vector words: \( l\hat{i} + m\hat{j} + n\hat{k} \) is the unit vector along the line, and a unit vector has length 1.

Try it: swing the arrow with the two angle sliders and watch the third angle fix itself, and watch what happens when you ask for too much.

Guess first: 30° and 30°

Can a line make \( 30^\circ \) with the x-axis and \( 30^\circ \) with the y-axis? Guess before you open it.

See what happens
No. \( \cos^2 30^\circ + \cos^2 30^\circ = \frac{3}{4} + \frac{3}{4} = \frac{3}{2} \), already more than 1, with nothing left for \( n^2 \). The x-axis and y-axis are \( 90^\circ \) apart, and a line cannot hug both at once. Even \( 45^\circ \) to all three axes is impossible: \( 3 \times \frac{1}{2} = \frac{3}{2} \). A line equally tilted to all three edges of a corner, like the long diagonal of a cube, has \( l = m = n = \frac{1}{\sqrt{3}} \), which is about \( 54.7^\circ \) to each axis.

Worked examples

Worked example 1

A line makes \( 60^\circ, 45^\circ, 60^\circ \) with the x, y and z-axes. Find its direction cosines and check them.

  1. \( l = \cos 60^\circ = \frac{1}{2} \), \( m = \cos 45^\circ = \frac{1}{\sqrt{2}} \), \( n = \cos 60^\circ = \frac{1}{2} \).
  2. Check: \( \frac{1}{4} + \frac{1}{2} + \frac{1}{4} = 1 \). Good.

Worked example 2: the missing angle

A line makes \( 45^\circ \) with the x-axis and \( 60^\circ \) with the y-axis. What angle does it make with the z-axis?

  1. \( n^2 = 1 - \cos^2 45^\circ - \cos^2 60^\circ = 1 - \frac{1}{2} - \frac{1}{4} = \frac{1}{4} \).
  2. \( n = \pm\frac{1}{2} \), so \( \gamma = 60^\circ \) or \( 120^\circ \): the two answers are the line pointing up or down.

Try it. What are the direction cosines of the y-axis?

Answer
The y-axis makes \( 90^\circ, 0^\circ, 90^\circ \) with the axes, so its d.c.'s are \( 0, 1, 0 \). Likewise the x-axis has \( 1, 0, 0 \) and the z-axis \( 0, 0, 1 \).

Don't mix these up

  • \( l + m + n \) is not 1. It is the squares that add to 1: for the cube diagonal, \( l + m + n = \sqrt{3} \).
  • The angles \( \alpha, \beta, \gamma \) do not add to anything fixed. For the cube diagonal they are each about \( 54.7^\circ \), adding to about \( 164^\circ \).

Words to know

Directed line
A line with a chosen forward direction, like a road with a one-way arrow.
Direction angles
The angles \( \alpha, \beta, \gamma \) a directed line makes with the positive x, y and z-axes.
Direction cosines
\( l = \cos\alpha, m = \cos\beta, n = \cos\gamma \); they fix which way the line points.
Supplement
What an angle needs to make \( 180^\circ \): the supplement of \( 60^\circ \) is \( 120^\circ \).
Unit vector
A vector of length 1; \( l\hat{i} + m\hat{j} + n\hat{k} \) is one.

Which set can be the direction cosines of a line?

  1. \( \frac{1}{2}, \frac{1}{2}, \frac{1}{2} \)
  2. \( \frac{2}{3}, -\frac{1}{3}, \frac{2}{3} \)
  3. \( \frac{1}{3}, \frac{1}{3}, \frac{1}{3} \)

A directed line has d.c.'s \( l, m, n \). You reverse its arrow. What are the new d.c.'s?

  1. \( l, m, n \)
  2. \( -l, -m, -n \)
  3. \( m, n, l \)

A line makes \( 90^\circ \) with the z-axis. What does that tell you?

  1. It is parallel to the XY-plane
  2. It is along the z-axis
  3. It must be the x-axis