A(2,1,3);B(5,3,9);C(1,−1,3);D(2,3,11)The equation of the line given by points A and B is →r1=→a1+λ(→b1−→b1)
where →a and →b are the position vectors, λ being a constant.
→a1=2^i+^j+3^k [ formed from coordinates of A]
→b1=5^i+3^j+9^k [ formed from coordinates of B]
Now, →r1=2→i+→j+3^k+λ(5^i+3^j+9^k−2^i−^j−3^k)
→r1=2^i+^j+3^k+λ(3^i+2^j+6^k)........(1)
The equation of line formed from points c(1,−1,3) & D(2,3,11)
→r2=→a2+λ(→b2−→b2) [→a2 and →b2 are position vectors]
→r2=→i−→j+3^k+λ(2^i+3^j+11^k−^i+^j−3^k)
→r2=^i−^j+3^k+λ(^i+4^j+8^k)........(2)
The angle between two lines are given by
cosθ=→b1.→b2|→b1||→b2|.........(3)
where →b1 and →b2 is the position vector of the line parallel to the given line
from equation (1) b1=3^i+2^j+6^k
from equation (2) b2=^i+4^j+8^k
Now using formula (3)
cosθ=(3^i+2^j+6^k).(^i+4^j+8^k)(√(3)2+(2)2+(6)2)√(1)2+(4)2+(3)2
cosθ=3+8+487+9=5916,θ=cos−1(5916)