A line is a straight, one-dimensional figure that extends infinitely in both directions and has no thickness or endpoints.
In 3D space, straight lines are generally represented in two forms: Cartesian form and vector form. Therefore, the angle between two lines in 3D can also be determined using these two representations.
Cartesian Form of Line
L_1: \frac{x-x_1}{a_1}=\frac{y-y_1}{b_1}=\frac{z-z_1}{c_1}
L_2: \frac{x-x_2}{a_2}=\frac{y-y_2}{b_2}=\frac{z-z_2}{c_2}
Here L1 & L2 represent the two straight lines passing through the points (x1, y1, z1) and (x2, y2, z2), respectively.
- Direction ratios of line L1 are a1, b1, c1 then a vector parallel to L1 is
{\vec {m}} 1 = a1 i + b1 j + c1 k - Direction ratios of line L2 are a2, b2, c2; then a vector parallel to L2 is
{\vec {m}} 2 = a² i + b² j + c² k
Angle Between Lines in Cartesian Form
Then the angle ∅ between L1 and L2 is given by the following:
∅ = cos-1{(
{\vec {m}} 1 .{\vec {m}} 2) / (|{\vec {m}} 1| × |{\vec {m}} 2|)}
Example 1: Find the angles between the two lines in 3D space whose only direction ratios are given as 2, 1, 2 and 2, 3, 1.
Solution:
{\vec {m}} 1 = Vector parallel to the line having DRs 2, 1, 2 = (2 i + j + 2 k)v|
{\vec {m}} 1| = √(22 + 12 + 22) = √9 = 3
{\vec {m}} 2 = Vector parallel to the line having DRs 2, 3, 1 = (2 i + 3 j + k)⇒ |
{\vec {m}} 2| = √(22 + 32 + 12) = √(14)Thus, ∅ = cos-1{(2×2 + 1×3 + 2×1) / (3 × √(14))}
⇒ ∅ = cos-1{(4 + 3 + 2) / (3 × √(14))}
⇒ ∅ = cos-1{9 / (3 × √(14))}
⇒ ∅ = cos-1(3 / √(14))
Example 2: (x - 1) / 2 = (y - 2) / 1 = (z - 3) / 2, and (x - 2) / 2 = (y - 1) / 2 = (z - 3) / 1 are the two lines in 3D space. Then, the angle ∅ between them is given by:
Solution:
{\vec {m}} 1 = 2 i + j + 2 k⇒ |
{\vec {m}} 1| = √(22 + 12 + 22) = √9 = 3
{\vec {m}} 2 = 2 i + 2 j + k⇒ |
{\vec {m}} 2| = √(22 + 22 + 12) = √9 = 3Thus, ∅ = cos-1{(2×2 + 1×2 + 2×1 ) / (3 × 3)}
⇒ ∅ = cos-1{(4 + 2 + 2) / 9}
⇒ ∅ = cos-1(8 / 9)
Example 3: If (x - 1) / 1 = (2y + 3) / 3 = (z + 5) / 2 and (x - 2) / 3 = (y + 1) / -2 = (z - 2) / 0 are the two lines in 3D space, then the angle ∅ between them is given by:
Solution:
Given:
{\vec {m}} 1 = 1 i + (3 / 2) j + 2 k and{\vec {m}} 2 = 3 i - 2 j + 0 k⇒ |
{\vec {m}} 1| = √(12 + (3/2)2 + 22) = √(29 / 2), and⇒ |
{\vec {m}} 2| = √(32 + 22 + 02) = √(13)Thus, ∅ = cos-1{(1×3 + (3/2)×(-2) + (2)×0 ) / ((√(29) / 2) × √(13))}
⇒ ∅ = cos-1{0 / ((√(29) / 2) × √(13))}
⇒ ∅ = cos-1(0)
⇒ ∅ = π / 2
Vector Form of Line
L1:
L2:
Where,
- L1 & L2 represent the two straight lines passing through the points whose position vectors are
{\vec {a}} 1 and{\vec {a}} 2, lying in 3D space in Vector F.rm. {\vec {b}} 1$ & ${\vec &{\vec {b}} 2 are the two vectors parallel to L1 & L2, respectively- And t and u are the parameters.
Angle Between Lines in Vector Form
Then the angle ∅ between the vectors
∅ = cos-1{(
{\vec {b}} 1 .{\vec {b}} 2) / (|{\vec {b}} 1| × |{\vec {b}} 2|)}
Example 1: If (i + 2 j + 2 k) and (3 i + 2 j + 6 k) are the two vectors parallel to the two lines in 3D space, then the angle ∅ between them is given by:
Solution:
{\vec {b}} 1 = i + 2 j + 2 k⇒ |
{\vec {b}} 1| = √(12 + 22 + 22)} = √9 = 3
{\vec {b}} 2 = 3 i + 2 j + 6 k⇒ |
{\vec {b}} 2| = √(32 + 22 + 62) = √(49) = 7Thus, ∅ = cos-1{(1×3 + 2×2 + 2×6) / (7 × 3)}
⇒ ∅ = cos-1{(3 + 4 + 12) / 21}
⇒ ∅ = cos-1(19 / 21)
Example 2: If
Solution:
{\vec {b}} 1 = i + 2 j - 2 k⇒ |
{\vec {b}} 1| = √(12 + 22 + (-2)2)} = √9 = 3
{\vec {b}} 2 = 2 i + 4 j - 4 k⇒ |
{\vec {b}} 2| = √(22 + 42 + (-4)2) = √(36) = 6Thus, ∅ = cos-1{(1×2 + 2×4 + (-2)×(-4)) / (3 × 6)}
⇒ ∅ = cos-1{(2 + 8 + 8) / 18}
⇒ ∅ = cos-1(18 / 18)
⇒ ∅ = cos-1(1) = 0
Example 3:
Solution:
{\vec {b}} 1 = (-√3 - 1) i + (√3 - 1) j + 4 k⇒ |
{\vec {b}} 1| = √{(-√3 - 1)2 + (√3 - 1)2 + 42)} = √(24)
{\vec {b}} 2 = i + j + 2 k⇒ |
{\vec {b}} 2| = √(12 + 12 + 22) = √6Thus, ∅ = cos-1{(-√3 - 1)×1 + (√3 - 1)×1 + 4×2 ) / (√(24) × √6)}
⇒ ∅ = cos-1{6 / (√(24) × √6)}
⇒ ∅ = cos-1(½)
⇒ ∅ = π / 3