Three Dimensional Geometry
Direction cosines and direction ratios, vector and Cartesian equations of a line, angle between two lines, and shortest distance between skew and parallel lines — NCERT Class 12 Maths Ch 11
Board Exam Tips
- →Before reading direction ratios, bring each line to the standard form (x − x₁)/a = (y − y₁)/b = (z − z₁)/c. A term like (1 − x)/3 means the direction ratio is −3.
- →Check direction cosines with l² + m² + n² = 1. If the sum is not 1, you forgot to divide by √(a² + b² + c²).
- →For the angle between two lines, use only the direction vectors b₁ and b₂, not the points a₁ and a₂.
- →For shortest distance, first check whether the lines are parallel (direction ratios proportional). Parallel lines need a different formula, because b₁ × b₂ = 0.
- →Lay out the cross-product determinant neatly. Arithmetic slips in the cross product are easy to make, so check each component.
- →If the shortest distance comes out as 0, the lines intersect. Say so in your answer.
📐 Formulas(17)
Direction Cosines
| Symbol | Meaning |
|---|---|
| Angles with the positive x, y and z-axes | |
| Direction cosines (pure numbers) |
Identity for Direction Cosines
Direction Cosines from Direction Ratios★ Board fav
| Symbol | Meaning |
|---|---|
| Direction ratios of the line |
Direction Ratios of a Line Through Two Points
Direction Cosines of a Line Through Two Points
| Symbol | Meaning |
|---|---|
| Distance between the two points (units) |
Collinearity of Three Points
Vector Equation of a Line
| Symbol | Meaning |
|---|---|
| Position vector of a known point on the line | |
| Vector parallel to the line (its components are direction ratios) | |
| Real parameter |
Cartesian Equation of a Line★ Board fav
General Point on a Line
Line Through Two Points
Angle Between Two Lines (Vector Form)
Angle Between Two Lines (Direction Ratios)★ Board fav
Angle Between Two Lines (Direction Cosines)
Perpendicular and Parallel Lines★ Board fav
Shortest Distance Between Skew Lines (Vector Form)★ Board fav
| Symbol | Meaning |
|---|---|
| Position vectors of known points on the two lines | |
| Direction vectors of the two lines |
Shortest Distance (Cartesian Form)
Distance Between Parallel Lines★ Board fav
✏️ Solved Examples
A line has direction ratios 2, −3, 6. Find its direction cosines.
Find √(a² + b² + c²).
Find the angle between the lines r = (3i + j − k) + λ(2i + 2j + k) and r = (i − 2j + 4k) + μ(4i + j + 8k).
Only the direction vectors matter.
Find the shortest distance between the lines r = (i + 2j + 3k) + λ(i + 2j + 2k) and r = (2i − j + k) + μ(i + j).
Read off the points and direction vectors. The direction ratios 1, 2, 2 and 1, 1, 0 are not proportional, so the lines are not parallel.
Find the distance between the lines r = (i + j) + λ(2i − j + 2k) and r = (2i + j − k) + μ(4i − 2j + 4k).
The direction vectors are 2i − j + 2k and 4i − 2j + 4k = 2(2i − j + 2k). They are proportional, so the lines are PARALLEL and the skew-line formula fails (b₁ × b₂ = 0).
⚠️ Traps & Common Mistakes
- 1
Reading the direction ratio of (1 − x)/3 as 3
✓Rewrite (1 − x)/3 as (x − 1)/(−3), so the direction ratio is −3. Similarly, (2z − 1)/6 becomes (z − 1/2)/3.
- 2
Using a₁ and a₂ (the points) in the angle formula
✓The angle between lines depends only on their directions. Use b₁ and b₂ alone.
- 3
Applying the skew-line formula to parallel lines
✓For parallel lines b₁ × b₂ = 0, so that formula divides by zero. Use d = |b × (a₂ − a₁)|/|b|.
- 4
Giving a negative shortest distance or an obtuse angle
✓Distance is a magnitude, so take the modulus. The angle between lines is taken as acute, so use |cos θ|.
- 5
Calling direction ratios direction cosines
✓Direction cosines must satisfy l² + m² + n² = 1. If they do not, divide by √(a² + b² + c²).
- 6
Sign errors in the middle term of the cross product
✓In the determinant expansion the ĵ term carries a minus sign: (b₁c₂ − b₂c₁)î − (a₁c₂ − a₂c₁)ĵ + (a₁b₂ − a₂b₁)k̂.
🎯 Practice Yourself
- Q1
Find the direction cosines of the line joining (2, −1, 3) and (4, 1, 4).
- Q2
Find the vector and Cartesian equations of the line through (3, 0, −2) parallel to 2i − j + 5k.
- Q3
Find k if the lines (x − 1)/2 = (y + 1)/k = (z − 2)/3 and (x + 3)/1 = (y − 2)/2 = (z + 1)/(−4) are perpendicular.
- Q4
Write the line (2 − x)/3 = (y + 1)/4 = (2z − 1)/6 in vector form.
- Q5
Find the shortest distance between the lines (x − 1)/1 = y/2 = (z + 1)/2 and (x − 2)/2 = (y − 1)/1 = (z − 3)/(−2).
- Q6
Show that A(1, 2, 3), B(3, 5, 6) and C(7, 11, 12) are collinear.
📝 Notes
Three Dimensional Geometry
Chapter 11 describes a line in space by a point on it and a direction. Every formula here uses those two pieces: direction cosines or direction ratios for the direction, and a position vector or coordinates for the point.
Direction first
- Direction cosines (l, m, n) are the cosines of the angles with the axes, and l² + m² + n² = 1.
- Direction ratios (a, b, c) are any multiples of l, m, n. To get the cosines, divide by √(a² + b² + c²).
- For the line through two points, the direction ratios are the differences of the coordinates.
Equations of a line
The vector form r = a + λb and the Cartesian form (x − x₁)/a = (y − y₁)/b = (z − z₁)/c describe the same line. Moving between them is a common short question: the point gives a, and the denominators give b. Always rewrite the equation so that x, y and z have coefficient +1 before reading anything off.
Angle and distance between lines
- Angle: use only the direction vectors, cos θ = |b₁ · b₂|/(|b₁||b₂|). The lines are perpendicular when the dot product is 0 and parallel when the direction ratios are proportional.
- Shortest distance: first check for parallel lines.
- Not parallel: d = |(b₁ × b₂) · (a₂ − a₁)|/|b₁ × b₂|. If d = 0, the lines intersect. Otherwise they are skew.
- Parallel: d = |b × (a₂ − a₁)|/|b|.
Scope reminder
In the rationalised NCERT textbook this chapter covers lines only. Equations of planes, and angles and distances involving planes, are not part of the current chapter.
🔗 Related chapters
📖 Related study tips
Deep-dive articles to complement this chapter