Example 2: Direction cosines from the direction ratios
If a line has direction ratios , determine its direction cosines.
Here , , .
Direction cosines: , and similarly , , with one sign for all three. Taking the sign,
The direction cosines are .
Want the reason behind every step, the basics and the checks?
Direction ratios are the direction cosines multiplied by some nonzero number. To undo that, divide each ratio by the length : this scaling, or the same with a minus sign, is the only one that makes the squares add up to 1.
- Given
- Direction ratios , , of a line.
- To find
- Its direction cosines .
- Plan
- (1) Write , , . (2) Use to find . (3) Compute and divide. (4) Decide the sign. (5) Check.
Basics you need
Any three numbers proportional to the direction cosines are direction ratios of the line: , , for some nonzero (Section 11.2). Basics: direction cosines
, because is a unit vector. Basics: Pythagoras in 3D
Reversing a line changes the sign of all three direction cosines, so a line has two sets of direction cosines, and . Lesson: direction cosines and direction ratios
Solution
Write the direction cosines in terms of the ratios
Since are proportional to ,
"Proportional" means each direction cosine is the same multiple of its direction ratio. One unknown number is left to find, and one condition is still unused: .Section 11.2: . Basics: direction cosinesFind from
This is the book's general derivation with numbers in it: gives . The square root of is 3, the length of the vector . The equation has two roots, and both are allowed.(Section 11.2). Basics: length in 3DDivide each ratio by 3
With :
These are the book's three fractions , , , with the root worked out. Each ratio keeps its own sign: dividing by the positive number 3 does not change any sign.Decide the sign
The other root, , gives .
Both sets are direction cosines of the same line: one for each of its two directions. The ratios point one way along the line, and the book takes the sign of that keeps that way, . The question does not fix a direction, so is also a correct set, but is the expected answer."Depending on the desired sign of , either a positive or a negative sign is to be taken for and " (Section 11.2). Basics: reversing a lineCheck
and , the given ratios.
Both properties are needed: the squares must add up to 1 (so they are direction cosines at all), and the three numbers must still be in the given proportion (so they belong to this line).
The direction cosines are (or for the opposite direction of the same line).
(Textbook answer: .)
As decimals, , , , and .
The direction angles are , and . The negative cosines give obtuse angles: the line points away from the positive and -axes.
- Dividing by 9 instead of 3. The divisor is , not .
- Squaring away the signs. inside the root, but the numerators keep their signs: , not .
- Mixing signs from the two roots, for example . All three signs change together, or none does.
- Direction ratios to direction cosines: divide each by .
- The gives the two directions of the same line; the book takes .
- Check: squares add up to 1, and the proportion is unchanged.
Every fact used, and where it comes from
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →