Angles Between two Lines in 3D Space | Solved Examples (original) (raw)
Last Updated : 23 Jul, 2025
A line in mathematics and geometry is a fundamental concept representing a straight, one-dimensional figure that extends infinitely in both directions. Lines are characterized by having no thickness and being perfectly straight. Here are some important aspects and definitions related to lines:
Key Characteristics of Lines
- **Infinite Length: A line extends without end in both directions. It has no beginning or endpoints.
- **No Thickness: A line is considered to have no width or depth; it is purely one-dimensional.
- **Straightness: A line does not curve or bend. It is the shortest distance between any two points lying on it.
Straight Lines in 3D space are generally represented in two forms: _Cartesian Form and _Vector Form. Hence, the angles between any two straight lines in 3D space are also defined in terms of both the forms of the straight lines. Let's discuss the methods of finding the angle between two straight lines in both forms one by one.

Table of Content
- Cartesian Form of Line
- Angle Between Lines in Cartesian Form
- Vector Form of Line
- Angle Between Lines in Vector Form
- Solved Examples on Angles Between two Lines in 3D Space
**Cartesian Form of Line
L1: (x - x1) / a1 = (y - y1) / b1 = (z - z1) / c1
L2: (x - x2) / a2 = (y - y2) / b2 = (z - z2) / c2
Here L 1 & **L 2 represent the two straight lines passing through the points ****(x** 1 , y 1 , z 1 ) and ****(x** 2 , y 2 , z 2 ) respectively, in 3D space in Cartesian Form.
- Direction ratios of line L1 are **a 1 , b 1 , c 1then a vector parallel to L1 is {\vec {m}}**1 _= a 1 **i _+ b 1 **j _+ c 1 **k
- Direction ratios of line L2 are **a 2 , b 2 , c 2 then a vector parallel to L2 is {\vec {m}}**2 _= a 2 **i + b 2 **j + c 2 **k
Angle Between Lines in Cartesian Form
Then the angle **∅ between L1 and L2 is given by:
**∅ **= cos **-1 ****{(**{\vec {m}}**1 . {\vec {m}}**2 ****) / (|**{\vec {m}}**1 ****| × |**{\vec {m}}**2 ****|)}**
Examples
**Example 1: (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
**Example 2: Find the angles between the two lines in 3D space whose only direction ratios are given 2, 1, 2 and 2, 3, 1. In the question, equations of the 2 lines are not given, only their DRs are given. So the angle ∅ between the 2 lines is given by:
**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 3: ****(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 = 3
Thus, ∅ = cos-1{(2×2 + 1×2 + 2×1 ) / (3 × 3)}
⇒ ∅ = cos-1{(4 + 2 + 2) / 9}
⇒ ∅ = cos-1(8 / 9)
**Vector Form of Line
L1: {\vec {r}} = {\vec {a}}1 + t . {\vec {b}}1
L2: {\vec {r}} = {\vec {a}}2 + u . {\vec {b}}2
Where,
- **L 1& **L 2 represent the two straight lines passing through the points whose position vectors are{\vec {a}}**1 and {\vec {a}}**2 respectively in 3D space in Vector Form,
- {\vec {b}}**1&{\vec {b}}**2are the two vectors parallel to L1 and L2 respectively
- and t & **u are the parameters.
Angle Between Lines in Vector Form
Then the angle **∅ between the vectors {\vec {b}}1 and {\vec {b}}2 is equals to the angle between L1 and L2 is given by:
**∅ = cos **-1 ****{(**{\vec {b}}**1 . {\vec {b}}**2 ****) / (|**{\vec {b}}**1 ****| × |**{\vec {b}}**2 ****|)}**
Solved Examples on Angles Between two Lines in 3D Space
**Example 1: {\vec {r}} **= (i + j + k) + t × {(-√3 - 1) i + (√3 - 1) j + 4 k} and {\vec {r}} **= (i + j + k) + u × (i + j + 2 k) are the two lines in 3D space then the angle ∅ between them is given by:
**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) = √6
Thus, ∅ = cos-1{(-√3 - 1)×1 + (√3 - 1)×1 + 4×2 ) / (√(24) × √6)}
⇒ ∅ = cos-1{6 / (√(24) × √6)}
⇒ ∅ = cos-1(½)
⇒ ∅ = π / 3
**Example 2: ****(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) = 7
Thus, ∅ = cos-1{(1×3 + 2×2 + 2×6) / (7 × 3)}
⇒ ∅ = cos-1{(3 + 4 + 12) / 21}
⇒ ∅ = cos-1(19 / 21)
**Example 3: {\vec {r}} **= (3 i + 5 j + 7 k) + s × {(i + 2 j - 2 k} and {\vec {r}} **= (4 i + 3 j + k) + t × (2 i + 4 j - 4 k) are 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 + (-2)2)} = √9 = 3
{\vec {b}}2 = 2 i + 4 j - 4 k
⇒ |{\vec {b}}2| = √(22 + 42 + (-4)2) = √(36) = 6
Thus, ∅ = cos-1{(1×2 + 2×4 + (-2)×(-4)) / (3 × 6)}
⇒ ∅ = cos-1{(2 + 8 + 8) / 18}
⇒ ∅ = cos-1(18 / 18)
⇒ ∅ = cos-1(1) = 0
**Read More,