Q.If a line has direction ratios 2,−1,−2, determine its direction cosines.
Concept understanding — Direction Cosines Properties
Direction Cosines and Their Properties
To describe which way a line points in 3D — ignoring its length — we give the angles it makes with the three coordinate axes. Call them α,β,γ (with the x-, y-, z-axis). Their cosines
l=cosα,m=cosβ,n=cosγ
are the direction cosines of the line.
Direction cosines are the cosines of the angles, not the angles themselves — a common slip.
For a point P(x,y,z) on a line through the origin at distance r=x2+y2+z2, right-triangle trigonometry gives
l=rx,m=ry,n=rz.
Property 1 — the squares sum to 1
l2+m2+n2=r2x2+y2+z2=r2r2=1.
This is the signature of direction cosines: any triple with l2+m2+n2=1 is the set of direction cosines of some line.
It is not l+m+n=1. Only the sum of squares equals 1.
Property 2 — they are a unit vector
Dividing OP=(x,y,z) by its length gives the unit vector u^=(l,m,n). So direction cosines are literally the components of a unit vector along the line — which is exactly why their squares sum to 1.
Property 3 — fixed up to sign
Reversing the line flips all three signs: a line has two sets, (l,m,n) and (−l,−m,−n).
Direction ratios
Any numbers (a,b,c) proportional to (l,m,n) are direction ratios. They are easier to read off, and you recover the cosines by normalising:
l=a2+b2+c2a,m=a2+b2+c2b,n=a2+b2+c2c
Quick use. If a line makes 60∘ with the x-axis and 45∘ with the y-axis, then l=21, m=21, and l2+m2+n2=1 gives n2=41, so γ=60∘ or 120∘.
Direction cosines and the identity l² + m² + n² = 1 are introduced at the very start of the NCERT Class 12 Three Dimensional Geometry chapter and are almost certain to appear in CBSE boards and JEE Main. "Direction cosines and direction ratios class 12 formula" is one of the most searched topics in this chapter, since nearly every later 3D geometry question relies on this identity.
The key idea is that direction cosines are the direction ratios normalized by the length of the direction vector.
Step 1: The direction ratios are a=2, b=−1, c=−2.
Step 2: Compute the magnitude:
a2+b2+c2=22+(−1)2+(−2)2=4+1+4=9=3.
Step 3: Divide each direction ratio by this magnitude to get the direction cosines:
l=32,m=3−1,n=3−2.
The direction cosines are (32,−31,−32).
Direction cosines are the direction ratios normalized by the magnitude of the vector. For direction ratios 2,−1,−2, the magnitude is 3, so the direction cosines are (32,−31,−32).
Why This Works: Direction Ratios vs. Direction Cosines
Direction ratios are any three numbers proportional to the direction cosines. They tell you the relative orientation of a line, but not the actual unit vector. Direction cosines, on the other hand, are the cosines of the angles the line makes with the coordinate axes — and they always satisfy l2+m2+n2=1.
So if you have direction ratios (a,b,c), the actual direction cosines are simply these numbers divided by the length of the vector (a,b,c). That length is a2+b2+c2.
Think of direction ratios as an un-normalized direction vector. Dividing by its magnitude gives you the unit vector, whose components are exactly the direction cosines.
Step-by-Step Solution
-
Identify the direction ratios.
The given direction ratios are a=2, b=−1, c=−2.
-
Compute the magnitude (norm) of this vector.
The magnitude is:
a2+b2+c2=22+(−1)2+(−2)2=4+1+4=9=3.
- Divide each direction ratio by the magnitude to get the direction cosines.
l=a2+b2+c2a=32,m=a2+b2+c2b=3−1,n=a2+b2+c2c=3−2.
- Verify the sum of squares equals 1 (a quick sanity check).
(32)2+(−31)2+(−32)2=94+91+94=99=1.
This confirms the result is correct.
A common mistake is to forget the negative signs. Direction ratios can be negative — they indicate the direction is opposite to the positive axis. The direction cosines must carry the same sign as the corresponding direction ratio.
The direction cosines are (32,−31,−32).
Method: Converting Direction Ratios to Direction Cosines
Use this whenever you have direction ratios (any three numbers proportional to the direction) and need the actual direction cosines.
Steps
Step 1: Treat the ratios as an un-normalised direction vector.
With ratios (a,b,c), the line points along the vector (a,b,c) — but this generally is not a unit vector.
Step 2: Divide each ratio by the vector's magnitude.
l=a2+b2+c2a,m=a2+b2+c2b,n=a2+b2+c2c
Normalising to length 1 turns the direction vector into the direction cosines. Every sign must be carried through unchanged — a negative ratio gives a negative cosine.
Step 3: Sanity-check with l2+m2+n2=1.
If the squares sum to 1, the normalisation is correct. Note there are two valid answers, (l,m,n) and (−l,−m,−n), for the two senses of the line.
Common Mistakes
Mistake 1: Reporting the direction ratios as the direction cosines.
Why it's wrong: (2,−1,−2) are only proportional to the cosines; the cosines must come from a unit vector. Correct approach: divide each by the magnitude 4+1+4=3 to get (32,−31,−32).
Mistake 2: Dropping the negative signs during normalisation.
Why it's wrong: a negative ratio must give a negative cosine; forcing all cosines positive describes a different direction. Correct approach: carry each sign through, and confirm l2+m2+n2=1.
Showing the 12 most recent of 13 on this concept.
- KEAM 2026Set eng-2026-04204 marksMCQQ.If α,β,γ are the angles made by the straight line 2x−5=3y+1=7z−2 with the x-axis, y-axis and z-axis respectively, then cosα,cosβ,cosγ are respectively, (A) 51,257,257 (B) 51,253,2537 (C) 5−1,253,257 (D) 51,25−3,257 (E) 51,253,257
›Reveal solutionSolution
Direction ratios (2,3,7); divide each by the magnitude to get direction cosines.
Direction vector =(2,3,7), magnitude =4+9+7=20=25.
cosα=252=51, cosβ=253, cosγ=257.
✓Final answerThe correct option is (E).
- JEE Main 2026Set 2026-01-23-s14 marksMCQQ.Let the direction cosines of two lines satisfy the equations: 4l + m - n = 0 and 2mn + 10nl + 3lm = 0. Then the cosine of the acute angle between these lines is: (A) 10/(3√38) (B) 10/(7√38) (C) 10/√38 (D) 20/(3√38)
›Reveal solutionSolution
Eliminating n gives a quadratic for l/m with two roots, yielding direction ratios (−1,8,4) and (−2,5,−3); their angle has cosine 10/(338).
When two linear-and-homogeneous-quadratic relations in direction cosines describe a pair of lines, eliminating one variable turns the pair into a quadratic in the ratio of the remaining two — each root then gives one line's direction ratios.
- From 4l+m−n=0: n=4l+m. Substitute into 2mn+10nl+3lm=0: 2m(4l+m)+10(4l+m)l+3lm=8lm+2m2+40l2+10lm+3lm=40l2+21lm+2m2=0.
- Divide by m2 and let k=l/m: 40k2+21k+2=0.
k=80−21±441−320=80−21±11
- Roots: k1=−8010=−81, k2=−8032=−52.
- For k1=−1/8: take l=−1,m=8⟹n=4(−1)+8=4. Direction ratios (−1,8,4), magnitude 1+64+16=81=9.
- For k2=−2/5: take l=−2,m=5⟹n=4(−2)+5=−3. Direction ratios (−2,5,−3), magnitude 4+25+9=38.
- Angle between the lines: cosθ=938(−1)(−2)+(8)(5)+(4)(−3)=9382+40−12=93830=33810.
Watch outThe question asks for the acute angle, so if the dot product had come out negative, the correct cosine would be its absolute value — always check the sign before finalising.
✓Final answerThe correct option is (A) — 10/(338).
- KEAM 2025Set eng-2025-04234 marksMCQQ.Let α, β and γ be the angles made by a straight line with the x-axis, y-axis and z-axis respectively. If cosα+cosβ+cosγ=35, then the value of cosαcosβ+cosβcosγ+cosγcosα is equal to (A) 311 (B) 98 (C) 911 (D) 37 (E) 97
›Reveal solutionSolution
The value is 98.
Concept and Intuition
Direction cosines satisfy cos2α+cos2β+cos2γ=1. Squaring the given sum links it to the pairwise products.
Step-by-Step Solution
- (cosα+cosβ+cosγ)2=∑cos2+2∑cosαcosβ.
- (35)2=1+2S⇒925=1+2S.
- 2S=925−1=916⇒S=98.
Common Mistakes
- Forgetting the identity ∑cos2=1 for direction cosines.
- Dropping the factor 2 on the cross terms.
✓Final answerThe correct option is (B) — 98.
ANSWER: B
- KEAM 2024Set eng-2024-06054 marksMCQQ.If α,β,γ are the angles made by 3x−1=2y+1=−z with the coordinate axes, then (cosα,cosβ,cosγ)= (A) (143,142,14−1) (B) (73,7−2,7−1) (C) (143,14−2,14−1) (D) (73,72,7−1) (E) (14−3,14−2,14−1)
›Reveal solutionSolution
Direction ratios (3,2,−1), magnitude 14; direction cosines divide each by 14.
Rewrite −z=−1z, so the line is 3x−1=2y+1=−1z with direction ratios (3,2,−1).
Magnitude =9+4+1=14.
Hence (cosα,cosβ,cosγ)=(143,142,14−1).
✓Final answerThe correct option is (A).
- KEAM 2024Set eng-2024-06064 marksMCQQ.If a line makes angle α, β and γ with positive direction of x, y, and z-axis respectively, then cos2α+cos2β+cos2γ= (A) 1 (B) −1 (C) 2 (D) −2 (E) 0
›Reveal solutionSolution
Direction cosines satisfy ∑cos2=1.
For direction angles, cos2α+cos2β+cos2γ=1. Using cos2θ=2cos2θ−1:
cos2α+cos2β+cos2γ=2(cos2α+cos2β+cos2γ)−3=2(1)−3=−1.
✓Final answerThe correct option is (B).
- KEAM 2024Set eng-2024-06074 marksMCQQ.Let α,β,γ be the direction cosines of a vector a=xi^+yj^+zk^, where z<0. If α=105−4 and β=215, then γ is equal to (A) 105−8 (B) 105−8 (C) 105−5 (D) 21−5 (E) 21−8
›Reveal solutionSolution
Direction cosines satisfy α2+β2+γ2=1. Here α2=10516, β2=215=10525, so γ2=1−10541=10564. Since z<0, γ=−1058.
Using α2+β2+γ2=1:
α2=10516,β2=(215)2=215=10525.
So γ2=1−10516+25=1−10541=10564.
The sign of γ matches the sign of z, which is negative, so
γ=−1058.
✓Final answerThe correct option is (A).
- KEAM 2024Set eng-2024-06084 marksMCQQ.A line makes angle α,β,γ with x, y and z-axis respectively. Then the value of sin2α+sin2β−cos2γ is (A) 3 (B) 2 (C) 1 (D) 23 (E) 0
›Reveal solutionSolution
Direction angles satisfy cos2α+cos2β+cos2γ=1. This reduces sin2α+sin2β−cos2γ to 1.
For a line making angles α,β,γ with the axes,
cos2α+cos2β+cos2γ=1.
Then
sin2α+sin2β=(1−cos2α)+(1−cos2β)=2−(cos2α+cos2β).
Since cos2α+cos2β=1−cos2γ,
sin2α+sin2β=2−(1−cos2γ)=1+cos2γ.
Therefore
sin2α+sin2β−cos2γ=1+cos2γ−cos2γ=1.
✓Final answerThe correct option is (C).
- KEAM 2023Set eng-2023-P2-B24 marksMCQQ.The direction cosines of the vector a=−2i^+j^−k^ are (A) (62,61,61) (B) (6−2,61,6−1) (C) (6−2,6−1,6−1) (D) b=0 (E) (6−2,6−1,61)
›Reveal solutionSolution
The direction cosines are (-2/\u221a6, 1/\u221a6, -1/\u221a6).
Concept and Intuition
Direction cosines are the components of a vector divided by its magnitude; they give the cosines of the angles the vector makes with the coordinate axes and satisfy l2+m2+n2=1.
Step-by-Step Solution
- The vector is a=−2i^+j^−k^, so its magnitude is ∣a∣=(−2)2+12+(−1)2=6.
- Divide each component by the magnitude: (6−2,61,6−1).
- Check: 64+1+1=1, confirming they are valid direction cosines.
Common Mistakes
- Dropping the sign of a negative component.
- Forgetting to normalise (using the raw components as direction cosines).
✓Final answerThe correct option is (B) — (6−2,61,6−1).
ANSWER: B
- KEAM 2023Set eng-2023-P2-B24 marksMCQQ.If θ1,θ2 and θ3 are the angles made by a line with the positive directions of the x, y, z axes, then the value of cos2θ1+cos2θ2+cos2θ3 is (A) −1 (B) 1 (C) 2 (D) −2 (E) 0
›Reveal solutionSolution
cos2θ1+cos2θ2+cos2θ3=−1.
Concept and Intuition
Direction cosines satisfy cos2θ1+cos2θ2+cos2θ3=1. Use cos2θ=2cos2θ−1.
Step-by-Step Solution
- ∑cos2θi=∑(2cos2θi−1)=2∑cos2θi−3.
- ∑cos2θi=1.
- =2(1)−3=−1.
Common Mistakes
- Forgetting the identity ∑cos2θi=1 for direction cosines.
✓Final answerThe correct option is (A) — −1.
ANSWER: A
- JEE Main 2023Set 2023-01-30-s14 marksMCQQ.Let a unit vector \widehat{OP} make angles \alpha, \beta, \gamma with the positive directions of the co-ordinate axes OX, OY, OZ respectively, where \beta \in (0, \pi/2), and \widehat{OP} is perpendicular to the plane through points (1, 2, 3), (2, 3, 4) and (1, 5, 7), then which one of the following is true? (A) \alpha \in (\pi/2, \pi) \text{ and } \gamma \in (\pi/2, \pi) (B) \alpha \in (0, \pi/2) \text{ and } \gamma \in (0, \pi/2) (C) \alpha \in (\pi/2, \pi) \text{ and } \gamma \in (0, \pi/2) (D) \alpha \in (0, \pi/2) \text{ and } \gamma \in (\pi/2, \pi)
›Reveal solutionSolution
Find the plane's normal via a cross product, then pick the sign of the unit normal that makes cosβ>0 as required, and read off the signs of cosα,cosγ.
- With A=(1,2,3), AB=(1,1,1), AC=(0,3,4).
- Normal =AB×AC=(1⋅4−1⋅3,−(1⋅4−1⋅0),1⋅3−1⋅0)=(1,−4,3).
- ∣normal∣=1+16+9=26, so direction cosines are proportional to (1,−4,3) or (−1,4,−3).
- We're told β∈(0,π/2), i.e. cosβ>0; only (−1,4,−3)/26 has positive y-component.
- So cosα=−1/26<0 and cosγ=−3/26<0, meaning α,γ∈(π/2,π).
✓Final answer(A)
- JEE Main 2022Set 2022-07-27-s24 marksMCQQ.If the line of intersection of the planes ax + by = 3 and ax + by + cz = 0, a > 0, makes an angle 30° with the plane y – z + 2 = 0, then the direction cosines of the line are: (A) 1/√2, 1/√2, 0 (B) 1/√2, -1/√2, 0 (C) 1/√5, -2/√5, 0 (D) 1/2, -√3/2, 0
›Reveal solutionSolution
The line of intersection has direction (b,−a,0); the given 30° angle condition forces b=±a, and with b=a the direction cosines are (1/2,−1/2,0).
- The normals to the two planes are n1=(a,b,0) and n2=(a,b,c); the line of intersection is along n1×n2=(bc−0,0−ac,ab−ab)=(bc,−ac,0), which is proportional to (b,−a,0) after dividing by c.
- The angle θ between a line (direction d) and a plane (normal n3) satisfies sinθ=∣d∣∣n3∣∣d⋅n3∣; here n3=(0,1,−1) for y−z+2=0.
- d⋅n3=(b)(0)+(−a)(1)+0(−1)=−a; so sin30°=a2+b2⋅2a=21 (using a>0).
- Solving: a2+b2=a2⇒a2+b2=2a2⇒b2=a2⇒b=±a.
- Taking b=a, the direction (b,−a,0)=(a,−a,0) normalizes to (21,−21,0).
✓Final answerThe correct option is (B), direction cosines (21,−21,0).
- KEAM 2021Set eng-2021-P2-B14 marksMCQQ.If α is the angle made by the vector a=5i^+3j^+4k^ with the positive x-axis, then cosα= (A) 125 (B) 21 (C) 22 (D) 55 (E) 102
›Reveal solutionSolution
cosα=22.
Concept and Intuition
The angle a vector makes with the positive x-axis has cosine equal to its x-component divided by its magnitude (its first direction cosine).
Step-by-Step Solution
- ∣a∣=52+32+42=50=52.
- cosα=525=21=22.
Common Mistakes
- Forgetting to rationalize, or dividing by the wrong component.
✓Final answerThe correct option is (C) — 22.
ANSWER: C
🎓Unlock everything free for 10 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 10 days. No credit card required.