Given:
Let l1,m1,n1 and l2,m2,n2are the direction cosines of two given lines L1andL2.
Let ˆn1andˆn2 be the unit vectors along these lines L1andL2.
→n1=l1i+m1j+n1kand→n2=l2i+m2j+n2k
The cross-product of two vectors ˆn1׈n2=|ˆn1|⋅|ˆn2|sin90∘^n
L1⊥L2, the angle between them is 90∘
ˆn1׈n2=^n
ˆn1׈n2=^n=∣∣ ∣∣ijkl1m1n1l2m2n2∣∣ ∣∣
^n=(m1n1−m2n1)i−(l1n2−l2n1)j+(l1m2−l2m1)k
Here, $ \hat{n} $ is a unit vector.
Thus, the direction cosines are (m1n1−m2n1),(l1n2−l2n1),(l1m2−l2m1).