Q.If a line makes angle 90∘, 60∘ and 30∘ with the positive direction of x, y and z-axis respectively, find 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 cosines of the angles a line makes with the positive coordinate axes.
Let the angles be α=90∘, β=60∘, and γ=30∘. The direction cosines are l=cosα, m=cosβ, and n=cosγ.
Compute each:
- l=cos90∘=0
- m=cos60∘=21
- n=cos30∘=23
These satisfy the property l2+m2+n2=1 (since 0+41+43=1), confirming they are valid.
The direction cosines are 0,21,23.
The direction cosines of a line are the cosines of the angles it makes with the positive coordinate axes. For angles 90∘, 60∘, and 30∘, the direction cosines are (0,21,23).
The Core Idea: What Direction Cosines Really Mean
Direction cosines are not just a formula — they are the coordinates of a unit vector pointing along the line. If a line makes angles α, β, γ with the positive x, y, z axes, then its direction cosines are:
l=cosα,m=cosβ,n=cosγ
The key property that makes this concept powerful is that these three numbers always satisfy:
l2+m2+n2=1
Why? Because the direction cosines are the components of a unit vector. This is your built-in sanity check — if the squares don't sum to 1, something is wrong.
Step-by-Step Solution
1. Identify the given angles
The line makes:
- α=90∘ with the x-axis
- β=60∘ with the y-axis
- γ=30∘ with the z-axis
2. Compute each direction cosine directly
l=cos90∘=0
m=cos60∘=21
n=cos30∘=23
A common mistake is to confuse the angle with its complement. For example, if a line makes 60∘ with the y-axis, the direction cosine is cos60∘, not cos30∘. Always take the cosine of the given angle.
3. Verify the fundamental property
Check that l2+m2+n2=1:
02+(21)2+(23)2=0+41+43=1
This confirms our answer is consistent. If the sum had been anything other than 1, we would know an error crept in.
The verification step is not just a formality — it's a powerful error-detection tool. In exam problems where angles are given indirectly, this property often helps you find a missing direction cosine when only two are known.
4. Write the direction cosines as an ordered triple
The direction cosines are (l,m,n)=(0,21,23).
Direction cosines are always written in the order (l,m,n) corresponding to the x, y, z axes respectively. Never rearrange them.
The direction cosines are (0,21,23).
Method: Direction Cosines from the Angles a Line Makes with the Axes
Use this when a line's angles α,β,γ with the positive x, y, z axes are given (directly or indirectly) and you need its direction cosines.
Steps
Step 1: Take the cosine of each given angle.
l=cosα,m=cosβ,n=cosγ
The direction cosines are the cosines themselves — not the angles, and always of the angle actually given (do not swap in a complement).
Step 2: Verify with the fundamental identity.
l2+m2+n2=1
If the squares do not add to 1, an angle was misread or a cosine mis-evaluated. This same identity also lets you recover a third direction cosine when only two angles are supplied.
Step 3: Write them in order (l,m,n).
Keep the x,y,z order; the triple is only meaningful with each cosine attached to its own axis. Reversing the line's sense flips all three signs, giving the equally valid set (−l,−m,−n).
Common Mistakes
Mistake 1: Using the complement of the given angle.
Why it's wrong: the direction cosine is the cosine of the angle the line actually makes with that axis — for 60∘ with the y-axis it is cos60∘=21, not cos30∘. Correct approach: take the cosine of each given angle directly.
Mistake 2: Reporting the angles themselves instead of their cosines.
Why it's wrong: direction cosines are numbers like 0,21,23, not 90∘,60∘,30∘. Correct approach: convert every angle to its cosine, then optionally verify l2+m2+n2=1.
Showing the 12 most recent of 34 on this concept.
- AP EAPCET 2021Set eng-2021-08-23-AN1 markMCQQ.If a line makes angles 90∘, 135∘ and 45∘ with the positive x, y and z axes respectively, then its direction cosines are ______ (A) ⟨0,21,21⟩ (B) ⟨0,2−1,21⟩ (C) ⟨1,21,21⟩ (D) ⟨1,2−1,21⟩
›Reveal solutionSolution
Direction cosines are simply the cosines of the angles made with each axis; here that's ⟨0,−1/2,1/2⟩.
Concept and Intuition
If a line makes angles α,β,γ with the positive x, y, z axes, its direction cosines are (l,m,n)=(cosα,cosβ,cosγ), and they always satisfy l2+m2+n2=1.
Step-by-Step Solution
- α=90∘⇒l=cos90∘=0.
- β=135∘⇒m=cos135∘=−21.
- γ=45∘⇒n=cos45∘=21.
- Direction cosines: ⟨0,−21,21⟩.
- Verify: 02+(−21)2+(21)2=0+21+21=1. Valid.
Common Mistakes
- Forgetting the sign of cos135∘ (it's negative, not +21).
- Confusing direction cosines with direction ratios and skipping the normalization check.
✓Final answerThe correct option is (B) — ⟨0,2−1,21⟩.
ANSWER: B
- AP EAPCET 2025Set eng-2025-05-26-FN1 markMCQQ.The direction cosines of the line making angles 4π, 3π and θ(0<θ<2π) respectively with X, Y and Z axes are (A) 21,21,21 (B) 21,21,23 (C) 21,21,21 (D) 21,23,21
›Reveal solutionSolution
Direction cosines of any line always satisfy l2+m2+n2=1; use the two given angles to fix l,m and solve for n=cosθ.
Concept and Intuition
If a line makes angles α,β,γ with the X,Y,Z axes respectively, its direction cosines are l=cosα, m=cosβ, n=cosγ, and these three numbers must always satisfy the fundamental identity l2+m2+n2=1. This lets us solve for the third angle once two are known.
Step-by-Step Solution
- l=cos4π=21, so l2=21.
- m=cos3π=21, so m2=41.
- Using l2+m2+n2=1: n2=1−21−41=41.
- n=±21; since 0<θ<π/2 means cosθ>0, take n=21.
- So the direction cosines are 21, 21, 21.
Common Mistakes
- Forgetting the constraint 0<θ<π/2 and taking the negative root for n.
- Confusing direction cosines with direction ratios (the identity l2+m2+n2=1 only applies to true direction cosines, not arbitrary ratios).
✓Final answerThe correct option is (A) — 21, 21, 21.
ANSWER: A
- AP EAPCET 2021Set eng-2021-08-19-FN1 markMCQQ.The direction cosines of a line which makes equal angles with the co-ordinate axes are ____ (A) ⟨31,31,31⟩ (B) ⟨3−1,3−1,3−1⟩ (C) ⟨3±1,3±1,3±1⟩ (D) ⟨1312,135,0⟩
›Reveal solutionSolution
Equal angles with all three axes force l=m=n; combined with l2+m2+n2=1 this gives l=m=n=±31.
Concept and Intuition
Direction cosines are just the cosines of the angles a line makes with the positive x, y, z axes. "Equal angles with the axes" literally means these three cosines are equal to each other, l=m=n. Since a line (as opposed to a directed ray) can be traversed in either of two opposite senses, both the all-positive and all-negative solutions represent the same line.
Step-by-Step Solution
- Equal angles ⇒l=m=n.
- Direction cosine identity: l2+m2+n2=1⇒3l2=1⇒l=±31.
- So l=m=n=31 or l=m=n=−31 — the two possible (opposite) orientations of the same line.
Common Mistakes
- Picking only the positive or only the negative triple and missing that the line has two possible orientations.
- Confusing "equal angles" with "direction ratios summing to a fixed value" instead of the cosines being literally equal.
✓Final answerThe correct option is (C) — ⟨3±1,3±1,3±1⟩.
ANSWER: C
- AP EAPCET 2021Set eng-2021-08-24-AN1 markMCQQ.A line AB in three dimensions makes angles 45° and 120° with the positive x-axis and the positive y-axis respectively. If AB makes an acute angle θ with the positive z-axis, then θ equals ________ (A) 30° (B) 45° (C) 60° (D) 75°
›Reveal solutionSolution
The direction angles a line makes with the three coordinate axes satisfy cos2α+cos2β+cos2γ=1; given two of the angles, the third (acute) angle follows directly.
Concept and Intuition
If a line makes angles α,β,γ with the positive x-, y-, z-axes respectively, its direction cosines are cosα,cosβ,cosγ, and these always satisfy cos2α+cos2β+cos2γ=1.
Step-by-Step Solution
- Given α=45°, β=120°. So cosα=22, cos2α=21; cosβ=−21, cos2β=41.
- Apply the identity: 21+41+cos2θ=1⇒cos2θ=1−43=41.
- cosθ=±21⇒θ=60° or θ=120°.
- Since θ is required to be acute, θ=60°.
Common Mistakes
- Forgetting that cos120°=−21 is negative, but its square is still 41.
- Picking 120° instead of the acute root 60°.
✓Final answerThe correct option is (C) — 60°.
ANSWER: C
- AP EAPCET 2026Set eng-2026-05-13-AN1 markMCQQ.If the direction cosines of a line L are (ab,b,b) and the angle between L and X-axis is 6π, then a possible value of (a,b) is (A) (6,83) (B) (83,81) (C) (6,81) (D) (81,6)
›Reveal solutionSolution
Solving the normalization condition together with the angle condition pins (a,b)=(6,1/8).
Concept and Intuition
Direction cosines (l,m,n) of any line must obey l2+m2+n2=1. Also, if α is the angle the line makes with the X-axis, then l=cosα. Combining these two facts with the given form of the direction cosines determines a and b.
Step-by-Step Solution
- Normalization: (ab)2+b2+b2=1⇒a2b2+2b2=1.
- Angle with X-axis is π/6, and the X-direction cosine is the first component: ab=cos6π=23.
- Substitute a2b2=(23)2=43 into the normalization equation: 43+2b2=1⇒2b2=41⇒b2=81⇒b=81.
- Then a=b3/2=1/83/2=23⋅8=224=226=6.
- So (a,b)=(6,81), matching option (C) exactly.
Common Mistakes
- Forgetting the factor of 2 from the two equal components b,b in the normalization sum.
- Mixing up which product (ab) equals cos(π/6) vs sin(π/6).
✓Final answerThe correct option is (C) — (6,81).
ANSWER: C
- AP EAPCET 2023Set eng-2023-05-18-AN1 markMCQQ.If a line L makes angles 3π and 4π with the positive X-axis and positive Y-axis respectively, then the angle made by L with the positive direction of Z-axis is (A) 2π (B) 3π (C) 4π (D) 125π
›Reveal solutionSolution
A line's direction cosines with the three axes satisfy cos2α+cos2β+cos2γ=1; plugging in the given angles gives γ=π/3.
Concept and Intuition
For any line in 3D space, if α,β,γ are the angles it makes with the positive X, Y, Z axes respectively, the direction cosines l=cosα,m=cosβ,n=cosγ always satisfy l2+m2+n2=1. This is simply the Pythagorean identity for a unit vector along the line.
Step-by-Step Solution
- α=π/3⇒cosα=21⇒cos2α=41.
- β=π/4⇒cosβ=21⇒cos2β=21.
- Identity: cos2γ=1−41−21=41.
- So cosγ=±21, giving γ=π/3 or 2π/3.
- Among the given options, π/3 matches (the acute solution corresponding to cosγ=+1/2).
Common Mistakes
- Forgetting to square the cosines before adding (using cosα+cosβ+cosγ=1, which is wrong).
- Sign errors in inverting cos2γ=1/4.
✓Final answerThe correct option is (B) — 3π.
ANSWER: B
- AP EAPCET 2022Set eng-2022-07-08-AN1 markMCQQ.If the direction cosines of a line satisfy the relations l−m+n=0 and lm+mn−4nl=0, then the direction cosines of the line are (A) (6−1,62,61) (B) (61,6−2,61) (C) (61,62,6−1) (D) (61,62,61)
›Reveal solutionSolution
Eliminate one variable using the linear relation, reduce the quadratic relation to a perfect square, and normalize the resulting direction ratios.
Concept and Intuition
Direction cosines (l,m,n) satisfy l2+m2+n2=1; given two other relations among l,m,n, we solve for their ratio first and normalize at the end.
Step-by-Step Solution
- From l−m+n=0: m=l+n.
- Substitute into lm+mn−4nl=0: l(l+n)+(l+n)n−4nl=0⇒l2+log+log+n2−4nl=0⇒l2−2ln+n2=0.
- This is (l−n)2=0⇒l=n.
- Then m=l+n=2l. So l:m:n=1:2:1.
- Normalize: magnitude =12+22+12=6, giving direction cosines (61,62,61).
Common Mistakes
- Sign slip while substituting m=l+n into the second (quadratic) relation.
- Picking a direction-ratio set that doesn't actually satisfy both original relations (always a good idea to plug back in and check).
✓Final answerThe correct option is (D) — (61,62,61).
ANSWER: D
- AP EAPCET 2021Set eng-2021-10-05-FN1 markMCQQ.Given points A(1,2,2), B(2,3,6) and C(3,4,12), find the direction cosines of a line which is equally inclined with OA, OB and OC, where O is the origin. (A) ⟨21,2−1,0⟩ (B) ⟨21,21,0⟩ (C) ⟨31,3−1,31⟩ (D) ⟨31,3−1,3−1⟩
›Reveal solutionSolution
A line equally inclined to three given lines makes the same cosine of angle (dot product with unit vectors) with all three — check each option's dot products with the unit vectors along OA,OB,OC. The answer is (D).
Concept and Intuition
"Equally inclined" to three directions means the direction cosines (l,m,n) of the desired line give the same value of cos(angle) when dotted with the unit vector along each of OA,OB,OC.
Step-by-Step Solution
- ∣OA∣=12+22+22=3, unit vector u^A=(31,32,32).
- ∣OB∣=22+32+62=49=7, unit vector u^B=(72,73,76).
- ∣OC∣=32+42+122=169=13, unit vector u^C=(133,134,1312).
- Test (l,m,n)=(31,3−1,3−1):
- ⋅u^A=31(31−32−32)=31(−33)=−31
- ⋅u^B=31(72−73−76)=31(−77)=−31
- ⋅u^C=31(133−134−1312)=31(−1313)=−31
- All three dot products equal −31, confirming equal inclination.
Common Mistakes
- Forgetting to normalize OA,OB,OC to unit vectors before comparing dot products (unnormalized vectors of different lengths give misleadingly different-looking dot products).
- Sign errors while summing the three terms in each dot product.
✓Final answerThe correct option is (D) — ⟨31,3−1,3−1⟩.
ANSWER: D
- AP EAPCET 2021Set eng-2021-08-20-AN1 markMCQQ.The direction cosines of the line joining the points (−2,4,−5) and (1,2,3) are ______ (A) ⟨773,77−2,778⟩ (B) ⟨773,772,778⟩ (C) ⟨1,0,0⟩ (D) ⟨77−3,77−2,778⟩
›Reveal solutionSolution
Direction cosines are the direction ratios divided by their magnitude; here that gives (773,77−2,778).
Concept and Intuition
For a line joining two points, the direction ratios are simply the differences of corresponding coordinates. Dividing each ratio by the length of the direction vector (its magnitude) gives the direction cosines, which satisfy l2+m2+n2=1.
Step-by-Step Solution
- Direction ratios from (−2,4,−5) to (1,2,3): (1−(−2), 2−4, 3−(−5))=(3,−2,8).
- Magnitude: 32+(−2)2+82=9+4+64=77.
- Direction cosines: (773,77−2,778).
Common Mistakes
- Reversing the order of subtraction (point 1 minus point 2 instead of point 2 minus point 1), which flips all signs.
- Forgetting to take the square root when computing the magnitude.
✓Final answerThe correct option is (A) — ⟨773,77−2,778⟩.
ANSWER: A
- AP EAPCET 2021Set eng-2021-10-05-FN1 markMCQQ.The angle between the lines whose direction cosines satisfy the equations l+m+n=0 and l2+m2−n2=0 is _____ (A) 2π (B) 4π (C) 6π (D) 3π
›Reveal solutionSolution
The two constraint equations on the direction cosines pick out exactly two specific lines; compute the angle between those two explicit direction vectors. The answer is (D).
Concept and Intuition
The equations l+m+n=0 and l2+m2−n2=0 together define (up to scaling) two specific directions, since substituting one into the other reduces to a simple factorable condition.
Step-by-Step Solution
- From l+m+n=0: n=−(l+m).
- Substitute into l2+m2−n2=0: l2+m2−(l+m)2=0⇒l2+m2−l2−2lm−m2=0⇒−2lm=0⇒lm=0.
- Case l=0: then n=−m, giving direction ratios (0,1,−1).
- Case m=0: then n=−l, giving direction ratios (1,0,−1).
- Angle between (0,1,−1) and (1,0,−1): cosθ=02+12+(−1)212+02+(−1)2(0)(1)+(1)(0)+(−1)(−1)=2⋅21=21.
- θ=3π (i.e., 60∘).
Common Mistakes
- Trying to solve for l,m,n directly as three unknowns instead of recognizing the factorization lm=0 that yields the two lines.
- Sign error in the dot product, flipping cosθ to −21.
✓Final answerThe correct option is (D) — 3π.
ANSWER: D
- AP EAPCET 2021Set eng-2021-08-24-AN1 markMCQQ.If the direction cosines of a straight line are (c1,c1,c1), then c=________ (A) ±2 (B) ±3 (C) ±2 (D) ±3
›Reveal solutionSolution
Direction cosines of any line always satisfy l2+m2+n2=1; applying this to the given equal direction cosines gives c.
Concept and Intuition
If (l,m,n) are the direction cosines of a line in 3D, they must satisfy the fundamental identity l2+m2+n2=1.
Step-by-Step Solution
- Given direction cosines: l=m=n=c1.
- Apply the identity: (c1)2+(c1)2+(c1)2=1⇒c23=1.
- c2=3⇒c=±3.
Common Mistakes
- Forgetting the ± sign (direction cosines' squares only fix c2, not the sign of c).
- Miscounting the number of terms (using 2 instead of 3).
✓Final answerThe correct option is (B) — ±3.
ANSWER: B
- AP EAPCET 2025Set eng-2025-05-23-AN1 markMCQQ.If the direction cosines of two lines satisfy the equations l−2m+n=0, lm+10mn−2nl=0 and θ is the angle between the lines, then cosθ= (A) 6π (B) 708 (C) 3π (D) 37020
›Reveal solutionSolution
Two families of lines are cut from a linear + a homogeneous quadratic relation in
direction cosines; eliminate one variable to get a quadratic ratio equation, find
both direction ratios, then apply the standard angle-between-lines formula.
Concept and Intuition
When direction cosines (l,m,n) of a family of lines satisfy one linear and one
homogeneous-quadratic relation, eliminating a variable between them gives a
quadratic in the ratio of the remaining two — its two roots are exactly the two
lines of the family. Once we have both direction ratios (not necessarily
normalized), the angle between them is found from the dot-product formula
cosθ=∣d1∣∣d2∣d1⋅d2, which works with any
scalar multiple of the direction cosines, not just the normalized ones.
Step-by-Step Solution
- From l−2m+n=0, write l=2m−n.
- Substitute into lm+10mn−2nl=0: (2m−n)m+10mn−2n(2m−n)=2m2−mn+10mn−4mn+2n2=2m2+5mn+2n2=0.
- Divide by n2 and set t=m/n: 2t2+5t+2=0⇒t=4−5±3=−21,−2.
- Case t=−21: take n=2, m=−1⇒l=2(−1)−2=−4. Direction (−4,−1,2).
- Case t=−2: take n=1, m=−2⇒l=2(−2)−1=−5. Direction (−5,−2,1).
- cosθ=16+1+425+4+1(−4)(−5)+(−1)(−2)+(2)(1)=213024=63024=37024=708.
Common Mistakes
- Forgetting the direction cosines don't need to be normalized before applying the dot-product angle formula — the formula divides by the magnitudes anyway.
- Picking only one root of the quadratic in t and missing that the pair of lines is exactly the two roots.
✓Final answerThe correct option is (B) — 708.
ANSWER: B
🎓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.