Let the required line be parallel to the vector →b given by, →b=b1→i+b2→j+b3→k
The position vector of the point (2,1,3) and parallel to vector →b is
→r=→a+λ→b
⇒→r(2→i+→j+3→k)+λ(b1→i+b2→j+b3→k)--- (1)
The equation of the lines are
x−11=y−22=z−33--- (2)
x−3=y2=z5 ---- (3)
Line (1) and (2) are ⊥ to each other.
∴b1+2b2+3b3=0--- (4)
Also, Line (1) and (3) are ⊥ to each other.
∴−3b1+2b2+5b3=0--- (5)
From equation (4) and (5), we obtain
b12(5)−3(2)=b25−3(−3)=b32−2(−3)
b14=−b214=b38
⇒b12=−b27=b34
Therefore direction ratios of →b are 2,−7,4.
→b=2→i−7→j+4→k
Substituting →b=2→i+7→j+4→k in equation (1), we obtain
→r(2→i+→j+3→k)+λ(2→i−7→j+4→k)
This is the equation of the required line.