In three-dimensional geometry, describing the orientation of a straight line is one of the first essential ideas. Consider a directed line L. If this line makes angles α, β, and γ with the positive directions of the x-, y-, and z-axes respectively, then these are called the direction angles of the directed line.
If a line does not pass through the origin, we can always draw a line through the origin parallel to it. Since parallel lines have the same orientation, they have the same direction angles.
If the direction of the line is reversed, then the new direction angles become π−α, π−β, and π−γ.
Thus, a line has two opposite orientations, and changing the orientation changes the signs of its direction cosines.
This idea is important because in 3D geometry, we often study a line through its direction rather than its exact position.
Direction Cosines of a Line
If α, β, and γ are the direction angles of a directed line, then the numbers
cosα,cosβ,cosγ
are called the direction cosines of the line. These are usually denoted by l,m,n respectively:
l=cosα,m=cosβ,n=cosγ.
These three numbers completely determine the direction of the line.
Fundamental Identity:
The direction cosines always satisfy
l2+m2+n2=1.
Why this is true:
Take any point P(x,y,z) on the line at distance r from the origin. Then the coordinates of P can be written as
x=lr,y=mr,z=nr.
Using the distance formula,
r2=x2+y2+z2.
Substituting x=lr,y=mr,z=nr gives
r2=l2r2+m2r2+n2r2=r2(l2+m2+n2).
Since r=0 for any non-origin point on the line, dividing by r2 yields
l2+m2+n2=1.
This identity is the most important test for checking whether a given triple can be direction cosines.
Direction Ratios of a Line
Any three numbers a,b,c which are proportional to the direction cosines l,m,n of a line are called the direction ratios of the line.
Thus, for some non-zero constant k,
l=ak,m=bk,n=ck.
Equivalently,
al=bm=cn=k.
Unlike direction cosines, direction ratios do not need to satisfy any special identity like a2+b2+c2=1. Any three real numbers, not all zero, can serve as direction ratios.
Converting Direction Ratios to Direction Cosines
Since
l=ak,m=bk,n=ck,
and also
l2+m2+n2=1,
we get
a2k2+b2k2+c2k2=1k2(a2+b2+c2)=1.
So,
k=±a2+b2+c21.
Hence the direction cosines are
l=±a2+b2+c2a,m=±a2+b2+c2b,n=±a2+b2+c2c.
The same sign must be taken throughout for one orientation of the line. Taking the opposite common sign gives the opposite orientation.
Direction Cosines and Ratios of a Line Joining Two Points
Let a line pass through two points P(x1,y1,z1) and Q(x2,y2,z2).
Then the vector
PQ=(x2−x1)i^+(y2−y1)j^+(z2−z1)k^
gives the direction of the line from P to Q.
Therefore, the direction ratios of the line segment PQ are
a=x2−x1,b=y2−y1,c=z2−z1.
If the length of PQ is
d=(x2−x1)2+(y2−y1)2+(z2−z1)2,
then the direction cosines of the directed line from P to Q are
l=dx2−x1,m=dy2−y1,n=dz2−z1.
If we reverse the direction and consider Q to P, then each of these changes sign.
Collinearity Test using Direction Ratios
Three points A,B,C are collinear if the direction ratios of AB are proportional to the direction ratios of BC (or AC). In other words, the vectors AB and BC must be parallel.
Example 1: Finding Direction Cosines from Angles
If a line makes angles 90∘,60∘, and 30∘ with the positive directions of x-, y-, and z-axes respectively, find its direction cosines.
Solution:
Step 1: Write the given direction angles:
α=90∘,β=60∘,γ=30∘.
Step 2: Use the definition
l=cosα,m=cosβ,n=cosγ.
Step 3: Evaluate each cosine:
l=cos90∘=0,m=cos60∘=21,n=cos30∘=23.
Step 4: Verify the identity:
l2+m2+n2=02+(21)2+(23)2=0+41+43=1.
So the values are correct.
Answer:0,21,23
Example 2: Converting Direction Ratios to Direction Cosines
If a line has direction ratios 2,−1,−2, determine its direction cosines.
Solution:
Step 1: Let the direction ratios be
a=2,b=−1,c=−2.
Step 2: Compute
a2+b2+c2=22+(−1)2+(−2)2=4+1+4=9=3.
Step 3: Divide each direction ratio by 3 to get one set of direction cosines:
l=32,m=−31,n=−32.
Step 4: Since a line can be taken in the opposite direction as well, the opposite set is also valid:
−32,31,32.
If the direction is not specified, either set represents the same line.
Answer: One possible set is 32,−31,−32; the opposite set is also valid.
Example 3: Line Joining Two Points
Find the direction cosines of the line passing through the two points (−2,4,−5) and (1,2,3).
Solution:
Step 1: Let
P(−2,4,−5),Q(1,2,3).
Then the direction ratios of the directed line from P to Q are
a=1−(−2)=3,b=2−4=−2,c=3−(−5)=8.
So the direction ratios are 3,−2,8.
Step 2: Find the length of PQ:
PQ=32+(−2)2+82=9+4+64=77.
Step 3: Divide each direction ratio by 77:
l=773,m=−772,n=778.
Step 4: Check:
(773)2+(−772)2+(778)2=779+4+64=1.
Hence these are correct.
Answer: For the directed line from P to Q, the direction cosines are 773,−772,778.
Example 4: Checking Collinearity
Show that the points A(2,3,−4), B(1,−2,3), and C(3,8,−11) are collinear.
Solution:
Step 1: Find the direction ratios of AB:
AB=(1−2,−2−3,3−(−4))=(−1,−5,7).
So DRs of AB are −1,−5,7.
Step 2: Find the direction ratios of BC:
BC=(3−1,8−(−2),−11−3)=(2,10,−14).
So DRs of BC are 2,10,−14.
Step 3: Check proportionality:
2−1=−21,10−5=−21,−147=−21.
All three ratios are equal.
Step 4: Therefore,
AB∥BC.
Since both segments share the common point B, the three points must lie on the same straight line.
Answer: Proved. The points are collinear.
Example 5: Finding an Unknown Direction Angle
If a line makes angles 45∘ and 60∘ with the positive directions of x- and y-axes respectively, find the angle it makes with the positive z-axis.
Solution:
Step 1: Given
α=45∘,β=60∘.
We need to find γ.
Step 2: Use the identity
cos2α+cos2β+cos2γ=1.
Substitute the values:
cos245∘+cos260∘+cos2γ=1.
That is,
(21)2+(21)2+cos2γ=121+41+cos2γ=143+cos2γ=1cos2γ=41.
Step 3: Hence
cosγ=±21.
Therefore,
γ=60∘or120∘.
Both are possible because the line may be directed in two opposite orientations with respect to the z-axis.
Answer:60∘ or 120∘
Example 6: Trigonometric Identity with Direction Angles
Show that if a line makes angles α,β,γ with the coordinate axes, then sin2α+sin2β+sin2γ=2.
Solution:
Step 1: Start with the standard identity for direction cosines:
cos2α+cos2β+cos2γ=1.
Step 2: Use
cos2θ=1−sin2θ.
Then
(1−sin2α)+(1−sin2β)+(1−sin2γ)=1.
Step 3: Simplify:
3−(sin2α+sin2β+sin2γ)=1.
Step 4: Rearranging,
sin2α+sin2β+sin2γ=2.
Thus the required relation is proved.
Answer: Proved.
Example 7: Line Equally Inclined to Axes
Find the direction cosines of a line which is equally inclined to the positive coordinate axes.
Solution:
Step 1: If the line is equally inclined to the positive x-, y-, and z-axes, then the direction angles are equal, so the direction cosines are equal:
l=m=n.
Step 2: Use the identity
l2+m2+n2=1.
Since l=m=n,
3l2=1⟹l2=31⟹l=31.
We take the positive value because the line is equally inclined to the positive axes.
Step 3: Therefore,
l=m=n=31.
Answer:(31,31,31)
Example 8: Finding Point Coordinates from DCs and Distance
A line passes through the origin and has direction cosines 31,−32,32. Find the coordinates of the point on this line which is at a distance of 6 units from the origin.
Solution:
Step 1: Let the required point be P(x,y,z).
Since the line passes through the origin and the distance of the point from the origin is r=6, we use
x=lr,y=mr,z=nr.
Step 2: Substitute the given direction cosines:
x=31⋅6=2,y=−32⋅6=−4,z=32⋅6=4.
So one point is
P(2,−4,4).
Step 3: Since the line extends in the opposite direction also, the point at the same distance on the opposite side of the origin is
(−2,4,−4).
Answer:(2,−4,4) or (−2,4,−4)
Example 9: Direction Cosines of the Coordinate Axes
What are the direction cosines of the x-, y-, and z-axes?
Solution:
Step 1: For the x-axis, the direction angles are
0∘,90∘,90∘.
Therefore,
cos0∘,cos90∘,cos90∘=1,0,0.
So the direction cosines of the x-axis are (1,0,0).
Step 2: For the y-axis, the direction angles are
90∘,0∘,90∘.
Therefore, the direction cosines are (0,1,0).
Step 3: For the z-axis, the direction angles are
90∘,90∘,0∘.
Therefore, the direction cosines are (0,0,1).
Example 10: Direction Ratios of a Perpendicular Line
Find the direction ratios of a line perpendicular to two lines whose direction ratios are 1,2,3 and −2,1,4.
Solution:
Step 1: A vector perpendicular to both given lines must be perpendicular to the vectors
u=⟨1,2,3⟩,v=⟨−2,1,4⟩.
So its direction ratios can be obtained from the cross product u×v.
Step 2: Compute the cross product:
u×v=i^1−2j^21k^34=i^(2⋅4−3⋅1)−j^(1⋅4−3⋅(−2))+k^(1⋅1−2⋅(−2))=i^(8−3)−j^(4+6)+k^(1+4)=5i^−10j^+5k^.
Step 3: Therefore, one set of direction ratios is
5,−10,5,
which simplifies to
1,−2,1.
The opposite set −1,2,−1 is also valid.
Answer: One possible set of direction ratios is 1,−2,1.
Ready to test your knowledge?
Take a quick interactive quiz on this topic —
free, works without login.