Direction Cosines and Direction Ratios
On this page
Direct answer
Every directed line in space carries three direction cosines l, m, n — the cosines of the angles α, β, γ it makes with the x, y and z axes — and they always obey l² + m² + n² = 1. Direction ratios a, b, c are any proportional triple, so converting to cosines means dividing by ±√(a² + b² + c²), the sign fixing direction. For the line joining (x1, y1, z1) to (x2, y2, z2), the ratios are (x2 − x1, y2 − y1, z2 − z1). Angles between lines collapse to one dot product, cos θ = |l1l2 + m1m2 + n1n2|, with perpendicularity a vanishing sum and parallelism proportional ratios.
What you must remember
- The identity: l² + m² + n² = 1 always; a triple like (1/2, 1/2, 1/2) cannot be a cosine set, while (1/2, 1/2, 1/√2) can — the check is one addition.
- Ratios to cosines: l = ±a/√(a² + b² + c²) and cyclically; ratios themselves satisfy no constraint, so they can be any real triple including zeros.
- Equally inclined lines: l = m = n = ±1/√3, the only way to meet all three axes at the same angle (about 54.7°).
- Angle between lines: cos θ = |a1a2 + b1b2 + c1c2|/√(...)/√(...) computed straight from ratios — normalising first is optional.
- Perpendicular: a1a2 + b1b2 + c1c2 = 0; parallel: ratios proportional.
- Given two angles, find the third: if α = 60° and β = 45°, then n = ±√(1 − 1/4 − 1/2) = ±1/2 — two valid answers, and both belong in the option list only when the line is undirected.
- Line of intersection of two planes: its ratios are the cross product n1 × n2, the bridge between this topic and vector methods.
From ratios to cosines
Take the line through P(2, 3, −1) and Q(4, −2, 1). The direction ratios are Q − P = (2, −5, 2), whose square sum is 4 + 25 + 4 = 33, so the direction cosines are (2/√33, −5/√33, 2/√33) — or their negatives, facing from Q to P. The angle this line makes with the z-axis satisfies cos γ = 2/√33 ≈ 0.348, so γ ≈ 69.6°, and the angles with the x- and z-axes coincide because the first and third ratio entries match — a symmetry worth noticing before computing twice. Now the classic sign question: a line makes 45° with both the x- and y-axes; find its angle with the z-axis. Here l = m = 1/√2, so l² + m² = 1 forces n = 0 and γ = 90° — a unique answer only because the sum saturated. Change the data to 60° and 45° and n = ±1/2 gives two angles, 60° or 120°, and an undirected line legitimately owns both; the examiner's phrasing "directed line" is what collapses the ±.
Where candidates slip
JEE Main tests the identity and the conversion: given ratios (3, −4, 12)? The square sum is 9 + 16 + 144 = 169, a perfect square, so the cosines are (3/13, −4/13, 12/13) — clean numbers are a deliberate design, and failing to simplify √169 to 13 wastes a minute and invites arithmetic drift. The planted distractors are triples like (3/√12, ...) that normalise wrongly, and cosine-looking ratio sets such as (1, 1, √2) that satisfy no constraint at all. JEE Advanced leans on the plane-intersection bridge: direction of the line common to two planes is n1 × n2, then an angle with a third plane follows by the sine formula — a three-step chain where the first step's cross-product signs decide everything. Rehearse the discipline of writing ± deliberately: an undirected line has two cosine sets, negatives of each other, and both give the same angle answers only through the modulus in the dot-product formula. The timeless slip remains applying l² + m² + n² = 1 to ratios — the constraint belongs to cosines alone.
Frequently asked questions
What relation do direction cosines always satisfy?
l² + m² + n² = 1, because the direction unit vector has length one — the same statement as cos²α + cos²β + cos²γ = 1.
How do you convert direction ratios to direction cosines?
Divide each ratio by ±√(a² + b² + c²), choosing the sign to fix the direction of travel.
What are the direction cosines of a line equally inclined to the axes?
(1/√3, 1/√3, 1/√3) or its negative, the angle with each axis being cos⁻¹(1/√3) ≈ 54.7°.
When do two lines become perpendicular?
When a1a2 + b1b2 + c1c2 = 0 for their ratios — the dot product of directions vanishes.
How do you get the direction of the line where two planes intersect?
Take the cross product n1 × n2 of the two normals; the intersection line runs perpendicular to both.