The angle between two lines in three-dimensional geometry is defined as the angle between their direction vectors. If two lines do not pass through the same point, we imagine parallel lines through a common point; the angle between these parallel lines is taken as the angle between the original lines.
Vector Form
Let the two lines be
L1:r=a1+λb1L2:r=a2+μb2
Here, b1 and b2 are direction vectors of the two lines.
The acute angle θ between the lines is the acute angle between b1 and b2, so
cosθ=∣b1∣∣b2∣b1⋅b2
The modulus sign is used because we usually take the acute angle between two lines.
Cartesian Form
If the lines are written as
L1:a1x−x1=b1y−y1=c1z−z1L2:a2x−x2=b2y−y2=c2z−z2
then their direction ratios are (a1,b1,c1) and (a2,b2,c2) respectively, and
cosθ=a12+b12+c12a22+b22+c22a1a2+b1b2+c1c2
Conditions for Perpendicularity and Parallelism
From the formula for the angle between two lines, we get the following important special cases.
1. Perpendicular Lines (θ=90∘)
If two lines are perpendicular, then the dot product of their direction vectors is zero.
Vector condition:b1⋅b2=0
Cartesian condition:a1a2+b1b2+c1c2=0
2. Parallel Lines (θ=0∘)
If two lines are parallel, their direction vectors must be scalar multiples of one another.
Vector condition:b1=kb2for some scalar k
or equivalently
b1×b2=0
Cartesian condition:a2a1=b2b1=c2c1
provided the denominators are non-zero, or more generally, the ratios are proportional.
Skew Lines and Shortest Distance
In two dimensions, two lines either intersect or are parallel. In three dimensions, however, there is a third possibility: the lines may be skew.
Skew lines are lines which are neither parallel nor intersecting. They are also non-coplanar.
The shortest distance between two skew lines is the length of the common perpendicular segment joining them.
Shortest Distance Formula (Vector Form)
If the lines are
L1:r=a1+λb1L2:r=a2+μb2
then a vector perpendicular to both lines is
b1×b2.
So the shortest distance is the absolute value of the projection of a2−a1 on this common normal:
d=∣b1×b2∣(a2−a1)⋅(b1×b2)
This formula is valid when the lines are not parallel.
If the numerator becomes zero and the lines are not parallel, then the distance is zero, which means the lines intersect.
If the lines are
L1:a1x−x1=b1y−y1=c1z−z1
and
L2:a2x−x2=b2y−y2=c2z−z2,
then the shortest distance between them is
d=(b1c2−b2c1)2+(c1a2−c2a1)2+(a1b2−a2b1)2x2−x1a1a2y2−y1b1b2z2−z1c1c2
provided the lines are not parallel.
Distance Between Two Parallel Lines
If the lines are parallel, say
L1:r=a1+λbL2:r=a2+μb,
then the shortest distance is
d=∣b∣∣(a2−a1)×b∣
Here the numerator means the magnitude of the cross product.
Example 1: Angle Between Lines (Vector Form)
Find the angle between the lines r=(3i^+2j^−4k^)+λ(i^+2j^+2k^) and r=(5i^−2j^)+μ(3i^+2j^+6k^).
Solution:
Step 1: Identify the direction vectors.
b1=i^+2j^+2k^,b2=3i^+2j^+6k^
Step 2: Compute the dot product:
b1⋅b2=(1)(3)+(2)(2)+(2)(6)=3+4+12=19
Step 3: Compute the magnitudes:
∣b1∣=12+22+22=9=3∣b2∣=32+22+62=49=7
Step 4: Use the angle formula:
cosθ=3⋅719=2119
Step 5: Hence,
θ=cos−1(2119)
Answer:cos−1(19/21)
Example 2: Angle Between Lines (Cartesian Form)
Find the angle between the pair of lines 3x+3=5y−1=4z+3 and 1x+1=1y−4=2z−5.
Solution:
Step 1: Extract the direction ratios.
For the first line: (3,5,4).
For the second line: (1,1,2).
Step 2: Compute the numerator:
a1a2+b1b2+c1c2=3(1)+5(1)+4(2)=16
Step 3: Compute the magnitudes of the direction vectors:
32+52+42=50=5212+12+22=6
Example 3: Finding an Unknown for Perpendicular Lines
Find the value of p so that the lines 31−x=2p7y−14=2z−3 and 3p7−7x=1y−5=56−z are at right angles.
Solution:
Step 1: Rewrite each line in standard symmetric form.
For the first line:
31−x=3−(x−1)=−3x−12p7y−14=2p7(y−2)=2p/7y−2
So its direction ratios are
(−3,2p/7,2)
For the second line:
3p7−7x=3p−7(x−1)=−3p/7x−156−z=5−(z−6)=−5z−6
So its direction ratios are
(−3p/7,1,−5)
Step 2: For perpendicular lines, dot product of direction ratios must be zero:
(−3)(−73p)+(72p)(1)+(2)(−5)=0
Step 3: Evaluate the determinant in the numerator:
4716−6−2811=4−6−211−67111+871−6−2=4((−6)(1)−1(−2))−6(7⋅1−1⋅1)+8(7(−2)−(−6)(1))=4(−4)−6(6)+8(−8)=−16−36−64=−116
Step 4: Compute the denominator:
(b1c2−b2c1)2+(c1a2−c2a1)2+(a1b2−a2b1)2=((−6)(1)−(−2)(1))2+((1)(1)−(1)(7))2+((7)(−2)−(1)(−6))2=(−4)2+(−6)2+(−8)2=16+36+64=116
Step 5: Hence,
d=116−116=116=229
Answer:229 units.
Example 7: Distance Between Parallel Lines
Find the distance between the lines L1:r=(i^+2j^−4k^)+λ(2i^+3j^+6k^) and L2:r=(3i^+3j^−5k^)+μ(2i^+3j^+6k^).
Solution:
Step 1: Since both lines have the same direction vector,
b=2i^+3j^+6k^,
the lines are parallel.
Step 5: Use the parallel-line distance formula:
d=7293
Answer:293/7 units.
Example 8: Checking if Lines Intersect
Show that the lines 2x−1=3y−2=4z−3 and 5x−4=2y−1=z intersect.
Solution:
Step 1: Write the second line in standard form:
5x−4=2y−1=1z−0
So its direction ratios are (5,2,1).
Step 2: For the first line, the direction ratios are (2,3,4) and a point on it is (1,2,3).
For the second line, a point on it is (4,1,0).
Step 3: Check the determinant condition for coplanarity/intersection:
4−1251−2320−341=325−132−341
Evaluating,
=3(3−8)−(−1)(2−20)+(−3)(4−15)=−15−18+33=0
Step 4: Since the determinant is zero, the lines are coplanar. Also, their direction ratios are not proportional, so they are not parallel. Therefore, the coplanar non-parallel lines must intersect.
Answer: Proved.
Example 9: Finding the Point of Intersection
Find the intersection point of the lines 2x−1=3y−2=4z−3 and 5x−4=2y−1=z.
Solution:
Step 1: Parametrize both lines.
For the first line, let the common value be λ:
x=2λ+1,y=3λ+2,z=4λ+3
So a general point is
P(2λ+1,3λ+2,4λ+3)
For the second line, let the common value be μ:
x=5μ+4,y=2μ+1,z=μ
So a general point is
Q(5μ+4,2μ+1,μ)
Step 2: At the point of intersection, coordinates must be equal:
2λ+1=5μ+4...(1)3λ+2=2μ+1...(2)4λ+3=μ...(3)
Step 3: From (3),
μ=4λ+3
Substitute into (1):
2λ+1=5(4λ+3)+42λ+1=20λ+19−18λ=18λ=−1
Then
μ=4(−1)+3=−1
Step 4: Verify in (2):
3(−1)+2=−1,2(−1)+1=−1
So it is consistent.
Step 5: Substitute λ=−1 in the first line:
x=2(−1)+1=−1y=3(−1)+2=−1z=4(−1)+3=−1
Answer:(−1,−1,−1)
Example 10: Complex Skew Lines Problem
Find the shortest distance between the lines defined by r=(1−t)i^+(t−2)j^+(3−2t)k^ and r=(s+1)i^+(2s−1)j^−(2s+1)k^.
Solution:
Step 1: Rewrite each line in standard vector form.
For the first line,
r=(i^−2j^+3k^)+t(−i^+j^−2k^)
So,
a1=i^−2j^+3k^,b1=−i^+j^−2k^
For the second line,
r=(i^−j^−k^)+s(i^+2j^−2k^)
So,
a2=i^−j^−k^,b2=i^+2j^−2k^
Step 2: Compute
a2−a1=(0)i^+j^−4k^
Step 3: Compute the cross product:
b1×b2=i^−11j^12k^−2−2=2i^−4j^−3k^
Step 4: Its magnitude is
∣b1×b2∣=22+(−4)2+(−3)2=29
Step 5: Compute the scalar triple product:
(a2−a1)⋅(b1×b2)=(0,1,−4)⋅(2,−4,−3)=0−4+12=8
Step 6: Therefore,
d=298=298
Answer:8/29 units.
Ready to test your knowledge?
Take a quick interactive quiz on this topic —
free, works without login.