Here you learn formula for angle between two lines in 3d in both vector form and cartesian form with examples.
Let’s begin –
Angle Between Two Lines in 3d
(a) Vector Form
Let the vector equations of the two lines be →r = →a1 + λ→b1 and →r = →a2 + μ→b2.
These two lines are parallel to the vectors →b1 and →b2 respectively. Therefore, angle between these two lines is equal to the angle between →b1 and →b2.
Thus, if θ is the angle between the given lines, then
cosθ = →b1.→b2|→b1||→b2|
Condition of Perpendicularity : If the lines →b1 and →b2 are perpendicular. Then
→b1. →b2 = 0
Condition of Parallelism : If the lines are parallel, then →b1 and →b2 are parallel,
∴ →b1 = λ→b2 for some scalar λ
(b) Cartesian Form
Let the cartesian equation of the two lines be
x–x1a1 = y–y1b1 = z–z1c1 …………(i)
and x–x1a2 = y–y1b2 = z–z1c2 …………(ii)
Direction ratios of line (i) are proportional to a1, b1, c1.
∴ →m1 = Vector parallel to line (i) = a1ˆi+b1ˆj+c1ˆk.
Direction ratios of line (ii) are proportional to a2, b2, c2.
∴ →m2 = Vector parallel to line (ii) = a2ˆi+b2ˆj+c2ˆk.
Let θ be the angle between (i) and (ii).
Then, θ is also the angle between →m1 and →m2.
∴ cosθ = →m1.→m2|→m1||→m2|
⟹ cosθ = a1a2+b1b2+c1c2√a12+b12+c12√a12+b12+c12
Condition of Perpendicularity : If the lines are perpendicular. Then
→m1. →m2 = 0 ⟹ a1a2+b1b2+c1c2 = 0
Condition of Parallelism : If the lines are parallel, then →m1 and →m2 are parallel,
∴ →m1 = λ→m2 for some scalar λ
⟹ a1a2 = b1b2 = c1c2
Example : Find the angle between the lines
→r = 3ˆi+2ˆj–4ˆk + λ (ˆi+2ˆj+2ˆk) and
→r = (5ˆj–2ˆk) + μ (3ˆi+2ˆj+6ˆk)
Solution : Let θ be the angle between the given lines. These given lines are parallel to the vectors →b1 = ˆi+2ˆj+2ˆk and →b2 = 3ˆi+2ˆj+6ˆk respectively.
So, the angle θ between them is given by
cosθ = →b1.→b2|→b1||→b2|
⟹ cosθ = 3+4+12√1+4+4√9+4+36 = 1921
Hence, θ = cos−1(1921)