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
Intuition
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
- Magnitude: .
- Divide each ratio by 3: .
- Check: . ✓
Practice this conceptself-check · 4 quick reps
Try it yourself
Practice — Level 1 (4 reps)
Quick reps to lock in the method. Try each, then check.
- 1.Sum of squares of any line's direction cosines?
- 2.Direction cosines of DRs ?
- 3.Can be direction ratios of the y-axis?
- 4.If , find (positive).
From the bank · past-year question
[Q63 · Apr · 2020]
Direction RATIOS are not unique; direction COSINES (almost) are
Concept 2 of 7
Direction cosines of the axes and special lines
Intuition
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
Try it yourself
Practice — Level 1 (4 reps)
Quick reps to lock in the method. Try each, then check.
- 1.Direction cosines of the x-axis?
- 2.A line with DCs is which axis?
- 3.DRs of a line perpendicular to the z-axis must have which component zero?
- 4.Angle the y-axis makes with the z-axis?
From the bank · past-year question
[Q65 · Apr · 2019]
Concept 3 of 7
Reading direction ratios off a line
Intuition
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
- Rewrite each piece as : set each equal to .
- ; ; .
- Direction ratios: , or clearing fractions .
- Magnitude → direction cosines .
Practice this conceptself-check · 4 quick reps
Try it yourself
Practice — Level 1 (4 reps)
Quick reps to lock in the method. Try each, then check.
- 1.DRs of ?
- 2.DRs from point ?
- 3.Rewrite as a denominator form: coefficient of z?
- 4.DCs of DRs ?
From the bank · past-year question
[Q56 · Sep · 2019]
Mind the coefficient and the sign before reading denominators
Concept 4 of 7
Angle between two lines
Intuition
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
- Dot product: .
- Magnitudes: and .
- .
- So .
Practice this conceptself-check · 4 quick reps
Try it yourself
Practice — Level 1 (4 reps)
Quick reps to lock in the method. Try each, then check.
- 1.for and ?
- 2.Angle between identical direction ratios?
- 3.Lines are perpendicular when the dot product of DRs is?
- 4.for ,?
From the bank · past-year question
[Q66 · Apr · 2021]
Concept 5 of 7
Perpendicular and parallel conditions
Intuition
Definition
Lines and are:
- Parallel iff .
- Perpendicular iff .
A line perpendicular to both has direction ratios equal to their cross product .
Perpendicularity condition
Worked example
- Take the cross product .
- .
- Direction ratios: .
- Check perpendicular to the first: ✓.
Practice this conceptself-check · 4 quick reps
Try it yourself
Practice — Level 1 (4 reps)
Quick reps to lock in the method. Try each, then check.
- 1.Are and parallel?
- 2.Are and perpendicular?
- 3.Perpendicular-to-both is found via which operation?
- 4.Find k if .
From the bank · past-year question
[Q65 · Apr · 2017]
Concept 6 of 7
Projection of a segment on an axis or line
Intuition
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
- Projection on the x-axis = difference of x-coordinates.
- .
Practice this conceptself-check · 4 quick reps
Try it yourself
Practice — Level 1 (4 reps)
Quick reps to lock in the method. Try each, then check.
- 1.Projection of segment – on the x-axis?
- 2.Projection on the z-axis of –?
- 3.Projection on the y-axis equals which coordinate difference?
- 4.If a segment is perpendicular to a line, its projection on the line is?
From the bank · past-year question
[Q68 · Apr · 2021]
Concept 7 of 7
Direction-angle identities
Intuition
Definition
From with etc.:
- (subtract the cosine identity from 3).
- (use ).
- Product form: .
Core identities
Worked example
- Each .
- Sum: .
- The bracket is the direction-cosine identity .
- So the sum .
Practice this conceptself-check · 4 quick reps
Try it yourself
Practice — Level 1 (4 reps)
Quick reps to lock in the method. Try each, then check.
- 1.
- 2.
- 3.
- 4.Can a line make with all three axes?
From the bank · past-year question
[Q61 · Apr · 2025]
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 (3)
- Direction RATIOS are not unique; direction COSINES (almost) are→ Direction ratios, direction cosines, and the unit identity
- Mind the coefficient and the sign before reading denominators→ Reading direction ratios off a line
- A line cannot make equal acute angles with all three axes unless it's the diagonal→ Direction-angle identities
Mastery check — 5 interleaved questions
Try each one before clicking. Questions are interleaved across the concepts above, not grouped — interleaving sharpens transfer.
[Q64 · Sep · 2022]
[Q61 · Apr · 2017]
[Q64 · Apr · 2025]
[Q65 · Sep · 2021]
[Q63 · Apr · 2023]
Drill every past-year question on this subtopic
24 questions from the bank — paginated, with cart and Word-export support.