Direction Cosines & Direction Ratios (JEE Foundation)
If a directed line segment OP (passing through Origin O) makes angles α, β, γ with the positive directions of X, Y, and Z axes respectively, then these angles are called Direction Angles, and their cosines:
are called the Direction Cosines (DC's) of the directed line.
1. Fundamental Identity of Direction Cosines
Let P(x, y, z) be a point in space and r = |OP| = √(x2 + y2 + z2). Then:
Squaring and adding:
Since sin2θ = 1 − cos2θ:
sin2α + sin2β + sin2γ = (1 − l2) + (1 − m2) + (1 − n2) = 3 − 1 = 2
2. Direction Ratios (DR's)
Any three numbers a, b, c that are proportional to the direction cosines l, m, n are called Direction Ratios of the line:
Hence, given direction ratios a, b, c:
3. Direction Ratios of a Line Joining Two Points
For points P(x1, y1, z1) and Q(x2, y2, z2):
- Direction ratios: (x2 − x1), (y2 − y1), (z2 − z1)
- Direction cosines:
l = (x2 − x1)/PQ , m = (y2 − y1)/PQ , n = (z2 − z1)/PQwhere PQ = √[ (x2 − x1)2 + (y2 − y1)2 + (z2 − z1)2 ].
4. Angle Between Two Directed Lines in 3D Space
Let θ be the acute angle between two lines with direction cosines (l1, m1, n1) and (l2, m2, n2):
In terms of direction ratios (a1, b1, c1) and (a2, b2, c2):
5. Conditions for Perpendicularity and Parallelism
Perpendicular Lines (θ = 90°)
cos 90° = 0 ⇒ Scalar product of direction vectors is zero:
Parallel Lines (θ = 0° or 180°)
Direction ratios are proportional:
6. Solved Examples for JEE Main
Example 1: If a line makes angles 90°, 60°, and 30° with the positive directions of X, Y, and Z axes respectively, find its direction cosines.
Solution:
- l = cos 90° = 0
- m = cos 60° = 1/2
- n = cos 30° = √3 / 2
Check: l2 + m2 + n2 = 0 + (1/4) + (3/4) = 1 (Verified!).
Example 2: Find the angle between lines whose direction ratios are (2, −1, 2) and (1, 2, 2).
Solution:
a1 a2 + b1 b2 + c1 c2 = (2)(1) + (−1)(2) + (2)(2) = 2 − 2 + 4 = 4
√(a12 + b12 + c12) = √(4 + 1 + 4) = 3
√(a22 + b22 + c22) = √(1 + 4 + 4) = 3
Practice problems
Try each problem yourself first, then open the solution to check your working.
Problem 1. A line makes angles 45° and 60° with the x-axis and y-axis. Find the angle it makes with the z-axis.
Show answer
l2 + m2 + n2 = 1 gives cos245° + cos260° + cos2γ = 1.
1/2 + 1/4 + cos2γ = 1, so cos2γ = 1/4 and cos γ = ±1/2.
Answer: γ = 60° or 120° (the line and its opposite direction).
Problem 2. Find the direction ratios and the direction cosines of the line joining A(2, 3, −1) and B(5, −1, 11), taking the direction from A to B.
Show answer
Direction ratios: (5 − 2, −1 − 3, 11 − (−1)) = (3, −4, 12).
Length AB = √(9 + 16 + 144) = √169 = 13.
Divide each ratio by 13 to get the direction cosines.
Answer: DRs (3, −4, 12); DCs (3/13, −4/13, 12/13).
Problem 3. Find the cosine of the angle between two lines whose direction ratios are (1, 2, 2) and (2, 3, 6).
Show answer
cos θ = (a1a2 + b1b2 + c1c2)/(√(a12 + b12 + c12) · √(a22 + b22 + c22)).
Numerator: 2 + 6 + 12 = 20. Denominator: √9 × √49 = 3 × 7 = 21.
Answer: cos θ = 20/21.
Saved on this device only — no account, no sign-in.