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.
- KCET 2025Set A-11 markMCQQ.If a line makes angles 90∘, 60∘ and θ with x, y and z axes respectively, where θ is acute, then the value of θ is (A) 6π (B) 4π (C) 3π (D) 2π
›Reveal solutionSolution
Use the fundamental relation between direction cosines, l2+m2+n2=1, to solve for the third angle.
Step 1 — The governing identity
If a line makes angles α,β,γ with the x-, y- and z-axes, its direction cosines are l=cosα, m=cosβ, n=cosγ, and they always satisfy
l2+m2+n2=1i.e.cos2α+cos2β+cos2γ=1
(This is just the statement that the unit vector along the line has magnitude 1.)
Step 2 — Substitute the given angles
α=90∘⇒cosα=0
β=60∘⇒cosβ=21
γ=θ⇒cosγ=cosθ
02+(21)2+cos2θ=1
Step 3 — Solve for θ
cos2θ=1−41=43⟹cosθ=±23
Step 4 — Apply the acuteness condition
θ is given to be acute, so cosθ>0:
cosθ=23⟹θ=30∘=6π
(The rejected root cosθ=−23 would give the obtuse θ=150∘, which the question excludes.)
✓Final answerThe correct option is (A) — 6π.
ANSWER: A
- COMEDK 2025Set 2025-A1 markMCQQ.Position vector of P and Q are ^+3^−7k^ and 5^−2^+4k^ respectively. Then the cosine of the angle between PQ and y -axis is (A) 1624 (B) 1625 (C) −1625 (D) −1624
›Reveal solutionSolution
The cosine of the angle between vector PQ and the y‑axis is the dot product of the unit vector along PQ with ^. After computing PQ=4^−5^+11k^, its magnitude is 162, so the cosine is −1625, which corresponds to option (C).
The key idea: The cosine of the angle between any two vectors is given by their dot product divided by the product of their magnitudes. Here, one vector is PQ and the other is the direction of the y‑axis, which is simply the unit vector ^. So we just need the y‑component of the unit vector along PQ.
-
Find PQ
PQ=position of Q−position of P
=(5^−2^+4k^)−(^+3^−7k^)
=(5−1)^+(−2−3)^+(4+7)k^
=4^−5^+11k^.
-
Magnitude of PQ
∣PQ∣=42+(−5)2+112=16+25+121=162.
-
Cosine of the angle with the y‑axis
The y‑axis direction vector is ^. The cosine formula:
cosθ=∣PQ∣⋅∣^∣PQ⋅^.
Since ∣^∣=1 and PQ⋅^=−5, we get
cosθ=162−5.
-
Interpretation
The negative sign means the angle is obtuse — PQ points generally downward along the y‑direction relative to the positive y‑axis.
Watch outA common mistake is to forget the negative sign in the y‑component of PQ. Always subtract coordinates carefully: Qy−Py=−2−3=−5, not +5.
TipThe cosine of the angle with a coordinate axis is just that component of the unit vector. Here, the unit vector along PQ is 1624^−1625^+16211k^, so the y‑component directly gives the answer.
✓Final answerThe correct option is (C).
ANSWER: C
-
- COMEDK 2025Set 2025-E1 markMCQQ.The equation of a line passing through origin with direction angles 32π,4π,3π is (A) x=2y=z (B) −1x=−2y=z (C) x=−2y=z (D) x=−2y=−z
›Reveal solutionSolution
The direction cosines from the given angles give the line’s direction ratios; after simplifying, the symmetric equation matches option (D).
We are told the line passes through the origin and has direction angles 32π,4π,3π.
The direction cosines are the cosines of these angles, and they tell us the components of a unit vector along the line.
The symmetric form of a line through the origin is ax=by=cz, where (a,b,c) are any direction ratios proportional to the direction cosines.
- Compute the direction cosines
cos32π=−21,cos4π=22,cos3π=21.
So the direction cosines are (−21, 22, 21).
- Convert to direction ratios We can multiply by 2 to clear denominators:
(−1, 2, 1).
Any scalar multiple works; this set is simplest.
- Write the symmetric equation Through the origin:
−1x=2y=1z.
Equivalently,
−x=2y=z.
But the options are given in the form x=somethingy=±z.
Multiply the first equality by −1:
x=−2y=−z.
That matches option (D) at first glance — but check carefully:
From −1x=2y, cross-multiplying gives x=−2y, i.e. x=−2y.
From −1x=z, we get x=−z.
So the full set is x=−2y=−z. That is exactly option (D).
- Verify the other options
- (A) x=2y=z would mean direction ratios (1,2,1), which gives cosines (21,22,21) — the first cosine is positive, but we need −21.
- (B) −1x=−2y=z gives ratios (−1,−2,1) — the second cosine would be negative, but we need positive 22.
- (C) x=−2y=z gives ratios (1,−2,1) — the second cosine negative again. Only (D) matches all three signs.
Watch outA common mistake is to forget that direction cosines can be positive or negative; the sign of each cosine is fixed by the given angle. Here 32π is in the second quadrant, so its cosine is negative.
TipYou can also check by plugging a point: if x=−1, then from (D) we get y=2 and z=1, and the direction vector (−1,2,1) indeed has the given direction cosines.
✓Final answerThe correct option is (D).
ANSWER: D
- COMEDK 2024Set 2024-A1 markMCQQ.A line makes the same angle θ with each of the x and z-axes. If the angle β, which it makes with the y-axis is such that sin2β=3sin2θ, then cos2θ equals (A) 52 (B) 51 (C) 53 (D) 32
›Reveal solutionSolution
Using cos2α+cos2β+cos2γ=1 with the two equal angles θ, the condition sin2β=3sin2θ gives cos2θ=53 — option (C).
Direction-cosine identity
The line makes angle θ with both the x- and z-axes and angle β with the y-axis, so its direction cosines satisfy
cos2θ+cos2β+cos2θ=1 ⇒ 2cos2θ+cos2β=1.
Therefore
sin2β=1−cos2β=1−(1−2cos2θ)=2cos2θ.
Apply the given condition
With sin2β=3sin2θ=3(1−cos2θ):
2cos2θ=3(1−cos2θ) ⇒ 2cos2θ=3−3cos2θ ⇒ 5cos2θ=3.
cos2θ=53.
✓Final answercos2θ=53. Correct option: (C).
ANSWER: C
- COMEDK 2024Set 2024-M1 markMCQQ.The vector (r) whose magnitude is 32 units which makes an angle of 4π and 2π with y and z- axis respectively is (A) ^±3^ (B) ^±^ (C) −^±^ (D) ±3^+3^
›Reveal solutionSolution
The key idea is to use direction cosines to find the components of a vector given its magnitude and the angles it makes with the coordinate axes. The vector is ±3^+3^, so the correct option is (D).
We are told the vector r has magnitude ∣r∣=32 and makes an angle of 4π with the y-axis and 2π with the z-axis. The angle with the x-axis is not directly given, but we can find it using the fundamental relation between direction cosines.
Concept & Intuition
For any vector in 3D, the cosines of the angles it makes with the x, y, and z axes are called direction cosines, often denoted cosα, cosβ, cosγ. These satisfy the identity:
cos2α+cos2β+cos2γ=1
This is because the components are ∣r∣cosα, ∣r∣cosβ, ∣r∣cosγ, and the sum of their squares equals ∣r∣2. Once we know two angles, we can solve for the third — but note the sign ambiguity: the cosine could be positive or negative, giving two possible directions.
-
Write down what we know
Angle with y-axis: β=4π, so cosβ=cos4π=21.
Angle with z-axis: γ=2π, so cosγ=cos2π=0.
-
Use the direction cosine identity
cos2α+cos2β+cos2γ=1
Substitute the known values:
cos2α+(21)2+02=1
cos2α+21=1
cos2α=21
Hence cosα=±21.
- Find the components The vector components are:
rx=∣r∣cosα=32⋅(±21)=±3
ry=∣r∣cosβ=32⋅21=3
rz=∣r∣cosγ=32⋅0=0
- Write the vector So r=±3^+3^+0k^, which simplifies to ±3^+3^.
TipA common mistake is to forget the ± sign on the x-component. The direction cosine identity gives only the square, so both signs are possible unless additional information (like the quadrant) is given.
Watch outOption (A) is ^±3^ — tempting because it has a ±, but the magnitudes don't match: ∣^±3^∣=1+9=10, not 32. Always check the magnitude against the given value.
- Match with the options The vector ±3^+3^ appears exactly as option (D).
✓Final answerThe correct option is (D).
ANSWER: D
-
- COMEDK 2023Set 2023-E1 markMCQQ.The coordinates of the vertices of the triangle are A(−2,3,6),B(−4,4,9) and C(0,5,8). The direction cosines of the median BE are (A) ⟨43,0,−42⟩ (B) ⟨−133,0,−132⟩ (C) ⟨1,0,−32⟩ (D) ⟨133,0,−132⟩
›Reveal solutionSolution
The median BE joins B to the midpoint E of AC; BE=(3,0,−2), ∣BE∣=13, giving direction cosines ⟨133,0,−132⟩.
E is the midpoint of AC with A(−2,3,6),C(0,5,8):
E=(2−2+0,23+5,26+8)=(−1,4,7).
Then with B(−4,4,9),
BE=E−B=(−1+4,4−4,7−9)=(3,0,−2),∣BE∣=9+0+4=13.
Direction cosines:
⟨133, 0, −132⟩.
✓Final answerThe correct option is (D) — ⟨133, 0, −132⟩
🎓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.