Direction Cosines and Direction Ratios of a Line
Quick answer Every line in space has a direction that can be measured against the three coordinate axes using direction cosines, and expressed more flexibly using direction ratios.
Every line in three-dimensional space has a definite direction, and we describe this direction using two closely related ideas: direction cosines and direction ratios.
If a line makes angles α, β, γ with the positive directions of the x-axis, y-axis and z-axis respectively, then cos α, cos β, cos γ are called the direction cosines (DCs) of the line, usually written l, m, n. A line has two opposite directions, so it has two sets of direction cosines that differ only in sign. For any line, the direction cosines always satisfy the fundamental identity l2 + m2 + n2 = 1.
Numbers a, b, c that are proportional to l, m, n (that is, a = kl, b = km, c = kn for some non-zero constant k) are called the direction ratios (DRs) of the line. Unlike direction cosines, direction ratios are not unique — any non-zero multiple of a valid set of DRs is still a valid set of DRs for the same line. Given DRs a, b, c, the direction cosines are recovered by dividing each by the magnitude √(a2+b2+c2).
If a line passes through two points P(x1, y1, z1) and Q(x2, y2, z2), its direction ratios are simply x2-x1, y2-y1, z2-z1, and its direction cosines are obtained by dividing each of these by the distance PQ.
Worked Example 1. Find the direction cosines of the line joining P(1, 2, 3) and Q(4, 5, 6).
Direction ratios: (4-1, 5-2, 6-3) = (3, 3, 3). Magnitude = √(32+32+32) = √27 = 3√3. So the direction cosines are (3/3√3, 3/3√3, 3/3√3) = (1/√3, 1/√3, 1/√3). Check: (1/√3)2 + (1/√3)2 + (1/√3)2 = 1/3 + 1/3 + 1/3 = 1.
Worked Example 2. A line makes angles 90°, 135°, 45° with the x, y and z axes respectively. Find its direction cosines.
l = cos 90° = 0, m = cos 135° = -1/√2, n = cos 45° = 1/√2. Check: 02 + (-1/√2)2 + (1/√2)2 = 0 + 1/2 + 1/2 = 1.
- Direction cosines l, m, n are the cosines of the angles a line makes with the positive x, y and z axes, and satisfy l² + m² + n² = 1.
- Direction ratios are any numbers proportional to the direction cosines and are not unique.
- For a line through P(x1,y1,z1) and Q(x2,y2,z2), the direction ratios are (x2-x1, y2-y1, z2-z1).
- Dividing a set of direction ratios by their magnitude √(a²+b²+c²) gives the direction cosines.
- Every line has two opposite sets of direction cosines, one for each of its two directions.
