Three Dimensional GeometryDirection Cosines and Direction Ratios of a Line
In the Vector Algebra chapter, a vector that makes angles , and with the positive x-, y- and z-axes had direction cosines , and . A line borrows exactly the same idea. Take a line through the origin O and give it a direction, from O towards a point P on it. The angles that this directed line OP makes with the positive directions of the three axes are its direction angles, and their cosines are its direction cosines.
The dial below is a sphere of radius 1 centred at O. Drag P anywhere on the sphere (drag outside the sphere to turn the picture). The readout gives the three angles, their cosines , , , and a bar built from , and . Complete all three missions, and keep an eye on the bar.
Wherever you dragged P, the bar was exactly full: never a gap, never an overflow. That is the one rule every set of direction cosines obeys. Let us see why.
l, m and n
We name the direction cosines of a directed line , and , where , , are its angles with the positive x-, y- and z-axes (Fig. 11.1 in your book).
Why must be 1? On the dial, OP = 1. Drop a perpendicular from P to the x-axis. It makes a right triangle with hypotenuse OP and the angle at O, so the x-coordinate of P is
So P is the point , and its distance from O is 1. By the distance formula,
For every line, .
Two things to remember
A line has two sets of direction cosines. A line has no built-in direction. Reverse it, and the angles become , , , so every cosine changes sign. The reversed line has direction cosines . To get one definite set, you must first choose a direction along the line.
A line that misses the origin has the same direction cosines as the parallel line through O.
Direction Ratios
Direction cosines are often awkward numbers like . Any three numbers proportional to them describe the same direction just as well. If , and for some non-zero number , then , , are called direction ratios of the line. The starting position of the dial, P with direction cosines , has direction ratios 2, −1, 2, and also 4, −2, 4, and −6, 3, −6, and so on.
So a line has infinitely many sets of direction ratios, but only two sets of direction cosines. To get from direction ratios back to direction cosines, call the common ratio :
Putting these into gives , so
If are direction ratios of a line, its direction cosines are
with the same sign taken in all three, according to the direction chosen on the line.
Tip
Direction ratios can be any proportional set, so they are never "wrong" just because they are big. Direction cosines are fixed (up to the ± sign), and they must pass the test .
Example 1 : If a line makes angles 90°, 60° and 30° with the positive directions of the x-, y- and z-axes respectively, find its direction cosines.
Solution : The direction cosines are the cosines of the three angles:
So the direction cosines are . Check: ✓.
Example 2 : If a line has the direction ratios 2, −1, −2, determine its direction cosines.
Solution : First the length:
So the direction cosines are
Direction cosines of a line passing through two points
Two points fix a line, so we should be able to read its direction cosines straight off the two points. Let the line pass through and , and let be the direction cosines of PQ, which makes angles with the axes.
Drop perpendiculars PR and QS to the XY-plane, and draw PN parallel to RS, meeting QS at N. Then NQ is parallel to the z-axis, so the angle at Q in the triangle PNQ is .
Fig. 11.2 — P and Q with the right triangle PNQ. Drag the figure sideways to turn it.
In the right triangle PNQ, the side NQ is the rise in height, , and the hypotenuse is PQ. So is NQ divided by
That gives , and the same argument with the other two axes gives and .
The direction cosines of the line segment joining and are
and are direction ratios of the line PQ.
Example 3 : Find the direction cosines of the line passing through the two points (−2, 4, −5) and (1, 2, 3).
Solution : Take P(−2, 4, −5) and Q(1, 2, 3). The changes in the coordinates from P to Q are
So
Example 4 : Find the direction cosines of x, y and z-axis.
Solution : The x-axis makes angles 0°, 90° and 90° with the x-, y- and z-axes. So its direction cosines are , that is,
In the same way, the y-axis has direction cosines
Example 5 : Show that the points A(2, 3, −4), B(1, −2, 3) and C(3, 8, −11) are collinear.
Solution : Going from A to B, the coordinates change by
Compare the two sets: , and . So the direction ratios of AB and BC are
But AB and BC also share the point B, and two parallel lines through one point are the same line. Hence A, B and C lie on one line: they are
Speed Round: Direction Cosines, or Not?
Two kinds of slide are mixed below. Some give you direction ratios and ask for the direction cosines; the others ask whether a triple can be direction cosines at all. The test is always .
Get five right to move on.