NDA Maths · 3D Geometry
Direction Cosines & Direction Ratios
The numbers that capture a line's direction in space — direction cosines are the unit version (squaring to 1), direction ratios are any proportional set.
Why this matters
Twenty-four PYQs across 2017–2026 — the engine room of the chapter. Almost every line, plane, and angle question reduces to direction cosines and ratios. The identity l² + m² + n² = 1 and the angle-between-lines formula together unlock the bulk of the bank. Difficulty here runs a touch higher (25% HARD), so the seven concepts below earn their keep.
Concept 1 of 7: Direction ratios, direction cosines, and the unit identity
Definition
If a line has direction ratios , its direction cosines are obtained by dividing by the magnitude: , and similarly for . They are the cosines of the angles the line makes with the positive -, -, -axes. The defining identity is below.
Direction cosines square-sum to 1
- direction cosines
- angles with the x, y, z axes
Diagram · direction cosines (drag to rotate)
l, m, n are the cosines of the angles r makes with the x-, y-, z-axes — and the components of the unit vector along r. So l² + m² + n² = 1.00 = 1, always.
Worked example
Practice this conceptself-check · 4 quick reps
The same idea in a real exam question:
Example 1 · 3D Geometry · Direction Cosines and Ratios
Direction RATIOS are not unique; direction COSINES (almost) are
You must NORMALISE direction ratios into cosines — and the identity is = 1, not = 0
Concept 2 of 7: Direction cosines of the axes and special lines
Definition
A line parallel to an axis has that axis's direction cosines; a line perpendicular to an axis has a zero in the corresponding component. A line in (or parallel to) the XY-plane is perpendicular to the z-axis, so .
| Line | Direction cosines | Note |
|---|---|---|
| x-axis | makes 0° with x, 90° with y and z | |
| y-axis | DCs ; DRs e.g. | |
| z-axis | perpendicular to the whole XY-plane | |
| ⊥ to z-axis | , e.g. | lies in / parallel to the XY-plane A line perpendicular to the z-axis just needs its z-component zero — the x, y parts are free. |
Practice this conceptself-check · 4 quick reps
The same idea in a real exam question:
Example 2 · 3D Geometry · Direction Cosines and Ratios
Concept 3 of 7: Reading direction ratios off a line
Definition
Put the line into true symmetric form (each numerator , coefficient 1). The denominators are the direction ratios. A coordinates-of-a-point form gives direction ratios directly (the coefficients of the parameter). Normalise to get direction cosines.
Worked example
Practice this conceptself-check · 4 quick reps
The same idea in a real exam question:
Example 3 · 3D Geometry · Direction Cosines and Ratios
Mind the coefficient and the sign before reading denominators
Concept 4 of 7: Angle between two lines
Definition
For lines with direction ratios and , the acute angle between them satisfies the formula below. With direction cosines the denominator is 1, so .
Angle between two lines (direction ratios)
Diagram · angle between two lines (drag to rotate)
d₁ = ⟨2, 2, 1⟩, d₂ = ⟨2, −1, 2⟩ · cos θ = |d₁·d₂| / (|d₁||d₂|) = 4/9 · θ ≈ 64°.
Worked example
Practice this conceptself-check · 4 quick reps
The same idea in a real exam question:
Example 4 · 3D Geometry · Direction Cosines and Ratios
For two LINES use their DIRECTIONS, not normals; divide by BOTH magnitudes
Concept 5 of 7: Perpendicular and parallel conditions
Definition
Lines and are:
- Parallel iff .
- Perpendicular iff .
A line perpendicular to both has direction ratios equal to their cross product .
- Line of intersection of two planes: it lies in both planes, so it is perpendicular to BOTH normals — its direction ratios are (cross product of the plane normals).
Perpendicularity condition
Worked example
Practice this conceptself-check · 5 quick reps
The same idea in a real exam question:
Example 5 · 3D Geometry · Direction Cosines and Ratios
Concept 6 of 7: Projection of a segment on an axis or line
Definition
Projection of on the x-axis is (and similarly for y, z). Projection on a line with direction cosines is .
Projection of AB on a line of direction cosines ⟨l, m, n⟩
Worked example
Practice this conceptself-check · 4 quick reps
The same idea in a real exam question:
Example 6 · 3D Geometry · Direction Cosines and Ratios
Concept 7 of 7: Direction-angle identities
Definition
From with etc.:
- (subtract the cosine identity from 3).
- (use ).
- Product form: .
Core identities
Worked example
Practice this conceptself-check · 4 quick reps
The same idea in a real exam question:
Example 7 · 3D Geometry · Direction Cosines and Ratios
A line cannot make equal acute angles with all three axes unless it's the diagonal
Summary — formulas & gotchas at a glance
A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.
Formulas (5)
- Direction ratios, direction cosines, and the unit identity
Direction cosines square-sum to 1
- Angle between two lines
Angle between two lines (direction ratios)
- Perpendicular and parallel conditions
Perpendicularity condition
- Projection of a segment on an axis or line
Projection of AB on a line of direction cosines ⟨l, m, n⟩
- Direction-angle identities
Core identities
Reference tables (1)
Direction cosines of the axes and special lines4 rows
| Line | Direction cosines | Note |
|---|---|---|
| x-axis | makes 0° with x, 90° with y and z | |
| y-axis | DCs ; DRs e.g. | |
| z-axis | perpendicular to the whole XY-plane | |
| ⊥ to z-axis | , e.g. | lies in / parallel to the XY-plane A line perpendicular to the z-axis just needs its z-component zero — the x, y parts are free. |
Watch out for (5)
- Direction RATIOS are not unique; direction COSINES (almost) are→ Direction ratios, direction cosines, and the unit identity
- You must NORMALISE direction ratios into cosines — and the identity is = 1, not = 0→ Direction ratios, direction cosines, and the unit identity
- Mind the coefficient and the sign before reading denominators→ Reading direction ratios off a line
- For two LINES use their DIRECTIONS, not normals; divide by BOTH magnitudes→ Angle between two lines
- A line cannot make equal acute angles with all three axes unless it's the diagonal→ Direction-angle identities
Test yourself on 3D Geometry
20 past NDA questions from this chapter, timed at 25 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.