Q.Find the direction cosines of the line passing through the two points (−2,4,−5) and (1,2,3).
🔒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 →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: …
Concept: Direction Cosines of a Line — the cosines of the angles a line makes with the coordinate axes, equal to the components of the unit vector along the line.
Step 1: Find the direction ratios.
For points (−2,4,−5) and (1,2,3), the direction ratios are:
(1−(−2),2−4,3−(−5))=(3,−2,8).
Step 2: Compute the magnitude.
∣AB∣=32+(−2)2+82=9+4+64=77. …
The direction cosines of a line are the cosines of the angles it makes with the coordinate axes. For the line through (−2,4,−5) and (1,2,3), the direction ratios are (3,−2,8), and the direction cosines are (773,−772,778).
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 x, y, and z axes. Because they come from a unit vector along the line, they always satisfy the beautiful relation:
l2+m2+n2=1
where l,m,n 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 A(x1,y1,z1) and B(x2,y2,z2), the DRs are (x2−x1,y2−y1,z2−z1).
Here, A=(−2,4,−5) and B=(1,2,3).
So:
- x-difference: 1−(−2)=3
- y-difference: 2−4=−2
- z-difference: 3−(−5)=8
Thus the direction ratios are (3,−2,8).
A common mistake is to subtract in the wrong order or to forget the sign when subtracting a negative. Always do B−A consistently. If you did A−B, you'd get (−3,2,−8), 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. …
Method: Direction Cosines of the Line Through Two Points
Use this when a line is given by two points and you need its direction cosines (or direction ratios).
Steps
Step 1: Subtract coordinates to get direction ratios.
For A(x1,y1,z1) and B(x2,y2,z2), the direction ratios are (x2−x1,y2−y1,z2−z1). Subtract consistently in one order (do B−A throughout); doing A−B instead simply reverses all signs and describes the same line.
Step 2: Normalise by the magnitude. …
Common Mistakes
Mistake 1: Sign error when subtracting a negative coordinate.
Why it's wrong: the z-ratio is 3−(−5)=8, not 3−5=−2; mishandling the double negative corrupts the direction ratios. Correct approach: subtract B−A carefully to get (3,−2,8).
Mistake 2: Forgetting to normalise, or normalising by the wrong length. …
Showing the 12 most recent of 34 on this concept.
- 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 …
- AP EAPCET 2022Set eng-2022-07-05-AN1 markMCQQ.If −2,34,5−4 are the intercepts made by a plane on X, Y, Z - axes respectively then the direction cosines of a normal to this plane are (A) (3−1,32,3−2) (B) (352,35−4,355) (C) (57−4,574,57−5) (D) (382,38−3,385)
›Reveal solutionSolution
Convert the given intercepts into the plane's Cartesian equation, read off the normal's direction ratios as the coefficients of x,y,z, then normalize by dividing by the magnitude.
Concept and Intuition
A plane with x,y,z-intercepts a,b,c (i.e. it meets the axes at (a,0,0),(0,b,0),(0,0,c)) has the intercept-form equation
ax+by+cz=1.
If this is rewritten as lx+my+nz=p, then (l,m,n) are direction ratios of the plane's normal (this falls straight out of comparing with the general plane equation lx+my+nz=p, whose normal is (l,m,n)). Direction cosines are just this direction-ratio vector scaled to unit length; note direction cosines are only defined up to an overall sign (the normal can point either way).
Step-by-Step Solution
- Given intercepts: a=−2, b=34, c=−54.
- Intercept form: −2x+4/3y+−4/5z=1, i.e. −2x+43y−45z=1.
- Multiply through by 4: −2x+3y−5z=4.
- Direction ratios of the normal: (−2,3,−5). Magnitude =(−2)2+32+(−5)2=4+9+25=38. …
- 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⟩. …
- AP EAPCET 2023Set eng-2023-05-16-FN1 markMCQQ.Let A(1,−1,2), B(6,11,2), C(1,2,6) be three points. If l1,m1,n1 are the direction cosines of AB and l2,m2,n2 are the direction cosines of AC, then ∣l1l2+m1m2+n1n2∣= (A) 63/65 (B) 36/65 (C) 16/65 (D) 13/64
›Reveal solutionSolution
Direction cosines of AB and AC are found from their displacement vectors divided by their magnitudes; their dot product is 36/65, which is cos(∠BAC).
Concept and Intuition
The direction cosines of a segment PQ are the components of the unit vector along PQ. The sum l1l2+m1m2+n1n2 is just the dot product of the two unit vectors, i.e. cos of the angle between AB and AC.
Step-by-Step Solution
- AB=B−A=(6−1,11−(−1),2−2)=(5,12,0), ∣AB∣=25+144=13. So (l1,m1,n1)=(5/13,12/13,0).
- AC=C−A=(1−1,2−(−1),6−2)=(0,3,4), ∣AC∣=0+9+16=5. So (l2,m2,n2)=(0,3/5,4/5).
- l1l2+m1m2+n1n2=135⋅0+1312⋅53+0⋅54=6536. …
- 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 …
- 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 …
- 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. …
- AP EAPCET 2021Set eng-2021-08-19-AN1 markMCQQ.A(−1,2,−3), B(5,0,−6), C(0,4,−1) are the vertices of a triangle ABC. The direction cosines of internal bisector of ∠BAC are ______. (A) 71425,7148,714−5 (B) 71425,7148,7145 (C) 745,746,748 (D) 74−5,746,74−8
›Reveal solutionSolution
The internal angle bisector direction at a vertex is the sum of unit vectors along the two adjacent sides. Answer: (25,8,5)/714.
Concept and Intuition
For a triangle vertex A with adjacent sides toward B and C, the internal bisector of ∠BAC points along u^=∣AB∣AB+∣AC∣AC, because this vector lies exactly midway (in direction) between the two unit vectors, and being a sum of unit vectors it always points into the angle (internal, not external).
Step-by-Step Solution
- A=(−1,2,−3), B=(5,0,−6), C=(0,4,−1).
- AB=B−A=(6,−2,−3), ∣AB∣=36+4+9=49=7.
- AC=C−A=(1,2,2), ∣AC∣=1+4+4=9=3.
- Unit vectors: AB^=(76,−72,−73), AC^=(31,32,32).
- Sum (common denominator 21): (2118+7,21−6+14,21−9+14)=(2125,218,215), i.e. direction ratios (25,8,5). …
- AP EAPCET 2021Set eng-2021-08-20-FN1 markMCQQ.If the direction cosines of two lines are (32,32,31) and (135,1312,0), then identify the direction ratios of a line which is bisecting one of the angle between them. (A) ⟨40,60,13⟩ (B) ⟨41,60,10⟩ (C) ⟨41,62,13⟩ (D) ⟨1,2,3⟩
›Reveal solutionSolution
This tests the fact that the direction of the internal bisector between two lines through a common point is the (unit) sum of their unit direction vectors. Answer: ⟨41,62,13⟩.
Concept and Intuition
If u^ and v^ are unit vectors along two lines through a point, then u^+v^ points along one internal angle bisector (and u^−v^ along the other), because the parallelogram built on two equal-length vectors has its diagonal bisecting the angle between them.
Step-by-Step Solution
- Verify both given triples are unit vectors: (32)2+(32)2+(31)2=94+94+91=1; and (135)2+(1312)2+02=16925+169144=1. Good — both are direction cosines.
- Add them componentwise, using common denominator 39: 32=3926, 135=3915, sum =3941. …
- AP EAPCET 2024Set eng-2024-05-21-FN1 markMCQQ.If P(2,β,α) lies on the plane x+2y−z−2=0 and Q(α,−1,β) lies on the plane 2x−y+3z+6=0 then the direction cosines of the line PQ are (A) (−174,0,171) (B) (+174,0,171) (C) (171,0,174) (D) (−171,0,174)
›Reveal solutionSolution
Use the two plane conditions to pin down α,β, locate P and Q, then the direction cosines are the components of PQ divided by ∣PQ∣.
Concept and Intuition
A point lies on a plane ax+by+cz+d=0 exactly when its coordinates satisfy the plane equation. Once the two unknowns α,β are pinned down by the two plane conditions, the line PQ is completely determined, and its direction cosines are just the direction ratios of PQ scaled to unit length.
Step-by-Step Solution
- P(2,β,α) lies on x+2y−z−2=0:
2+2β−α−2=0⇒2β=α⇒α=2β.
- Q(α,−1,β) lies on 2x−y+3z+6=0:
2α−(−1)+3β+6=0⇒2α+3β+7=0.
- Substitute α=2β into step 2:
2(2β)+3β+7=0⇒7β=−7⇒β=−1.
Then α=2β=−2.
4. So P=(2,−1,−2) and Q=(−2,−1,−1).
5. Direction ratios of PQ: PQ=Q−P=(−2−2,−1−(−1),−1−(−2))=(−4,0,1).
6. Magnitude: ∣PQ∣=(−4)2+02+12=17. …
- 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 …
- AP EAPCET 2024Set eng-2024-05-18-FN1 markMCQQ.If (α,β,γ) are the Direction cosines of an angular bisector of two lines whose Direction ratios are (2,2,1) and (2,−1,−2), then (α+β+γ)2= (A) 3 (B) 2 (C) 4 (D) 5
›Reveal solutionSolution
The direction cosines of an angle bisector between two lines are proportional to the sum (or difference) of their unit direction vectors. Using the difference here (since both direction ratios have equal magnitude 3) gives (α+β+γ)2=2.
Concept and Intuition
Given two lines with direction vectors of equal magnitude, the two angle bisectors between them are along the sum and the difference of the corresponding unit vectors — one bisects the angle containing the two rays, the other the supplementary angle.
Step-by-Step Solution
- Magnitude of (2,2,1): 4+4+1=3; unit vector (32,32,31).
- Magnitude of (2,−1,−2): 4+1+4=3; unit vector (32,−31,−32).
- Since the magnitudes are equal, an angular bisector direction is along the difference of these unit vectors: (32−32, 32+31, 31+32)=(0,1,1). …
🎓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.