In three-dimensional geometry, the orientation of a line is defined using Direction Cosines (DCs) and Direction Ratios (DRs). Direction Cosines are represented by the symbols l, m, and n. These represent the cosines of the angles α, β, and γ that a line makes with the positive directions of the x, y, and z axes, respectively. Mathematically, this is expressed as l=cos(α), m=cos(β), and n=cos(γ). A fundamental property connecting these three values is that the sum of their squares is always equal to unity, stated by the formula l2+m2+n2=1.
Direction Ratios are defined as any three numbers a, b, and c that are proportional to the Direction Cosines of a line. This proportionality implies that al=bm=cn=λ, where λ is a constant. Using the identity l2+m2+n2=1, we can derive that (aλ)2+(bλ)2+(cλ)2=1. Solving for λ yields λ2(a2+b2+c2)=1, which means λ=±a2+b2+c21. Consequently, the Direction Cosines can be calculated from the Direction Ratios using the formulas l=±a2+b2+c2a, m=±a2+b2+c2b, and n=±a2+b2+c2c.
Direction Cosines of a Line Passing Through Two Points
Consider a line passing through two distinct points P(x1,y1,z1) and Q(x2,y2,z2). To find the Direction Cosines of the line PQ, we first determine the Direction Ratios, which are simply the differences between the coordinates of the two points: x2−x1, y2−y1, and z2−z1. Alternatively, one can use x1−x2, y1−y2, and z1−z2.
The length of the line segment PQ, which serves as the normalizing factor (hypotenuse), is given by the distance formula: PQ=(x2−x1)2+(y2−y1)2+(z2−z1)2. The Direction Cosines are then defined as the ratio of the coordinate differences to this length:
l=cos(α)=PQx2−x1
m=cos(β)=PQy2−y1
n=cos(γ)=PQz2−z1
Examples of Direction Cosines and Ratios
Example 1 (Finding DCs from Angles): If a line makes angles 90∘, 60∘, and 30∘ with the positive directions of the x, y, and z axes respectively, find its Direction Cosines. Given α=90∘, β=60∘, and γ=30∘, we calculate:
l=cos(90∘)=0
m=cos(60∘)=21
n=cos(30∘)=23
The Direction Cosines of the line are ⟨0,21,23⟩.
Example 2 (Finding DCs from DRs): If a line has Direction Ratios 2,−1,−2, determine its Direction Cosines. First, calculate a2+b2+c2=22+(−1)2+(−2)2=4+1+4=9=3. The Direction Cosines are:
l=±32
m=±3−1
n=±3−2
The Direction Cosines are ±(32,−31,−32).
Geometry of a Triangle (BC and AC Calculation): From a specific geometric exercise, for a line segment BC with Direction Ratios (−4,−6,4), the magnitude is ∣BC∣=16+36+16=68=217. The resulting Direction Cosines are ⟨−172,−173,172⟩. For a line segment AC passing through points (3,5,−4) and (−5,−5,−2), the Direction Ratios are (−8,−10,2). The magnitude is ∣AC∣=64+100+4=168=242. The Direction Cosines are ⟨−2428,−24210,2422⟩.
Equation of a Line in Space
A line in three-dimensional space can be uniquely determined if we know a point through which it passes and the direction along which it lies (represented by a parallel vector).
Vector Form: Let a line pass through a point A with position vector a and be parallel to a vector b. If r is the position vector of any arbitrary point P(x,y,z) on the line, the vector equation is given by r=a+λb, where λ is a scalar.
Cartesian Form: If the point A has coordinates (x1,y1,z1) and the parallel vector b has Direction Ratios a, b, and c (so b=ai^+bj^+ck^), the equations of the line can be written as ax−x1=by−y1=cz−z1.
Example 6: Find the vector and the Cartesian equations of the line through the point (3,2,−4) and which is parallel to the vector 3i^+2j^−8k^. Note: In the provided worked solution, the starting point was taken as A(5,2,−4).
The angle θ between two lines can be determined using their Direction Ratios or Direction Cosines. Let line L1 have Direction Ratios a1,b1,c1 and line L2 have Direction Ratios a2,b2,c2.
Using Direction Ratios:
The cosine of the angle is given by the formula:
cos(θ)=a12+b12+c12a22+b22+c22∣a1a2+b1b2+c1c2∣
The sine of the angle can be expressed as:
sin(θ)=a12+b12+c12a22+b22+c22(a1b2−a2b1)2+(b1c2−b2c1)2+(c1a2−c2a1)2
Using Direction Cosines:
If the Direction Cosines of the lines are ⟨l1,m1,n1⟩ and ⟨l2,m2,n2⟩, the formula simplifies significantly because l2+m2+n2=1:
cos(θ)=∣l1l2+m1m2+n1n2∣
Conditions for Perpendicularity and Parallelism:
Perpendicularity: Two lines are perpendicular if the angle θ=90∘. In this case, cos(90∘)=0, leading to the condition: a1a2+b1b2+c1c2=0 or l1l2+m1m2+n1n2=0.
Parallelism: Two lines are parallel if the angle θ=0∘. This occurs when their Direction Ratios are proportional: a2a1=b2b1=c2c1=k.