The two given lines have direction ratios:
- Line 1: (1,−2,−2)
- Line 2: (0,2,1)
When two vectors are given, their cross product gives a vector perpendicular to both.
Let's calculate the cross product (1,−2,−2)×(0,2,1)
Using the formula a×b=(a2b3−a3b2,a3b1−a1b3,a1b2−a2b1):
=((−2)(1)−(−2)(2),(−2)(0)−(1)(1),(1)(2)−(−2)(0))
=(−2−(−4),0−1,2−0)
=(2,−1,2)
Direction cosines are normalized direction ratios. To normalize, divide each component by the magnitude.
Magnitude: ∥(2,−1,2)∥=22+(−1)2+22=9=3
Therefore, the direction cosines are:
(32,−31,32)