notesonly.in

One notebook for every subject — open it anywhere.

Log in

Direction Ratios and Direction Cosines: Notes and FAQs

To describe a line's direction in 3D, we use the angles it makes with the x, y and z axes. If these angles are α, β, γ, then their cosines — cos α, cos β, cos γ, usually called l, m, n — are the direction cosines of the line.

Direction cosines always satisfy l² + m² + n² = 1, which makes them a unit-length description of direction. Direction ratios are any three numbers proportional to the direction cosines — easier to read off from two points, but not normalized.

Key Concepts

  • Direction cosines: l = cos α, m = cos β, n = cos γ, where α, β, γ are the angles the line makes with the positive x, y, z axes.
  • Fundamental identity: l² + m² + n² = 1. Every line has exactly two sets of direction cosines, one for each opposite direction, differing in sign.
  • Direction ratios: any triple (a, b, c) proportional to (l, m, n). For a line through (x1, y1, z1) and (x2, y2, z2), convenient direction ratios are (x2 − x1, y2 − y1, z2 − z1).
  • Converting: if (a, b, c) are direction ratios, the direction cosines are (a, b, c) divided by √(a² + b² + c²).
  • Each direction cosine lies between −1 and 1; a number outside this range can never be a direction cosine.
  • The direction cosines are exactly the components of the unit vector along the line.

Formulas

  • l² + m² + n² = 1.
  • Direction cosines from direction ratios (a, b, c): l = ±a/√(a² + b² + c²), and similarly for m and n, with one consistent choice of sign.
  • Angle between two lines with direction cosines (l1, m1, n1) and (l2, m2, n2): cos θ = l1l2 + m1m2 + n1n2.
  • A line parallel to a coordinate axis makes a 0° angle with it, so that direction cosine is ±1 and the other two are 0.

Worked Example

Find the direction cosines of the line through (1, 2, 3) and (4, 6, 8).

  1. Direction ratios: (4 − 1, 6 − 2, 8 − 3) = (3, 4, 5).
  2. Length: √(9 + 16 + 25) = √50 = 5√2 ≈ 7.07.
  3. Direction cosines: l = 3/(5√2), m = 4/(5√2), n = 5/(5√2) = 1/√2.
  4. Check: l² + m² + n² = (9 + 16 + 25)/50 = 50/50 = 1. Correct.
  5. Numerically: l ≈ 0.424, m ≈ 0.566, n ≈ 0.707, so the line makes angles of about 64.9°, 55.5° and 45° with the x, y and z axes.

Common Misconceptions

  • Direction ratios must be unit length. Only direction cosines are normalized; direction ratios can be any proportional triple, like (3, 4, 5).
  • l² + m² + n² = 1 holds for direction ratios. It holds only for direction cosines. Always normalize first.
  • Direction cosines are unique. A line has two opposite directions, so (l, m, n) and (−l, −m, −n) are both valid.

Real-World Applications

  • 3D computer graphics: ray directions and camera orientations are stored as direction cosines.
  • Navigation and aerospace: describing orientations of aircraft and satellites.
  • Angle between two lines in space via cos θ = l1l2 + m1m2 + n1n2.
  • Crystallography: Miller indices are closely related to direction ratios.

Direction cosines (l, m, n) are the cosines of a line's angles with the axes and always satisfy l² + m² + n² = 1; direction ratios are any proportional triple you can read straight off two points. Normalize the ratios to get the cosines, and the angles follow.