Q.Find the direction cosines of the line passing through the two points and .
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →The direction cosines of a line are the cosines of the angles it makes with the coordinate axes. For the line through and , the direction ratios are , and the direction cosines are .
Why Direction Cosines? The Core Idea
A line in 3D space doesn't have a unique "starting point" — it's defined by its direction. Direction cosines capture that direction in a pure, unit-free way. They are the cosines of the three angles the line makes with the positive , , and axes. Because they come from a unit vector along the line, they always satisfy the beautiful relation:
where are the direction cosines. This is the Pythagorean theorem in 3D for a vector of length 1.
The trick: we first find the direction ratios (any numbers proportional to the direction cosines) by subtracting coordinates. Then we normalise them to get the actual cosines.
Step-by-Step Solution
1. Find the direction ratios of the line.
The direction ratios (DRs) are simply the differences in the coordinates of the two given points. If a line passes through and , the DRs are .
Here, and .
So:
- -difference:
- -difference:
- -difference:
Thus the direction ratios are .
A common mistake is to subtract in the wrong order or to forget the sign when subtracting a negative. Always do consistently. If you did , you'd get , which is also valid — it just points in the opposite direction. The cosines would all flip sign, but the line is the same.
2. Compute the magnitude (length) of this direction vector. …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.