Q1. Find the direction cosines of a line with direction ratios (1, 2, 2).
Magnitude = √(1²+2²+2²) = √9 = 3
Direction cosines = (1/3, 2/3, 2/3)
Check: (1/3)² + (2/3)² + (2/3)² = 1/9+4/9+4/9 = 1 ✓
Every line in space has a direction you can measure with three numbers. Compute direction cosines and the angle between two lines instantly.
Enter the direction ratios of two lines to find the angle between them.
If the result is 90°, the lines are perpendicular — that happens exactly when a₁a₂+b₁b₂+c₁c₂ = 0.
Q1. Find the direction cosines of a line with direction ratios (1, 2, 2).
Magnitude = √(1²+2²+2²) = √9 = 3
Direction cosines = (1/3, 2/3, 2/3)
Check: (1/3)² + (2/3)² + (2/3)² = 1/9+4/9+4/9 = 1 ✓
| Quantity | Formula |
|---|---|
| Direction cosines relation | l² + m² + n² = 1 |
| Angle between two lines | cosθ = Σaᵢaⱼ / (|d₁||d₂|) |
| Perpendicular lines | a₁a₂+b₁b₂+c₁c₂ = 0 |
The cosines of the angles a line makes with the x, y and z axes; they satisfy l² + m² + n² = 1.
Use cosθ = (a₁a₂+b₁b₂+c₁c₂)/(|d₁||d₂|), from the direction ratios of each line.
The dot product of their direction ratios is zero: a₁a₂+b₁b₂+c₁c₂ = 0.
Hi! Found an error or have a suggestion? Let us know and we'll fix it.
Thanks! Your feedback has been sent. We'll look into it.